From d8785370296c05e1f9ba6100ae2251a4bf536477 Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Tue, 13 Oct 2026 07:52:21 +0000 Subject: [PATCH] Generated CLI #2941389255 --- .claude/skills/fireblocks-cli/SKILL.md | 4 +- CHANGELOG.md | 163 ---------- README.md | 18 +- SKILL.md | 4 +- package.json | 132 ++++---- .../set-admin-quorum-threshold.ts | 1 + src/commands/api-user/create-api-user.ts | 1 + src/commands/api-user/get-api-users.ts | 1 + .../api-user/issue-api-user-pairing-token.ts | 1 + src/commands/approvals/approve-approval.ts | 5 +- src/commands/approvals/create-approval-key.ts | 5 +- src/commands/approvals/delete-approval-key.ts | 5 +- src/commands/approvals/get-approval-by-id.ts | 5 +- src/commands/approvals/get-approval-keys.ts | 5 +- src/commands/approvals/get-approvals.ts | 5 +- src/commands/approvals/reject-approval.ts | 5 +- src/commands/audit-logs/get-audit-logs.ts | 1 + .../activate-blockchain-link-chain.ts | 5 +- .../create-blockchain-link-chain.ts | 5 +- .../delete-blockchain-link-chain.ts | 5 +- .../get-blockchain-link-billing-info.ts | 5 +- .../get-blockchain-link-chain.ts | 5 +- ...get-blockchain-link-test-wallet-address.ts | 5 +- .../list-blockchain-link-chains.ts | 5 +- .../trigger-blockchain-link-validation.ts | 5 +- .../update-blockchain-link-chain.ts | 5 +- src/commands/blockchains-assets/get-asset.ts | 1 + .../blockchains-assets/get-blockchain.ts | 1 + .../get-supported-assets.ts | 1 + .../blockchains-assets/list-assets.ts | 1 + .../blockchains-assets/list-blockchains.ts | 1 + .../blockchains-assets/register-new-asset.ts | 1 + .../blockchains-assets/set-asset-price.ts | 1 + .../update-asset-user-metadata.ts | 1 + src/commands/canton/create-canton-call.ts | 7 +- .../canton/respond-to-canton-offer.ts | 7 +- .../get-screening-result.ts | 5 +- .../compliance-orchestrator/get-workflow.ts | 5 +- .../trigger-screening.ts | 5 +- .../update-workflow-status.ts | 5 +- .../get-aml-screening-configuration.ts | 1 + .../get-screening-configuration.ts | 1 + .../compliance/activate-ars-config.ts | 1 + .../compliance/activate-byork-config.ts | 1 + .../add-address-registry-vault-opt-outs.ts | 1 + .../assign-vaults-to-legal-entity.ts | 1 + ...ate-address-registry-proof-of-ownership.ts | 1 + .../compliance/create-counterparty-group.ts | 1 + .../compliance/deactivate-ars-config.ts | 1 + .../compliance/deactivate-byork-config.ts | 1 + .../compliance/delete-counterparty-group.ts | 1 + .../compliance/delete-legal-entity.ts | 1 + ...ss-registry-tenant-participation-status.ts | 1 + .../get-address-registry-vault-opt-out.ts | 1 + .../get-aml-post-screening-policy.ts | 1 + .../compliance/get-aml-screening-policy.ts | 1 + src/commands/compliance/get-byork-config.ts | 1 + src/commands/compliance/get-byork-verdict.ts | 1 + .../compliance/get-counterparty-group.ts | 1 + .../get-legal-entity-for-address.ts | 1 + src/commands/compliance/get-legal-entity.ts | 1 + .../compliance/get-post-screening-policy.ts | 1 + .../compliance/get-screening-full-details.ts | 1 + .../compliance/get-screening-policy.ts | 1 + .../list-address-registry-vault-opt-outs.ts | 1 + .../compliance/list-counterparty-groups.ts | 1 + .../compliance/list-legal-entities.ts | 1 + .../list-vaults-for-legal-entity.ts | 1 + .../opt-in-address-registry-tenant.ts | 1 + .../opt-out-address-registry-tenant.ts | 1 + .../compliance/register-legal-entity.ts | 1 + .../remove-address-registry-vault-opt-out.ts | 1 + ...ove-all-address-registry-vault-opt-outs.ts | 1 + .../rescreen-rejected-transaction.ts | 1 + ...ted-transaction-bypass-screening-checks.ts | 1 + src/commands/compliance/set-aml-verdict.ts | 1 + src/commands/compliance/set-byork-timeouts.ts | 1 + src/commands/compliance/set-byork-verdict.ts | 1 + .../update-aml-screening-configuration.ts | 1 + .../compliance/update-counterparty-group.ts | 1 + .../compliance/update-legal-entity.ts | 1 + .../update-screening-configuration.ts | 1 + .../compliance/update-travel-rule-config.ts | 1 + ...ify-address-registry-proof-of-ownership.ts | 1 + .../add-connected-account.ts | 1 + .../disconnect-connected-account.ts | 1 + .../get-connected-account-allowlist-entry.ts | 1 + .../get-connected-account-allowlist.ts | 1 + .../get-connected-account-balances.ts | 1 + .../get-connected-account-rates.ts | 1 + .../get-connected-account-trading-pairs.ts | 1 + .../get-connected-account.ts | 1 + ...nnected-accounts-credentials-public-key.ts | 1 + .../get-connected-accounts.ts | 1 + .../rename-connected-account.ts | 1 + .../sync-connected-account-allowlist.ts | 1 + .../update-connected-account-credentials.ts | 1 + .../console-user/create-console-user.ts | 1 + .../console-user/delete-console-user.ts | 5 +- .../console-user/get-console-users.ts | 1 + src/commands/contacts/get-contacts.ts | 1 + .../decode-contract-data.ts | 1 + .../get-contract-address.ts | 1 + .../get-deployed-contract-abi.ts | 1 + .../get-transaction-receipt.ts | 1 + .../read-call-function.ts | 1 + .../write-call-function.ts | 1 + .../delete-contract-template-by-id.ts | 1 + .../contract-templates/deploy-contract.ts | 1 + ...get-constructor-by-contract-template-id.ts | 1 + .../get-contract-template-by-id.ts | 1 + .../get-contract-templates.ts | 1 + ...et-function-abi-by-contract-template-id.ts | 1 + ...et-supported-blockchains-by-template-id.ts | 1 + .../upload-contract-template.ts | 1 + src/commands/contracts/add-contract-asset.ts | 1 + src/commands/contracts/create-contract.ts | 1 + .../contracts/delete-contract-asset.ts | 1 + src/commands/contracts/delete-contract.ts | 1 + src/commands/contracts/get-contract-asset.ts | 1 + src/commands/contracts/get-contract.ts | 1 + src/commands/contracts/get-contracts.ts | 1 + src/commands/cosigners/add-cosigner.ts | 5 +- src/commands/cosigners/get-api-key.ts | 5 +- src/commands/cosigners/get-api-keys.ts | 5 +- src/commands/cosigners/get-cosigner.ts | 5 +- src/commands/cosigners/get-cosigners.ts | 5 +- src/commands/cosigners/get-request-status.ts | 5 +- src/commands/cosigners/pair-api-key.ts | 5 +- src/commands/cosigners/rename-cosigner.ts | 5 +- src/commands/cosigners/unpair-api-key.ts | 5 +- .../cosigners/update-callback-handler.ts | 5 +- .../deployed-contracts/add-contract-abi.ts | 1 + .../deployed-contracts/fetch-contract-abi.ts | 1 + .../get-deployed-contract-by-address.ts | 1 + .../get-deployed-contract-by-id.ts | 1 + .../get-deployed-contracts.ts | 1 + src/commands/earn/approve-terms-of-service.ts | 1 + src/commands/earn/create-earn-action.ts | 1 + src/commands/earn/get-earn-action.ts | 1 + src/commands/earn/get-earn-actions.ts | 1 + src/commands/earn/get-earn-opportunities.ts | 1 + src/commands/earn/get-earn-positions.ts | 1 + src/commands/earn/get-earn-providers.ts | 1 + .../add-embedded-wallet-asset.ts | 1 + .../assign-embedded-wallet.ts | 1 + .../create-embedded-wallet-account.ts | 1 + .../create-embedded-wallet.ts | 1 + .../get-embedded-wallet-account.ts | 1 + .../get-embedded-wallet-addresses.ts | 1 + .../get-embedded-wallet-asset-balance.ts | 1 + .../get-embedded-wallet-asset.ts | 1 + .../get-embedded-wallet-assets.ts | 1 + .../get-embedded-wallet-device-setup-state.ts | 1 + .../get-embedded-wallet-device.ts | 1 + .../get-embedded-wallet-devices-paginated.ts | 1 + .../get-embedded-wallet-latest-backup.ts | 1 + ...dded-wallet-public-key-info-for-address.ts | 1 + .../get-embedded-wallet-setup-status.ts | 1 + .../get-embedded-wallet-supported-assets.ts | 1 + .../embedded-wallets/get-embedded-wallet.ts | 1 + .../embedded-wallets/get-embedded-wallets.ts | 1 + .../get-public-key-info-for-address-ncw.ts | 1 + .../get-public-key-info-ncw.ts | 1 + .../refresh-embedded-wallet-asset-balance.ts | 1 + .../update-embedded-wallet-device-status.ts | 1 + .../update-embedded-wallet-status.ts | 1 + .../exchange-accounts/add-exchange-account.ts | 1 + .../exchange-accounts/convert-assets.ts | 1 + .../get-exchange-account-asset.ts | 1 + .../exchange-accounts/get-exchange-account.ts | 1 + ...xchange-accounts-credentials-public-key.ts | 1 + .../get-exchange-accounts.ts | 1 + .../get-paged-exchange-accounts.ts | 1 + .../exchange-accounts/internal-transfer.ts | 1 + .../add-asset-to-external-wallet.ts | 1 + .../create-external-wallet.ts | 1 + .../delete-external-wallet.ts | 1 + .../get-external-wallet-asset.ts | 1 + .../external-wallets/get-external-wallet.ts | 1 + .../external-wallets/get-external-wallets.ts | 1 + .../remove-asset-from-external-wallet.ts | 1 + .../set-external-wallet-customer-ref-id.ts | 1 + .../deposit-funds-from-linked-dda.ts | 1 + .../fiat-accounts/get-fiat-account.ts | 1 + .../fiat-accounts/get-fiat-accounts.ts | 1 + .../redeem-funds-to-linked-dda.ts | 1 + .../get-gas-station-by-asset-id.ts | 1 + .../gas-stations/get-gas-station-info.ts | 1 + ...e-gas-station-configuration-by-asset-id.ts | 1 + .../update-gas-station-configuration.ts | 1 + src/commands/genie/create-genie-session.ts | 5 +- src/commands/genie/send-genie-message.ts | 5 +- .../create-internal-wallet-asset.ts | 1 + .../create-internal-wallet.ts | 1 + .../delete-internal-wallet-asset.ts | 1 + .../delete-internal-wallet.ts | 1 + .../get-internal-wallet-asset.ts | 1 + .../get-internal-wallet-assets-paginated.ts | 1 + .../internal-wallets/get-internal-wallet.ts | 1 + .../internal-wallets/get-internal-wallets.ts | 1 + ...set-customer-ref-id-for-internal-wallet.ts | 1 + .../key-link/create-bulk-signing-keys.ts | 64 ++++ src/commands/key-link/create-signing-key.ts | 5 +- .../key-link/create-validation-key.ts | 5 +- .../key-link/disable-validation-key.ts | 5 +- .../key-link/get-bulk-signing-keys-job.ts | 49 +++ .../key-link/get-bulk-signing-keys-jobs.ts | 57 ++++ src/commands/key-link/get-signing-key.ts | 5 +- .../key-link/get-signing-keys-list.ts | 5 +- src/commands/key-link/get-validation-key.ts | 5 +- .../key-link/get-validation-keys-list.ts | 5 +- src/commands/key-link/set-agent-id.ts | 5 +- src/commands/key-link/update-signing-key.ts | 5 +- .../keys/get-mpc-keys-list-by-user.ts | 5 +- src/commands/keys/get-mpc-keys-list.ts | 5 +- .../check-third-party-routing.ts | 1 + .../create-network-connection.ts | 1 + .../network-connections/create-network-id.ts | 1 + .../delete-network-connection.ts | 1 + .../network-connections/delete-network-id.ts | 1 + .../get-network-connections.ts | 1 + .../network-connections/get-network-id.ts | 1 + .../network-connections/get-network-ids.ts | 1 + .../network-connections/get-network.ts | 1 + .../get-routing-policy-asset-groups.ts | 1 + .../network-connections/search-network-ids.ts | 1 + .../set-network-id-discoverability.ts | 1 + .../set-network-id-name.ts | 1 + .../set-network-id-routing-policy.ts | 1 + .../network-connections/set-routing-policy.ts | 1 + src/commands/nfts/get-nf-ts.ts | 1 + src/commands/nfts/get-nft.ts | 1 + src/commands/nfts/get-ownership-tokens.ts | 1 + src/commands/nfts/list-owned-collections.ts | 1 + src/commands/nfts/list-owned-tokens.ts | 1 + src/commands/nfts/refresh-nft-metadata.ts | 1 + src/commands/nfts/update-ownership-tokens.ts | 1 + .../nfts/update-token-ownership-status.ts | 1 + .../nfts/update-tokens-ownership-spam.ts | 1 + .../nfts/update-tokens-ownership-status.ts | 1 + .../off-exchanges/add-off-exchange.ts | 1 + .../get-off-exchange-collateral-accounts.ts | 1 + ...et-off-exchange-settlement-transactions.ts | 1 + .../off-exchanges/remove-off-exchange.ts | 1 + .../settle-off-exchange-trades.ts | 1 + .../get-access-registry-current-state.ts | 1 + .../get-access-registry-summary.ts | 1 + .../get-active-roles-for-contract.ts | 1 + .../get-contract-balance-history.ts | 1 + .../get-contract-balances-summary.ts | 1 + .../onchain-data/get-contract-total-supply.ts | 1 + .../get-latest-balances-for-contract.ts | 1 + .../onchain-data/get-onchain-transactions.ts | 1 + src/commands/ota/get-ota-status.ts | 5 +- src/commands/ota/set-ota-status.ts | 5 +- .../create-flow-configuration.ts | 1 + .../payments-flows/create-flow-execution.ts | 1 + .../delete-flow-configuration.ts | 1 + .../payments-flows/get-flow-configuration.ts | 1 + .../payments-flows/get-flow-execution.ts | 1 + .../payments-flows/launch-flow-execution.ts | 1 + src/commands/payments-payout/create-payout.ts | 1 + .../payments-payout/execute-payout-action.ts | 1 + src/commands/payments-payout/get-payout.ts | 1 + .../policy-editor-v2/get-active-policy.ts | 1 + src/commands/policy-editor-v2/get-draft.ts | 1 + .../policy-editor-v2/get-policy-rule-quota.ts | 5 +- .../policy-editor-v2/publish-draft.ts | 1 + src/commands/policy-editor-v2/update-draft.ts | 1 + .../policy-editor/get-active-policy-legacy.ts | 5 +- .../policy-editor/get-draft-legacy.ts | 5 +- .../policy-editor/publish-draft-legacy.ts | 5 +- .../policy-editor/publish-policy-rules.ts | 5 +- .../policy-editor/update-draft-legacy.ts | 5 +- src/commands/reports/create-report.ts | 5 +- src/commands/reports/get-report.ts | 5 +- src/commands/reports/list-reports.ts | 5 +- src/commands/reset-device/reset-device.ts | 1 + .../get-security-finding-by-id.ts | 1 + .../get-security-findings.ts | 1 + .../update-security-finding-by-id.ts | 1 + .../approve-dv-p-ticket-term.ts | 1 + src/commands/smart-transfer/cancel-ticket.ts | 1 + .../smart-transfer/create-ticket-term.ts | 1 + src/commands/smart-transfer/create-ticket.ts | 1 + .../smart-transfer/find-ticket-by-id.ts | 1 + .../smart-transfer/find-ticket-term-by-id.ts | 1 + src/commands/smart-transfer/fulfill-ticket.ts | 1 + .../smart-transfer/fund-dvp-ticket.ts | 1 + .../smart-transfer/fund-ticket-term.ts | 1 + .../get-smart-transfer-statistic.ts | 1 + .../get-smart-transfer-user-groups.ts | 1 + .../manually-fund-ticket-term.ts | 1 + .../smart-transfer/remove-ticket-term.ts | 1 + src/commands/smart-transfer/search-tickets.ts | 1 + .../smart-transfer/set-external-ref-id.ts | 1 + .../smart-transfer/set-ticket-expiration.ts | 1 + .../smart-transfer/set-user-groups.ts | 1 + src/commands/smart-transfer/submit-ticket.ts | 1 + .../smart-transfer/update-ticket-term.ts | 1 + ...approve-terms-of-service-by-provider-id.ts | 1 + src/commands/staking/claim-rewards.ts | 1 + src/commands/staking/consolidate.ts | 1 + src/commands/staking/get-all-delegations.ts | 1 + src/commands/staking/get-chain-info.ts | 1 + src/commands/staking/get-chains.ts | 1 + src/commands/staking/get-delegation-by-id.ts | 1 + .../get-position-related-transactions.ts | 1 + src/commands/staking/get-positions.ts | 1 + src/commands/staking/get-providers.ts | 1 + src/commands/staking/get-summary-by-vault.ts | 1 + src/commands/staking/get-summary.ts | 1 + src/commands/staking/merge-stake-accounts.ts | 1 + src/commands/staking/split.ts | 1 + src/commands/staking/stake.ts | 1 + src/commands/staking/unstake.ts | 1 + src/commands/staking/withdraw.ts | 1 + src/commands/tags/create-tag.ts | 1 + src/commands/tags/delete-tag.ts | 1 + src/commands/tags/get-approval-request.ts | 1 + src/commands/tags/get-tag.ts | 1 + src/commands/tags/get-tags.ts | 1 + src/commands/tags/update-tag.ts | 1 + src/commands/tempo/create-tempo-transfer.ts | 5 +- .../tokenization/burn-collection-token.ts | 1 + .../tokenization/create-new-collection.ts | 1 + .../deactivate-and-unlink-adapters.ts | 1 + .../tokenization/deploy-and-link-adapters.ts | 1 + .../fetch-collection-token-details.ts | 1 + .../tokenization/get-collection-by-id.ts | 1 + .../tokenization/get-deployable-address.ts | 1 + .../tokenization/get-layer-zero-dvn-config.ts | 1 + .../tokenization/get-layer-zero-peers.ts | 1 + .../tokenization/get-linked-collections.ts | 1 + src/commands/tokenization/get-linked-token.ts | 1 + .../tokenization/get-linked-tokens-count.ts | 1 + .../tokenization/get-linked-tokens.ts | 1 + .../get-token-access-registry-addresses.ts | 1 + .../get-token-access-registry-summary.ts | 1 + .../get-token-balance-for-account.ts | 1 + .../tokenization/get-token-balance-history.ts | 1 + .../tokenization/get-token-balances.ts | 1 + .../get-token-contract-summary.ts | 1 + src/commands/tokenization/get-token-rbac.ts | 1 + .../tokenization/get-token-total-supply.ts | 1 + .../tokenization/get-token-transactions.ts | 1 + .../tokenization/get-token-transfers.ts | 1 + src/commands/tokenization/issue-new-token.ts | 1 + .../tokenization/issue-token-multi-chain.ts | 1 + src/commands/tokenization/link.ts | 1 + .../tokenization/mint-collection-token.ts | 1 + .../re-issue-token-multi-chain.ts | 1 + .../tokenization/remove-layer-zero-peers.ts | 1 + .../tokenization/set-layer-zero-dvn-config.ts | 1 + .../tokenization/set-layer-zero-peers.ts | 1 + .../tokenization/unlink-collection.ts | 1 + src/commands/tokenization/unlink.ts | 1 + .../validate-layer-zero-channel-config.ts | 1 + src/commands/trading/create-order.ts | 7 +- src/commands/trading/create-quote.ts | 7 +- src/commands/trading/fetch-all-offers.ts | 7 +- src/commands/trading/fetch-rates.ts | 7 +- .../trading/get-order-requirements.ts | 7 +- src/commands/trading/get-order.ts | 7 +- src/commands/trading/get-orders.ts | 7 +- .../trading/get-trading-provider-by-id.ts | 7 +- src/commands/trading/get-trading-providers.ts | 7 +- .../trading/submit-order-requirements.ts | 7 +- .../trading/upload-order-requirement-file.ts | 7 +- .../transactions/cancel-transaction.ts | 1 + .../transactions/create-transaction.ts | 1 + src/commands/transactions/drop-transaction.ts | 1 + .../transactions/estimate-network-fee.ts | 1 + .../transactions/estimate-transaction-fee.ts | 1 + .../transactions/freeze-transaction.ts | 1 + .../get-transaction-by-external-id.ts | 1 + src/commands/transactions/get-transaction.ts | 1 + src/commands/transactions/get-transactions.ts | 1 + ...firmation-threshold-by-transaction-hash.ts | 1 + .../set-transaction-confirmation-threshold.ts | 1 + .../transactions/unfreeze-transaction.ts | 1 + src/commands/transactions/validate-address.ts | 1 + .../create-trust-proof-of-address.ts | 1 + .../travel-rule/get-trust-proof-of-address.ts | 1 + src/commands/travel-rule/get-vas-ps.ts | 1 + src/commands/travel-rule/get-vasp-by-did.ts | 1 + .../travel-rule/get-vasp-for-vault.ts | 1 + .../travel-rule/set-vasp-for-vault.ts | 1 + src/commands/travel-rule/update-vasp.ts | 1 + .../validate-full-travel-rule-transaction.ts | 1 + .../validate-travel-rule-transaction.ts | 1 + .../assess-tr-link-travel-rule-requirement.ts | 1 + src/commands/trlink/cancel-tr-link-trm.ts | 1 + .../trlink/connect-tr-link-integration.ts | 1 + .../trlink/create-tr-link-customer.ts | 1 + .../trlink/create-tr-link-integration.ts | 1 + .../trlink/create-tr-link-manual-decision.ts | 1 + src/commands/trlink/create-tr-link-trm.ts | 1 + .../trlink/delete-tr-link-customer.ts | 1 + .../trlink/disconnect-tr-link-integration.ts | 1 + .../trlink/get-tr-link-customer-by-id.ts | 1 + .../get-tr-link-customer-integration-by-id.ts | 1 + .../get-tr-link-customer-integrations.ts | 1 + src/commands/trlink/get-tr-link-customers.ts | 1 + .../get-tr-link-integration-public-key.ts | 1 + src/commands/trlink/get-tr-link-partners.ts | 1 + src/commands/trlink/get-tr-link-policy.ts | 1 + .../trlink/get-tr-link-supported-asset.ts | 1 + src/commands/trlink/get-tr-link-trm-by-id.ts | 1 + .../get-tr-link-trm-required-actions.ts | 1 + src/commands/trlink/get-tr-link-vasp-by-id.ts | 1 + .../trlink/list-tr-link-supported-assets.ts | 1 + src/commands/trlink/list-tr-link-vasps.ts | 1 + src/commands/trlink/redirect-tr-link-trm.ts | 1 + .../trlink/resolve-action-tr-link-trm.ts | 1 + ...link-destination-travel-rule-message-id.ts | 1 + ...link-transaction-travel-rule-message-id.ts | 1 + .../test-tr-link-integration-connection.ts | 1 + .../trlink/update-tr-link-customer.ts | 1 + src/commands/user-groups/create-user-group.ts | 5 +- src/commands/user-groups/delete-user-group.ts | 5 +- src/commands/user-groups/get-user-group.ts | 5 +- src/commands/user-groups/get-user-groups.ts | 5 +- src/commands/user-groups/update-user-group.ts | 5 +- src/commands/users/get-users.ts | 1 + .../get-utxo-selection-config.ts | 5 +- src/commands/utxo-management/get-utxos.ts | 5 +- .../get-vault-asset-utxo-selection-config.ts | 5 +- .../utxo-management/update-utxo-labels.ts | 5 +- .../upsert-utxo-selection-config.ts | 5 +- ...psert-vault-asset-utxo-selection-config.ts | 5 +- .../activate-asset-for-vault-account.ts | 1 + .../activate-usdc-gateway-wallet-beta.ts | 1 + ...tach-or-detach-tags-from-vault-accounts.ts | 1 + src/commands/vaults/create-legacy-address.ts | 1 + .../vaults/create-multiple-accounts.ts | 1 + .../create-multiple-deposit-addresses.ts | 1 + .../create-vault-account-asset-address.ts | 1 + .../vaults/create-vault-account-asset.ts | 1 + src/commands/vaults/create-vault-account.ts | 1 + .../deactivate-usdc-gateway-wallet-beta.ts | 1 + ...ateway-deposit-automation-schedule-beta.ts | 1 + src/commands/vaults/get-asset-wallets.ts | 1 + ...e-multiple-deposit-addresses-job-status.ts | 1 + ...eate-multiple-vault-accounts-job-status.ts | 1 + src/commands/vaults/get-max-bip-index-used.ts | 1 + .../vaults/get-max-spendable-amount.ts | 1 + .../vaults/get-paged-vault-accounts.ts | 1 + .../vaults/get-public-key-info-for-address.ts | 1 + src/commands/vaults/get-public-key-info.ts | 1 + src/commands/vaults/get-unspent-inputs.ts | 1 + ...et-usdc-gateway-deposit-automation-beta.ts | 1 + .../get-usdc-gateway-wallet-info-beta.ts | 1 + ...vault-account-asset-addresses-paginated.ts | 1 + .../get-vault-account-asset-addresses.ts | 1 + .../vaults/get-vault-account-asset.ts | 1 + src/commands/vaults/get-vault-account.ts | 1 + src/commands/vaults/get-vault-accounts.ts | 1 + src/commands/vaults/get-vault-assets.ts | 1 + .../vaults/get-vault-balance-by-asset.ts | 1 + src/commands/vaults/hide-vault-account.ts | 1 + .../vaults/lookup-vault-by-address.ts | 1 + .../vaults/register-tempo-omnibus-wallet.ts | 58 ---- .../vaults/set-customer-ref-id-for-address.ts | 1 + ...et-usdc-gateway-deposit-automation-beta.ts | 1 + .../vaults/set-vault-account-auto-fuel.ts | 1 + .../set-vault-account-customer-ref-id.ts | 1 + src/commands/vaults/unhide-vault-account.ts | 1 + ...te-usdc-gateway-deposit-automation-beta.ts | 1 + .../update-vault-account-asset-address.ts | 1 + .../update-vault-account-asset-balance.ts | 1 + src/commands/vaults/update-vault-account.ts | 1 + src/commands/web3-connections/create.ts | 1 + src/commands/web3-connections/get.ts | 1 + src/commands/web3-connections/remove.ts | 1 + src/commands/web3-connections/submit.ts | 1 + .../webhooks-v2/create-webhook-mtls-config.ts | 1 + .../webhooks-v2/create-webhook-oauth.ts | 1 + src/commands/webhooks-v2/create-webhook.ts | 1 + .../webhooks-v2/delete-webhook-mtls-config.ts | 1 + .../webhooks-v2/delete-webhook-oauth.ts | 1 + src/commands/webhooks-v2/delete-webhook.ts | 1 + src/commands/webhooks-v2/get-metrics.ts | 1 + src/commands/webhooks-v2/get-mtls-csr.ts | 1 + .../webhooks-v2/get-notification-attempts.ts | 1 + src/commands/webhooks-v2/get-notification.ts | 1 + src/commands/webhooks-v2/get-notifications.ts | 1 + .../get-resend-by-query-job-status.ts | 1 + .../webhooks-v2/get-resend-job-status.ts | 1 + .../webhooks-v2/get-webhook-mtls-config.ts | 1 + .../webhooks-v2/get-webhook-mtls-configs.ts | 1 + src/commands/webhooks-v2/get-webhook-oauth.ts | 1 + .../webhooks-v2/get-webhook-oauths.ts | 1 + src/commands/webhooks-v2/get-webhook.ts | 1 + src/commands/webhooks-v2/get-webhooks.ts | 1 + .../resend-failed-notifications.ts | 1 + .../webhooks-v2/resend-notification-by-id.ts | 1 + .../resend-notifications-by-query.ts | 1 + .../resend-notifications-by-resource-id.ts | 1 + .../webhooks-v2/update-webhook-mtls-config.ts | 1 + .../webhooks-v2/update-webhook-oauth.ts | 1 + src/commands/webhooks-v2/update-webhook.ts | 1 + .../webhooks/resend-transaction-webhooks.ts | 1 + src/commands/webhooks/resend-webhooks.ts | 1 + .../get-whitelist-ip-addresses.ts | 1 + .../workspace-status/get-workspace-status.ts | 5 +- src/commands/workspace/freeze-workspace.ts | 1 + src/commands/workspace/get-workspace.ts | 1 + src/lib/base-command.ts | 9 + src/lib/lifecycle/warning.test.ts | 285 ++++++++++++++++++ src/lib/lifecycle/warning.ts | 111 +++++++ test/contract.test.ts | 5 + test/e2e.test.ts | 204 +++++++++++++ yarn.lock | 100 +++--- 515 files changed, 1520 insertions(+), 593 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 src/commands/key-link/create-bulk-signing-keys.ts create mode 100644 src/commands/key-link/get-bulk-signing-keys-job.ts create mode 100644 src/commands/key-link/get-bulk-signing-keys-jobs.ts delete mode 100644 src/commands/vaults/register-tempo-omnibus-wallet.ts create mode 100644 src/lib/lifecycle/warning.test.ts create mode 100644 src/lib/lifecycle/warning.ts diff --git a/.claude/skills/fireblocks-cli/SKILL.md b/.claude/skills/fireblocks-cli/SKILL.md index d7e89d7..57deff3 100644 --- a/.claude/skills/fireblocks-cli/SKILL.md +++ b/.claude/skills/fireblocks-cli/SKILL.md @@ -58,9 +58,9 @@ Always pass `--no-confirm` on write operations. The CLI auto-skips prompts when ## Output - **stdout**: JSON data only. -- **stderr**: warnings, beta notices, errors, debug logs. +- **stderr**: warnings, errors, debug logs. - `--debug` output on stderr: `[DEBUG] METHOD URL`, `[DEBUG] Body: ...`, `[DEBUG] Response: STATUS`, `[DEBUG] Request-ID: ...` -- Beta commands print to stderr: `Warning: This command is in beta and may change in future releases.` This is informational, not an error. +- When a response reports a non-GA lifecycle state (`beta`, `deprecated` or `closed`), the CLI prints one line to stderr naming the operation, for example `Warning: Operation 'getWebhooks' is in 'beta' lifecycle state and is not generally available. ...`. For `deprecated` operations it includes the sunset date and, when the API provides them, the replacement and migration guide. A `closed` operation that returns `410 Gone` prints no warning; one that still responds (a temporary exception) warns that it has been closed and access may be revoked. This is informational, not an error: stdout and the exit code are unchanged. Set `FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING=1` to suppress it. ## Exit Codes diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 13607a3..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,163 +0,0 @@ -### Changelog - -All notable changes to this project will be documented in this file. Dates are displayed in UTC. - -Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - -### [v14.0.0](https://github.com/fireblocks/fireblocks-cli/compare/v4.0.0...v14.0.0) - -> 6 October 2026 - -- Generated CLI #2917861533 [`#59`](https://github.com/fireblocks/fireblocks-cli/pull/59) - -### [v4.0.0](https://github.com/fireblocks/fireblocks-cli/compare/v3.0.0...v4.0.0) - -> 23 July 2026 - -- Generated CLI #7149 [`#40`](https://github.com/fireblocks/fireblocks-cli/pull/40) -- dump new version 4.0.0 [`1aa2ca3`](https://github.com/fireblocks/fireblocks-cli/commit/1aa2ca3a8d6ea307c855d63e9f33199326b0c60c) - -### [v3.0.0](https://github.com/fireblocks/fireblocks-cli/compare/v2.0.0...v3.0.0) - -> 1 July 2026 - -- Generated CLI #6819 [`#39`](https://github.com/fireblocks/fireblocks-cli/pull/39) -- dump new version 3.0.0 [`a556639`](https://github.com/fireblocks/fireblocks-cli/commit/a5566392ce612a4268ba8aed4322facba0a31e2a) - -### [v2.0.0](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.10...v2.0.0) - -> 28 June 2026 - -- Generated CLI #2689 [`#38`](https://github.com/fireblocks/fireblocks-cli/pull/38) -- dump new version 2.0.0 [`ecdb26e`](https://github.com/fireblocks/fireblocks-cli/commit/ecdb26e807b4f3b479654e2247592079374ea021) - -#### [v1.0.10](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.9...v1.0.10) - -> 11 June 2026 - -- Generated CLI #6460 [`#37`](https://github.com/fireblocks/fireblocks-cli/pull/37) -- dump new version 1.0.10 [`740a28d`](https://github.com/fireblocks/fireblocks-cli/commit/740a28da987ce3998ad606eda826abe80a53195f) - -#### [v1.0.9](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.8...v1.0.9) - -> 2 June 2026 - -- Generated CLI #3180 [`#36`](https://github.com/fireblocks/fireblocks-cli/pull/36) -- dump new version 1.0.9 [`aa7f393`](https://github.com/fireblocks/fireblocks-cli/commit/aa7f393c314ad9046f06751b3bebc40ff242773b) - -#### [v1.0.8](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.7...v1.0.8) - -> 7 May 2026 - -- Generated CLI #3457 [`#35`](https://github.com/fireblocks/fireblocks-cli/pull/35) -- Update README.md [`#34`](https://github.com/fireblocks/fireblocks-cli/pull/34) -- dump new version 1.0.8 [`e4c99fa`](https://github.com/fireblocks/fireblocks-cli/commit/e4c99fa60cc6e0b9777fd471f4af40dcc4b136bc) - -#### [v1.0.7](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.6...v1.0.7) - -> 28 April 2026 - -- Generated CLI #3601 [`#33`](https://github.com/fireblocks/fireblocks-cli/pull/33) -- dump new version 1.0.7 [`d306029`](https://github.com/fireblocks/fireblocks-cli/commit/d3060292702bc3605cb1243d1fcf7c821ec02fdf) - -#### [v1.0.6](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.5...v1.0.6) - -> 27 April 2026 - -- Generated CLI #628 [`#32`](https://github.com/fireblocks/fireblocks-cli/pull/32) -- dump new version 1.0.6 [`b5dab36`](https://github.com/fireblocks/fireblocks-cli/commit/b5dab369afd7a1b57ee5b411c3b5ee039bf212b7) - -#### [v1.0.5](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.4...v1.0.5) - -> 21 April 2026 - -- Generated CLI #4515 [`#29`](https://github.com/fireblocks/fireblocks-cli/pull/29) -- dump new version 1.0.5 [`f038846`](https://github.com/fireblocks/fireblocks-cli/commit/f0388467198de85fd07ee4af6643f13a4c700777) - -#### [v1.0.4](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.3...v1.0.4) - -> 21 April 2026 - -- Generated CLI #6469 [`#28`](https://github.com/fireblocks/fireblocks-cli/pull/28) -- dump new version 1.0.4 [`445f047`](https://github.com/fireblocks/fireblocks-cli/commit/445f047a26c2b1d62c5d084d9ab74c6dd70ff7a1) - -#### [v1.0.3](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.2...v1.0.3) - -> 21 April 2026 - -- Generated CLI #4147 [`#27`](https://github.com/fireblocks/fireblocks-cli/pull/27) -- Generated CLI #3663 [`#26`](https://github.com/fireblocks/fireblocks-cli/pull/26) -- dump new version 1.0.3 [`3d5771d`](https://github.com/fireblocks/fireblocks-cli/commit/3d5771dfc96d51f18bab1dea20f2f810e84cfc8b) -- dump new version 1.0.3 [`653c2b4`](https://github.com/fireblocks/fireblocks-cli/commit/653c2b47fbed3b3c6e0e3e264c3fd21db048702e) - -#### [v1.0.2](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.1...v1.0.2) - -> 20 April 2026 - -- Generated CLI #4144 [`#25`](https://github.com/fireblocks/fireblocks-cli/pull/25) -- release 1.0.2 [`9416c27`](https://github.com/fireblocks/fireblocks-cli/commit/9416c27d05c71a2894682e94f9b93b3e10a54c80) - -#### [v1.0.1](https://github.com/fireblocks/fireblocks-cli/compare/v1.0.0...v1.0.1) - -> 20 April 2026 - -- Generated CLI #2861 [`#24`](https://github.com/fireblocks/fireblocks-cli/pull/24) -- release 1.0.1 [`1c80a47`](https://github.com/fireblocks/fireblocks-cli/commit/1c80a47fae69a42537915f8db5a9a4e1e7c7883d) - -### [v1.0.0](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.7...v1.0.0) - -> 20 April 2026 - -- Generated CLI #2861 [`#23`](https://github.com/fireblocks/fireblocks-cli/pull/23) -- Update README.md [`#22`](https://github.com/fireblocks/fireblocks-cli/pull/22) -- Generated CLI #6187 [`#21`](https://github.com/fireblocks/fireblocks-cli/pull/21) -- release 1.0.0 [`1ceadf9`](https://github.com/fireblocks/fireblocks-cli/commit/1ceadf9200db313a26d7ded2c2e883a7b5a54ca8) -- release 1.0.0 [`166b754`](https://github.com/fireblocks/fireblocks-cli/commit/166b7548fafd1c4dd1f87fcde2b3764df75c9fe3) - -#### [v0.0.7](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.6...v0.0.7) - -> 20 April 2026 - -- Generated CLI #3643 [`#20`](https://github.com/fireblocks/fireblocks-cli/pull/20) -- release 0.0.7 [`3856d2b`](https://github.com/fireblocks/fireblocks-cli/commit/3856d2bb87dc9cf83c6e6a6bc5af20e000dd86e7) - -#### [v0.0.6](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.5...v0.0.6) - -> 20 April 2026 - -- Generated CLI #2002 [`#18`](https://github.com/fireblocks/fireblocks-cli/pull/18) -- release 0.0.6 [`a9f3754`](https://github.com/fireblocks/fireblocks-cli/commit/a9f375413fdb4c3582cc1e098154fd72e6196b13) - -#### [v0.0.5](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.4...v0.0.5) - -> 20 April 2026 - -- Generated CLI #5855 [`#17`](https://github.com/fireblocks/fireblocks-cli/pull/17) -- release 0.0.5 [`c1cbb86`](https://github.com/fireblocks/fireblocks-cli/commit/c1cbb869c72d5233fc103bdd6117031b215fc2dd) - -#### [v0.0.4](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.3...v0.0.4) - -> 19 April 2026 - -- Generated CLI #9358 [`#15`](https://github.com/fireblocks/fireblocks-cli/pull/15) - -#### [v0.0.3](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.2...v0.0.3) - -> 19 April 2026 - -- Generated CLI #3678 [`#13`](https://github.com/fireblocks/fireblocks-cli/pull/13) - -#### [v0.0.2](https://github.com/fireblocks/fireblocks-cli/compare/v0.0.1...v0.0.2) - -> 19 April 2026 - -- Generated CLI #6127 [`#12`](https://github.com/fireblocks/fireblocks-cli/pull/12) - -#### v0.0.1 - -> 19 April 2026 - -- Generated CLI #212 [`#10`](https://github.com/fireblocks/fireblocks-cli/pull/10) -- Generated CLI #6774 [`#8`](https://github.com/fireblocks/fireblocks-cli/pull/8) -- Generated CLI #5771 [`#7`](https://github.com/fireblocks/fireblocks-cli/pull/7) -- Empty commit [`01a4e60`](https://github.com/fireblocks/fireblocks-cli/commit/01a4e60b38b583644d86f6220bb1751ce3594bb0) diff --git a/README.md b/README.md index 5ca7dbe..5d0b632 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ sha256sum shasum -a 256 ``` +## Versioning + +This CLI follows [semantic versioning](https://semver.org), with one exception: commands that call operations in the `beta` lifecycle state. Beta operations are not generally available and may not be accessible to all customers. They can change or be removed without notice. + ## Quick start ```bash @@ -167,7 +171,19 @@ Write operations run against your workspace's **Transaction Authorization Policy ## Output and errors - **stdout**: JSON data only -- **stderr**: warnings, beta notices, debug logs, and errors +- **stderr**: lifecycle warnings, debug logs, and errors + +**Lifecycle warnings.** When a response reports a non-GA lifecycle state (`beta`, `deprecated` or `closed`), the CLI prints one line to stderr naming the operation. The state is read from the `Fireblocks-Lifecycle-State` response header, so it is accurate whatever CLI version you have installed: + +``` +Warning: Operation 'getWebhooks' is in 'beta' lifecycle state and is not generally available. It may change or be removed without notice. +``` + +For `deprecated` operations it includes the sunset date, plus the replacement and migration guide when the API provides them. A `closed` operation is normally answered with `410 Gone`, which needs no warning; if it still responds (your workspace has a temporary exception), the CLI warns that the operation has been closed and your access may be revoked. The warning is informational: stdout and the exit code are unchanged, and it also appears on error responses. To suppress it, set `FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING` to any value other than `0` or `false`: + +```bash +export FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING=1 +``` Errors are structured JSON on stderr: diff --git a/SKILL.md b/SKILL.md index d7e89d7..57deff3 100644 --- a/SKILL.md +++ b/SKILL.md @@ -58,9 +58,9 @@ Always pass `--no-confirm` on write operations. The CLI auto-skips prompts when ## Output - **stdout**: JSON data only. -- **stderr**: warnings, beta notices, errors, debug logs. +- **stderr**: warnings, errors, debug logs. - `--debug` output on stderr: `[DEBUG] METHOD URL`, `[DEBUG] Body: ...`, `[DEBUG] Response: STATUS`, `[DEBUG] Request-ID: ...` -- Beta commands print to stderr: `Warning: This command is in beta and may change in future releases.` This is informational, not an error. +- When a response reports a non-GA lifecycle state (`beta`, `deprecated` or `closed`), the CLI prints one line to stderr naming the operation, for example `Warning: Operation 'getWebhooks' is in 'beta' lifecycle state and is not generally available. ...`. For `deprecated` operations it includes the sunset date and, when the API provides them, the replacement and migration guide. A `closed` operation that returns `410 Gone` prints no warning; one that still responds (a temporary exception) warns that it has been closed and access may be revoked. This is informational, not an error: stdout and the exit code are unchanged. Set `FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING=1` to suppress it. ## Exit Codes diff --git a/package.json b/package.json index d1ae24d..bdb046e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@fireblocks/fireblocks-cli", "description": "Agent-first CLI for Fireblocks infrastructure. Execute any Fireblocks API operation from the command line.", - "version": "14.0.0", + "version": "0.1.0", "author": "Fireblocks", "repository": { "type": "git", @@ -40,11 +40,7 @@ "./dist", "./oclif.manifest.json" ], - "keywords": [ - "oclif", - "fireblocks", - "cli" - ], + "keywords": ["oclif", "fireblocks", "cli"], "license": "MIT", "main": "dist/index.js", "type": "module", @@ -58,183 +54,183 @@ "topicSeparator": " ", "topics": { "admin-quorum": { - "description": "Admin Quorum operations" + "description": "Admin Quorum operations" }, "api-user": { - "description": "Api User operations" + "description": "Api User operations" }, "approvals": { - "description": "Approvals operations (Beta)" + "description": "Approvals operations" }, "audit-logs": { - "description": "Audit Logs operations" + "description": "Audit Logs operations" }, "blockchain-link": { - "description": "Blockchain link operations (Beta)" + "description": "Blockchain link operations" }, "blockchains-assets": { - "description": "Blockchains & assets operations" + "description": "Blockchains & assets operations" }, "canton": { - "description": "Canton operations (Beta)" + "description": "Canton operations" }, "compliance": { - "description": "Compliance operations" + "description": "Compliance operations" }, "compliance-screening-configuration": { - "description": "Compliance Screening Configuration operations" + "description": "Compliance Screening Configuration operations" }, "compliance-orchestrator": { - "description": "Compliance Orchestrator operations (Beta)" + "description": "Compliance Orchestrator operations" }, "connected-accounts": { - "description": "Connected Accounts operations" + "description": "Connected Accounts operations" }, "console-user": { - "description": "Console User operations" + "description": "Console User operations" }, "contacts": { - "description": "Contacts operations" + "description": "Contacts operations" }, "contract-interactions": { - "description": "Contract Interactions operations" + "description": "Contract Interactions operations" }, "contract-templates": { - "description": "Contract Templates operations" + "description": "Contract Templates operations" }, "contracts": { - "description": "Contracts operations" + "description": "Contracts operations" }, "cosigners": { - "description": "Cosigners operations (Beta)" + "description": "Cosigners operations" }, "deployed-contracts": { - "description": "Deployed Contracts operations" + "description": "Deployed Contracts operations" }, "earn": { - "description": "Earn operations" + "description": "Earn operations" }, "embedded-wallets": { - "description": "Embedded Wallets operations" + "description": "Embedded Wallets operations" }, "exchange-accounts": { - "description": "Exchange accounts operations" + "description": "Exchange accounts operations" }, "external-wallets": { - "description": "External wallets operations" + "description": "External wallets operations" }, "fiat-accounts": { - "description": "Fiat accounts operations" + "description": "Fiat accounts operations" }, "gas-stations": { - "description": "Gas stations operations" + "description": "Gas stations operations" }, "genie": { - "description": "Genie operations (Beta)" + "description": "Genie operations" }, "internal-wallets": { - "description": "Internal wallets operations" + "description": "Internal wallets operations" }, "key-link": { - "description": "Key Link operations (Beta)" + "description": "Key Link operations" }, "keys": { - "description": "Keys operations (Beta)" + "description": "Keys operations" }, "network-connections": { - "description": "Network connections operations" + "description": "Network connections operations" }, "nfts": { - "description": "NFTs operations" + "description": "NFTs operations" }, "off-exchanges": { - "description": "Off exchanges operations" + "description": "Off exchanges operations" }, "onchain-data": { - "description": "Onchain Data operations" + "description": "Onchain Data operations" }, "ota": { - "description": "OTA operations (Beta)" + "description": "OTA operations" }, "payments-flows": { - "description": "Payments - Flows operations" + "description": "Payments - Flows operations" }, "payments-payout": { - "description": "Payments - Payout operations" + "description": "Payments - Payout operations" }, "policy-editor": { - "description": "Policy Editor operations (Beta)" + "description": "Policy Editor operations" }, "policy-editor-v2": { - "description": "Policy Editor V2 operations" + "description": "Policy Editor V2 operations" }, "reports": { - "description": "Reports operations (Beta)" + "description": "Reports operations" }, "reset-device": { - "description": "Reset device operations" + "description": "Reset device operations" }, "security-posture-management": { - "description": "Security Posture Management operations" + "description": "Security Posture Management operations" }, "smart-transfer": { - "description": "Smart Transfer operations" + "description": "Smart Transfer operations" }, "staking": { - "description": "Staking operations" + "description": "Staking operations" }, "tags": { - "description": "Tags operations" + "description": "Tags operations" }, "tempo": { - "description": "Tempo operations (Beta)" + "description": "Tempo operations" }, "tokenization": { - "description": "Tokenization operations" + "description": "Tokenization operations" }, "trading": { - "description": "Trading operations (Beta)" + "description": "Trading operations" }, "transactions": { - "description": "Transactions operations" + "description": "Transactions operations" }, "travel-rule": { - "description": "Travel Rule operations" + "description": "Travel Rule operations" }, "trlink": { - "description": "TRLink operations" + "description": "TRLink operations" }, "user-groups": { - "description": "User groups operations (Beta)" + "description": "User groups operations" }, "users": { - "description": "Users operations" + "description": "Users operations" }, "utxo-management": { - "description": "UTXO Management operations (Beta)" + "description": "UTXO Management operations" }, "vaults": { - "description": "Vaults operations" + "description": "Vaults operations" }, "web3-connections": { - "description": "Web3 connections operations" + "description": "Web3 connections operations" }, "webhooks": { - "description": "Webhooks operations" + "description": "Webhooks operations" }, "webhooks-v2": { - "description": "Webhooks V2 operations" + "description": "Webhooks V2 operations" }, "whitelist-ip-addresses": { - "description": "whitelist ip addresses operations" + "description": "whitelist ip addresses operations" }, "workspace": { - "description": "Workspace operations" + "description": "Workspace operations" }, "workspace-status": { - "description": "Workspace Status operations (Beta)" + "description": "Workspace Status operations" } - }, +}, "plugins": [ "@oclif/plugin-help", "@oclif/plugin-autocomplete" @@ -252,7 +248,7 @@ "win32-x64" ], "macos": { - "identifier": "com.fireblocks.mycli" + "identifier": "com.fireblocks.mycli" } }, "scripts": { @@ -263,6 +259,6 @@ "pack:mac": "oclif pack macos", "pack:win": "oclif pack win --targets win32-x64", "pack:deb": "oclif pack deb" - }, +}, "types": "dist/index.d.ts" } diff --git a/src/commands/admin-quorum/set-admin-quorum-threshold.ts b/src/commands/admin-quorum/set-admin-quorum-threshold.ts index 5d76bb8..40b4785 100644 --- a/src/commands/admin-quorum/set-admin-quorum-threshold.ts +++ b/src/commands/admin-quorum/set-admin-quorum-threshold.ts @@ -21,6 +21,7 @@ export default class SetAdminQuorumThreshold extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/admin_quorum' + static operationId = 'setAdminQuorumThreshold' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/api-user/create-api-user.ts b/src/commands/api-user/create-api-user.ts index b46751a..78f7ae4 100644 --- a/src/commands/api-user/create-api-user.ts +++ b/src/commands/api-user/create-api-user.ts @@ -20,6 +20,7 @@ export default class CreateApiUser extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/management/api_users' + static operationId = 'createApiUser' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/api-user/get-api-users.ts b/src/commands/api-user/get-api-users.ts index 2ec0a74..4779fe3 100644 --- a/src/commands/api-user/get-api-users.ts +++ b/src/commands/api-user/get-api-users.ts @@ -17,6 +17,7 @@ export default class GetApiUsers extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/api_users' + static operationId = 'getApiUsers' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/api-user/issue-api-user-pairing-token.ts b/src/commands/api-user/issue-api-user-pairing-token.ts index 08b25ba..f502049 100644 --- a/src/commands/api-user/issue-api-user-pairing-token.ts +++ b/src/commands/api-user/issue-api-user-pairing-token.ts @@ -21,6 +21,7 @@ export default class IssueApiUserPairingToken extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/management/api_users/{userId}/pairing_token' + static operationId = 'issueApiUserPairingToken' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/approvals/approve-approval.ts b/src/commands/approvals/approve-approval.ts index cafe7a0..508efb7 100644 --- a/src/commands/approvals/approve-approval.ts +++ b/src/commands/approvals/approve-approval.ts @@ -25,14 +25,13 @@ export default class ApproveApproval extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/approvals/{requestId}/approve' - static isBeta = true + static operationId = 'approveApproval' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(ApproveApproval) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/approvals/create-approval-key.ts b/src/commands/approvals/create-approval-key.ts index 1594842..81d2406 100644 --- a/src/commands/approvals/create-approval-key.ts +++ b/src/commands/approvals/create-approval-key.ts @@ -25,14 +25,13 @@ export default class CreateApprovalKey extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/management/api_users/{userId}/approval_keys' - static isBeta = true + static operationId = 'createApprovalKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateApprovalKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/approvals/delete-approval-key.ts b/src/commands/approvals/delete-approval-key.ts index 9d9e750..2ad39ae 100644 --- a/src/commands/approvals/delete-approval-key.ts +++ b/src/commands/approvals/delete-approval-key.ts @@ -25,14 +25,13 @@ export default class DeleteApprovalKey extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/management/api_users/{userId}/approval_keys/{keyId}' - static isBeta = true + static operationId = 'deleteApprovalKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(DeleteApprovalKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} if (flags['idempotency-key']) { diff --git a/src/commands/approvals/get-approval-by-id.ts b/src/commands/approvals/get-approval-by-id.ts index 4067bd7..c203f07 100644 --- a/src/commands/approvals/get-approval-by-id.ts +++ b/src/commands/approvals/get-approval-by-id.ts @@ -29,14 +29,13 @@ export default class GetApprovalById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/approvals/{requestId}' - static isBeta = true + static operationId = 'getApprovalById' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetApprovalById) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/approvals/get-approval-keys.ts b/src/commands/approvals/get-approval-keys.ts index 2ed4356..fdcce74 100644 --- a/src/commands/approvals/get-approval-keys.ts +++ b/src/commands/approvals/get-approval-keys.ts @@ -28,14 +28,13 @@ export default class GetApprovalKeys extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/api_users/{userId}/approval_keys' - static isBeta = true + static operationId = 'getApprovalKeys' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetApprovalKeys) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/approvals/get-approvals.ts b/src/commands/approvals/get-approvals.ts index 407402e..49bbe19 100644 --- a/src/commands/approvals/get-approvals.ts +++ b/src/commands/approvals/get-approvals.ts @@ -39,14 +39,13 @@ export default class GetApprovals extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/approvals' - static isBeta = true + static operationId = 'getApprovals' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetApprovals) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/approvals/reject-approval.ts b/src/commands/approvals/reject-approval.ts index eb7ec63..375a45e 100644 --- a/src/commands/approvals/reject-approval.ts +++ b/src/commands/approvals/reject-approval.ts @@ -21,14 +21,13 @@ export default class RejectApproval extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/approvals/{requestId}/reject' - static isBeta = true + static operationId = 'rejectApproval' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(RejectApproval) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} if (flags['idempotency-key']) { diff --git a/src/commands/audit-logs/get-audit-logs.ts b/src/commands/audit-logs/get-audit-logs.ts index 215625e..2fddc48 100644 --- a/src/commands/audit-logs/get-audit-logs.ts +++ b/src/commands/audit-logs/get-audit-logs.ts @@ -57,6 +57,7 @@ export default class GetAuditLogs extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/audit_logs' + static operationId = 'getAuditLogs' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchain-link/activate-blockchain-link-chain.ts b/src/commands/blockchain-link/activate-blockchain-link-chain.ts index 4428731..2c42b23 100644 --- a/src/commands/blockchain-link/activate-blockchain-link-chain.ts +++ b/src/commands/blockchain-link/activate-blockchain-link-chain.ts @@ -21,14 +21,13 @@ export default class ActivateBlockchainLinkChain extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/blockchain_link/blockchains/{blockchainId}/activate' - static isBeta = true + static operationId = 'activateBlockchainLinkChain' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(ActivateBlockchainLinkChain) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} if (flags['idempotency-key']) { diff --git a/src/commands/blockchain-link/create-blockchain-link-chain.ts b/src/commands/blockchain-link/create-blockchain-link-chain.ts index 2273e27..7e6fe6d 100644 --- a/src/commands/blockchain-link/create-blockchain-link-chain.ts +++ b/src/commands/blockchain-link/create-blockchain-link-chain.ts @@ -21,14 +21,13 @@ export default class CreateBlockchainLinkChain extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/blockchain_link/blockchains' - static isBeta = true + static operationId = 'createBlockchainLinkChain' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateBlockchainLinkChain) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/blockchain-link/delete-blockchain-link-chain.ts b/src/commands/blockchain-link/delete-blockchain-link-chain.ts index ddc0552..b9d9c3a 100644 --- a/src/commands/blockchain-link/delete-blockchain-link-chain.ts +++ b/src/commands/blockchain-link/delete-blockchain-link-chain.ts @@ -21,14 +21,13 @@ export default class DeleteBlockchainLinkChain extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/blockchain_link/blockchains/{blockchainId}' - static isBeta = true + static operationId = 'deleteBlockchainLinkChain' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(DeleteBlockchainLinkChain) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/blockchain-link/get-blockchain-link-billing-info.ts b/src/commands/blockchain-link/get-blockchain-link-billing-info.ts index ba4e061..7eec16e 100644 --- a/src/commands/blockchain-link/get-blockchain-link-billing-info.ts +++ b/src/commands/blockchain-link/get-blockchain-link-billing-info.ts @@ -17,14 +17,13 @@ export default class GetBlockchainLinkBillingInfo extends FireblocksBaseCommand static method = 'GET' static path = '/v1/blockchain_link/blockchains/billing_info' - static isBeta = true + static operationId = 'getBlockchainLinkBillingInfo' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetBlockchainLinkBillingInfo) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/blockchain-link/get-blockchain-link-chain.ts b/src/commands/blockchain-link/get-blockchain-link-chain.ts index 836661a..456ec84 100644 --- a/src/commands/blockchain-link/get-blockchain-link-chain.ts +++ b/src/commands/blockchain-link/get-blockchain-link-chain.ts @@ -21,14 +21,13 @@ export default class GetBlockchainLinkChain extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/blockchain_link/blockchains/{blockchainId}' - static isBeta = true + static operationId = 'getBlockchainLinkChain' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetBlockchainLinkChain) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/blockchain-link/get-blockchain-link-test-wallet-address.ts b/src/commands/blockchain-link/get-blockchain-link-test-wallet-address.ts index b0a20a7..c251a64 100644 --- a/src/commands/blockchain-link/get-blockchain-link-test-wallet-address.ts +++ b/src/commands/blockchain-link/get-blockchain-link-test-wallet-address.ts @@ -17,14 +17,13 @@ export default class GetBlockchainLinkTestWalletAddress extends FireblocksBaseCo static method = 'GET' static path = '/v1/blockchain_link/blockchains/test_wallet_address' - static isBeta = true + static operationId = 'getBlockchainLinkTestWalletAddress' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetBlockchainLinkTestWalletAddress) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/blockchain-link/list-blockchain-link-chains.ts b/src/commands/blockchain-link/list-blockchain-link-chains.ts index 63b3e4d..fe1d7a4 100644 --- a/src/commands/blockchain-link/list-blockchain-link-chains.ts +++ b/src/commands/blockchain-link/list-blockchain-link-chains.ts @@ -44,14 +44,13 @@ export default class ListBlockchainLinkChains extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/blockchain_link/blockchains' - static isBeta = true + static operationId = 'listBlockchainLinkChains' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(ListBlockchainLinkChains) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/blockchain-link/trigger-blockchain-link-validation.ts b/src/commands/blockchain-link/trigger-blockchain-link-validation.ts index c492279..1b442f0 100644 --- a/src/commands/blockchain-link/trigger-blockchain-link-validation.ts +++ b/src/commands/blockchain-link/trigger-blockchain-link-validation.ts @@ -21,14 +21,13 @@ export default class TriggerBlockchainLinkValidation extends FireblocksBaseComma static method = 'POST' static path = '/v1/blockchain_link/blockchains/{blockchainId}/validate' - static isBeta = true + static operationId = 'triggerBlockchainLinkValidation' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(TriggerBlockchainLinkValidation) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} if (flags['idempotency-key']) { diff --git a/src/commands/blockchain-link/update-blockchain-link-chain.ts b/src/commands/blockchain-link/update-blockchain-link-chain.ts index 9414aaa..85d6c7b 100644 --- a/src/commands/blockchain-link/update-blockchain-link-chain.ts +++ b/src/commands/blockchain-link/update-blockchain-link-chain.ts @@ -25,14 +25,13 @@ export default class UpdateBlockchainLinkChain extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/blockchain_link/blockchains/{blockchainId}' - static isBeta = true + static operationId = 'updateBlockchainLinkChain' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpdateBlockchainLinkChain) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/blockchains-assets/get-asset.ts b/src/commands/blockchains-assets/get-asset.ts index 727f8d5..b5745fe 100644 --- a/src/commands/blockchains-assets/get-asset.ts +++ b/src/commands/blockchains-assets/get-asset.ts @@ -21,6 +21,7 @@ export default class GetAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/assets/{id}' + static operationId = 'getAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/get-blockchain.ts b/src/commands/blockchains-assets/get-blockchain.ts index e764f22..0dc3ae8 100644 --- a/src/commands/blockchains-assets/get-blockchain.ts +++ b/src/commands/blockchains-assets/get-blockchain.ts @@ -21,6 +21,7 @@ export default class GetBlockchain extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/blockchains/{id}' + static operationId = 'getBlockchain' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/get-supported-assets.ts b/src/commands/blockchains-assets/get-supported-assets.ts index f92528f..8d18fab 100644 --- a/src/commands/blockchains-assets/get-supported-assets.ts +++ b/src/commands/blockchains-assets/get-supported-assets.ts @@ -17,6 +17,7 @@ export default class GetSupportedAssets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/supported_assets' + static operationId = 'getSupportedAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/list-assets.ts b/src/commands/blockchains-assets/list-assets.ts index 5ffad99..394e3c5 100644 --- a/src/commands/blockchains-assets/list-assets.ts +++ b/src/commands/blockchains-assets/list-assets.ts @@ -42,6 +42,7 @@ export default class ListAssets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/assets' + static operationId = 'listAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/list-blockchains.ts b/src/commands/blockchains-assets/list-blockchains.ts index 4995713..8cfe675 100644 --- a/src/commands/blockchains-assets/list-blockchains.ts +++ b/src/commands/blockchains-assets/list-blockchains.ts @@ -36,6 +36,7 @@ export default class ListBlockchains extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/blockchains' + static operationId = 'listBlockchains' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/register-new-asset.ts b/src/commands/blockchains-assets/register-new-asset.ts index bfadd63..7675453 100644 --- a/src/commands/blockchains-assets/register-new-asset.ts +++ b/src/commands/blockchains-assets/register-new-asset.ts @@ -20,6 +20,7 @@ export default class RegisterNewAsset extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/assets' + static operationId = 'registerNewAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/set-asset-price.ts b/src/commands/blockchains-assets/set-asset-price.ts index f63d4a4..953f883 100644 --- a/src/commands/blockchains-assets/set-asset-price.ts +++ b/src/commands/blockchains-assets/set-asset-price.ts @@ -24,6 +24,7 @@ export default class SetAssetPrice extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/assets/prices/{id}' + static operationId = 'setAssetPrice' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/blockchains-assets/update-asset-user-metadata.ts b/src/commands/blockchains-assets/update-asset-user-metadata.ts index 92fd329..2c754ab 100644 --- a/src/commands/blockchains-assets/update-asset-user-metadata.ts +++ b/src/commands/blockchains-assets/update-asset-user-metadata.ts @@ -24,6 +24,7 @@ export default class UpdateAssetUserMetadata extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/assets/{id}' + static operationId = 'updateAssetUserMetadata' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/canton/create-canton-call.ts b/src/commands/canton/create-canton-call.ts index 0d72596..4a60872 100644 --- a/src/commands/canton/create-canton-call.ts +++ b/src/commands/canton/create-canton-call.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class CreateCantonCall extends FireblocksBaseCommand { static summary = 'Make a Canton call' - static description = 'Submits one Canton call. \`type\` names the call and selects the shape of \`payload\`.\nAn unknown or missing \`type\`, or a \`payload\` missing a required field, is a \`400\`. A field that does not belong to the selected \`type\` is ignored rather than rejected.\nA \`501\` has two different causes, and the distinction is permanent rather than a build-order detail, so it belongs in the published spec:\nNO CANTON CAPABILITY — specified so the contract is complete, but not available in v1: \`DTCC_END_INVESTOR_INVITE_CANCEL\`, \`DTCC_ALLOW_LIST_ADD\`, \`DTCC_ALLOW_LIST_REMOVE\`. NO HANDLER YET — the capability exists and the type is being wired one slice at a time.\n\`ALLOCATION_WITHDRAW\` is implemented and answers \`201\` / \`400\` / \`404\` / \`409\`.\n\nOperation ID: createCantonCall\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Canton/createCantonCall' + static description = 'Submits one Canton call. \`type\` names the call and selects the shape of \`payload\`; \`vaultAccountId\` and \`blockchainId\` name the wallet that makes it, and are the same for every \`type\`.\n{"type":"DTCC_END_INVESTOR_INVITE","vaultAccountId":"12","blockchainId":"CANTON", "payload":{"endInvestor":"investor-party::1220abc…"}}\n\`payload\` is optional on \`DTCC_PARTICIPANT_ONBOARDING\`, where every field it holds is.\nAn unknown or missing \`type\`, or a \`payload\` missing a required field, is a \`400\`. A field that does not belong to the selected \`type\` is ignored rather than rejected.\nA \`501\` has two different causes, and the distinction is permanent rather than a build-order detail, so it belongs in the published spec:\nNO CANTON CAPABILITY — specified so the contract is complete, but not available in v1: \`DTCC_END_INVESTOR_INVITE_CANCEL\`, \`DTCC_ALLOW_LIST_ADD\`, \`DTCC_ALLOW_LIST_REMOVE\`. NO HANDLER YET — the capability exists and the type is being wired one slice at a time.\nTo withdraw an allocation, answer the allocation offer with \`ALLOCATION_WITHDRAW\` on \`/offers/{offerId}/responses\` — it is not a call.\n\nOperation ID: createCantonCall\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Canton/createCantonCall' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class CreateCantonCall extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/operations/canton/calls' - static isBeta = true + static operationId = 'createCantonCall' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateCantonCall) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/canton/respond-to-canton-offer.ts b/src/commands/canton/respond-to-canton-offer.ts index 09f56e3..5e7d789 100644 --- a/src/commands/canton/respond-to-canton-offer.ts +++ b/src/commands/canton/respond-to-canton-offer.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class RespondToCantonOffer extends FireblocksBaseCommand { static summary = 'Answer an offer' - static description = 'ONE endpoint for every offer. \`responseType\` selects the variant, and \`payload\` carries that variant\'s arguments — the same \`{discriminator, payload}\` shape \`/calls\` uses. The union is closed, so an unknown \`responseType\` is a \`400\`.\n{"responseType":"DTCC_END_INVESTOR_ONBOARDING_REJECT","payload":{"reason":"KYC"}} {"responseType":"ALLOCATION_ACCEPT"}\n\`payload\` appears ONLY on the variants that take arguments. A variant with no arguments has no \`payload\` property at all, rather than an empty object — so the schema says what the ledger says, and a future type that needs fields declares its own instead of widening this envelope.\n\`responseType\` is a direct copy of a value the caller already read off the offer, in \`cantonDetails.offerResponse.availableResponses\`. Both sides share one flat vocabulary, so there is nothing to translate; the previous shape required pairing that value with a matching \`domain\` string, which carried no information \`responseType\` did not already determine.\n\nOperation ID: respondToCantonOffer\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Canton/respondToCantonOffer' + static description = 'ONE endpoint for every offer. \`responseType\` selects the variant, and \`payload\` carries that variant\'s arguments — the same \`{discriminator, payload}\` shape \`/calls\` uses. The union is closed, so an unknown \`responseType\` is a \`400\`.\n{"responseType":"DTCC_END_INVESTOR_ONBOARDING_REJECT","payload":{"reason":"KYC"}} {"responseType":"ALLOCATION_ACCEPT"}\nAn allocation offer takes three answers, all on the offer\'s own id: \`ALLOCATION_ACCEPT\`, \`ALLOCATION_REJECT\`, and — once the accept has settled — \`ALLOCATION_WITHDRAW\`, which unlocks the holding the accept allocated. Sent earlier, the withdraw is a \`409\`.\n\`payload\` appears ONLY on the variants that take arguments. A variant with no arguments has no \`payload\` property at all, rather than an empty object — so the schema says what the ledger says, and a future type that needs fields declares its own instead of widening this envelope.\n\`responseType\` is a direct copy of a value the caller already read off the offer, in \`cantonDetails.offerResponse.availableResponses\`. Both sides share one flat vocabulary, so there is nothing to translate; the previous shape required pairing that value with a matching \`domain\` string, which carried no information \`responseType\` did not already determine.\n\nOperation ID: respondToCantonOffer\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Canton/respondToCantonOffer' static enableJsonFlag = false @@ -25,14 +25,13 @@ export default class RespondToCantonOffer extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/operations/canton/offers/{offerId}/responses' - static isBeta = true + static operationId = 'respondToCantonOffer' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(RespondToCantonOffer) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/compliance-orchestrator/get-screening-result.ts b/src/commands/compliance-orchestrator/get-screening-result.ts index c1ee173..ea5f383 100644 --- a/src/commands/compliance-orchestrator/get-screening-result.ts +++ b/src/commands/compliance-orchestrator/get-screening-result.ts @@ -21,14 +21,13 @@ export default class GetScreeningResult extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/compliance/orchestrator/screenings/{screeningId}' - static isBeta = true + static operationId = 'getScreeningResult' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetScreeningResult) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/compliance-orchestrator/get-workflow.ts b/src/commands/compliance-orchestrator/get-workflow.ts index c73f6e6..606a34e 100644 --- a/src/commands/compliance-orchestrator/get-workflow.ts +++ b/src/commands/compliance-orchestrator/get-workflow.ts @@ -21,14 +21,13 @@ export default class GetWorkflow extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/compliance/orchestrator/workflows/{workflowId}' - static isBeta = true + static operationId = 'getWorkflow' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetWorkflow) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/compliance-orchestrator/trigger-screening.ts b/src/commands/compliance-orchestrator/trigger-screening.ts index 18914b7..b5bcbcd 100644 --- a/src/commands/compliance-orchestrator/trigger-screening.ts +++ b/src/commands/compliance-orchestrator/trigger-screening.ts @@ -21,14 +21,13 @@ export default class TriggerScreening extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/compliance/orchestrator/screenings' - static isBeta = true + static operationId = 'triggerScreening' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(TriggerScreening) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/compliance-orchestrator/update-workflow-status.ts b/src/commands/compliance-orchestrator/update-workflow-status.ts index b38f83c..f8aa576 100644 --- a/src/commands/compliance-orchestrator/update-workflow-status.ts +++ b/src/commands/compliance-orchestrator/update-workflow-status.ts @@ -25,14 +25,13 @@ export default class UpdateWorkflowStatus extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/compliance/orchestrator/workflows/{workflowId}/status' - static isBeta = true + static operationId = 'updateWorkflowStatus' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpdateWorkflowStatus) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/compliance-screening-configuration/get-aml-screening-configuration.ts b/src/commands/compliance-screening-configuration/get-aml-screening-configuration.ts index c1e6d07..ec3d2e9 100644 --- a/src/commands/compliance-screening-configuration/get-aml-screening-configuration.ts +++ b/src/commands/compliance-screening-configuration/get-aml-screening-configuration.ts @@ -13,6 +13,7 @@ export default class GetAmlScreeningConfiguration extends FireblocksBaseCommand static method = 'GET' static path = '/v1/screening/aml/policy_configuration' + static operationId = 'getAmlScreeningConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance-screening-configuration/get-screening-configuration.ts b/src/commands/compliance-screening-configuration/get-screening-configuration.ts index aa16fd0..28fe7e6 100644 --- a/src/commands/compliance-screening-configuration/get-screening-configuration.ts +++ b/src/commands/compliance-screening-configuration/get-screening-configuration.ts @@ -13,6 +13,7 @@ export default class GetScreeningConfiguration extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/policy_configuration' + static operationId = 'getScreeningConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/activate-ars-config.ts b/src/commands/compliance/activate-ars-config.ts index 4e3bb7a..1318a73 100644 --- a/src/commands/compliance/activate-ars-config.ts +++ b/src/commands/compliance/activate-ars-config.ts @@ -17,6 +17,7 @@ export default class ActivateArsConfig extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/ars/config/activate' + static operationId = 'activateArsConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/activate-byork-config.ts b/src/commands/compliance/activate-byork-config.ts index d1f0cf3..650b27c 100644 --- a/src/commands/compliance/activate-byork-config.ts +++ b/src/commands/compliance/activate-byork-config.ts @@ -17,6 +17,7 @@ export default class ActivateByorkConfig extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/byork/config/activate' + static operationId = 'activateByorkConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/add-address-registry-vault-opt-outs.ts b/src/commands/compliance/add-address-registry-vault-opt-outs.ts index e5d3570..d7b70be 100644 --- a/src/commands/compliance/add-address-registry-vault-opt-outs.ts +++ b/src/commands/compliance/add-address-registry-vault-opt-outs.ts @@ -21,6 +21,7 @@ export default class AddAddressRegistryVaultOptOuts extends FireblocksBaseComman static method = 'POST' static path = '/v1/address_registry/vaults' + static operationId = 'addAddressRegistryVaultOptOuts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/assign-vaults-to-legal-entity.ts b/src/commands/compliance/assign-vaults-to-legal-entity.ts index 2ead6ca..0bbc1d2 100644 --- a/src/commands/compliance/assign-vaults-to-legal-entity.ts +++ b/src/commands/compliance/assign-vaults-to-legal-entity.ts @@ -25,6 +25,7 @@ export default class AssignVaultsToLegalEntity extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/legal_entities/{legalEntityId}/vaults' + static operationId = 'assignVaultsToLegalEntity' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/create-address-registry-proof-of-ownership.ts b/src/commands/compliance/create-address-registry-proof-of-ownership.ts index 0685384..0bef729 100644 --- a/src/commands/compliance/create-address-registry-proof-of-ownership.ts +++ b/src/commands/compliance/create-address-registry-proof-of-ownership.ts @@ -21,6 +21,7 @@ export default class CreateAddressRegistryProofOfOwnership extends FireblocksBas static method = 'POST' static path = '/v1/address_registry/proof_of_ownership_exports' + static operationId = 'createAddressRegistryProofOfOwnership' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/create-counterparty-group.ts b/src/commands/compliance/create-counterparty-group.ts index 1c695ea..0c7d1ef 100644 --- a/src/commands/compliance/create-counterparty-group.ts +++ b/src/commands/compliance/create-counterparty-group.ts @@ -21,6 +21,7 @@ export default class CreateCounterpartyGroup extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/counterparty_groups' + static operationId = 'createCounterpartyGroup' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/deactivate-ars-config.ts b/src/commands/compliance/deactivate-ars-config.ts index 454a13f..dd54eb8 100644 --- a/src/commands/compliance/deactivate-ars-config.ts +++ b/src/commands/compliance/deactivate-ars-config.ts @@ -17,6 +17,7 @@ export default class DeactivateArsConfig extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/ars/config/deactivate' + static operationId = 'deactivateArsConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/deactivate-byork-config.ts b/src/commands/compliance/deactivate-byork-config.ts index 6b2f399..9eacc6e 100644 --- a/src/commands/compliance/deactivate-byork-config.ts +++ b/src/commands/compliance/deactivate-byork-config.ts @@ -17,6 +17,7 @@ export default class DeactivateByorkConfig extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/byork/config/deactivate' + static operationId = 'deactivateByorkConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/delete-counterparty-group.ts b/src/commands/compliance/delete-counterparty-group.ts index 3090453..fcc8012 100644 --- a/src/commands/compliance/delete-counterparty-group.ts +++ b/src/commands/compliance/delete-counterparty-group.ts @@ -21,6 +21,7 @@ export default class DeleteCounterpartyGroup extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/counterparty_groups/{groupId}' + static operationId = 'deleteCounterpartyGroup' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/delete-legal-entity.ts b/src/commands/compliance/delete-legal-entity.ts index 984953f..d9562d7 100644 --- a/src/commands/compliance/delete-legal-entity.ts +++ b/src/commands/compliance/delete-legal-entity.ts @@ -21,6 +21,7 @@ export default class DeleteLegalEntity extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/legal_entities/{legalEntityId}' + static operationId = 'deleteLegalEntity' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-address-registry-tenant-participation-status.ts b/src/commands/compliance/get-address-registry-tenant-participation-status.ts index 613f3c5..b90af7e 100644 --- a/src/commands/compliance/get-address-registry-tenant-participation-status.ts +++ b/src/commands/compliance/get-address-registry-tenant-participation-status.ts @@ -17,6 +17,7 @@ export default class GetAddressRegistryTenantParticipationStatus extends Fireblo static method = 'GET' static path = '/v1/address_registry/tenant' + static operationId = 'getAddressRegistryTenantParticipationStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-address-registry-vault-opt-out.ts b/src/commands/compliance/get-address-registry-vault-opt-out.ts index 44d9023..508bf62 100644 --- a/src/commands/compliance/get-address-registry-vault-opt-out.ts +++ b/src/commands/compliance/get-address-registry-vault-opt-out.ts @@ -21,6 +21,7 @@ export default class GetAddressRegistryVaultOptOut extends FireblocksBaseCommand static method = 'GET' static path = '/v1/address_registry/vaults/{vaultAccountId}' + static operationId = 'getAddressRegistryVaultOptOut' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-aml-post-screening-policy.ts b/src/commands/compliance/get-aml-post-screening-policy.ts index fb4ac37..124b707 100644 --- a/src/commands/compliance/get-aml-post-screening-policy.ts +++ b/src/commands/compliance/get-aml-post-screening-policy.ts @@ -13,6 +13,7 @@ export default class GetAmlPostScreeningPolicy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/aml/post_screening_policy' + static operationId = 'getAmlPostScreeningPolicy' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/get-aml-screening-policy.ts b/src/commands/compliance/get-aml-screening-policy.ts index f28f82c..086e5a4 100644 --- a/src/commands/compliance/get-aml-screening-policy.ts +++ b/src/commands/compliance/get-aml-screening-policy.ts @@ -13,6 +13,7 @@ export default class GetAmlScreeningPolicy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/aml/screening_policy' + static operationId = 'getAmlScreeningPolicy' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/get-byork-config.ts b/src/commands/compliance/get-byork-config.ts index b7457ab..368c6db 100644 --- a/src/commands/compliance/get-byork-config.ts +++ b/src/commands/compliance/get-byork-config.ts @@ -17,6 +17,7 @@ export default class GetByorkConfig extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/byork/config' + static operationId = 'getByorkConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-byork-verdict.ts b/src/commands/compliance/get-byork-verdict.ts index 9bddf11..3a6518e 100644 --- a/src/commands/compliance/get-byork-verdict.ts +++ b/src/commands/compliance/get-byork-verdict.ts @@ -21,6 +21,7 @@ export default class GetByorkVerdict extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/byork/verdict' + static operationId = 'getByorkVerdict' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-counterparty-group.ts b/src/commands/compliance/get-counterparty-group.ts index 1d982fb..524515c 100644 --- a/src/commands/compliance/get-counterparty-group.ts +++ b/src/commands/compliance/get-counterparty-group.ts @@ -21,6 +21,7 @@ export default class GetCounterpartyGroup extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/counterparty_groups/{groupId}' + static operationId = 'getCounterpartyGroup' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-legal-entity-for-address.ts b/src/commands/compliance/get-legal-entity-for-address.ts index 580d1b8..8cc3e12 100644 --- a/src/commands/compliance/get-legal-entity-for-address.ts +++ b/src/commands/compliance/get-legal-entity-for-address.ts @@ -21,6 +21,7 @@ export default class GetLegalEntityForAddress extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/address_registry/legal_entities/{address}' + static operationId = 'getLegalEntityForAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-legal-entity.ts b/src/commands/compliance/get-legal-entity.ts index da29983..354ac48 100644 --- a/src/commands/compliance/get-legal-entity.ts +++ b/src/commands/compliance/get-legal-entity.ts @@ -21,6 +21,7 @@ export default class GetLegalEntity extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/legal_entities/{legalEntityId}' + static operationId = 'getLegalEntity' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-post-screening-policy.ts b/src/commands/compliance/get-post-screening-policy.ts index 35d0063..b2a5736 100644 --- a/src/commands/compliance/get-post-screening-policy.ts +++ b/src/commands/compliance/get-post-screening-policy.ts @@ -13,6 +13,7 @@ export default class GetPostScreeningPolicy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/post_screening_policy' + static operationId = 'getPostScreeningPolicy' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/get-screening-full-details.ts b/src/commands/compliance/get-screening-full-details.ts index 4b0ed37..37304b2 100644 --- a/src/commands/compliance/get-screening-full-details.ts +++ b/src/commands/compliance/get-screening-full-details.ts @@ -21,6 +21,7 @@ export default class GetScreeningFullDetails extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/transaction/{txId}' + static operationId = 'getScreeningFullDetails' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/get-screening-policy.ts b/src/commands/compliance/get-screening-policy.ts index 8417738..b48c8e5 100644 --- a/src/commands/compliance/get-screening-policy.ts +++ b/src/commands/compliance/get-screening-policy.ts @@ -13,6 +13,7 @@ export default class GetScreeningPolicy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/screening_policy' + static operationId = 'getScreeningPolicy' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/list-address-registry-vault-opt-outs.ts b/src/commands/compliance/list-address-registry-vault-opt-outs.ts index 87e2a26..d3cedcb 100644 --- a/src/commands/compliance/list-address-registry-vault-opt-outs.ts +++ b/src/commands/compliance/list-address-registry-vault-opt-outs.ts @@ -27,6 +27,7 @@ export default class ListAddressRegistryVaultOptOuts extends FireblocksBaseComma static method = 'GET' static path = '/v1/address_registry/vaults' + static operationId = 'listAddressRegistryVaultOptOuts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/list-counterparty-groups.ts b/src/commands/compliance/list-counterparty-groups.ts index da01a79..11d063c 100644 --- a/src/commands/compliance/list-counterparty-groups.ts +++ b/src/commands/compliance/list-counterparty-groups.ts @@ -24,6 +24,7 @@ export default class ListCounterpartyGroups extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/counterparty_groups' + static operationId = 'listCounterpartyGroups' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/list-legal-entities.ts b/src/commands/compliance/list-legal-entities.ts index 92d84bf..d821dbe 100644 --- a/src/commands/compliance/list-legal-entities.ts +++ b/src/commands/compliance/list-legal-entities.ts @@ -27,6 +27,7 @@ export default class ListLegalEntities extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/legal_entities' + static operationId = 'listLegalEntities' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/list-vaults-for-legal-entity.ts b/src/commands/compliance/list-vaults-for-legal-entity.ts index 5f01c31..a7a9796 100644 --- a/src/commands/compliance/list-vaults-for-legal-entity.ts +++ b/src/commands/compliance/list-vaults-for-legal-entity.ts @@ -28,6 +28,7 @@ export default class ListVaultsForLegalEntity extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/legal_entities/{legalEntityId}/vaults' + static operationId = 'listVaultsForLegalEntity' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/opt-in-address-registry-tenant.ts b/src/commands/compliance/opt-in-address-registry-tenant.ts index ae244bf..549d97e 100644 --- a/src/commands/compliance/opt-in-address-registry-tenant.ts +++ b/src/commands/compliance/opt-in-address-registry-tenant.ts @@ -17,6 +17,7 @@ export default class OptInAddressRegistryTenant extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/address_registry/tenant' + static operationId = 'optInAddressRegistryTenant' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/opt-out-address-registry-tenant.ts b/src/commands/compliance/opt-out-address-registry-tenant.ts index d04dca8..97f4011 100644 --- a/src/commands/compliance/opt-out-address-registry-tenant.ts +++ b/src/commands/compliance/opt-out-address-registry-tenant.ts @@ -17,6 +17,7 @@ export default class OptOutAddressRegistryTenant extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/address_registry/tenant' + static operationId = 'optOutAddressRegistryTenant' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/register-legal-entity.ts b/src/commands/compliance/register-legal-entity.ts index e81cb32..69c2519 100644 --- a/src/commands/compliance/register-legal-entity.ts +++ b/src/commands/compliance/register-legal-entity.ts @@ -21,6 +21,7 @@ export default class RegisterLegalEntity extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/legal_entities' + static operationId = 'registerLegalEntity' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/remove-address-registry-vault-opt-out.ts b/src/commands/compliance/remove-address-registry-vault-opt-out.ts index 85b102c..4b111b5 100644 --- a/src/commands/compliance/remove-address-registry-vault-opt-out.ts +++ b/src/commands/compliance/remove-address-registry-vault-opt-out.ts @@ -21,6 +21,7 @@ export default class RemoveAddressRegistryVaultOptOut extends FireblocksBaseComm static method = 'DELETE' static path = '/v1/address_registry/vaults/{vaultAccountId}' + static operationId = 'removeAddressRegistryVaultOptOut' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/remove-all-address-registry-vault-opt-outs.ts b/src/commands/compliance/remove-all-address-registry-vault-opt-outs.ts index a6235ee..1c1716b 100644 --- a/src/commands/compliance/remove-all-address-registry-vault-opt-outs.ts +++ b/src/commands/compliance/remove-all-address-registry-vault-opt-outs.ts @@ -17,6 +17,7 @@ export default class RemoveAllAddressRegistryVaultOptOuts extends FireblocksBase static method = 'DELETE' static path = '/v1/address_registry/vaults' + static operationId = 'removeAllAddressRegistryVaultOptOuts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/rescreen-rejected-transaction.ts b/src/commands/compliance/rescreen-rejected-transaction.ts index 70c620a..955b6c5 100644 --- a/src/commands/compliance/rescreen-rejected-transaction.ts +++ b/src/commands/compliance/rescreen-rejected-transaction.ts @@ -24,6 +24,7 @@ export default class RescreenRejectedTransaction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/transaction/{txId}/rescreen' + static operationId = 'rescreenRejectedTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/retry-rejected-transaction-bypass-screening-checks.ts b/src/commands/compliance/retry-rejected-transaction-bypass-screening-checks.ts index 307865b..35a1d8e 100644 --- a/src/commands/compliance/retry-rejected-transaction-bypass-screening-checks.ts +++ b/src/commands/compliance/retry-rejected-transaction-bypass-screening-checks.ts @@ -21,6 +21,7 @@ export default class RetryRejectedTransactionBypassScreeningChecks extends Fireb static method = 'POST' static path = '/v1/screening/transaction/{txId}/bypass_screening_policy' + static operationId = 'retryRejectedTransactionBypassScreeningChecks' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/set-aml-verdict.ts b/src/commands/compliance/set-aml-verdict.ts index c5e092d..3387384 100644 --- a/src/commands/compliance/set-aml-verdict.ts +++ b/src/commands/compliance/set-aml-verdict.ts @@ -21,6 +21,7 @@ export default class SetAmlVerdict extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/aml/verdict/manual' + static operationId = 'setAmlVerdict' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/set-byork-timeouts.ts b/src/commands/compliance/set-byork-timeouts.ts index d65b9ec..a05ae40 100644 --- a/src/commands/compliance/set-byork-timeouts.ts +++ b/src/commands/compliance/set-byork-timeouts.ts @@ -21,6 +21,7 @@ export default class SetByorkTimeouts extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/screening/byork/config/timeouts' + static operationId = 'setByorkTimeouts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/set-byork-verdict.ts b/src/commands/compliance/set-byork-verdict.ts index 1fa51ab..e6c9f1b 100644 --- a/src/commands/compliance/set-byork-verdict.ts +++ b/src/commands/compliance/set-byork-verdict.ts @@ -21,6 +21,7 @@ export default class SetByorkVerdict extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/byork/verdict' + static operationId = 'setByorkVerdict' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/update-aml-screening-configuration.ts b/src/commands/compliance/update-aml-screening-configuration.ts index 0b7ddf4..e2ce8ae 100644 --- a/src/commands/compliance/update-aml-screening-configuration.ts +++ b/src/commands/compliance/update-aml-screening-configuration.ts @@ -13,6 +13,7 @@ export default class UpdateAmlScreeningConfiguration extends FireblocksBaseComma static method = 'PUT' static path = '/v1/screening/aml/policy_configuration' + static operationId = 'updateAmlScreeningConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/update-counterparty-group.ts b/src/commands/compliance/update-counterparty-group.ts index 1928cd2..87c6511 100644 --- a/src/commands/compliance/update-counterparty-group.ts +++ b/src/commands/compliance/update-counterparty-group.ts @@ -25,6 +25,7 @@ export default class UpdateCounterpartyGroup extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/counterparty_groups/{groupId}' + static operationId = 'updateCounterpartyGroup' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/update-legal-entity.ts b/src/commands/compliance/update-legal-entity.ts index 7c2ea04..3259ad8 100644 --- a/src/commands/compliance/update-legal-entity.ts +++ b/src/commands/compliance/update-legal-entity.ts @@ -25,6 +25,7 @@ export default class UpdateLegalEntity extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/legal_entities/{legalEntityId}' + static operationId = 'updateLegalEntity' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/compliance/update-screening-configuration.ts b/src/commands/compliance/update-screening-configuration.ts index 6460059..b731620 100644 --- a/src/commands/compliance/update-screening-configuration.ts +++ b/src/commands/compliance/update-screening-configuration.ts @@ -17,6 +17,7 @@ export default class UpdateScreeningConfiguration extends FireblocksBaseCommand static method = 'PUT' static path = '/v1/screening/configurations' + static operationId = 'updateScreeningConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/update-travel-rule-config.ts b/src/commands/compliance/update-travel-rule-config.ts index 2cc44e4..6a9edd9 100644 --- a/src/commands/compliance/update-travel-rule-config.ts +++ b/src/commands/compliance/update-travel-rule-config.ts @@ -13,6 +13,7 @@ export default class UpdateTravelRuleConfig extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/screening/travel_rule/policy_configuration' + static operationId = 'updateTravelRuleConfig' static isBeta = false async run(): Promise { diff --git a/src/commands/compliance/verify-address-registry-proof-of-ownership.ts b/src/commands/compliance/verify-address-registry-proof-of-ownership.ts index 13b8702..6cfa49e 100644 --- a/src/commands/compliance/verify-address-registry-proof-of-ownership.ts +++ b/src/commands/compliance/verify-address-registry-proof-of-ownership.ts @@ -21,6 +21,7 @@ export default class VerifyAddressRegistryProofOfOwnership extends FireblocksBas static method = 'POST' static path = '/v1/address_registry/proof_of_ownership_exports/verify' + static operationId = 'verifyAddressRegistryProofOfOwnership' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/add-connected-account.ts b/src/commands/connected-accounts/add-connected-account.ts index 6c65008..2456246 100644 --- a/src/commands/connected-accounts/add-connected-account.ts +++ b/src/commands/connected-accounts/add-connected-account.ts @@ -21,6 +21,7 @@ export default class AddConnectedAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/connected_accounts' + static operationId = 'addConnectedAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/disconnect-connected-account.ts b/src/commands/connected-accounts/disconnect-connected-account.ts index e4f96b6..91960ab 100644 --- a/src/commands/connected-accounts/disconnect-connected-account.ts +++ b/src/commands/connected-accounts/disconnect-connected-account.ts @@ -21,6 +21,7 @@ export default class DisconnectConnectedAccount extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/connected_accounts/{accountId}' + static operationId = 'disconnectConnectedAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-account-allowlist-entry.ts b/src/commands/connected-accounts/get-connected-account-allowlist-entry.ts index b60899d..8f7fa7a 100644 --- a/src/commands/connected-accounts/get-connected-account-allowlist-entry.ts +++ b/src/commands/connected-accounts/get-connected-account-allowlist-entry.ts @@ -25,6 +25,7 @@ export default class GetConnectedAccountAllowlistEntry extends FireblocksBaseCom static method = 'GET' static path = '/v1/connected_accounts/{accountId}/allowlist/{allowlistId}' + static operationId = 'getConnectedAccountAllowlistEntry' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-account-allowlist.ts b/src/commands/connected-accounts/get-connected-account-allowlist.ts index 8aa3d1a..f0e23d7 100644 --- a/src/commands/connected-accounts/get-connected-account-allowlist.ts +++ b/src/commands/connected-accounts/get-connected-account-allowlist.ts @@ -44,6 +44,7 @@ export default class GetConnectedAccountAllowlist extends FireblocksBaseCommand static method = 'GET' static path = '/v1/connected_accounts/{accountId}/allowlist' + static operationId = 'getConnectedAccountAllowlist' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-account-balances.ts b/src/commands/connected-accounts/get-connected-account-balances.ts index ea6d6c7..9ad9826 100644 --- a/src/commands/connected-accounts/get-connected-account-balances.ts +++ b/src/commands/connected-accounts/get-connected-account-balances.ts @@ -27,6 +27,7 @@ export default class GetConnectedAccountBalances extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/connected_accounts/{accountId}/balances' + static operationId = 'getConnectedAccountBalances' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-account-rates.ts b/src/commands/connected-accounts/get-connected-account-rates.ts index 0fc43a8..75d7772 100644 --- a/src/commands/connected-accounts/get-connected-account-rates.ts +++ b/src/commands/connected-accounts/get-connected-account-rates.ts @@ -29,6 +29,7 @@ export default class GetConnectedAccountRates extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/connected_accounts/{accountId}/rates' + static operationId = 'getConnectedAccountRates' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-account-trading-pairs.ts b/src/commands/connected-accounts/get-connected-account-trading-pairs.ts index 44b5149..7f69ae3 100644 --- a/src/commands/connected-accounts/get-connected-account-trading-pairs.ts +++ b/src/commands/connected-accounts/get-connected-account-trading-pairs.ts @@ -28,6 +28,7 @@ export default class GetConnectedAccountTradingPairs extends FireblocksBaseComma static method = 'GET' static path = '/v1/connected_accounts/{accountId}/manifest/capabilities/trading/pairs' + static operationId = 'getConnectedAccountTradingPairs' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-account.ts b/src/commands/connected-accounts/get-connected-account.ts index 49be06f..d4ec152 100644 --- a/src/commands/connected-accounts/get-connected-account.ts +++ b/src/commands/connected-accounts/get-connected-account.ts @@ -21,6 +21,7 @@ export default class GetConnectedAccount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/connected_accounts/{accountId}' + static operationId = 'getConnectedAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-accounts-credentials-public-key.ts b/src/commands/connected-accounts/get-connected-accounts-credentials-public-key.ts index 6d7848c..31bf2b6 100644 --- a/src/commands/connected-accounts/get-connected-accounts-credentials-public-key.ts +++ b/src/commands/connected-accounts/get-connected-accounts-credentials-public-key.ts @@ -17,6 +17,7 @@ export default class GetConnectedAccountsCredentialsPublicKey extends Fireblocks static method = 'GET' static path = '/v1/connected_accounts/credentials/public_key' + static operationId = 'getConnectedAccountsCredentialsPublicKey' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/get-connected-accounts.ts b/src/commands/connected-accounts/get-connected-accounts.ts index d82cd97..1e145bb 100644 --- a/src/commands/connected-accounts/get-connected-accounts.ts +++ b/src/commands/connected-accounts/get-connected-accounts.ts @@ -27,6 +27,7 @@ export default class GetConnectedAccounts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/connected_accounts' + static operationId = 'getConnectedAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/rename-connected-account.ts b/src/commands/connected-accounts/rename-connected-account.ts index 914a442..d6a092f 100644 --- a/src/commands/connected-accounts/rename-connected-account.ts +++ b/src/commands/connected-accounts/rename-connected-account.ts @@ -25,6 +25,7 @@ export default class RenameConnectedAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/connected_accounts/{accountId}/rename' + static operationId = 'renameConnectedAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/sync-connected-account-allowlist.ts b/src/commands/connected-accounts/sync-connected-account-allowlist.ts index 1e02935..a5b3a34 100644 --- a/src/commands/connected-accounts/sync-connected-account-allowlist.ts +++ b/src/commands/connected-accounts/sync-connected-account-allowlist.ts @@ -21,6 +21,7 @@ export default class SyncConnectedAccountAllowlist extends FireblocksBaseCommand static method = 'POST' static path = '/v1/connected_accounts/{accountId}/allowlist/sync' + static operationId = 'syncConnectedAccountAllowlist' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/connected-accounts/update-connected-account-credentials.ts b/src/commands/connected-accounts/update-connected-account-credentials.ts index de106a5..5f297a0 100644 --- a/src/commands/connected-accounts/update-connected-account-credentials.ts +++ b/src/commands/connected-accounts/update-connected-account-credentials.ts @@ -25,6 +25,7 @@ export default class UpdateConnectedAccountCredentials extends FireblocksBaseCom static method = 'POST' static path = '/v1/connected_accounts/{accountId}/credentials' + static operationId = 'updateConnectedAccountCredentials' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/console-user/create-console-user.ts b/src/commands/console-user/create-console-user.ts index a7affa3..9332e66 100644 --- a/src/commands/console-user/create-console-user.ts +++ b/src/commands/console-user/create-console-user.ts @@ -20,6 +20,7 @@ export default class CreateConsoleUser extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/management/users' + static operationId = 'createConsoleUser' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/console-user/delete-console-user.ts b/src/commands/console-user/delete-console-user.ts index b5e71f3..209d0c6 100644 --- a/src/commands/console-user/delete-console-user.ts +++ b/src/commands/console-user/delete-console-user.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class DeleteConsoleUser extends FireblocksBaseCommand { static summary = 'Request deletion of a console user' - static description = 'Requests deletion of a console user. The request is asynchronous: it goes through the workspace\'s configured "Delete users" approval policy (Settings > Quorums), exactly as deleting a user from the console does, and the user is removed only once that approval completes.\n- Track progress by polling GET /management/users; deletion is complete when the user is disabled.\n- Please note that this endpoint is available only for API keys with Admin/Non Signing Admin/Security Admin permissions.\nEndpoint Permission: Admin, Non-Signing Admin, Security Admin.\n**Note:** This endpoint is currently in beta and might be subject to changes.\n\nOperation ID: deleteConsoleUser\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Console%20User/deleteConsoleUser' + static description = 'Requests deletion of a console user. The request is asynchronous: it goes through the workspace\'s configured "Delete users" approval policy (Settings > Quorums), exactly as deleting a user from the console does, and the user is removed only once that approval completes.\n- The workspace must have a "Delete users" approval policy (admin quorum or approval group). If "Delete users" is Owner-only, which is the default, the request is refused with OWNER_ONLY (2760) and the Owner deletes users in the Console. With an admin quorum, the requesting API user\'s own approval counts toward the quorum.\n- Track progress by polling GET /management/users; deletion is complete when the user is disabled.\n- Please note that this endpoint is available only for API keys with Admin/Non Signing Admin/Security Admin permissions.\nEndpoint Permission: Admin, Non-Signing Admin, Security Admin.\n**Note:** This endpoint is currently in beta and might be subject to changes.\n\nOperation ID: deleteConsoleUser\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Console%20User/deleteConsoleUser' static enableJsonFlag = false @@ -25,7 +25,8 @@ export default class DeleteConsoleUser extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/management/users/{id}' - static isBeta = false + static operationId = 'deleteConsoleUser' + static isBeta = true static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { diff --git a/src/commands/console-user/get-console-users.ts b/src/commands/console-user/get-console-users.ts index ea41fd3..723f91c 100644 --- a/src/commands/console-user/get-console-users.ts +++ b/src/commands/console-user/get-console-users.ts @@ -17,6 +17,7 @@ export default class GetConsoleUsers extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/users' + static operationId = 'getConsoleUsers' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contacts/get-contacts.ts b/src/commands/contacts/get-contacts.ts index b347ae9..35f3906 100644 --- a/src/commands/contacts/get-contacts.ts +++ b/src/commands/contacts/get-contacts.ts @@ -61,6 +61,7 @@ export default class GetContacts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contacts' + static operationId = 'getContacts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-interactions/decode-contract-data.ts b/src/commands/contract-interactions/decode-contract-data.ts index 018fcbf..031869f 100644 --- a/src/commands/contract-interactions/decode-contract-data.ts +++ b/src/commands/contract-interactions/decode-contract-data.ts @@ -29,6 +29,7 @@ export default class DecodeContractData extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/decode' + static operationId = 'decodeContractData' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-interactions/get-contract-address.ts b/src/commands/contract-interactions/get-contract-address.ts index e6a76fc..8eb8bac 100644 --- a/src/commands/contract-interactions/get-contract-address.ts +++ b/src/commands/contract-interactions/get-contract-address.ts @@ -25,6 +25,7 @@ export default class GetContractAddress extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}' + static operationId = 'getContractAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-interactions/get-deployed-contract-abi.ts b/src/commands/contract-interactions/get-deployed-contract-abi.ts index 74050b6..c608ed7 100644 --- a/src/commands/contract-interactions/get-deployed-contract-abi.ts +++ b/src/commands/contract-interactions/get-deployed-contract-abi.ts @@ -25,6 +25,7 @@ export default class GetDeployedContractAbi extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions' + static operationId = 'getDeployedContractAbi' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-interactions/get-transaction-receipt.ts b/src/commands/contract-interactions/get-transaction-receipt.ts index 601a88e..d383fe1 100644 --- a/src/commands/contract-interactions/get-transaction-receipt.ts +++ b/src/commands/contract-interactions/get-transaction-receipt.ts @@ -25,6 +25,7 @@ export default class GetTransactionReceipt extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt' + static operationId = 'getTransactionReceipt' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-interactions/read-call-function.ts b/src/commands/contract-interactions/read-call-function.ts index c1a4b8f..698dd08 100644 --- a/src/commands/contract-interactions/read-call-function.ts +++ b/src/commands/contract-interactions/read-call-function.ts @@ -29,6 +29,7 @@ export default class ReadCallFunction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read' + static operationId = 'readCallFunction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-interactions/write-call-function.ts b/src/commands/contract-interactions/write-call-function.ts index b88a1c3..3e5ea70 100644 --- a/src/commands/contract-interactions/write-call-function.ts +++ b/src/commands/contract-interactions/write-call-function.ts @@ -29,6 +29,7 @@ export default class WriteCallFunction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write' + static operationId = 'writeCallFunction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/delete-contract-template-by-id.ts b/src/commands/contract-templates/delete-contract-template-by-id.ts index 5f83785..a7375fc 100644 --- a/src/commands/contract-templates/delete-contract-template-by-id.ts +++ b/src/commands/contract-templates/delete-contract-template-by-id.ts @@ -21,6 +21,7 @@ export default class DeleteContractTemplateById extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/tokenization/templates/{contractTemplateId}' + static operationId = 'deleteContractTemplateById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/deploy-contract.ts b/src/commands/contract-templates/deploy-contract.ts index 74768a4..1381d07 100644 --- a/src/commands/contract-templates/deploy-contract.ts +++ b/src/commands/contract-templates/deploy-contract.ts @@ -25,6 +25,7 @@ export default class DeployContract extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/templates/{contractTemplateId}/deploy' + static operationId = 'deployContract' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/get-constructor-by-contract-template-id.ts b/src/commands/contract-templates/get-constructor-by-contract-template-id.ts index 273bec2..2ec2dbb 100644 --- a/src/commands/contract-templates/get-constructor-by-contract-template-id.ts +++ b/src/commands/contract-templates/get-constructor-by-contract-template-id.ts @@ -25,6 +25,7 @@ export default class GetConstructorByContractTemplateId extends FireblocksBaseCo static method = 'GET' static path = '/v1/tokenization/templates/{contractTemplateId}/constructor' + static operationId = 'getConstructorByContractTemplateId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/get-contract-template-by-id.ts b/src/commands/contract-templates/get-contract-template-by-id.ts index db5fe79..f4becfb 100644 --- a/src/commands/contract-templates/get-contract-template-by-id.ts +++ b/src/commands/contract-templates/get-contract-template-by-id.ts @@ -21,6 +21,7 @@ export default class GetContractTemplateById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/templates/{contractTemplateId}' + static operationId = 'getContractTemplateById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/get-contract-templates.ts b/src/commands/contract-templates/get-contract-templates.ts index 58448af..b9e22ff 100644 --- a/src/commands/contract-templates/get-contract-templates.ts +++ b/src/commands/contract-templates/get-contract-templates.ts @@ -39,6 +39,7 @@ export default class GetContractTemplates extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/templates' + static operationId = 'getContractTemplates' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/get-function-abi-by-contract-template-id.ts b/src/commands/contract-templates/get-function-abi-by-contract-template-id.ts index 0cfe1a2..559f404 100644 --- a/src/commands/contract-templates/get-function-abi-by-contract-template-id.ts +++ b/src/commands/contract-templates/get-function-abi-by-contract-template-id.ts @@ -25,6 +25,7 @@ export default class GetFunctionAbiByContractTemplateId extends FireblocksBaseCo static method = 'GET' static path = '/v1/tokenization/templates/{contractTemplateId}/function' + static operationId = 'getFunctionAbiByContractTemplateId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/get-supported-blockchains-by-template-id.ts b/src/commands/contract-templates/get-supported-blockchains-by-template-id.ts index a57ffb9..ad2457d 100644 --- a/src/commands/contract-templates/get-supported-blockchains-by-template-id.ts +++ b/src/commands/contract-templates/get-supported-blockchains-by-template-id.ts @@ -21,6 +21,7 @@ export default class GetSupportedBlockchainsByTemplateId extends FireblocksBaseC static method = 'GET' static path = '/v1/tokenization/templates/{contractTemplateId}/supported_blockchains' + static operationId = 'getSupportedBlockchainsByTemplateId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contract-templates/upload-contract-template.ts b/src/commands/contract-templates/upload-contract-template.ts index 427c0a0..e5b1eed 100644 --- a/src/commands/contract-templates/upload-contract-template.ts +++ b/src/commands/contract-templates/upload-contract-template.ts @@ -21,6 +21,7 @@ export default class UploadContractTemplate extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/templates' + static operationId = 'uploadContractTemplate' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/add-contract-asset.ts b/src/commands/contracts/add-contract-asset.ts index 3f5c229..a8d0399 100644 --- a/src/commands/contracts/add-contract-asset.ts +++ b/src/commands/contracts/add-contract-asset.ts @@ -28,6 +28,7 @@ export default class AddContractAsset extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/contracts/{contractId}/{assetId}' + static operationId = 'addContractAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/create-contract.ts b/src/commands/contracts/create-contract.ts index 363fcd4..618f8a5 100644 --- a/src/commands/contracts/create-contract.ts +++ b/src/commands/contracts/create-contract.ts @@ -20,6 +20,7 @@ export default class CreateContract extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/contracts' + static operationId = 'createContract' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/delete-contract-asset.ts b/src/commands/contracts/delete-contract-asset.ts index a6d5c26..e89525e 100644 --- a/src/commands/contracts/delete-contract-asset.ts +++ b/src/commands/contracts/delete-contract-asset.ts @@ -25,6 +25,7 @@ export default class DeleteContractAsset extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/contracts/{contractId}/{assetId}' + static operationId = 'deleteContractAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/delete-contract.ts b/src/commands/contracts/delete-contract.ts index 0527ad6..61a9cb4 100644 --- a/src/commands/contracts/delete-contract.ts +++ b/src/commands/contracts/delete-contract.ts @@ -21,6 +21,7 @@ export default class DeleteContract extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/contracts/{contractId}' + static operationId = 'deleteContract' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/get-contract-asset.ts b/src/commands/contracts/get-contract-asset.ts index 7308815..e845741 100644 --- a/src/commands/contracts/get-contract-asset.ts +++ b/src/commands/contracts/get-contract-asset.ts @@ -25,6 +25,7 @@ export default class GetContractAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contracts/{contractId}/{assetId}' + static operationId = 'getContractAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/get-contract.ts b/src/commands/contracts/get-contract.ts index 244c23f..2c276c1 100644 --- a/src/commands/contracts/get-contract.ts +++ b/src/commands/contracts/get-contract.ts @@ -21,6 +21,7 @@ export default class GetContract extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contracts/{contractId}' + static operationId = 'getContract' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/contracts/get-contracts.ts b/src/commands/contracts/get-contracts.ts index d8aa4e4..60bf9fd 100644 --- a/src/commands/contracts/get-contracts.ts +++ b/src/commands/contracts/get-contracts.ts @@ -17,6 +17,7 @@ export default class GetContracts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/contracts' + static operationId = 'getContracts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/cosigners/add-cosigner.ts b/src/commands/cosigners/add-cosigner.ts index a5bbac3..f2a40fe 100644 --- a/src/commands/cosigners/add-cosigner.ts +++ b/src/commands/cosigners/add-cosigner.ts @@ -21,14 +21,13 @@ export default class AddCosigner extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/cosigners' - static isBeta = true + static operationId = 'addCosigner' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(AddCosigner) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/cosigners/get-api-key.ts b/src/commands/cosigners/get-api-key.ts index c240eac..9b8e84c 100644 --- a/src/commands/cosigners/get-api-key.ts +++ b/src/commands/cosigners/get-api-key.ts @@ -25,14 +25,13 @@ export default class GetApiKey extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/cosigners/{cosignerId}/api_keys/{apiKeyId}' - static isBeta = true + static operationId = 'getApiKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetApiKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/cosigners/get-api-keys.ts b/src/commands/cosigners/get-api-keys.ts index e05d280..2f51d17 100644 --- a/src/commands/cosigners/get-api-keys.ts +++ b/src/commands/cosigners/get-api-keys.ts @@ -33,14 +33,13 @@ export default class GetApiKeys extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/cosigners/{cosignerId}/api_keys' - static isBeta = true + static operationId = 'getApiKeys' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetApiKeys) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/cosigners/get-cosigner.ts b/src/commands/cosigners/get-cosigner.ts index 0e82323..2148c00 100644 --- a/src/commands/cosigners/get-cosigner.ts +++ b/src/commands/cosigners/get-cosigner.ts @@ -21,14 +21,13 @@ export default class GetCosigner extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/cosigners/{cosignerId}' - static isBeta = true + static operationId = 'getCosigner' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetCosigner) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/cosigners/get-cosigners.ts b/src/commands/cosigners/get-cosigners.ts index 97aabbe..020fc48 100644 --- a/src/commands/cosigners/get-cosigners.ts +++ b/src/commands/cosigners/get-cosigners.ts @@ -29,14 +29,13 @@ export default class GetCosigners extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/cosigners' - static isBeta = true + static operationId = 'getCosigners' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetCosigners) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/cosigners/get-request-status.ts b/src/commands/cosigners/get-request-status.ts index 2ca62a0..adcc9c1 100644 --- a/src/commands/cosigners/get-request-status.ts +++ b/src/commands/cosigners/get-request-status.ts @@ -29,14 +29,13 @@ export default class GetRequestStatus extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId}' - static isBeta = true + static operationId = 'getRequestStatus' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetRequestStatus) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/cosigners/pair-api-key.ts b/src/commands/cosigners/pair-api-key.ts index ff6366c..6562894 100644 --- a/src/commands/cosigners/pair-api-key.ts +++ b/src/commands/cosigners/pair-api-key.ts @@ -29,14 +29,13 @@ export default class PairApiKey extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/cosigners/{cosignerId}/api_keys/{apiKeyId}' - static isBeta = true + static operationId = 'pairApiKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID","Location"] async run(): Promise { const {flags} = await this.parse(PairApiKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/cosigners/rename-cosigner.ts b/src/commands/cosigners/rename-cosigner.ts index c405ef9..857a611 100644 --- a/src/commands/cosigners/rename-cosigner.ts +++ b/src/commands/cosigners/rename-cosigner.ts @@ -25,14 +25,13 @@ export default class RenameCosigner extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/cosigners/{cosignerId}' - static isBeta = true + static operationId = 'renameCosigner' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(RenameCosigner) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/cosigners/unpair-api-key.ts b/src/commands/cosigners/unpair-api-key.ts index e0b0e3c..2d46feb 100644 --- a/src/commands/cosigners/unpair-api-key.ts +++ b/src/commands/cosigners/unpair-api-key.ts @@ -25,14 +25,13 @@ export default class UnpairApiKey extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/cosigners/{cosignerId}/api_keys/{apiKeyId}' - static isBeta = true + static operationId = 'unpairApiKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID","Location"] async run(): Promise { const {flags} = await this.parse(UnpairApiKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/cosigners/update-callback-handler.ts b/src/commands/cosigners/update-callback-handler.ts index 74cc9ad..5a3c519 100644 --- a/src/commands/cosigners/update-callback-handler.ts +++ b/src/commands/cosigners/update-callback-handler.ts @@ -29,14 +29,13 @@ export default class UpdateCallbackHandler extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/cosigners/{cosignerId}/api_keys/{apiKeyId}' - static isBeta = true + static operationId = 'updateCallbackHandler' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID","Location"] async run(): Promise { const {flags} = await this.parse(UpdateCallbackHandler) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/deployed-contracts/add-contract-abi.ts b/src/commands/deployed-contracts/add-contract-abi.ts index 97d537e..4f8eaae 100644 --- a/src/commands/deployed-contracts/add-contract-abi.ts +++ b/src/commands/deployed-contracts/add-contract-abi.ts @@ -21,6 +21,7 @@ export default class AddContractABI extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/contracts/abi' + static operationId = 'addContractABI' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/deployed-contracts/fetch-contract-abi.ts b/src/commands/deployed-contracts/fetch-contract-abi.ts index f187a24..25c7e6c 100644 --- a/src/commands/deployed-contracts/fetch-contract-abi.ts +++ b/src/commands/deployed-contracts/fetch-contract-abi.ts @@ -21,6 +21,7 @@ export default class FetchContractAbi extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/contracts/fetch_abi' + static operationId = 'fetchContractAbi' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/deployed-contracts/get-deployed-contract-by-address.ts b/src/commands/deployed-contracts/get-deployed-contract-by-address.ts index ae92d2e..c833978 100644 --- a/src/commands/deployed-contracts/get-deployed-contract-by-address.ts +++ b/src/commands/deployed-contracts/get-deployed-contract-by-address.ts @@ -25,6 +25,7 @@ export default class GetDeployedContractByAddress extends FireblocksBaseCommand static method = 'GET' static path = '/v1/tokenization/contracts/{assetId}/{contractAddress}' + static operationId = 'getDeployedContractByAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/deployed-contracts/get-deployed-contract-by-id.ts b/src/commands/deployed-contracts/get-deployed-contract-by-id.ts index 28011d2..257911f 100644 --- a/src/commands/deployed-contracts/get-deployed-contract-by-id.ts +++ b/src/commands/deployed-contracts/get-deployed-contract-by-id.ts @@ -21,6 +21,7 @@ export default class GetDeployedContractById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/contracts/{id}' + static operationId = 'getDeployedContractById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/deployed-contracts/get-deployed-contracts.ts b/src/commands/deployed-contracts/get-deployed-contracts.ts index 9e887dd..cf65f6c 100644 --- a/src/commands/deployed-contracts/get-deployed-contracts.ts +++ b/src/commands/deployed-contracts/get-deployed-contracts.ts @@ -32,6 +32,7 @@ export default class GetDeployedContracts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/contracts' + static operationId = 'getDeployedContracts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/approve-terms-of-service.ts b/src/commands/earn/approve-terms-of-service.ts index 5bc0bdb..77173b0 100644 --- a/src/commands/earn/approve-terms-of-service.ts +++ b/src/commands/earn/approve-terms-of-service.ts @@ -17,6 +17,7 @@ export default class ApproveTermsOfService extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/earn/providers/approve_terms_of_service' + static operationId = 'approveTermsOfService' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/create-earn-action.ts b/src/commands/earn/create-earn-action.ts index dbd7af0..857275b 100644 --- a/src/commands/earn/create-earn-action.ts +++ b/src/commands/earn/create-earn-action.ts @@ -21,6 +21,7 @@ export default class CreateEarnAction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/earn/actions' + static operationId = 'createEarnAction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/get-earn-action.ts b/src/commands/earn/get-earn-action.ts index 06676d0..442ea6b 100644 --- a/src/commands/earn/get-earn-action.ts +++ b/src/commands/earn/get-earn-action.ts @@ -21,6 +21,7 @@ export default class GetEarnAction extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/earn/actions/{id}' + static operationId = 'getEarnAction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/get-earn-actions.ts b/src/commands/earn/get-earn-actions.ts index 091b0e1..7936262 100644 --- a/src/commands/earn/get-earn-actions.ts +++ b/src/commands/earn/get-earn-actions.ts @@ -33,6 +33,7 @@ export default class GetEarnActions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/earn/actions' + static operationId = 'getEarnActions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/get-earn-opportunities.ts b/src/commands/earn/get-earn-opportunities.ts index 9f5f124..0bdf832 100644 --- a/src/commands/earn/get-earn-opportunities.ts +++ b/src/commands/earn/get-earn-opportunities.ts @@ -32,6 +32,7 @@ export default class GetEarnOpportunities extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/earn/opportunities' + static operationId = 'getEarnOpportunities' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/get-earn-positions.ts b/src/commands/earn/get-earn-positions.ts index 0943f9e..1df7157 100644 --- a/src/commands/earn/get-earn-positions.ts +++ b/src/commands/earn/get-earn-positions.ts @@ -39,6 +39,7 @@ export default class GetEarnPositions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/earn/positions' + static operationId = 'getEarnPositions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/earn/get-earn-providers.ts b/src/commands/earn/get-earn-providers.ts index 5986e91..e924490 100644 --- a/src/commands/earn/get-earn-providers.ts +++ b/src/commands/earn/get-earn-providers.ts @@ -32,6 +32,7 @@ export default class GetEarnProviders extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/earn/providers' + static operationId = 'getEarnProviders' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/add-embedded-wallet-asset.ts b/src/commands/embedded-wallets/add-embedded-wallet-asset.ts index 598bbbb..8d73a99 100644 --- a/src/commands/embedded-wallets/add-embedded-wallet-asset.ts +++ b/src/commands/embedded-wallets/add-embedded-wallet-asset.ts @@ -29,6 +29,7 @@ export default class AddEmbeddedWalletAsset extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}' + static operationId = 'AddEmbeddedWalletAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/assign-embedded-wallet.ts b/src/commands/embedded-wallets/assign-embedded-wallet.ts index 45ae104..c8954bf 100644 --- a/src/commands/embedded-wallets/assign-embedded-wallet.ts +++ b/src/commands/embedded-wallets/assign-embedded-wallet.ts @@ -21,6 +21,7 @@ export default class AssignEmbeddedWallet extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/ncw/wallets/{walletId}/assign' + static operationId = 'assignEmbeddedWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/create-embedded-wallet-account.ts b/src/commands/embedded-wallets/create-embedded-wallet-account.ts index 34c2997..56c3648 100644 --- a/src/commands/embedded-wallets/create-embedded-wallet-account.ts +++ b/src/commands/embedded-wallets/create-embedded-wallet-account.ts @@ -21,6 +21,7 @@ export default class CreateEmbeddedWalletAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/ncw/wallets/{walletId}/accounts' + static operationId = 'CreateEmbeddedWalletAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/create-embedded-wallet.ts b/src/commands/embedded-wallets/create-embedded-wallet.ts index 7448f2b..d3365b6 100644 --- a/src/commands/embedded-wallets/create-embedded-wallet.ts +++ b/src/commands/embedded-wallets/create-embedded-wallet.ts @@ -17,6 +17,7 @@ export default class CreateEmbeddedWallet extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/ncw/wallets' + static operationId = 'CreateEmbeddedWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-account.ts b/src/commands/embedded-wallets/get-embedded-wallet-account.ts index 392de64..3d3120e 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-account.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-account.ts @@ -25,6 +25,7 @@ export default class GetEmbeddedWalletAccount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}' + static operationId = 'GetEmbeddedWalletAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-addresses.ts b/src/commands/embedded-wallets/get-embedded-wallet-addresses.ts index a4be6fe..98013c6 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-addresses.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-addresses.ts @@ -48,6 +48,7 @@ export default class GetEmbeddedWalletAddresses extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses' + static operationId = 'GetEmbeddedWalletAddresses' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-asset-balance.ts b/src/commands/embedded-wallets/get-embedded-wallet-asset-balance.ts index a0b3473..06572cf 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-asset-balance.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-asset-balance.ts @@ -29,6 +29,7 @@ export default class GetEmbeddedWalletAssetBalance extends FireblocksBaseCommand static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance' + static operationId = 'GetEmbeddedWalletAssetBalance' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-asset.ts b/src/commands/embedded-wallets/get-embedded-wallet-asset.ts index ed162b2..584cd44 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-asset.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-asset.ts @@ -29,6 +29,7 @@ export default class GetEmbeddedWalletAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}' + static operationId = 'GetEmbeddedWalletAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-assets.ts b/src/commands/embedded-wallets/get-embedded-wallet-assets.ts index 00ec932..00580e8 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-assets.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-assets.ts @@ -41,6 +41,7 @@ export default class GetEmbeddedWalletAssets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets' + static operationId = 'getEmbeddedWalletAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-device-setup-state.ts b/src/commands/embedded-wallets/get-embedded-wallet-device-setup-state.ts index 7faef3a..cd69f3e 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-device-setup-state.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-device-setup-state.ts @@ -25,6 +25,7 @@ export default class GetEmbeddedWalletDeviceSetupState extends FireblocksBaseCom static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/devices/{deviceId}/setup_status' + static operationId = 'GetEmbeddedWalletDeviceSetupState' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-device.ts b/src/commands/embedded-wallets/get-embedded-wallet-device.ts index b898720..e2f76c6 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-device.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-device.ts @@ -25,6 +25,7 @@ export default class GetEmbeddedWalletDevice extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/devices/{deviceId}' + static operationId = 'GetEmbeddedWalletDevice' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-devices-paginated.ts b/src/commands/embedded-wallets/get-embedded-wallet-devices-paginated.ts index 90bc6ae..7511009 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-devices-paginated.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-devices-paginated.ts @@ -37,6 +37,7 @@ export default class GetEmbeddedWalletDevicesPaginated extends FireblocksBaseCom static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/devices_paginated' + static operationId = 'getEmbeddedWalletDevicesPaginated' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-latest-backup.ts b/src/commands/embedded-wallets/get-embedded-wallet-latest-backup.ts index 41c05e4..2dc6149 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-latest-backup.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-latest-backup.ts @@ -21,6 +21,7 @@ export default class GetEmbeddedWalletLatestBackup extends FireblocksBaseCommand static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/backup/latest' + static operationId = 'GetEmbeddedWalletLatestBackup' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-public-key-info-for-address.ts b/src/commands/embedded-wallets/get-embedded-wallet-public-key-info-for-address.ts index 583b11f..649fbda 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-public-key-info-for-address.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-public-key-info-for-address.ts @@ -40,6 +40,7 @@ export default class GetEmbeddedWalletPublicKeyInfoForAddress extends Fireblocks static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info' + static operationId = 'GetEmbeddedWalletPublicKeyInfoForAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-setup-status.ts b/src/commands/embedded-wallets/get-embedded-wallet-setup-status.ts index dc1c7e8..15b2b75 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-setup-status.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-setup-status.ts @@ -21,6 +21,7 @@ export default class GetEmbeddedWalletSetupStatus extends FireblocksBaseCommand static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/setup_status' + static operationId = 'getEmbeddedWalletSetupStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet-supported-assets.ts b/src/commands/embedded-wallets/get-embedded-wallet-supported-assets.ts index 7cb784e..5cf1000 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet-supported-assets.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet-supported-assets.ts @@ -27,6 +27,7 @@ export default class GetEmbeddedWalletSupportedAssets extends FireblocksBaseComm static method = 'GET' static path = '/v1/ncw/wallets/supported_assets' + static operationId = 'GetEmbeddedWalletSupportedAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallet.ts b/src/commands/embedded-wallets/get-embedded-wallet.ts index 366ecc3..d2b45a8 100644 --- a/src/commands/embedded-wallets/get-embedded-wallet.ts +++ b/src/commands/embedded-wallets/get-embedded-wallet.ts @@ -21,6 +21,7 @@ export default class GetEmbeddedWallet extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}' + static operationId = 'GetEmbeddedWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-embedded-wallets.ts b/src/commands/embedded-wallets/get-embedded-wallets.ts index 7dd75cb..1ccd0ff 100644 --- a/src/commands/embedded-wallets/get-embedded-wallets.ts +++ b/src/commands/embedded-wallets/get-embedded-wallets.ts @@ -37,6 +37,7 @@ export default class GetEmbeddedWallets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets' + static operationId = 'GetEmbeddedWallets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-public-key-info-for-address-ncw.ts b/src/commands/embedded-wallets/get-public-key-info-for-address-ncw.ts index 21a80fd..5728fe2 100644 --- a/src/commands/embedded-wallets/get-public-key-info-for-address-ncw.ts +++ b/src/commands/embedded-wallets/get-public-key-info-for-address-ncw.ts @@ -40,6 +40,7 @@ export default class GetPublicKeyInfoForAddressNcw extends FireblocksBaseCommand static method = 'GET' static path = '/v1/ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info' + static operationId = 'getPublicKeyInfoForAddressNcw' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/get-public-key-info-ncw.ts b/src/commands/embedded-wallets/get-public-key-info-ncw.ts index 4259636..dd65c9f 100644 --- a/src/commands/embedded-wallets/get-public-key-info-ncw.ts +++ b/src/commands/embedded-wallets/get-public-key-info-ncw.ts @@ -33,6 +33,7 @@ export default class GetPublicKeyInfoNcw extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/ncw/wallets/{walletId}/public_key_info' + static operationId = 'getPublicKeyInfoNcw' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/refresh-embedded-wallet-asset-balance.ts b/src/commands/embedded-wallets/refresh-embedded-wallet-asset-balance.ts index 7353899..c23f767 100644 --- a/src/commands/embedded-wallets/refresh-embedded-wallet-asset-balance.ts +++ b/src/commands/embedded-wallets/refresh-embedded-wallet-asset-balance.ts @@ -29,6 +29,7 @@ export default class RefreshEmbeddedWalletAssetBalance extends FireblocksBaseCom static method = 'PUT' static path = '/v1/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance' + static operationId = 'RefreshEmbeddedWalletAssetBalance' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/update-embedded-wallet-device-status.ts b/src/commands/embedded-wallets/update-embedded-wallet-device-status.ts index 9ec9509..e78ab7d 100644 --- a/src/commands/embedded-wallets/update-embedded-wallet-device-status.ts +++ b/src/commands/embedded-wallets/update-embedded-wallet-device-status.ts @@ -29,6 +29,7 @@ export default class UpdateEmbeddedWalletDeviceStatus extends FireblocksBaseComm static method = 'PATCH' static path = '/v1/ncw/wallets/{walletId}/devices/{deviceId}/status' + static operationId = 'updateEmbeddedWalletDeviceStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/embedded-wallets/update-embedded-wallet-status.ts b/src/commands/embedded-wallets/update-embedded-wallet-status.ts index 3378858..a8c32ad 100644 --- a/src/commands/embedded-wallets/update-embedded-wallet-status.ts +++ b/src/commands/embedded-wallets/update-embedded-wallet-status.ts @@ -25,6 +25,7 @@ export default class UpdateEmbeddedWalletStatus extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/ncw/wallets/{walletId}/status' + static operationId = 'updateEmbeddedWalletStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/add-exchange-account.ts b/src/commands/exchange-accounts/add-exchange-account.ts index 6a1aac5..82b910d 100644 --- a/src/commands/exchange-accounts/add-exchange-account.ts +++ b/src/commands/exchange-accounts/add-exchange-account.ts @@ -21,6 +21,7 @@ export default class AddExchangeAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/exchange_accounts' + static operationId = 'addExchangeAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/convert-assets.ts b/src/commands/exchange-accounts/convert-assets.ts index 2142715..8eea138 100644 --- a/src/commands/exchange-accounts/convert-assets.ts +++ b/src/commands/exchange-accounts/convert-assets.ts @@ -24,6 +24,7 @@ export default class ConvertAssets extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/exchange_accounts/{exchangeAccountId}/convert' + static operationId = 'convertAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/get-exchange-account-asset.ts b/src/commands/exchange-accounts/get-exchange-account-asset.ts index f5e3fee..123df64 100644 --- a/src/commands/exchange-accounts/get-exchange-account-asset.ts +++ b/src/commands/exchange-accounts/get-exchange-account-asset.ts @@ -25,6 +25,7 @@ export default class GetExchangeAccountAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/exchange_accounts/{exchangeAccountId}/{assetId}' + static operationId = 'getExchangeAccountAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/get-exchange-account.ts b/src/commands/exchange-accounts/get-exchange-account.ts index 72bd6d2..0dfafc1 100644 --- a/src/commands/exchange-accounts/get-exchange-account.ts +++ b/src/commands/exchange-accounts/get-exchange-account.ts @@ -21,6 +21,7 @@ export default class GetExchangeAccount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/exchange_accounts/{exchangeAccountId}' + static operationId = 'getExchangeAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/get-exchange-accounts-credentials-public-key.ts b/src/commands/exchange-accounts/get-exchange-accounts-credentials-public-key.ts index 0894ccb..37f01e5 100644 --- a/src/commands/exchange-accounts/get-exchange-accounts-credentials-public-key.ts +++ b/src/commands/exchange-accounts/get-exchange-accounts-credentials-public-key.ts @@ -17,6 +17,7 @@ export default class GetExchangeAccountsCredentialsPublicKey extends FireblocksB static method = 'GET' static path = '/v1/exchange_accounts/credentials_public_key' + static operationId = 'getExchangeAccountsCredentialsPublicKey' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/get-exchange-accounts.ts b/src/commands/exchange-accounts/get-exchange-accounts.ts index 11eefc4..c64408e 100644 --- a/src/commands/exchange-accounts/get-exchange-accounts.ts +++ b/src/commands/exchange-accounts/get-exchange-accounts.ts @@ -17,6 +17,7 @@ export default class GetExchangeAccounts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/exchange_accounts' + static operationId = 'getExchangeAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/get-paged-exchange-accounts.ts b/src/commands/exchange-accounts/get-paged-exchange-accounts.ts index 3013945..184eda3 100644 --- a/src/commands/exchange-accounts/get-paged-exchange-accounts.ts +++ b/src/commands/exchange-accounts/get-paged-exchange-accounts.ts @@ -28,6 +28,7 @@ export default class GetPagedExchangeAccounts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/exchange_accounts/paged' + static operationId = 'getPagedExchangeAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/exchange-accounts/internal-transfer.ts b/src/commands/exchange-accounts/internal-transfer.ts index d8cdd43..fb047d9 100644 --- a/src/commands/exchange-accounts/internal-transfer.ts +++ b/src/commands/exchange-accounts/internal-transfer.ts @@ -24,6 +24,7 @@ export default class InternalTransfer extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/exchange_accounts/{exchangeAccountId}/internal_transfer' + static operationId = 'internalTransfer' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/add-asset-to-external-wallet.ts b/src/commands/external-wallets/add-asset-to-external-wallet.ts index 8b14cb7..7779ca0 100644 --- a/src/commands/external-wallets/add-asset-to-external-wallet.ts +++ b/src/commands/external-wallets/add-asset-to-external-wallet.ts @@ -28,6 +28,7 @@ export default class AddAssetToExternalWallet extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/external_wallets/{walletId}/{assetId}' + static operationId = 'addAssetToExternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/create-external-wallet.ts b/src/commands/external-wallets/create-external-wallet.ts index 72c4bc5..e97e3dd 100644 --- a/src/commands/external-wallets/create-external-wallet.ts +++ b/src/commands/external-wallets/create-external-wallet.ts @@ -20,6 +20,7 @@ export default class CreateExternalWallet extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/external_wallets' + static operationId = 'createExternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/delete-external-wallet.ts b/src/commands/external-wallets/delete-external-wallet.ts index 8163657..257eb05 100644 --- a/src/commands/external-wallets/delete-external-wallet.ts +++ b/src/commands/external-wallets/delete-external-wallet.ts @@ -21,6 +21,7 @@ export default class DeleteExternalWallet extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/external_wallets/{walletId}' + static operationId = 'deleteExternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/get-external-wallet-asset.ts b/src/commands/external-wallets/get-external-wallet-asset.ts index 8443fc7..2bdd597 100644 --- a/src/commands/external-wallets/get-external-wallet-asset.ts +++ b/src/commands/external-wallets/get-external-wallet-asset.ts @@ -25,6 +25,7 @@ export default class GetExternalWalletAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/external_wallets/{walletId}/{assetId}' + static operationId = 'getExternalWalletAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/get-external-wallet.ts b/src/commands/external-wallets/get-external-wallet.ts index abeb256..a1f0039 100644 --- a/src/commands/external-wallets/get-external-wallet.ts +++ b/src/commands/external-wallets/get-external-wallet.ts @@ -21,6 +21,7 @@ export default class GetExternalWallet extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/external_wallets/{walletId}' + static operationId = 'getExternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/get-external-wallets.ts b/src/commands/external-wallets/get-external-wallets.ts index 8533b8f..941094a 100644 --- a/src/commands/external-wallets/get-external-wallets.ts +++ b/src/commands/external-wallets/get-external-wallets.ts @@ -17,6 +17,7 @@ export default class GetExternalWallets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/external_wallets' + static operationId = 'getExternalWallets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/remove-asset-from-external-wallet.ts b/src/commands/external-wallets/remove-asset-from-external-wallet.ts index 65e208d..4ff095c 100644 --- a/src/commands/external-wallets/remove-asset-from-external-wallet.ts +++ b/src/commands/external-wallets/remove-asset-from-external-wallet.ts @@ -25,6 +25,7 @@ export default class RemoveAssetFromExternalWallet extends FireblocksBaseCommand static method = 'DELETE' static path = '/v1/external_wallets/{walletId}/{assetId}' + static operationId = 'removeAssetFromExternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/external-wallets/set-external-wallet-customer-ref-id.ts b/src/commands/external-wallets/set-external-wallet-customer-ref-id.ts index 10a042c..aef6e73 100644 --- a/src/commands/external-wallets/set-external-wallet-customer-ref-id.ts +++ b/src/commands/external-wallets/set-external-wallet-customer-ref-id.ts @@ -25,6 +25,7 @@ export default class SetExternalWalletCustomerRefId extends FireblocksBaseComman static method = 'POST' static path = '/v1/external_wallets/{walletId}/set_customer_ref_id' + static operationId = 'setExternalWalletCustomerRefId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/fiat-accounts/deposit-funds-from-linked-dda.ts b/src/commands/fiat-accounts/deposit-funds-from-linked-dda.ts index e6d4e71..38e10e2 100644 --- a/src/commands/fiat-accounts/deposit-funds-from-linked-dda.ts +++ b/src/commands/fiat-accounts/deposit-funds-from-linked-dda.ts @@ -24,6 +24,7 @@ export default class DepositFundsFromLinkedDDA extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/fiat_accounts/{accountId}/deposit_from_linked_dda' + static operationId = 'depositFundsFromLinkedDDA' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/fiat-accounts/get-fiat-account.ts b/src/commands/fiat-accounts/get-fiat-account.ts index 87310a7..20c0215 100644 --- a/src/commands/fiat-accounts/get-fiat-account.ts +++ b/src/commands/fiat-accounts/get-fiat-account.ts @@ -21,6 +21,7 @@ export default class GetFiatAccount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/fiat_accounts/{accountId}' + static operationId = 'getFiatAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/fiat-accounts/get-fiat-accounts.ts b/src/commands/fiat-accounts/get-fiat-accounts.ts index 40cfdc2..20e4540 100644 --- a/src/commands/fiat-accounts/get-fiat-accounts.ts +++ b/src/commands/fiat-accounts/get-fiat-accounts.ts @@ -17,6 +17,7 @@ export default class GetFiatAccounts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/fiat_accounts' + static operationId = 'getFiatAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/fiat-accounts/redeem-funds-to-linked-dda.ts b/src/commands/fiat-accounts/redeem-funds-to-linked-dda.ts index 91ec972..ceaff75 100644 --- a/src/commands/fiat-accounts/redeem-funds-to-linked-dda.ts +++ b/src/commands/fiat-accounts/redeem-funds-to-linked-dda.ts @@ -24,6 +24,7 @@ export default class RedeemFundsToLinkedDDA extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/fiat_accounts/{accountId}/redeem_to_linked_dda' + static operationId = 'redeemFundsToLinkedDDA' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/gas-stations/get-gas-station-by-asset-id.ts b/src/commands/gas-stations/get-gas-station-by-asset-id.ts index d3fe886..1c04f79 100644 --- a/src/commands/gas-stations/get-gas-station-by-asset-id.ts +++ b/src/commands/gas-stations/get-gas-station-by-asset-id.ts @@ -21,6 +21,7 @@ export default class GetGasStationByAssetId extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/gas_station/{assetId}' + static operationId = 'getGasStationByAssetId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/gas-stations/get-gas-station-info.ts b/src/commands/gas-stations/get-gas-station-info.ts index 13928d7..6c2c614 100644 --- a/src/commands/gas-stations/get-gas-station-info.ts +++ b/src/commands/gas-stations/get-gas-station-info.ts @@ -17,6 +17,7 @@ export default class GetGasStationInfo extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/gas_station' + static operationId = 'getGasStationInfo' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/gas-stations/update-gas-station-configuration-by-asset-id.ts b/src/commands/gas-stations/update-gas-station-configuration-by-asset-id.ts index d486c0a..f845807 100644 --- a/src/commands/gas-stations/update-gas-station-configuration-by-asset-id.ts +++ b/src/commands/gas-stations/update-gas-station-configuration-by-asset-id.ts @@ -25,6 +25,7 @@ export default class UpdateGasStationConfigurationByAssetId extends FireblocksBa static method = 'PUT' static path = '/v1/gas_station/configuration/{assetId}' + static operationId = 'updateGasStationConfigurationByAssetId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/gas-stations/update-gas-station-configuration.ts b/src/commands/gas-stations/update-gas-station-configuration.ts index b225dff..4e43b1f 100644 --- a/src/commands/gas-stations/update-gas-station-configuration.ts +++ b/src/commands/gas-stations/update-gas-station-configuration.ts @@ -21,6 +21,7 @@ export default class UpdateGasStationConfiguration extends FireblocksBaseCommand static method = 'PUT' static path = '/v1/gas_station/configuration' + static operationId = 'updateGasStationConfiguration' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/genie/create-genie-session.ts b/src/commands/genie/create-genie-session.ts index 4991959..684c708 100644 --- a/src/commands/genie/create-genie-session.ts +++ b/src/commands/genie/create-genie-session.ts @@ -17,14 +17,13 @@ export default class CreateGenieSession extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/genie/sessions' - static isBeta = true + static operationId = 'createGenieSession' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateGenieSession) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} if (flags['idempotency-key']) { diff --git a/src/commands/genie/send-genie-message.ts b/src/commands/genie/send-genie-message.ts index 7780a40..7f0393e 100644 --- a/src/commands/genie/send-genie-message.ts +++ b/src/commands/genie/send-genie-message.ts @@ -25,14 +25,13 @@ export default class SendGenieMessage extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/genie/sessions/{sessionId}/messages' - static isBeta = true + static operationId = 'sendGenieMessage' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(SendGenieMessage) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/internal-wallets/create-internal-wallet-asset.ts b/src/commands/internal-wallets/create-internal-wallet-asset.ts index e617375..b03f0ac 100644 --- a/src/commands/internal-wallets/create-internal-wallet-asset.ts +++ b/src/commands/internal-wallets/create-internal-wallet-asset.ts @@ -28,6 +28,7 @@ export default class CreateInternalWalletAsset extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/internal_wallets/{walletId}/{assetId}' + static operationId = 'createInternalWalletAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/create-internal-wallet.ts b/src/commands/internal-wallets/create-internal-wallet.ts index bb0edee..c5160e3 100644 --- a/src/commands/internal-wallets/create-internal-wallet.ts +++ b/src/commands/internal-wallets/create-internal-wallet.ts @@ -20,6 +20,7 @@ export default class CreateInternalWallet extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/internal_wallets' + static operationId = 'createInternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/delete-internal-wallet-asset.ts b/src/commands/internal-wallets/delete-internal-wallet-asset.ts index bb3e659..1deb007 100644 --- a/src/commands/internal-wallets/delete-internal-wallet-asset.ts +++ b/src/commands/internal-wallets/delete-internal-wallet-asset.ts @@ -25,6 +25,7 @@ export default class DeleteInternalWalletAsset extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/internal_wallets/{walletId}/{assetId}' + static operationId = 'deleteInternalWalletAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/delete-internal-wallet.ts b/src/commands/internal-wallets/delete-internal-wallet.ts index 64d5df1..3d96c5e 100644 --- a/src/commands/internal-wallets/delete-internal-wallet.ts +++ b/src/commands/internal-wallets/delete-internal-wallet.ts @@ -21,6 +21,7 @@ export default class DeleteInternalWallet extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/internal_wallets/{walletId}' + static operationId = 'deleteInternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/get-internal-wallet-asset.ts b/src/commands/internal-wallets/get-internal-wallet-asset.ts index fbcdcae..4d41b32 100644 --- a/src/commands/internal-wallets/get-internal-wallet-asset.ts +++ b/src/commands/internal-wallets/get-internal-wallet-asset.ts @@ -25,6 +25,7 @@ export default class GetInternalWalletAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/internal_wallets/{walletId}/{assetId}' + static operationId = 'getInternalWalletAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/get-internal-wallet-assets-paginated.ts b/src/commands/internal-wallets/get-internal-wallet-assets-paginated.ts index e426b2e..3501ecd 100644 --- a/src/commands/internal-wallets/get-internal-wallet-assets-paginated.ts +++ b/src/commands/internal-wallets/get-internal-wallet-assets-paginated.ts @@ -28,6 +28,7 @@ export default class GetInternalWalletAssetsPaginated extends FireblocksBaseComm static method = 'GET' static path = '/v1/internal_wallets/{walletId}/assets' + static operationId = 'getInternalWalletAssetsPaginated' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/get-internal-wallet.ts b/src/commands/internal-wallets/get-internal-wallet.ts index 849c5bc..f7fad0d 100644 --- a/src/commands/internal-wallets/get-internal-wallet.ts +++ b/src/commands/internal-wallets/get-internal-wallet.ts @@ -21,6 +21,7 @@ export default class GetInternalWallet extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/internal_wallets/{walletId}' + static operationId = 'getInternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/get-internal-wallets.ts b/src/commands/internal-wallets/get-internal-wallets.ts index f30de2c..581d362 100644 --- a/src/commands/internal-wallets/get-internal-wallets.ts +++ b/src/commands/internal-wallets/get-internal-wallets.ts @@ -17,6 +17,7 @@ export default class GetInternalWallets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/internal_wallets' + static operationId = 'getInternalWallets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/internal-wallets/set-customer-ref-id-for-internal-wallet.ts b/src/commands/internal-wallets/set-customer-ref-id-for-internal-wallet.ts index aff9f72..fdc2bcb 100644 --- a/src/commands/internal-wallets/set-customer-ref-id-for-internal-wallet.ts +++ b/src/commands/internal-wallets/set-customer-ref-id-for-internal-wallet.ts @@ -25,6 +25,7 @@ export default class SetCustomerRefIdForInternalWallet extends FireblocksBaseCom static method = 'POST' static path = '/v1/internal_wallets/{walletId}/set_customer_ref_id' + static operationId = 'setCustomerRefIdForInternalWallet' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/key-link/create-bulk-signing-keys.ts b/src/commands/key-link/create-bulk-signing-keys.ts new file mode 100644 index 0000000..a320931 --- /dev/null +++ b/src/commands/key-link/create-bulk-signing-keys.ts @@ -0,0 +1,64 @@ +import {Flags} from '@oclif/core' +import {FireblocksBaseCommand} from '../../lib/base-command.js' + +export default class CreateBulkSigningKeys extends FireblocksBaseCommand { + static summary = 'Register signing keys in bulk' + + static description = 'Accepts a set of signing keys certified by a single validation key and queues them for registration in the background. Returns a job id to poll. A workspace can have one bulk registration at a time; submitting another while one is QUEUED or IN_PROGRESS is rejected with 409. Bulk registrations from different workspaces share a limited number of slots, so a job may wait QUEUED behind another workspace\'s before it starts. Keys already registered in the workspace are recognized and skipped, so resubmitting the same request after a failure is safe and only processes what is missing. Every key must carry its own proof of ownership; a bulk registration has no interactive step in which one can arrive later.\n\nOperation ID: createBulkSigningKeys\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Key%20Link/createBulkSigningKeys' + + static enableJsonFlag = false + + static flags = { + data: Flags.string({ + description: 'JSON request body', + required: true, + }), + 'include-headers': Flags.boolean({ + description: 'Include spec-defined response headers in output', + default: false, + }), + } + + static method = 'POST' + static path = '/v1/key_link/signing_keys/bulk' + static operationId = 'createBulkSigningKeys' + static isBeta = false + static responseHeaders: string[] = ["X-Request-ID"] + + async run(): Promise { + const {flags} = await this.parse(CreateBulkSigningKeys) + + let body: Record | undefined + if (flags.data) { + try { + const parsed = JSON.parse(flags.data) + if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) { + this.error('--data must be a JSON object (e.g., \'{"key": "value"}\')') + } + body = parsed as Record + } catch { + this.error('Invalid JSON in --data flag. Ensure the value is valid JSON.') + } + } + + const headers: Record = {} + if (flags['idempotency-key']) { + headers['Idempotency-Key'] = flags['idempotency-key'] + } + + + + await this.confirmOrAbort('POST', '/v1/key_link/signing_keys/bulk') + + const result = await this.makeRequest( + 'POST', + '/v1/key_link/signing_keys/bulk', + { + body, + headers, + }, + ) + + return result + } +} diff --git a/src/commands/key-link/create-signing-key.ts b/src/commands/key-link/create-signing-key.ts index 552e2bc..1412205 100644 --- a/src/commands/key-link/create-signing-key.ts +++ b/src/commands/key-link/create-signing-key.ts @@ -21,14 +21,13 @@ export default class CreateSigningKey extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/key_link/signing_keys' - static isBeta = true + static operationId = 'createSigningKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateSigningKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/key-link/create-validation-key.ts b/src/commands/key-link/create-validation-key.ts index 3a127e3..b4075f3 100644 --- a/src/commands/key-link/create-validation-key.ts +++ b/src/commands/key-link/create-validation-key.ts @@ -21,14 +21,13 @@ export default class CreateValidationKey extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/key_link/validation_keys' - static isBeta = true + static operationId = 'createValidationKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateValidationKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/key-link/disable-validation-key.ts b/src/commands/key-link/disable-validation-key.ts index 5bb1889..3a40dbf 100644 --- a/src/commands/key-link/disable-validation-key.ts +++ b/src/commands/key-link/disable-validation-key.ts @@ -25,14 +25,13 @@ export default class DisableValidationKey extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/key_link/validation_keys/{keyId}' - static isBeta = true + static operationId = 'disableValidationKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(DisableValidationKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/key-link/get-bulk-signing-keys-job.ts b/src/commands/key-link/get-bulk-signing-keys-job.ts new file mode 100644 index 0000000..f55fe08 --- /dev/null +++ b/src/commands/key-link/get-bulk-signing-keys-job.ts @@ -0,0 +1,49 @@ +import {Flags} from '@oclif/core' +import {FireblocksBaseCommand} from '../../lib/base-command.js' + +export default class GetBulkSigningKeysJob extends FireblocksBaseCommand { + static summary = 'Get a bulk registration job' + + static description = 'Returns the progress and outcome of a bulk registration job. \`created + alreadyRegistered\` reaching \`total\` means every submitted key is present.\n\nOperation ID: getBulkSigningKeysJob\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Key%20Link/getBulkSigningKeysJob' + + static enableJsonFlag = false + + static flags = { + 'job-id': Flags.string({ + description: 'The id of the bulk registration job', + required: true, + }), + 'include-headers': Flags.boolean({ + description: 'Include spec-defined response headers in output', + default: false, + }), + } + + static method = 'GET' + static path = '/v1/key_link/signing_keys/bulk/jobs/{jobId}' + static operationId = 'getBulkSigningKeysJob' + static isBeta = false + static responseHeaders: string[] = ["X-Request-ID"] + + async run(): Promise { + const {flags} = await this.parse(GetBulkSigningKeysJob) + + + const headers: Record = {} + + const pathParams: Record = {} + pathParams['jobId'] = String(flags['job-id']) + + + const result = await this.makeRequest( + 'GET', + '/v1/key_link/signing_keys/bulk/jobs/{jobId}', + { + headers, + pathParams, + }, + ) + + return result + } +} diff --git a/src/commands/key-link/get-bulk-signing-keys-jobs.ts b/src/commands/key-link/get-bulk-signing-keys-jobs.ts new file mode 100644 index 0000000..ec35f4a --- /dev/null +++ b/src/commands/key-link/get-bulk-signing-keys-jobs.ts @@ -0,0 +1,57 @@ +import {Flags} from '@oclif/core' +import {FireblocksBaseCommand} from '../../lib/base-command.js' + +export default class GetBulkSigningKeysJobs extends FireblocksBaseCommand { + static summary = 'Get bulk registration jobs' + + static description = 'Returns the workspace\'s bulk registration jobs, newest first, a page at a time.\n\nOperation ID: getBulkSigningKeysJobs\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Key%20Link/getBulkSigningKeysJobs' + + static enableJsonFlag = false + + static flags = { + 'page-cursor': Flags.string({ + description: 'Cursor to the next page', + }), + 'page-size': Flags.integer({ + description: 'Amount of results to return in the next page', + default: 10, + }), + 'include-headers': Flags.boolean({ + description: 'Include spec-defined response headers in output', + default: false, + }), + } + + static method = 'GET' + static path = '/v1/key_link/signing_keys/bulk/jobs' + static operationId = 'getBulkSigningKeysJobs' + static isBeta = false + static responseHeaders: string[] = ["X-Request-ID"] + + async run(): Promise { + const {flags} = await this.parse(GetBulkSigningKeysJobs) + + + const headers: Record = {} + + + const queryParams: Record = {} + if (flags['page-cursor'] !== undefined && flags['page-cursor'] !== null) { + queryParams['pageCursor'] = String(flags['page-cursor']) + } + if (flags['page-size'] !== undefined && flags['page-size'] !== null) { + queryParams['pageSize'] = String(flags['page-size']) + } + + const result = await this.makeRequest( + 'GET', + '/v1/key_link/signing_keys/bulk/jobs', + { + headers, + queryParams, + }, + ) + + return result + } +} diff --git a/src/commands/key-link/get-signing-key.ts b/src/commands/key-link/get-signing-key.ts index b6e5e21..aa63cb9 100644 --- a/src/commands/key-link/get-signing-key.ts +++ b/src/commands/key-link/get-signing-key.ts @@ -21,14 +21,13 @@ export default class GetSigningKey extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/key_link/signing_keys/{keyId}' - static isBeta = true + static operationId = 'getSigningKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetSigningKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/key-link/get-signing-keys-list.ts b/src/commands/key-link/get-signing-keys-list.ts index 2b5c548..aca5b24 100644 --- a/src/commands/key-link/get-signing-keys-list.ts +++ b/src/commands/key-link/get-signing-keys-list.ts @@ -56,14 +56,13 @@ export default class GetSigningKeysList extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/key_link/signing_keys' - static isBeta = true + static operationId = 'getSigningKeysList' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetSigningKeysList) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/key-link/get-validation-key.ts b/src/commands/key-link/get-validation-key.ts index 8323901..9ff3034 100644 --- a/src/commands/key-link/get-validation-key.ts +++ b/src/commands/key-link/get-validation-key.ts @@ -21,14 +21,13 @@ export default class GetValidationKey extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/key_link/validation_keys/{keyId}' - static isBeta = true + static operationId = 'getValidationKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetValidationKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/key-link/get-validation-keys-list.ts b/src/commands/key-link/get-validation-keys-list.ts index 97a1d24..880be08 100644 --- a/src/commands/key-link/get-validation-keys-list.ts +++ b/src/commands/key-link/get-validation-keys-list.ts @@ -34,14 +34,13 @@ export default class GetValidationKeysList extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/key_link/validation_keys' - static isBeta = true + static operationId = 'getValidationKeysList' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetValidationKeysList) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/key-link/set-agent-id.ts b/src/commands/key-link/set-agent-id.ts index 6d111ed..a661103 100644 --- a/src/commands/key-link/set-agent-id.ts +++ b/src/commands/key-link/set-agent-id.ts @@ -25,14 +25,13 @@ export default class SetAgentId extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/key_link/signing_keys/{keyId}/agent_user_id' - static isBeta = true + static operationId = 'setAgentId' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(SetAgentId) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/key-link/update-signing-key.ts b/src/commands/key-link/update-signing-key.ts index 8ed07e5..27140d4 100644 --- a/src/commands/key-link/update-signing-key.ts +++ b/src/commands/key-link/update-signing-key.ts @@ -25,14 +25,13 @@ export default class UpdateSigningKey extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/key_link/signing_keys/{keyId}' - static isBeta = true + static operationId = 'updateSigningKey' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpdateSigningKey) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/keys/get-mpc-keys-list-by-user.ts b/src/commands/keys/get-mpc-keys-list-by-user.ts index 4c0612c..a7a5ac8 100644 --- a/src/commands/keys/get-mpc-keys-list-by-user.ts +++ b/src/commands/keys/get-mpc-keys-list-by-user.ts @@ -21,14 +21,13 @@ export default class GetMpcKeysListByUser extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/keys/mpc/list/{userId}' - static isBeta = true + static operationId = 'getMpcKeysListByUser' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetMpcKeysListByUser) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/keys/get-mpc-keys-list.ts b/src/commands/keys/get-mpc-keys-list.ts index 62196ef..d1b66f6 100644 --- a/src/commands/keys/get-mpc-keys-list.ts +++ b/src/commands/keys/get-mpc-keys-list.ts @@ -17,14 +17,13 @@ export default class GetMpcKeysList extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/keys/mpc/list' - static isBeta = true + static operationId = 'getMpcKeysList' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetMpcKeysList) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/network-connections/check-third-party-routing.ts b/src/commands/network-connections/check-third-party-routing.ts index cb2c51c..18a40d4 100644 --- a/src/commands/network-connections/check-third-party-routing.ts +++ b/src/commands/network-connections/check-third-party-routing.ts @@ -25,6 +25,7 @@ export default class CheckThirdPartyRouting extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_connections/{connectionId}/is_third_party_routing/{assetType}' + static operationId = 'checkThirdPartyRouting' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/create-network-connection.ts b/src/commands/network-connections/create-network-connection.ts index 7ae3145..21f3fa8 100644 --- a/src/commands/network-connections/create-network-connection.ts +++ b/src/commands/network-connections/create-network-connection.ts @@ -20,6 +20,7 @@ export default class CreateNetworkConnection extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/network_connections' + static operationId = 'createNetworkConnection' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/create-network-id.ts b/src/commands/network-connections/create-network-id.ts index fedc4b1..3518ded 100644 --- a/src/commands/network-connections/create-network-id.ts +++ b/src/commands/network-connections/create-network-id.ts @@ -20,6 +20,7 @@ export default class CreateNetworkId extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/network_ids' + static operationId = 'createNetworkId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/delete-network-connection.ts b/src/commands/network-connections/delete-network-connection.ts index 38cc808..943cc7a 100644 --- a/src/commands/network-connections/delete-network-connection.ts +++ b/src/commands/network-connections/delete-network-connection.ts @@ -21,6 +21,7 @@ export default class DeleteNetworkConnection extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/network_connections/{connectionId}' + static operationId = 'deleteNetworkConnection' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/delete-network-id.ts b/src/commands/network-connections/delete-network-id.ts index 117cad0..73b81ac 100644 --- a/src/commands/network-connections/delete-network-id.ts +++ b/src/commands/network-connections/delete-network-id.ts @@ -21,6 +21,7 @@ export default class DeleteNetworkId extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/network_ids/{networkId}' + static operationId = 'deleteNetworkId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/get-network-connections.ts b/src/commands/network-connections/get-network-connections.ts index 2bcce7c..6bfb0dc 100644 --- a/src/commands/network-connections/get-network-connections.ts +++ b/src/commands/network-connections/get-network-connections.ts @@ -17,6 +17,7 @@ export default class GetNetworkConnections extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_connections' + static operationId = 'getNetworkConnections' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/get-network-id.ts b/src/commands/network-connections/get-network-id.ts index e7ba93e..eca241c 100644 --- a/src/commands/network-connections/get-network-id.ts +++ b/src/commands/network-connections/get-network-id.ts @@ -21,6 +21,7 @@ export default class GetNetworkId extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_ids/{networkId}' + static operationId = 'getNetworkId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/get-network-ids.ts b/src/commands/network-connections/get-network-ids.ts index 4db58eb..42decf6 100644 --- a/src/commands/network-connections/get-network-ids.ts +++ b/src/commands/network-connections/get-network-ids.ts @@ -17,6 +17,7 @@ export default class GetNetworkIds extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_ids' + static operationId = 'getNetworkIds' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/get-network.ts b/src/commands/network-connections/get-network.ts index 7391d17..d4d0346 100644 --- a/src/commands/network-connections/get-network.ts +++ b/src/commands/network-connections/get-network.ts @@ -21,6 +21,7 @@ export default class GetNetwork extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_connections/{connectionId}' + static operationId = 'getNetwork' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/get-routing-policy-asset-groups.ts b/src/commands/network-connections/get-routing-policy-asset-groups.ts index 736b319..a9bc941 100644 --- a/src/commands/network-connections/get-routing-policy-asset-groups.ts +++ b/src/commands/network-connections/get-routing-policy-asset-groups.ts @@ -17,6 +17,7 @@ export default class GetRoutingPolicyAssetGroups extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_ids/routing_policy_asset_groups' + static operationId = 'getRoutingPolicyAssetGroups' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/search-network-ids.ts b/src/commands/network-connections/search-network-ids.ts index 5af5f39..4d12e66 100644 --- a/src/commands/network-connections/search-network-ids.ts +++ b/src/commands/network-connections/search-network-ids.ts @@ -36,6 +36,7 @@ export default class SearchNetworkIds extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/network_ids/search' + static operationId = 'searchNetworkIds' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/set-network-id-discoverability.ts b/src/commands/network-connections/set-network-id-discoverability.ts index dc05a50..22785b7 100644 --- a/src/commands/network-connections/set-network-id-discoverability.ts +++ b/src/commands/network-connections/set-network-id-discoverability.ts @@ -25,6 +25,7 @@ export default class SetNetworkIdDiscoverability extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/network_ids/{networkId}/set_discoverability' + static operationId = 'setNetworkIdDiscoverability' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/set-network-id-name.ts b/src/commands/network-connections/set-network-id-name.ts index 35a2c37..7baf4f5 100644 --- a/src/commands/network-connections/set-network-id-name.ts +++ b/src/commands/network-connections/set-network-id-name.ts @@ -25,6 +25,7 @@ export default class SetNetworkIdName extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/network_ids/{networkId}/set_name' + static operationId = 'setNetworkIdName' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/set-network-id-routing-policy.ts b/src/commands/network-connections/set-network-id-routing-policy.ts index 27aa5e0..1bc62dc 100644 --- a/src/commands/network-connections/set-network-id-routing-policy.ts +++ b/src/commands/network-connections/set-network-id-routing-policy.ts @@ -24,6 +24,7 @@ export default class SetNetworkIdRoutingPolicy extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/network_ids/{networkId}/set_routing_policy' + static operationId = 'setNetworkIdRoutingPolicy' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/network-connections/set-routing-policy.ts b/src/commands/network-connections/set-routing-policy.ts index bb1806c..a2fd223 100644 --- a/src/commands/network-connections/set-routing-policy.ts +++ b/src/commands/network-connections/set-routing-policy.ts @@ -24,6 +24,7 @@ export default class SetRoutingPolicy extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/network_connections/{connectionId}/set_routing_policy' + static operationId = 'setRoutingPolicy' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/get-nf-ts.ts b/src/commands/nfts/get-nf-ts.ts index ded37b6..2dd94ba 100644 --- a/src/commands/nfts/get-nf-ts.ts +++ b/src/commands/nfts/get-nf-ts.ts @@ -35,6 +35,7 @@ export default class GetNFTs extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/nfts/tokens' + static operationId = 'getNFTs' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/get-nft.ts b/src/commands/nfts/get-nft.ts index 6e5ff9f..5556a34 100644 --- a/src/commands/nfts/get-nft.ts +++ b/src/commands/nfts/get-nft.ts @@ -21,6 +21,7 @@ export default class GetNFT extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/nfts/tokens/{id}' + static operationId = 'getNFT' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/get-ownership-tokens.ts b/src/commands/nfts/get-ownership-tokens.ts index 320406c..46d73a0 100644 --- a/src/commands/nfts/get-ownership-tokens.ts +++ b/src/commands/nfts/get-ownership-tokens.ts @@ -67,6 +67,7 @@ export default class GetOwnershipTokens extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/nfts/ownership/tokens' + static operationId = 'getOwnershipTokens' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/list-owned-collections.ts b/src/commands/nfts/list-owned-collections.ts index 1f4f280..38ce7bd 100644 --- a/src/commands/nfts/list-owned-collections.ts +++ b/src/commands/nfts/list-owned-collections.ts @@ -47,6 +47,7 @@ export default class ListOwnedCollections extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/nfts/ownership/collections' + static operationId = 'listOwnedCollections' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/list-owned-tokens.ts b/src/commands/nfts/list-owned-tokens.ts index d40be1d..715699b 100644 --- a/src/commands/nfts/list-owned-tokens.ts +++ b/src/commands/nfts/list-owned-tokens.ts @@ -51,6 +51,7 @@ export default class ListOwnedTokens extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/nfts/ownership/assets' + static operationId = 'listOwnedTokens' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/refresh-nft-metadata.ts b/src/commands/nfts/refresh-nft-metadata.ts index 0b586b6..3468e1c 100644 --- a/src/commands/nfts/refresh-nft-metadata.ts +++ b/src/commands/nfts/refresh-nft-metadata.ts @@ -21,6 +21,7 @@ export default class RefreshNFTMetadata extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/nfts/tokens/{id}' + static operationId = 'refreshNFTMetadata' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/update-ownership-tokens.ts b/src/commands/nfts/update-ownership-tokens.ts index 04a8ea8..9b17f2b 100644 --- a/src/commands/nfts/update-ownership-tokens.ts +++ b/src/commands/nfts/update-ownership-tokens.ts @@ -26,6 +26,7 @@ export default class UpdateOwnershipTokens extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/nfts/ownership/tokens' + static operationId = 'updateOwnershipTokens' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/update-token-ownership-status.ts b/src/commands/nfts/update-token-ownership-status.ts index d457745..4da9ae1 100644 --- a/src/commands/nfts/update-token-ownership-status.ts +++ b/src/commands/nfts/update-token-ownership-status.ts @@ -25,6 +25,7 @@ export default class UpdateTokenOwnershipStatus extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/nfts/ownership/tokens/{id}/status' + static operationId = 'updateTokenOwnershipStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/update-tokens-ownership-spam.ts b/src/commands/nfts/update-tokens-ownership-spam.ts index fdc443c..4e9d78e 100644 --- a/src/commands/nfts/update-tokens-ownership-spam.ts +++ b/src/commands/nfts/update-tokens-ownership-spam.ts @@ -21,6 +21,7 @@ export default class UpdateTokensOwnershipSpam extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/nfts/ownership/tokens/spam' + static operationId = 'updateTokensOwnershipSpam' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/nfts/update-tokens-ownership-status.ts b/src/commands/nfts/update-tokens-ownership-status.ts index 7c7d497..c23f68b 100644 --- a/src/commands/nfts/update-tokens-ownership-status.ts +++ b/src/commands/nfts/update-tokens-ownership-status.ts @@ -21,6 +21,7 @@ export default class UpdateTokensOwnershipStatus extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/nfts/ownership/tokens/status' + static operationId = 'updateTokensOwnershipStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/off-exchanges/add-off-exchange.ts b/src/commands/off-exchanges/add-off-exchange.ts index ea37078..189f054 100644 --- a/src/commands/off-exchanges/add-off-exchange.ts +++ b/src/commands/off-exchanges/add-off-exchange.ts @@ -20,6 +20,7 @@ export default class AddOffExchange extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/off_exchange/add' + static operationId = 'addOffExchange' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/off-exchanges/get-off-exchange-collateral-accounts.ts b/src/commands/off-exchanges/get-off-exchange-collateral-accounts.ts index 0e19676..582f9a8 100644 --- a/src/commands/off-exchanges/get-off-exchange-collateral-accounts.ts +++ b/src/commands/off-exchanges/get-off-exchange-collateral-accounts.ts @@ -21,6 +21,7 @@ export default class GetOffExchangeCollateralAccounts extends FireblocksBaseComm static method = 'GET' static path = '/v1/off_exchange/collateral_accounts/{mainExchangeAccountId}' + static operationId = 'getOffExchangeCollateralAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/off-exchanges/get-off-exchange-settlement-transactions.ts b/src/commands/off-exchanges/get-off-exchange-settlement-transactions.ts index a2dbe11..9918c45 100644 --- a/src/commands/off-exchanges/get-off-exchange-settlement-transactions.ts +++ b/src/commands/off-exchanges/get-off-exchange-settlement-transactions.ts @@ -21,6 +21,7 @@ export default class GetOffExchangeSettlementTransactions extends FireblocksBase static method = 'GET' static path = '/v1/off_exchange/settlements/transactions' + static operationId = 'getOffExchangeSettlementTransactions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/off-exchanges/remove-off-exchange.ts b/src/commands/off-exchanges/remove-off-exchange.ts index dbc5c1e..6149a85 100644 --- a/src/commands/off-exchanges/remove-off-exchange.ts +++ b/src/commands/off-exchanges/remove-off-exchange.ts @@ -20,6 +20,7 @@ export default class RemoveOffExchange extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/off_exchange/remove' + static operationId = 'removeOffExchange' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/off-exchanges/settle-off-exchange-trades.ts b/src/commands/off-exchanges/settle-off-exchange-trades.ts index 9ea6c24..974c8b0 100644 --- a/src/commands/off-exchanges/settle-off-exchange-trades.ts +++ b/src/commands/off-exchanges/settle-off-exchange-trades.ts @@ -20,6 +20,7 @@ export default class SettleOffExchangeTrades extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/off_exchange/settlements/trader' + static operationId = 'settleOffExchangeTrades' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-access-registry-current-state.ts b/src/commands/onchain-data/get-access-registry-current-state.ts index 2be4175..6f4c6bc 100644 --- a/src/commands/onchain-data/get-access-registry-current-state.ts +++ b/src/commands/onchain-data/get-access-registry-current-state.ts @@ -41,6 +41,7 @@ export default class GetAccessRegistryCurrentState extends FireblocksBaseCommand static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/access_registry_address/{accessRegistryAddress}/list' + static operationId = 'getAccessRegistryCurrentState' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-access-registry-summary.ts b/src/commands/onchain-data/get-access-registry-summary.ts index 2a2e9f9..0944fc5 100644 --- a/src/commands/onchain-data/get-access-registry-summary.ts +++ b/src/commands/onchain-data/get-access-registry-summary.ts @@ -25,6 +25,7 @@ export default class GetAccessRegistrySummary extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/access_registry_address/{accessRegistryAddress}/summary' + static operationId = 'getAccessRegistrySummary' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-active-roles-for-contract.ts b/src/commands/onchain-data/get-active-roles-for-contract.ts index c0a6be7..f888e75 100644 --- a/src/commands/onchain-data/get-active-roles-for-contract.ts +++ b/src/commands/onchain-data/get-active-roles-for-contract.ts @@ -25,6 +25,7 @@ export default class GetActiveRolesForContract extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/roles' + static operationId = 'getActiveRolesForContract' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-contract-balance-history.ts b/src/commands/onchain-data/get-contract-balance-history.ts index b651ae7..1e64fdb 100644 --- a/src/commands/onchain-data/get-contract-balance-history.ts +++ b/src/commands/onchain-data/get-contract-balance-history.ts @@ -56,6 +56,7 @@ export default class GetContractBalanceHistory extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/account_address/{accountAddress}/balance_history' + static operationId = 'getContractBalanceHistory' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-contract-balances-summary.ts b/src/commands/onchain-data/get-contract-balances-summary.ts index 612c1d9..821a285 100644 --- a/src/commands/onchain-data/get-contract-balances-summary.ts +++ b/src/commands/onchain-data/get-contract-balances-summary.ts @@ -25,6 +25,7 @@ export default class GetContractBalancesSummary extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/summary' + static operationId = 'getContractBalancesSummary' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-contract-total-supply.ts b/src/commands/onchain-data/get-contract-total-supply.ts index 2268f4c..0310873 100644 --- a/src/commands/onchain-data/get-contract-total-supply.ts +++ b/src/commands/onchain-data/get-contract-total-supply.ts @@ -52,6 +52,7 @@ export default class GetContractTotalSupply extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/total_supply' + static operationId = 'getContractTotalSupply' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-latest-balances-for-contract.ts b/src/commands/onchain-data/get-latest-balances-for-contract.ts index 1a3fe10..5123d61 100644 --- a/src/commands/onchain-data/get-latest-balances-for-contract.ts +++ b/src/commands/onchain-data/get-latest-balances-for-contract.ts @@ -44,6 +44,7 @@ export default class GetLatestBalancesForContract extends FireblocksBaseCommand static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/balances' + static operationId = 'getLatestBalancesForContract' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/onchain-data/get-onchain-transactions.ts b/src/commands/onchain-data/get-onchain-transactions.ts index d9f4c9a..d9b284f 100644 --- a/src/commands/onchain-data/get-onchain-transactions.ts +++ b/src/commands/onchain-data/get-onchain-transactions.ts @@ -47,6 +47,7 @@ export default class GetOnchainTransactions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/onchain_data/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/transactions' + static operationId = 'getOnchainTransactions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/ota/get-ota-status.ts b/src/commands/ota/get-ota-status.ts index 5a0b8fb..4c7a9d4 100644 --- a/src/commands/ota/get-ota-status.ts +++ b/src/commands/ota/get-ota-status.ts @@ -13,13 +13,12 @@ export default class GetOtaStatus extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/ota' - static isBeta = true + static operationId = 'getOtaStatus' + static isBeta = false async run(): Promise { const {flags} = await this.parse(GetOtaStatus) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/ota/set-ota-status.ts b/src/commands/ota/set-ota-status.ts index ee7e2d9..fe476b9 100644 --- a/src/commands/ota/set-ota-status.ts +++ b/src/commands/ota/set-ota-status.ts @@ -21,14 +21,13 @@ export default class SetOtaStatus extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/management/ota' - static isBeta = true + static operationId = 'setOtaStatus' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(SetOtaStatus) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/payments-flows/create-flow-configuration.ts b/src/commands/payments-flows/create-flow-configuration.ts index 272f151..e3e6f1d 100644 --- a/src/commands/payments-flows/create-flow-configuration.ts +++ b/src/commands/payments-flows/create-flow-configuration.ts @@ -16,6 +16,7 @@ export default class CreateFlowConfiguration extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/payments/workflow_config' + static operationId = 'createFlowConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-flows/create-flow-execution.ts b/src/commands/payments-flows/create-flow-execution.ts index 50e4699..0f25891 100644 --- a/src/commands/payments-flows/create-flow-execution.ts +++ b/src/commands/payments-flows/create-flow-execution.ts @@ -16,6 +16,7 @@ export default class CreateFlowExecution extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/payments/workflow_execution' + static operationId = 'createFlowExecution' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-flows/delete-flow-configuration.ts b/src/commands/payments-flows/delete-flow-configuration.ts index 5246a97..66779cf 100644 --- a/src/commands/payments-flows/delete-flow-configuration.ts +++ b/src/commands/payments-flows/delete-flow-configuration.ts @@ -17,6 +17,7 @@ export default class DeleteFlowConfiguration extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/payments/workflow_config/{configId}' + static operationId = 'deleteFlowConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-flows/get-flow-configuration.ts b/src/commands/payments-flows/get-flow-configuration.ts index 49aeb50..9db6269 100644 --- a/src/commands/payments-flows/get-flow-configuration.ts +++ b/src/commands/payments-flows/get-flow-configuration.ts @@ -17,6 +17,7 @@ export default class GetFlowConfiguration extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/payments/workflow_config/{configId}' + static operationId = 'getFlowConfiguration' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-flows/get-flow-execution.ts b/src/commands/payments-flows/get-flow-execution.ts index 6682cf4..e76a7c6 100644 --- a/src/commands/payments-flows/get-flow-execution.ts +++ b/src/commands/payments-flows/get-flow-execution.ts @@ -17,6 +17,7 @@ export default class GetFlowExecution extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/payments/workflow_execution/{workflowExecutionId}' + static operationId = 'getFlowExecution' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-flows/launch-flow-execution.ts b/src/commands/payments-flows/launch-flow-execution.ts index c3e7825..de64c83 100644 --- a/src/commands/payments-flows/launch-flow-execution.ts +++ b/src/commands/payments-flows/launch-flow-execution.ts @@ -17,6 +17,7 @@ export default class LaunchFlowExecution extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/payments/workflow_execution/{workflowExecutionId}/actions/execute' + static operationId = 'launchFlowExecution' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-payout/create-payout.ts b/src/commands/payments-payout/create-payout.ts index 4ae8071..4e24544 100644 --- a/src/commands/payments-payout/create-payout.ts +++ b/src/commands/payments-payout/create-payout.ts @@ -16,6 +16,7 @@ export default class CreatePayout extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/payments/payout' + static operationId = 'createPayout' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-payout/execute-payout-action.ts b/src/commands/payments-payout/execute-payout-action.ts index 27bc13c..36b2d81 100644 --- a/src/commands/payments-payout/execute-payout-action.ts +++ b/src/commands/payments-payout/execute-payout-action.ts @@ -17,6 +17,7 @@ export default class ExecutePayoutAction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/payments/payout/{payoutId}/actions/execute' + static operationId = 'executePayoutAction' static isBeta = false async run(): Promise { diff --git a/src/commands/payments-payout/get-payout.ts b/src/commands/payments-payout/get-payout.ts index 142b49f..c938718 100644 --- a/src/commands/payments-payout/get-payout.ts +++ b/src/commands/payments-payout/get-payout.ts @@ -17,6 +17,7 @@ export default class GetPayout extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/payments/payout/{payoutId}' + static operationId = 'getPayout' static isBeta = false async run(): Promise { diff --git a/src/commands/policy-editor-v2/get-active-policy.ts b/src/commands/policy-editor-v2/get-active-policy.ts index 002bb2c..6000992 100644 --- a/src/commands/policy-editor-v2/get-active-policy.ts +++ b/src/commands/policy-editor-v2/get-active-policy.ts @@ -21,6 +21,7 @@ export default class GetActivePolicy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/policy/active_policy' + static operationId = 'getActivePolicy' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/policy-editor-v2/get-draft.ts b/src/commands/policy-editor-v2/get-draft.ts index 2acd3d4..3b92b47 100644 --- a/src/commands/policy-editor-v2/get-draft.ts +++ b/src/commands/policy-editor-v2/get-draft.ts @@ -21,6 +21,7 @@ export default class GetDraft extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/policy/draft' + static operationId = 'getDraft' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/policy-editor-v2/get-policy-rule-quota.ts b/src/commands/policy-editor-v2/get-policy-rule-quota.ts index 5e10a09..8d09b9f 100644 --- a/src/commands/policy-editor-v2/get-policy-rule-quota.ts +++ b/src/commands/policy-editor-v2/get-policy-rule-quota.ts @@ -21,14 +21,13 @@ export default class GetPolicyRuleQuota extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/policy/rules/quota' - static isBeta = true + static operationId = 'getPolicyRuleQuota' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetPolicyRuleQuota) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/policy-editor-v2/publish-draft.ts b/src/commands/policy-editor-v2/publish-draft.ts index 8098046..1f5177a 100644 --- a/src/commands/policy-editor-v2/publish-draft.ts +++ b/src/commands/policy-editor-v2/publish-draft.ts @@ -21,6 +21,7 @@ export default class PublishDraft extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/policy/draft' + static operationId = 'publishDraft' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/policy-editor-v2/update-draft.ts b/src/commands/policy-editor-v2/update-draft.ts index 7dfc6a2..d2bdc03 100644 --- a/src/commands/policy-editor-v2/update-draft.ts +++ b/src/commands/policy-editor-v2/update-draft.ts @@ -21,6 +21,7 @@ export default class UpdateDraft extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/policy/draft' + static operationId = 'updateDraft' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/policy-editor/get-active-policy-legacy.ts b/src/commands/policy-editor/get-active-policy-legacy.ts index 5f15660..7b6d157 100644 --- a/src/commands/policy-editor/get-active-policy-legacy.ts +++ b/src/commands/policy-editor/get-active-policy-legacy.ts @@ -17,14 +17,13 @@ export default class GetActivePolicyLegacy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tap/active_policy' - static isBeta = true + static operationId = 'getActivePolicyLegacy' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetActivePolicyLegacy) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/policy-editor/get-draft-legacy.ts b/src/commands/policy-editor/get-draft-legacy.ts index 41d3e33..ad0e111 100644 --- a/src/commands/policy-editor/get-draft-legacy.ts +++ b/src/commands/policy-editor/get-draft-legacy.ts @@ -17,14 +17,13 @@ export default class GetDraftLegacy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tap/draft' - static isBeta = true + static operationId = 'getDraftLegacy' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetDraftLegacy) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/policy-editor/publish-draft-legacy.ts b/src/commands/policy-editor/publish-draft-legacy.ts index 91f19ca..fa217a1 100644 --- a/src/commands/policy-editor/publish-draft-legacy.ts +++ b/src/commands/policy-editor/publish-draft-legacy.ts @@ -21,14 +21,13 @@ export default class PublishDraftLegacy extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tap/draft' - static isBeta = true + static operationId = 'publishDraftLegacy' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(PublishDraftLegacy) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/policy-editor/publish-policy-rules.ts b/src/commands/policy-editor/publish-policy-rules.ts index 0ba0f35..0ee482a 100644 --- a/src/commands/policy-editor/publish-policy-rules.ts +++ b/src/commands/policy-editor/publish-policy-rules.ts @@ -21,14 +21,13 @@ export default class PublishPolicyRules extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tap/publish' - static isBeta = true + static operationId = 'publishPolicyRules' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(PublishPolicyRules) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/policy-editor/update-draft-legacy.ts b/src/commands/policy-editor/update-draft-legacy.ts index 366d53d..901a064 100644 --- a/src/commands/policy-editor/update-draft-legacy.ts +++ b/src/commands/policy-editor/update-draft-legacy.ts @@ -21,14 +21,13 @@ export default class UpdateDraftLegacy extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/tap/draft' - static isBeta = true + static operationId = 'updateDraftLegacy' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpdateDraftLegacy) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/reports/create-report.ts b/src/commands/reports/create-report.ts index 90b49b9..bb7d2a0 100644 --- a/src/commands/reports/create-report.ts +++ b/src/commands/reports/create-report.ts @@ -21,14 +21,13 @@ export default class CreateReport extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/reports' - static isBeta = true + static operationId = 'createReport' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateReport) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/reports/get-report.ts b/src/commands/reports/get-report.ts index 013fe38..dcec397 100644 --- a/src/commands/reports/get-report.ts +++ b/src/commands/reports/get-report.ts @@ -21,14 +21,13 @@ export default class GetReport extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/reports/{reportId}' - static isBeta = true + static operationId = 'getReport' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetReport) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/reports/list-reports.ts b/src/commands/reports/list-reports.ts index 50e7d02..a6fd116 100644 --- a/src/commands/reports/list-reports.ts +++ b/src/commands/reports/list-reports.ts @@ -40,14 +40,13 @@ export default class ListReports extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/reports' - static isBeta = true + static operationId = 'listReports' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(ListReports) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/reset-device/reset-device.ts b/src/commands/reset-device/reset-device.ts index dd1b168..9c6dd18 100644 --- a/src/commands/reset-device/reset-device.ts +++ b/src/commands/reset-device/reset-device.ts @@ -21,6 +21,7 @@ export default class ResetDevice extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/management/users/{id}/reset_device' + static operationId = 'resetDevice' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/security-posture-management/get-security-finding-by-id.ts b/src/commands/security-posture-management/get-security-finding-by-id.ts index 4cffd72..76e5f7a 100644 --- a/src/commands/security-posture-management/get-security-finding-by-id.ts +++ b/src/commands/security-posture-management/get-security-finding-by-id.ts @@ -21,6 +21,7 @@ export default class GetSecurityFindingById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/security/fspm/findings/{id}' + static operationId = 'getSecurityFindingById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/security-posture-management/get-security-findings.ts b/src/commands/security-posture-management/get-security-findings.ts index b1b9b22..9c9ab99 100644 --- a/src/commands/security-posture-management/get-security-findings.ts +++ b/src/commands/security-posture-management/get-security-findings.ts @@ -36,6 +36,7 @@ export default class GetSecurityFindings extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/security/fspm/findings' + static operationId = 'getSecurityFindings' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/security-posture-management/update-security-finding-by-id.ts b/src/commands/security-posture-management/update-security-finding-by-id.ts index d22b045..d2170ea 100644 --- a/src/commands/security-posture-management/update-security-finding-by-id.ts +++ b/src/commands/security-posture-management/update-security-finding-by-id.ts @@ -25,6 +25,7 @@ export default class UpdateSecurityFindingById extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/security/fspm/findings/{id}' + static operationId = 'updateSecurityFindingById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/smart-transfer/approve-dv-p-ticket-term.ts b/src/commands/smart-transfer/approve-dv-p-ticket-term.ts index 2ad075d..1f2655c 100644 --- a/src/commands/smart-transfer/approve-dv-p-ticket-term.ts +++ b/src/commands/smart-transfer/approve-dv-p-ticket-term.ts @@ -25,6 +25,7 @@ export default class ApproveDvPTicketTerm extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart_transfers/{ticketId}/terms/{termId}/dvp/approve' + static operationId = 'approveDvPTicketTerm' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/cancel-ticket.ts b/src/commands/smart-transfer/cancel-ticket.ts index c4877e0..c4cc1fa 100644 --- a/src/commands/smart-transfer/cancel-ticket.ts +++ b/src/commands/smart-transfer/cancel-ticket.ts @@ -17,6 +17,7 @@ export default class CancelTicket extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/cancel' + static operationId = 'cancelTicket' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/create-ticket-term.ts b/src/commands/smart-transfer/create-ticket-term.ts index 6bfe60b..3d88a3d 100644 --- a/src/commands/smart-transfer/create-ticket-term.ts +++ b/src/commands/smart-transfer/create-ticket-term.ts @@ -21,6 +21,7 @@ export default class CreateTicketTerm extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/smart-transfers/{ticketId}/terms' + static operationId = 'createTicketTerm' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/create-ticket.ts b/src/commands/smart-transfer/create-ticket.ts index b87e90f..8c53f9b 100644 --- a/src/commands/smart-transfer/create-ticket.ts +++ b/src/commands/smart-transfer/create-ticket.ts @@ -17,6 +17,7 @@ export default class CreateTicket extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/smart-transfers' + static operationId = 'createTicket' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/find-ticket-by-id.ts b/src/commands/smart-transfer/find-ticket-by-id.ts index cbc98d1..f7b8aed 100644 --- a/src/commands/smart-transfer/find-ticket-by-id.ts +++ b/src/commands/smart-transfer/find-ticket-by-id.ts @@ -17,6 +17,7 @@ export default class FindTicketById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/smart-transfers/{ticketId}' + static operationId = 'findTicketById' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/find-ticket-term-by-id.ts b/src/commands/smart-transfer/find-ticket-term-by-id.ts index c426e96..5abc8f1 100644 --- a/src/commands/smart-transfer/find-ticket-term-by-id.ts +++ b/src/commands/smart-transfer/find-ticket-term-by-id.ts @@ -21,6 +21,7 @@ export default class FindTicketTermById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/smart-transfers/{ticketId}/terms/{termId}' + static operationId = 'findTicketTermById' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/fulfill-ticket.ts b/src/commands/smart-transfer/fulfill-ticket.ts index b4dbe81..fad0d3f 100644 --- a/src/commands/smart-transfer/fulfill-ticket.ts +++ b/src/commands/smart-transfer/fulfill-ticket.ts @@ -17,6 +17,7 @@ export default class FulfillTicket extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/fulfill' + static operationId = 'fulfillTicket' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/fund-dvp-ticket.ts b/src/commands/smart-transfer/fund-dvp-ticket.ts index cdde2f1..8b0b95d 100644 --- a/src/commands/smart-transfer/fund-dvp-ticket.ts +++ b/src/commands/smart-transfer/fund-dvp-ticket.ts @@ -21,6 +21,7 @@ export default class FundDvpTicket extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart_transfers/{ticketId}/dvp/fund' + static operationId = 'fundDvpTicket' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/fund-ticket-term.ts b/src/commands/smart-transfer/fund-ticket-term.ts index 6a4064a..dc59991 100644 --- a/src/commands/smart-transfer/fund-ticket-term.ts +++ b/src/commands/smart-transfer/fund-ticket-term.ts @@ -25,6 +25,7 @@ export default class FundTicketTerm extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/terms/{termId}/fund' + static operationId = 'fundTicketTerm' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/get-smart-transfer-statistic.ts b/src/commands/smart-transfer/get-smart-transfer-statistic.ts index ef64b94..cc5043c 100644 --- a/src/commands/smart-transfer/get-smart-transfer-statistic.ts +++ b/src/commands/smart-transfer/get-smart-transfer-statistic.ts @@ -17,6 +17,7 @@ export default class GetSmartTransferStatistic extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/smart_transfers/statistic' + static operationId = 'getSmartTransferStatistic' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/smart-transfer/get-smart-transfer-user-groups.ts b/src/commands/smart-transfer/get-smart-transfer-user-groups.ts index 06609e1..a81785e 100644 --- a/src/commands/smart-transfer/get-smart-transfer-user-groups.ts +++ b/src/commands/smart-transfer/get-smart-transfer-user-groups.ts @@ -13,6 +13,7 @@ export default class GetSmartTransferUserGroups extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/smart-transfers/settings/user-groups' + static operationId = 'getSmartTransferUserGroups' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/manually-fund-ticket-term.ts b/src/commands/smart-transfer/manually-fund-ticket-term.ts index 54e5971..d2f64af 100644 --- a/src/commands/smart-transfer/manually-fund-ticket-term.ts +++ b/src/commands/smart-transfer/manually-fund-ticket-term.ts @@ -25,6 +25,7 @@ export default class ManuallyFundTicketTerm extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/terms/{termId}/manually-fund' + static operationId = 'manuallyFundTicketTerm' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/remove-ticket-term.ts b/src/commands/smart-transfer/remove-ticket-term.ts index b1d75f6..4eace88 100644 --- a/src/commands/smart-transfer/remove-ticket-term.ts +++ b/src/commands/smart-transfer/remove-ticket-term.ts @@ -21,6 +21,7 @@ export default class RemoveTicketTerm extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/smart-transfers/{ticketId}/terms/{termId}' + static operationId = 'removeTicketTerm' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/search-tickets.ts b/src/commands/smart-transfer/search-tickets.ts index e56c2fc..8bb795a 100644 --- a/src/commands/smart-transfer/search-tickets.ts +++ b/src/commands/smart-transfer/search-tickets.ts @@ -55,6 +55,7 @@ export default class SearchTickets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/smart-transfers' + static operationId = 'searchTickets' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/set-external-ref-id.ts b/src/commands/smart-transfer/set-external-ref-id.ts index 87890b6..f6b2725 100644 --- a/src/commands/smart-transfer/set-external-ref-id.ts +++ b/src/commands/smart-transfer/set-external-ref-id.ts @@ -21,6 +21,7 @@ export default class SetExternalRefId extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/external-id' + static operationId = 'setExternalRefId' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/set-ticket-expiration.ts b/src/commands/smart-transfer/set-ticket-expiration.ts index 1de2eb7..28a08e3 100644 --- a/src/commands/smart-transfer/set-ticket-expiration.ts +++ b/src/commands/smart-transfer/set-ticket-expiration.ts @@ -21,6 +21,7 @@ export default class SetTicketExpiration extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/expires-in' + static operationId = 'setTicketExpiration' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/set-user-groups.ts b/src/commands/smart-transfer/set-user-groups.ts index 1c61fa0..d1f5d15 100644 --- a/src/commands/smart-transfer/set-user-groups.ts +++ b/src/commands/smart-transfer/set-user-groups.ts @@ -17,6 +17,7 @@ export default class SetUserGroups extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/smart-transfers/settings/user-groups' + static operationId = 'setUserGroups' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/submit-ticket.ts b/src/commands/smart-transfer/submit-ticket.ts index 11d7880..1023e19 100644 --- a/src/commands/smart-transfer/submit-ticket.ts +++ b/src/commands/smart-transfer/submit-ticket.ts @@ -21,6 +21,7 @@ export default class SubmitTicket extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/submit' + static operationId = 'submitTicket' static isBeta = false async run(): Promise { diff --git a/src/commands/smart-transfer/update-ticket-term.ts b/src/commands/smart-transfer/update-ticket-term.ts index 331b2fd..13ada94 100644 --- a/src/commands/smart-transfer/update-ticket-term.ts +++ b/src/commands/smart-transfer/update-ticket-term.ts @@ -25,6 +25,7 @@ export default class UpdateTicketTerm extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/smart-transfers/{ticketId}/terms/{termId}' + static operationId = 'updateTicketTerm' static isBeta = false async run(): Promise { diff --git a/src/commands/staking/approve-terms-of-service-by-provider-id.ts b/src/commands/staking/approve-terms-of-service-by-provider-id.ts index c9c0950..7f04297 100644 --- a/src/commands/staking/approve-terms-of-service-by-provider-id.ts +++ b/src/commands/staking/approve-terms-of-service-by-provider-id.ts @@ -21,6 +21,7 @@ export default class ApproveTermsOfServiceByProviderId extends FireblocksBaseCom static method = 'POST' static path = '/v1/staking/providers/{providerId}/approveTermsOfService' + static operationId = 'approveTermsOfServiceByProviderId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/claim-rewards.ts b/src/commands/staking/claim-rewards.ts index e01b34c..fb2bd47 100644 --- a/src/commands/staking/claim-rewards.ts +++ b/src/commands/staking/claim-rewards.ts @@ -26,6 +26,7 @@ export default class ClaimRewards extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/claim_rewards' + static operationId = 'claimRewards' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/consolidate.ts b/src/commands/staking/consolidate.ts index b15a698..2f2cc78 100644 --- a/src/commands/staking/consolidate.ts +++ b/src/commands/staking/consolidate.ts @@ -26,6 +26,7 @@ export default class Consolidate extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/consolidate' + static operationId = 'consolidate' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-all-delegations.ts b/src/commands/staking/get-all-delegations.ts index 428091a..3325360 100644 --- a/src/commands/staking/get-all-delegations.ts +++ b/src/commands/staking/get-all-delegations.ts @@ -23,6 +23,7 @@ export default class GetAllDelegations extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/positions' + static operationId = 'getAllDelegations' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-chain-info.ts b/src/commands/staking/get-chain-info.ts index 2121652..b56edc9 100644 --- a/src/commands/staking/get-chain-info.ts +++ b/src/commands/staking/get-chain-info.ts @@ -21,6 +21,7 @@ export default class GetChainInfo extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/chains/{chainDescriptor}/chainInfo' + static operationId = 'getChainInfo' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-chains.ts b/src/commands/staking/get-chains.ts index 0b67d6f..5dea47c 100644 --- a/src/commands/staking/get-chains.ts +++ b/src/commands/staking/get-chains.ts @@ -17,6 +17,7 @@ export default class GetChains extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/chains' + static operationId = 'getChains' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-delegation-by-id.ts b/src/commands/staking/get-delegation-by-id.ts index 10ed022..14c7fa5 100644 --- a/src/commands/staking/get-delegation-by-id.ts +++ b/src/commands/staking/get-delegation-by-id.ts @@ -21,6 +21,7 @@ export default class GetDelegationById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/positions/{id}' + static operationId = 'getDelegationById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-position-related-transactions.ts b/src/commands/staking/get-position-related-transactions.ts index 52ea4f7..46217f0 100644 --- a/src/commands/staking/get-position-related-transactions.ts +++ b/src/commands/staking/get-position-related-transactions.ts @@ -33,6 +33,7 @@ export default class GetPositionRelatedTransactions extends FireblocksBaseComman static method = 'GET' static path = '/v1/staking/positions/{id}/related_transactions' + static operationId = 'getPositionRelatedTransactions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-positions.ts b/src/commands/staking/get-positions.ts index 38ac5ec..8f5fbfd 100644 --- a/src/commands/staking/get-positions.ts +++ b/src/commands/staking/get-positions.ts @@ -36,6 +36,7 @@ export default class GetPositions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/positions_paginated' + static operationId = 'getPositions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-providers.ts b/src/commands/staking/get-providers.ts index 3c0bb4d..4b846c5 100644 --- a/src/commands/staking/get-providers.ts +++ b/src/commands/staking/get-providers.ts @@ -17,6 +17,7 @@ export default class GetProviders extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/providers' + static operationId = 'getProviders' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-summary-by-vault.ts b/src/commands/staking/get-summary-by-vault.ts index f19522c..d35e46a 100644 --- a/src/commands/staking/get-summary-by-vault.ts +++ b/src/commands/staking/get-summary-by-vault.ts @@ -17,6 +17,7 @@ export default class GetSummaryByVault extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/positions/summary/vaults' + static operationId = 'getSummaryByVault' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/get-summary.ts b/src/commands/staking/get-summary.ts index 7405c36..378bef7 100644 --- a/src/commands/staking/get-summary.ts +++ b/src/commands/staking/get-summary.ts @@ -17,6 +17,7 @@ export default class GetSummary extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/staking/positions/summary' + static operationId = 'getSummary' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/merge-stake-accounts.ts b/src/commands/staking/merge-stake-accounts.ts index 745a274..ccc49df 100644 --- a/src/commands/staking/merge-stake-accounts.ts +++ b/src/commands/staking/merge-stake-accounts.ts @@ -26,6 +26,7 @@ export default class MergeStakeAccounts extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/merge' + static operationId = 'mergeStakeAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/split.ts b/src/commands/staking/split.ts index 3eb7f11..27eb7f1 100644 --- a/src/commands/staking/split.ts +++ b/src/commands/staking/split.ts @@ -26,6 +26,7 @@ export default class Split extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/split' + static operationId = 'split' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/stake.ts b/src/commands/staking/stake.ts index 5c4d5e7..a14cf9e 100644 --- a/src/commands/staking/stake.ts +++ b/src/commands/staking/stake.ts @@ -25,6 +25,7 @@ export default class Stake extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/stake' + static operationId = 'stake' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/unstake.ts b/src/commands/staking/unstake.ts index 5c29340..db924bd 100644 --- a/src/commands/staking/unstake.ts +++ b/src/commands/staking/unstake.ts @@ -25,6 +25,7 @@ export default class Unstake extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/unstake' + static operationId = 'unstake' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/staking/withdraw.ts b/src/commands/staking/withdraw.ts index e60a592..257f427 100644 --- a/src/commands/staking/withdraw.ts +++ b/src/commands/staking/withdraw.ts @@ -25,6 +25,7 @@ export default class Withdraw extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/staking/chains/{chainDescriptor}/withdraw' + static operationId = 'withdraw' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tags/create-tag.ts b/src/commands/tags/create-tag.ts index 2a98865..3b3b0bb 100644 --- a/src/commands/tags/create-tag.ts +++ b/src/commands/tags/create-tag.ts @@ -21,6 +21,7 @@ export default class CreateTag extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tags' + static operationId = 'createTag' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tags/delete-tag.ts b/src/commands/tags/delete-tag.ts index 326fe75..1e1b77b 100644 --- a/src/commands/tags/delete-tag.ts +++ b/src/commands/tags/delete-tag.ts @@ -21,6 +21,7 @@ export default class DeleteTag extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/tags/{tagId}' + static operationId = 'deleteTag' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tags/get-approval-request.ts b/src/commands/tags/get-approval-request.ts index 287327f..43874c7 100644 --- a/src/commands/tags/get-approval-request.ts +++ b/src/commands/tags/get-approval-request.ts @@ -21,6 +21,7 @@ export default class GetApprovalRequest extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tags/approval_requests/{id}' + static operationId = 'getApprovalRequest' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tags/get-tag.ts b/src/commands/tags/get-tag.ts index ad2e06c..6677a43 100644 --- a/src/commands/tags/get-tag.ts +++ b/src/commands/tags/get-tag.ts @@ -21,6 +21,7 @@ export default class GetTag extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tags/{tagId}' + static operationId = 'getTag' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tags/get-tags.ts b/src/commands/tags/get-tags.ts index 671570c..f0f07ed 100644 --- a/src/commands/tags/get-tags.ts +++ b/src/commands/tags/get-tags.ts @@ -43,6 +43,7 @@ export default class GetTags extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tags' + static operationId = 'getTags' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tags/update-tag.ts b/src/commands/tags/update-tag.ts index b847bc5..19042f6 100644 --- a/src/commands/tags/update-tag.ts +++ b/src/commands/tags/update-tag.ts @@ -25,6 +25,7 @@ export default class UpdateTag extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/tags/{tagId}' + static operationId = 'updateTag' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tempo/create-tempo-transfer.ts b/src/commands/tempo/create-tempo-transfer.ts index 57f773f..48f90da 100644 --- a/src/commands/tempo/create-tempo-transfer.ts +++ b/src/commands/tempo/create-tempo-transfer.ts @@ -21,14 +21,13 @@ export default class CreateTempoTransfer extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/operations/tempo/transfer' - static isBeta = true + static operationId = 'createTempoTransfer' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateTempoTransfer) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/tokenization/burn-collection-token.ts b/src/commands/tokenization/burn-collection-token.ts index bde40e7..75330d6 100644 --- a/src/commands/tokenization/burn-collection-token.ts +++ b/src/commands/tokenization/burn-collection-token.ts @@ -25,6 +25,7 @@ export default class BurnCollectionToken extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/collections/{id}/tokens/burn' + static operationId = 'burnCollectionToken' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/create-new-collection.ts b/src/commands/tokenization/create-new-collection.ts index ebf3c61..20ab376 100644 --- a/src/commands/tokenization/create-new-collection.ts +++ b/src/commands/tokenization/create-new-collection.ts @@ -21,6 +21,7 @@ export default class CreateNewCollection extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/collections' + static operationId = 'createNewCollection' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/deactivate-and-unlink-adapters.ts b/src/commands/tokenization/deactivate-and-unlink-adapters.ts index f85faa3..9b12b5c 100644 --- a/src/commands/tokenization/deactivate-and-unlink-adapters.ts +++ b/src/commands/tokenization/deactivate-and-unlink-adapters.ts @@ -17,6 +17,7 @@ export default class DeactivateAndUnlinkAdapters extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/tokenization/multichain/bridge/layerzero' + static operationId = 'deactivateAndUnlinkAdapters' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/deploy-and-link-adapters.ts b/src/commands/tokenization/deploy-and-link-adapters.ts index 71fc651..eebe4ae 100644 --- a/src/commands/tokenization/deploy-and-link-adapters.ts +++ b/src/commands/tokenization/deploy-and-link-adapters.ts @@ -17,6 +17,7 @@ export default class DeployAndLinkAdapters extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/multichain/bridge/layerzero' + static operationId = 'deployAndLinkAdapters' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/fetch-collection-token-details.ts b/src/commands/tokenization/fetch-collection-token-details.ts index b2ed055..10a6bd7 100644 --- a/src/commands/tokenization/fetch-collection-token-details.ts +++ b/src/commands/tokenization/fetch-collection-token-details.ts @@ -25,6 +25,7 @@ export default class FetchCollectionTokenDetails extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/collections/{id}/tokens/{tokenId}' + static operationId = 'fetchCollectionTokenDetails' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-collection-by-id.ts b/src/commands/tokenization/get-collection-by-id.ts index df28655..c998cae 100644 --- a/src/commands/tokenization/get-collection-by-id.ts +++ b/src/commands/tokenization/get-collection-by-id.ts @@ -21,6 +21,7 @@ export default class GetCollectionById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/collections/{id}' + static operationId = 'getCollectionById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-deployable-address.ts b/src/commands/tokenization/get-deployable-address.ts index c3b2681..c89cd07 100644 --- a/src/commands/tokenization/get-deployable-address.ts +++ b/src/commands/tokenization/get-deployable-address.ts @@ -21,6 +21,7 @@ export default class GetDeployableAddress extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/multichain/deterministic_address' + static operationId = 'getDeployableAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-layer-zero-dvn-config.ts b/src/commands/tokenization/get-layer-zero-dvn-config.ts index fda2f11..caae072 100644 --- a/src/commands/tokenization/get-layer-zero-dvn-config.ts +++ b/src/commands/tokenization/get-layer-zero-dvn-config.ts @@ -20,6 +20,7 @@ export default class GetLayerZeroDvnConfig extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns' + static operationId = 'getLayerZeroDvnConfig' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/get-layer-zero-peers.ts b/src/commands/tokenization/get-layer-zero-peers.ts index 06a627f..93f9304 100644 --- a/src/commands/tokenization/get-layer-zero-peers.ts +++ b/src/commands/tokenization/get-layer-zero-peers.ts @@ -17,6 +17,7 @@ export default class GetLayerZeroPeers extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers' + static operationId = 'getLayerZeroPeers' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/get-linked-collections.ts b/src/commands/tokenization/get-linked-collections.ts index f5e1ba1..47c383d 100644 --- a/src/commands/tokenization/get-linked-collections.ts +++ b/src/commands/tokenization/get-linked-collections.ts @@ -27,6 +27,7 @@ export default class GetLinkedCollections extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/collections' + static operationId = 'getLinkedCollections' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-linked-token.ts b/src/commands/tokenization/get-linked-token.ts index 194466c..928ddde 100644 --- a/src/commands/tokenization/get-linked-token.ts +++ b/src/commands/tokenization/get-linked-token.ts @@ -21,6 +21,7 @@ export default class GetLinkedToken extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}' + static operationId = 'getLinkedToken' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-linked-tokens-count.ts b/src/commands/tokenization/get-linked-tokens-count.ts index 26ce442..2da158e 100644 --- a/src/commands/tokenization/get-linked-tokens-count.ts +++ b/src/commands/tokenization/get-linked-tokens-count.ts @@ -17,6 +17,7 @@ export default class GetLinkedTokensCount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/count' + static operationId = 'getLinkedTokensCount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-linked-tokens.ts b/src/commands/tokenization/get-linked-tokens.ts index ba31b86..a0e4167 100644 --- a/src/commands/tokenization/get-linked-tokens.ts +++ b/src/commands/tokenization/get-linked-tokens.ts @@ -26,6 +26,7 @@ export default class GetLinkedTokens extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens' + static operationId = 'getLinkedTokens' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-access-registry-addresses.ts b/src/commands/tokenization/get-token-access-registry-addresses.ts index 36584e3..dfecde8 100644 --- a/src/commands/tokenization/get-token-access-registry-addresses.ts +++ b/src/commands/tokenization/get-token-access-registry-addresses.ts @@ -37,6 +37,7 @@ export default class GetTokenAccessRegistryAddresses extends FireblocksBaseComma static method = 'GET' static path = '/v1/tokenization/access_registries/{id}/addresses' + static operationId = 'getTokenAccessRegistryAddresses' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-access-registry-summary.ts b/src/commands/tokenization/get-token-access-registry-summary.ts index a1ef024..b39781d 100644 --- a/src/commands/tokenization/get-token-access-registry-summary.ts +++ b/src/commands/tokenization/get-token-access-registry-summary.ts @@ -21,6 +21,7 @@ export default class GetTokenAccessRegistrySummary extends FireblocksBaseCommand static method = 'GET' static path = '/v1/tokenization/access_registries/{id}/summary' + static operationId = 'getTokenAccessRegistrySummary' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-balance-for-account.ts b/src/commands/tokenization/get-token-balance-for-account.ts index 2dd7fb0..f4b135f 100644 --- a/src/commands/tokenization/get-token-balance-for-account.ts +++ b/src/commands/tokenization/get-token-balance-for-account.ts @@ -25,6 +25,7 @@ export default class GetTokenBalanceForAccount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/balances/{accountAddress}' + static operationId = 'getTokenBalanceForAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-balance-history.ts b/src/commands/tokenization/get-token-balance-history.ts index 6b15ef1..3ab4384 100644 --- a/src/commands/tokenization/get-token-balance-history.ts +++ b/src/commands/tokenization/get-token-balance-history.ts @@ -52,6 +52,7 @@ export default class GetTokenBalanceHistory extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/balances/{accountAddress}/history' + static operationId = 'getTokenBalanceHistory' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-balances.ts b/src/commands/tokenization/get-token-balances.ts index 703d6a8..ac53b68 100644 --- a/src/commands/tokenization/get-token-balances.ts +++ b/src/commands/tokenization/get-token-balances.ts @@ -37,6 +37,7 @@ export default class GetTokenBalances extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/balances' + static operationId = 'getTokenBalances' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-contract-summary.ts b/src/commands/tokenization/get-token-contract-summary.ts index 3d93b03..d2f13c4 100644 --- a/src/commands/tokenization/get-token-contract-summary.ts +++ b/src/commands/tokenization/get-token-contract-summary.ts @@ -21,6 +21,7 @@ export default class GetTokenContractSummary extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/summary' + static operationId = 'getTokenContractSummary' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-rbac.ts b/src/commands/tokenization/get-token-rbac.ts index ccac620..3fdbca9 100644 --- a/src/commands/tokenization/get-token-rbac.ts +++ b/src/commands/tokenization/get-token-rbac.ts @@ -21,6 +21,7 @@ export default class GetTokenRbac extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/rbac' + static operationId = 'getTokenRbac' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-total-supply.ts b/src/commands/tokenization/get-token-total-supply.ts index 130f2bd..871ea47 100644 --- a/src/commands/tokenization/get-token-total-supply.ts +++ b/src/commands/tokenization/get-token-total-supply.ts @@ -48,6 +48,7 @@ export default class GetTokenTotalSupply extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/total_supply' + static operationId = 'getTokenTotalSupply' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-transactions.ts b/src/commands/tokenization/get-token-transactions.ts index 323c4bd..685096c 100644 --- a/src/commands/tokenization/get-token-transactions.ts +++ b/src/commands/tokenization/get-token-transactions.ts @@ -43,6 +43,7 @@ export default class GetTokenTransactions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/transactions' + static operationId = 'getTokenTransactions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/get-token-transfers.ts b/src/commands/tokenization/get-token-transfers.ts index 9cc682d..2e15cd7 100644 --- a/src/commands/tokenization/get-token-transfers.ts +++ b/src/commands/tokenization/get-token-transfers.ts @@ -49,6 +49,7 @@ export default class GetTokenTransfers extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/tokenization/tokens/{id}/transfers' + static operationId = 'getTokenTransfers' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/issue-new-token.ts b/src/commands/tokenization/issue-new-token.ts index f1ba4ed..6aa1da1 100644 --- a/src/commands/tokenization/issue-new-token.ts +++ b/src/commands/tokenization/issue-new-token.ts @@ -17,6 +17,7 @@ export default class IssueNewToken extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/tokens' + static operationId = 'issueNewToken' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/issue-token-multi-chain.ts b/src/commands/tokenization/issue-token-multi-chain.ts index dcd72eb..4ede2ce 100644 --- a/src/commands/tokenization/issue-token-multi-chain.ts +++ b/src/commands/tokenization/issue-token-multi-chain.ts @@ -17,6 +17,7 @@ export default class IssueTokenMultiChain extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/multichain/tokens' + static operationId = 'issueTokenMultiChain' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/link.ts b/src/commands/tokenization/link.ts index 968009e..0b8f249 100644 --- a/src/commands/tokenization/link.ts +++ b/src/commands/tokenization/link.ts @@ -21,6 +21,7 @@ export default class Link extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/tokens/link' + static operationId = 'link' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/mint-collection-token.ts b/src/commands/tokenization/mint-collection-token.ts index 7e8fe52..752049c 100644 --- a/src/commands/tokenization/mint-collection-token.ts +++ b/src/commands/tokenization/mint-collection-token.ts @@ -25,6 +25,7 @@ export default class MintCollectionToken extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/collections/{id}/tokens/mint' + static operationId = 'mintCollectionToken' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/re-issue-token-multi-chain.ts b/src/commands/tokenization/re-issue-token-multi-chain.ts index aef563c..86bcc31 100644 --- a/src/commands/tokenization/re-issue-token-multi-chain.ts +++ b/src/commands/tokenization/re-issue-token-multi-chain.ts @@ -25,6 +25,7 @@ export default class ReIssueTokenMultiChain extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/multichain/reissue/token/{tokenLinkId}' + static operationId = 'reIssueTokenMultiChain' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/remove-layer-zero-peers.ts b/src/commands/tokenization/remove-layer-zero-peers.ts index 7742e55..5c41102 100644 --- a/src/commands/tokenization/remove-layer-zero-peers.ts +++ b/src/commands/tokenization/remove-layer-zero-peers.ts @@ -17,6 +17,7 @@ export default class RemoveLayerZeroPeers extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/tokenization/multichain/bridge/layerzero/config/peers' + static operationId = 'removeLayerZeroPeers' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/set-layer-zero-dvn-config.ts b/src/commands/tokenization/set-layer-zero-dvn-config.ts index efda40c..be525bc 100644 --- a/src/commands/tokenization/set-layer-zero-dvn-config.ts +++ b/src/commands/tokenization/set-layer-zero-dvn-config.ts @@ -17,6 +17,7 @@ export default class SetLayerZeroDvnConfig extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/multichain/bridge/layerzero/config/dvns' + static operationId = 'setLayerZeroDvnConfig' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/set-layer-zero-peers.ts b/src/commands/tokenization/set-layer-zero-peers.ts index ac0004e..ab6ec2e 100644 --- a/src/commands/tokenization/set-layer-zero-peers.ts +++ b/src/commands/tokenization/set-layer-zero-peers.ts @@ -17,6 +17,7 @@ export default class SetLayerZeroPeers extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/tokenization/multichain/bridge/layerzero/config/peers' + static operationId = 'setLayerZeroPeers' static isBeta = false async run(): Promise { diff --git a/src/commands/tokenization/unlink-collection.ts b/src/commands/tokenization/unlink-collection.ts index 2bfa274..564d646 100644 --- a/src/commands/tokenization/unlink-collection.ts +++ b/src/commands/tokenization/unlink-collection.ts @@ -21,6 +21,7 @@ export default class UnlinkCollection extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/tokenization/collections/{id}' + static operationId = 'unlinkCollection' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/unlink.ts b/src/commands/tokenization/unlink.ts index 3446acc..c27b760 100644 --- a/src/commands/tokenization/unlink.ts +++ b/src/commands/tokenization/unlink.ts @@ -21,6 +21,7 @@ export default class Unlink extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/tokenization/tokens/{id}' + static operationId = 'unlink' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/tokenization/validate-layer-zero-channel-config.ts b/src/commands/tokenization/validate-layer-zero-channel-config.ts index fdf75b8..0bfd81c 100644 --- a/src/commands/tokenization/validate-layer-zero-channel-config.ts +++ b/src/commands/tokenization/validate-layer-zero-channel-config.ts @@ -21,6 +21,7 @@ export default class ValidateLayerZeroChannelConfig extends FireblocksBaseComman static method = 'GET' static path = '/v1/tokenization/multichain/bridge/layerzero/validate' + static operationId = 'validateLayerZeroChannelConfig' static isBeta = false async run(): Promise { diff --git a/src/commands/trading/create-order.ts b/src/commands/trading/create-order.ts index ce78f05..153954b 100644 --- a/src/commands/trading/create-order.ts +++ b/src/commands/trading/create-order.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class CreateOrder extends FireblocksBaseCommand { static summary = 'Create an order' - static description = 'Create an order to buy or sell an asset. If no source is given, an external source will be use.\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: createOrder\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/createOrder' + static description = 'Create an order to buy or sell an asset. If no source is given, an external source will be use.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: createOrder\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/createOrder' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class CreateOrder extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/trading/orders' - static isBeta = true + static operationId = 'createOrder' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateOrder) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/trading/create-quote.ts b/src/commands/trading/create-quote.ts index f4921b9..738ee50 100644 --- a/src/commands/trading/create-quote.ts +++ b/src/commands/trading/create-quote.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class CreateQuote extends FireblocksBaseCommand { static summary = 'Create a quote' - static description = 'Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations.\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: createQuote\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/createQuote' + static description = 'Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: createQuote\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/createQuote' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class CreateQuote extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/trading/quotes' - static isBeta = true + static operationId = 'createQuote' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateQuote) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/trading/fetch-all-offers.ts b/src/commands/trading/fetch-all-offers.ts index 0a48723..c9fb480 100644 --- a/src/commands/trading/fetch-all-offers.ts +++ b/src/commands/trading/fetch-all-offers.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class FetchAllOffers extends FireblocksBaseCommand { static summary = 'Get all offers' - static description = 'Retrieve all available offers across the workspace for a given asset pair.\nAlways operates in open scope — no provider or account selection required.\nReturns a mix of indicative rates and committed quotes as applicable per provider.\n\nIf no slippageBps is provided, it defaults to 50 bps (0.5%).\nSlippage and settlement configuration do not affect the returned rate.\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: fetchAllOffers\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/fetchAllOffers' + static description = 'Retrieve all available offers across the workspace for a given asset pair.\nAlways operates in open scope — no provider or account selection required.\nReturns a mix of indicative rates and committed quotes as applicable per provider.\n\nIf no slippageBps is provided, it defaults to 50 bps (0.5%).\nSlippage and settlement configuration do not affect the returned rate.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: fetchAllOffers\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/fetchAllOffers' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class FetchAllOffers extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/trading/offers' - static isBeta = true + static operationId = 'fetchAllOffers' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(FetchAllOffers) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/trading/fetch-rates.ts b/src/commands/trading/fetch-rates.ts index 860312b..f566066 100644 --- a/src/commands/trading/fetch-rates.ts +++ b/src/commands/trading/fetch-rates.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class FetchRates extends FireblocksBaseCommand { static summary = 'Get rates' - static description = 'Retrieve indicative exchange rate from specified providers for a given asset pair.\nRates are non-executable price signals intended for discovery and display purposes.\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: fetchRates\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/fetchRates' + static description = 'Retrieve indicative exchange rate from specified providers for a given asset pair.\nRates are non-executable price signals intended for discovery and display purposes.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: fetchRates\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/fetchRates' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class FetchRates extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/trading/rates' - static isBeta = true + static operationId = 'fetchRates' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(FetchRates) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/trading/get-order-requirements.ts b/src/commands/trading/get-order-requirements.ts index 0ca258a..7815f81 100644 --- a/src/commands/trading/get-order-requirements.ts +++ b/src/commands/trading/get-order-requirements.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class GetOrderRequirements extends FireblocksBaseCommand { static summary = 'Get order requirement details for an order' - static description = 'Fetch order requirement details for an order that is in \`AWAITING_INFORMATION\` status.\n\nThe response includes \`requirementId\` and \`dueBy\` metadata, a\n\`requiredData\` JSON Schema (Draft-7) describing the shape of the \`data\` object expected on\n\`POST /trading/orders/{orderId}/requirement/data\`, and \`requiredFiles\` descriptors for any files the\nprovider requires (uploaded via \`POST /trading/orders/{orderId}/requirement/file\`).\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getOrderRequirements\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getOrderRequirements' + static description = 'Fetch order requirement details for an order that is in \`AWAITING_INFORMATION\` status.\n\nThe response includes \`requirementId\` and \`dueBy\` metadata, a\n\`requiredData\` JSON Schema (Draft-7) describing the shape of the \`data\` object expected on\n\`POST /trading/orders/{orderId}/requirement/data\`, and \`requiredFiles\` descriptors for any files the\nprovider requires (uploaded via \`POST /trading/orders/{orderId}/requirement/file\`).\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getOrderRequirements\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getOrderRequirements' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class GetOrderRequirements extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/trading/orders/{orderId}/requirement' - static isBeta = true + static operationId = 'getOrderRequirements' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetOrderRequirements) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/trading/get-order.ts b/src/commands/trading/get-order.ts index 010b748..23337d5 100644 --- a/src/commands/trading/get-order.ts +++ b/src/commands/trading/get-order.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class GetOrder extends FireblocksBaseCommand { static summary = 'Get order details' - static description = 'Retrieve detailed information about a specific order by its ID.\n\nNote:These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getOrder\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getOrder' + static description = 'Retrieve detailed information about a specific order by its ID.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getOrder\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getOrder' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class GetOrder extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/trading/orders/{orderId}' - static isBeta = true + static operationId = 'getOrder' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetOrder) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/trading/get-orders.ts b/src/commands/trading/get-orders.ts index b3cb903..64be78e 100644 --- a/src/commands/trading/get-orders.ts +++ b/src/commands/trading/get-orders.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class GetOrders extends FireblocksBaseCommand { static summary = 'Get orders' - static description = 'Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range.\n\nNote:These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getOrders\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getOrders' + static description = 'Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getOrders\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getOrders' static enableJsonFlag = false @@ -48,14 +48,13 @@ export default class GetOrders extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/trading/orders' - static isBeta = true + static operationId = 'getOrders' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetOrders) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/trading/get-trading-provider-by-id.ts b/src/commands/trading/get-trading-provider-by-id.ts index 622c8dd..6ecbfe8 100644 --- a/src/commands/trading/get-trading-provider-by-id.ts +++ b/src/commands/trading/get-trading-provider-by-id.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class GetTradingProviderById extends FireblocksBaseCommand { static summary = 'Get trading provider by ID' - static description = 'Retrieve a single provider by ID.\n\n**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\n**Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getTradingProviderById\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getTradingProviderById' + static description = 'Retrieve a single provider by ID.\n\n**Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getTradingProviderById\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getTradingProviderById' static enableJsonFlag = false @@ -21,14 +21,13 @@ export default class GetTradingProviderById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/trading/providers/{providerId}' - static isBeta = true + static operationId = 'getTradingProviderById' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetTradingProviderById) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/trading/get-trading-providers.ts b/src/commands/trading/get-trading-providers.ts index 2d5a7bc..ae5fe9e 100644 --- a/src/commands/trading/get-trading-providers.ts +++ b/src/commands/trading/get-trading-providers.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class GetTradingProviders extends FireblocksBaseCommand { static summary = 'Get providers' - static description = 'Retrieve a list of all available external providers supporting trading activities through the platform.\n\n**Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\n**Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getTradingProviders\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getTradingProviders' + static description = 'Retrieve a list of all available external providers supporting trading activities through the platform.\n\n**Endpoint Permission:** Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: getTradingProviders\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/getTradingProviders' static enableJsonFlag = false @@ -24,14 +24,13 @@ export default class GetTradingProviders extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/trading/providers' - static isBeta = true + static operationId = 'getTradingProviders' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetTradingProviders) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/trading/submit-order-requirements.ts b/src/commands/trading/submit-order-requirements.ts index 0368a33..d46111c 100644 --- a/src/commands/trading/submit-order-requirements.ts +++ b/src/commands/trading/submit-order-requirements.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class SubmitOrderRequirements extends FireblocksBaseCommand { static summary = 'Submit a response to an order requirement' - static description = 'Submit the user\'s textual response to an order requirement on an order that is in \`AWAITING_INFORMATION\` status.\n\nThe request body carries \`data\` — a free-form object conforming to the \`requiredData\` JSON Schema\nreturned by the GET endpoint. Any required files are uploaded separately via\n\`POST /trading/orders/{orderId}/requirement/file\`.\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: submitOrderRequirements\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/submitOrderRequirements' + static description = 'Submit the user\'s textual response to an order requirement on an order that is in \`AWAITING_INFORMATION\` status.\n\nThe request body carries \`data\` — a free-form object conforming to the \`requiredData\` JSON Schema\nreturned by the GET endpoint. Any required files are uploaded separately via\n\`POST /trading/orders/{orderId}/requirement/file\`.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: submitOrderRequirements\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/submitOrderRequirements' static enableJsonFlag = false @@ -25,14 +25,13 @@ export default class SubmitOrderRequirements extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/trading/orders/{orderId}/requirement/data' - static isBeta = true + static operationId = 'submitOrderRequirements' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(SubmitOrderRequirements) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/trading/upload-order-requirement-file.ts b/src/commands/trading/upload-order-requirement-file.ts index ab65223..9c94b76 100644 --- a/src/commands/trading/upload-order-requirement-file.ts +++ b/src/commands/trading/upload-order-requirement-file.ts @@ -4,7 +4,7 @@ import {FireblocksBaseCommand} from '../../lib/base-command.js' export default class UploadOrderRequirementFile extends FireblocksBaseCommand { static summary = 'Upload a file for an order requirement' - static description = 'Upload a single file (multipart/form-data) in response to an order requirement on an order that is in\n\`AWAITING_INFORMATION\` status. Call this endpoint once per required file.\n\nSend \`fileKey\` (matching a \`fileKey\` from \`requiredFiles\` on the GET response) and the binary \`file\`. Its type\nmust be one of the supported file formats. Fireblocks encrypts each file and uploads it individually to the\nunderlying provider. The textual response is submitted separately via\n\`POST /trading/orders/{orderId}/requirement/data\`.\n\nNote: These endpoints are currently in beta and might be subject to changes.\n\nIf you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: uploadOrderRequirementFile\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/uploadOrderRequirementFile' + static description = 'Upload a single file (multipart/form-data) in response to an order requirement on an order that is in\n\`AWAITING_INFORMATION\` status. Call this endpoint once per required file.\n\nSend \`fileKey\` (matching a \`fileKey\` from \`requiredFiles\` on the GET response) and the binary \`file\`. Its type\nmust be one of the supported file formats. Fireblocks encrypts each file and uploads it individually to the\nunderlying provider. The textual response is submitted separately via\n\`POST /trading/orders/{orderId}/requirement/data\`.\n\nEndpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor.\n\nFor detailed information about error codes and troubleshooting, please refer to our [API Error Codes documentation](https://developers.fireblocks.com/reference/api-error-codes).\n\nOperation ID: uploadOrderRequirementFile\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Trading/uploadOrderRequirementFile' static enableJsonFlag = false @@ -25,14 +25,13 @@ export default class UploadOrderRequirementFile extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/trading/orders/{orderId}/requirement/file' - static isBeta = true + static operationId = 'uploadOrderRequirementFile' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UploadOrderRequirementFile) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/transactions/cancel-transaction.ts b/src/commands/transactions/cancel-transaction.ts index 994af76..43d0ab0 100644 --- a/src/commands/transactions/cancel-transaction.ts +++ b/src/commands/transactions/cancel-transaction.ts @@ -21,6 +21,7 @@ export default class CancelTransaction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/transactions/{txId}/cancel' + static operationId = 'cancelTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/create-transaction.ts b/src/commands/transactions/create-transaction.ts index bf7d172..5590a5c 100644 --- a/src/commands/transactions/create-transaction.ts +++ b/src/commands/transactions/create-transaction.ts @@ -20,6 +20,7 @@ export default class CreateTransaction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/transactions' + static operationId = 'createTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/drop-transaction.ts b/src/commands/transactions/drop-transaction.ts index 35d8b92..7f0afdf 100644 --- a/src/commands/transactions/drop-transaction.ts +++ b/src/commands/transactions/drop-transaction.ts @@ -24,6 +24,7 @@ export default class DropTransaction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/transactions/{txId}/drop' + static operationId = 'dropTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/estimate-network-fee.ts b/src/commands/transactions/estimate-network-fee.ts index 8df87d0..6eaf51e 100644 --- a/src/commands/transactions/estimate-network-fee.ts +++ b/src/commands/transactions/estimate-network-fee.ts @@ -21,6 +21,7 @@ export default class EstimateNetworkFee extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/estimate_network_fee' + static operationId = 'estimateNetworkFee' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/estimate-transaction-fee.ts b/src/commands/transactions/estimate-transaction-fee.ts index 5fc9e24..0558333 100644 --- a/src/commands/transactions/estimate-transaction-fee.ts +++ b/src/commands/transactions/estimate-transaction-fee.ts @@ -20,6 +20,7 @@ export default class EstimateTransactionFee extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/transactions/estimate_fee' + static operationId = 'estimateTransactionFee' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/freeze-transaction.ts b/src/commands/transactions/freeze-transaction.ts index 62cacf7..6663d7b 100644 --- a/src/commands/transactions/freeze-transaction.ts +++ b/src/commands/transactions/freeze-transaction.ts @@ -21,6 +21,7 @@ export default class FreezeTransaction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/transactions/{txId}/freeze' + static operationId = 'freezeTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/get-transaction-by-external-id.ts b/src/commands/transactions/get-transaction-by-external-id.ts index 67e7401..1c4d09d 100644 --- a/src/commands/transactions/get-transaction-by-external-id.ts +++ b/src/commands/transactions/get-transaction-by-external-id.ts @@ -21,6 +21,7 @@ export default class GetTransactionByExternalId extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/transactions/external_tx_id/{externalTxId}' + static operationId = 'getTransactionByExternalId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/get-transaction.ts b/src/commands/transactions/get-transaction.ts index a588c8a..04a4155 100644 --- a/src/commands/transactions/get-transaction.ts +++ b/src/commands/transactions/get-transaction.ts @@ -21,6 +21,7 @@ export default class GetTransaction extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/transactions/{txId}' + static operationId = 'getTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/get-transactions.ts b/src/commands/transactions/get-transactions.ts index 2e1f493..7da1f0b 100644 --- a/src/commands/transactions/get-transactions.ts +++ b/src/commands/transactions/get-transactions.ts @@ -70,6 +70,7 @@ export default class GetTransactions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/transactions' + static operationId = 'getTransactions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID","next-page","prev-page"] diff --git a/src/commands/transactions/set-confirmation-threshold-by-transaction-hash.ts b/src/commands/transactions/set-confirmation-threshold-by-transaction-hash.ts index 2ce0103..ed75dad 100644 --- a/src/commands/transactions/set-confirmation-threshold-by-transaction-hash.ts +++ b/src/commands/transactions/set-confirmation-threshold-by-transaction-hash.ts @@ -24,6 +24,7 @@ export default class SetConfirmationThresholdByTransactionHash extends Fireblock static method = 'POST' static path = '/v1/txHash/{txHash}/set_confirmation_threshold' + static operationId = 'setConfirmationThresholdByTransactionHash' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/set-transaction-confirmation-threshold.ts b/src/commands/transactions/set-transaction-confirmation-threshold.ts index 1909452..394ee96 100644 --- a/src/commands/transactions/set-transaction-confirmation-threshold.ts +++ b/src/commands/transactions/set-transaction-confirmation-threshold.ts @@ -24,6 +24,7 @@ export default class SetTransactionConfirmationThreshold extends FireblocksBaseC static method = 'POST' static path = '/v1/transactions/{txId}/set_confirmation_threshold' + static operationId = 'setTransactionConfirmationThreshold' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/unfreeze-transaction.ts b/src/commands/transactions/unfreeze-transaction.ts index f118563..aeb46aa 100644 --- a/src/commands/transactions/unfreeze-transaction.ts +++ b/src/commands/transactions/unfreeze-transaction.ts @@ -21,6 +21,7 @@ export default class UnfreezeTransaction extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/transactions/{txId}/unfreeze' + static operationId = 'unfreezeTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/transactions/validate-address.ts b/src/commands/transactions/validate-address.ts index 125975d..399b1ae 100644 --- a/src/commands/transactions/validate-address.ts +++ b/src/commands/transactions/validate-address.ts @@ -25,6 +25,7 @@ export default class ValidateAddress extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/transactions/validate_address/{assetId}/{address}' + static operationId = 'validateAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/create-trust-proof-of-address.ts b/src/commands/travel-rule/create-trust-proof-of-address.ts index 1977dcb..3dacec9 100644 --- a/src/commands/travel-rule/create-trust-proof-of-address.ts +++ b/src/commands/travel-rule/create-trust-proof-of-address.ts @@ -21,6 +21,7 @@ export default class CreateTrustProofOfAddress extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/travel_rule/providers/trust/proof_of_address' + static operationId = 'createTrustProofOfAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/get-trust-proof-of-address.ts b/src/commands/travel-rule/get-trust-proof-of-address.ts index 5a26930..2df90a7 100644 --- a/src/commands/travel-rule/get-trust-proof-of-address.ts +++ b/src/commands/travel-rule/get-trust-proof-of-address.ts @@ -21,6 +21,7 @@ export default class GetTrustProofOfAddress extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/providers/trust/proof_of_address/{transactionId}' + static operationId = 'getTrustProofOfAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/get-vas-ps.ts b/src/commands/travel-rule/get-vas-ps.ts index eabbca4..7f8f50b 100644 --- a/src/commands/travel-rule/get-vas-ps.ts +++ b/src/commands/travel-rule/get-vas-ps.ts @@ -38,6 +38,7 @@ export default class GetVASPs extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/vasp' + static operationId = 'getVASPs' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/get-vasp-by-did.ts b/src/commands/travel-rule/get-vasp-by-did.ts index c07755f..744c826 100644 --- a/src/commands/travel-rule/get-vasp-by-did.ts +++ b/src/commands/travel-rule/get-vasp-by-did.ts @@ -20,6 +20,7 @@ export default class GetVASPByDID extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/vasp/{did}' + static operationId = 'getVASPByDID' static isBeta = false async run(): Promise { diff --git a/src/commands/travel-rule/get-vasp-for-vault.ts b/src/commands/travel-rule/get-vasp-for-vault.ts index ef6664f..43dd509 100644 --- a/src/commands/travel-rule/get-vasp-for-vault.ts +++ b/src/commands/travel-rule/get-vasp-for-vault.ts @@ -21,6 +21,7 @@ export default class GetVaspForVault extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/travel_rule/vault/{vaultAccountId}/vasp' + static operationId = 'getVaspForVault' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/set-vasp-for-vault.ts b/src/commands/travel-rule/set-vasp-for-vault.ts index dece7f1..2f861fc 100644 --- a/src/commands/travel-rule/set-vasp-for-vault.ts +++ b/src/commands/travel-rule/set-vasp-for-vault.ts @@ -25,6 +25,7 @@ export default class SetVaspForVault extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/travel_rule/vault/{vaultAccountId}/vasp' + static operationId = 'setVaspForVault' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/update-vasp.ts b/src/commands/travel-rule/update-vasp.ts index c79055e..57356b2 100644 --- a/src/commands/travel-rule/update-vasp.ts +++ b/src/commands/travel-rule/update-vasp.ts @@ -17,6 +17,7 @@ export default class UpdateVasp extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/screening/travel_rule/vasp/update' + static operationId = 'updateVasp' static isBeta = false async run(): Promise { diff --git a/src/commands/travel-rule/validate-full-travel-rule-transaction.ts b/src/commands/travel-rule/validate-full-travel-rule-transaction.ts index 1f24c99..6055535 100644 --- a/src/commands/travel-rule/validate-full-travel-rule-transaction.ts +++ b/src/commands/travel-rule/validate-full-travel-rule-transaction.ts @@ -24,6 +24,7 @@ export default class ValidateFullTravelRuleTransaction extends FireblocksBaseCom static method = 'POST' static path = '/v1/screening/travel_rule/transaction/validate/full' + static operationId = 'validateFullTravelRuleTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/travel-rule/validate-travel-rule-transaction.ts b/src/commands/travel-rule/validate-travel-rule-transaction.ts index 2cf4746..0c56fc9 100644 --- a/src/commands/travel-rule/validate-travel-rule-transaction.ts +++ b/src/commands/travel-rule/validate-travel-rule-transaction.ts @@ -24,6 +24,7 @@ export default class ValidateTravelRuleTransaction extends FireblocksBaseCommand static method = 'POST' static path = '/v1/screening/travel_rule/transaction/validate' + static operationId = 'validateTravelRuleTransaction' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/assess-tr-link-travel-rule-requirement.ts b/src/commands/trlink/assess-tr-link-travel-rule-requirement.ts index 828fbd5..a29a8b6 100644 --- a/src/commands/trlink/assess-tr-link-travel-rule-requirement.ts +++ b/src/commands/trlink/assess-tr-link-travel-rule-requirement.ts @@ -25,6 +25,7 @@ export default class AssessTRLinkTravelRuleRequirement extends FireblocksBaseCom static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm/assess' + static operationId = 'assessTRLinkTravelRuleRequirement' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/cancel-tr-link-trm.ts b/src/commands/trlink/cancel-tr-link-trm.ts index 0f1aaa4..b2d2759 100644 --- a/src/commands/trlink/cancel-tr-link-trm.ts +++ b/src/commands/trlink/cancel-tr-link-trm.ts @@ -29,6 +29,7 @@ export default class CancelTRLinkTrm extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId}/cancel' + static operationId = 'cancelTRLinkTrm' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/connect-tr-link-integration.ts b/src/commands/trlink/connect-tr-link-integration.ts index 5ebe4af..0ed87fd 100644 --- a/src/commands/trlink/connect-tr-link-integration.ts +++ b/src/commands/trlink/connect-tr-link-integration.ts @@ -25,6 +25,7 @@ export default class ConnectTRLinkIntegration extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}' + static operationId = 'connectTRLinkIntegration' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/create-tr-link-customer.ts b/src/commands/trlink/create-tr-link-customer.ts index dca7134..293d432 100644 --- a/src/commands/trlink/create-tr-link-customer.ts +++ b/src/commands/trlink/create-tr-link-customer.ts @@ -21,6 +21,7 @@ export default class CreateTRLinkCustomer extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers' + static operationId = 'createTRLinkCustomer' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/create-tr-link-integration.ts b/src/commands/trlink/create-tr-link-integration.ts index 7861b3f..8e774d0 100644 --- a/src/commands/trlink/create-tr-link-integration.ts +++ b/src/commands/trlink/create-tr-link-integration.ts @@ -21,6 +21,7 @@ export default class CreateTRLinkIntegration extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers/integration' + static operationId = 'createTRLinkIntegration' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/create-tr-link-manual-decision.ts b/src/commands/trlink/create-tr-link-manual-decision.ts index 2f914cd..e423373 100644 --- a/src/commands/trlink/create-tr-link-manual-decision.ts +++ b/src/commands/trlink/create-tr-link-manual-decision.ts @@ -29,6 +29,7 @@ export default class CreateTRLinkManualDecision extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/transactions/{txId}/manual_decision' + static operationId = 'createTRLinkManualDecision' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/create-tr-link-trm.ts b/src/commands/trlink/create-tr-link-trm.ts index c33a4ce..63395eb 100644 --- a/src/commands/trlink/create-tr-link-trm.ts +++ b/src/commands/trlink/create-tr-link-trm.ts @@ -25,6 +25,7 @@ export default class CreateTRLinkTrm extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm' + static operationId = 'createTRLinkTrm' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/delete-tr-link-customer.ts b/src/commands/trlink/delete-tr-link-customer.ts index d9436f7..696eab5 100644 --- a/src/commands/trlink/delete-tr-link-customer.ts +++ b/src/commands/trlink/delete-tr-link-customer.ts @@ -21,6 +21,7 @@ export default class DeleteTRLinkCustomer extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/screening/trlink/customers/{customerId}' + static operationId = 'deleteTRLinkCustomer' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/disconnect-tr-link-integration.ts b/src/commands/trlink/disconnect-tr-link-integration.ts index 0a42ce6..dcc346e 100644 --- a/src/commands/trlink/disconnect-tr-link-integration.ts +++ b/src/commands/trlink/disconnect-tr-link-integration.ts @@ -21,6 +21,7 @@ export default class DisconnectTRLinkIntegration extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}' + static operationId = 'disconnectTRLinkIntegration' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-customer-by-id.ts b/src/commands/trlink/get-tr-link-customer-by-id.ts index 4b20a7c..115141e 100644 --- a/src/commands/trlink/get-tr-link-customer-by-id.ts +++ b/src/commands/trlink/get-tr-link-customer-by-id.ts @@ -21,6 +21,7 @@ export default class GetTRLinkCustomerById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/{customerId}' + static operationId = 'getTRLinkCustomerById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-customer-integration-by-id.ts b/src/commands/trlink/get-tr-link-customer-integration-by-id.ts index 87866db..6c0cb47 100644 --- a/src/commands/trlink/get-tr-link-customer-integration-by-id.ts +++ b/src/commands/trlink/get-tr-link-customer-integration-by-id.ts @@ -25,6 +25,7 @@ export default class GetTRLinkCustomerIntegrationById extends FireblocksBaseComm static method = 'GET' static path = '/v1/screening/trlink/customers/{customerId}/integrations/{customerIntegrationId}' + static operationId = 'getTRLinkCustomerIntegrationById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-customer-integrations.ts b/src/commands/trlink/get-tr-link-customer-integrations.ts index db3502e..5b08b16 100644 --- a/src/commands/trlink/get-tr-link-customer-integrations.ts +++ b/src/commands/trlink/get-tr-link-customer-integrations.ts @@ -21,6 +21,7 @@ export default class GetTRLinkCustomerIntegrations extends FireblocksBaseCommand static method = 'GET' static path = '/v1/screening/trlink/customers/{customerId}/integrations' + static operationId = 'getTRLinkCustomerIntegrations' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-customers.ts b/src/commands/trlink/get-tr-link-customers.ts index dad6ad5..619b60d 100644 --- a/src/commands/trlink/get-tr-link-customers.ts +++ b/src/commands/trlink/get-tr-link-customers.ts @@ -17,6 +17,7 @@ export default class GetTRLinkCustomers extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers' + static operationId = 'getTRLinkCustomers' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-integration-public-key.ts b/src/commands/trlink/get-tr-link-integration-public-key.ts index d67d85e..0331a2e 100644 --- a/src/commands/trlink/get-tr-link-integration-public-key.ts +++ b/src/commands/trlink/get-tr-link-integration-public-key.ts @@ -21,6 +21,7 @@ export default class GetTRLinkIntegrationPublicKey extends FireblocksBaseCommand static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/public_key' + static operationId = 'getTRLinkIntegrationPublicKey' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-partners.ts b/src/commands/trlink/get-tr-link-partners.ts index 507526f..fda8d03 100644 --- a/src/commands/trlink/get-tr-link-partners.ts +++ b/src/commands/trlink/get-tr-link-partners.ts @@ -17,6 +17,7 @@ export default class GetTRLinkPartners extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/partners' + static operationId = 'getTRLinkPartners' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-policy.ts b/src/commands/trlink/get-tr-link-policy.ts index 5046ad5..ffa665c 100644 --- a/src/commands/trlink/get-tr-link-policy.ts +++ b/src/commands/trlink/get-tr-link-policy.ts @@ -17,6 +17,7 @@ export default class GetTRLinkPolicy extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/policy' + static operationId = 'getTRLinkPolicy' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-supported-asset.ts b/src/commands/trlink/get-tr-link-supported-asset.ts index bb34550..568d8d3 100644 --- a/src/commands/trlink/get-tr-link-supported-asset.ts +++ b/src/commands/trlink/get-tr-link-supported-asset.ts @@ -25,6 +25,7 @@ export default class GetTRLinkSupportedAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/assets/{assetId}' + static operationId = 'getTRLinkSupportedAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-trm-by-id.ts b/src/commands/trlink/get-tr-link-trm-by-id.ts index be6d34a..746f069 100644 --- a/src/commands/trlink/get-tr-link-trm-by-id.ts +++ b/src/commands/trlink/get-tr-link-trm-by-id.ts @@ -25,6 +25,7 @@ export default class GetTRLinkTrmById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId}' + static operationId = 'getTRLinkTrmById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-trm-required-actions.ts b/src/commands/trlink/get-tr-link-trm-required-actions.ts index f85c0c6..5db0873 100644 --- a/src/commands/trlink/get-tr-link-trm-required-actions.ts +++ b/src/commands/trlink/get-tr-link-trm-required-actions.ts @@ -25,6 +25,7 @@ export default class GetTRLinkTrmRequiredActions extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId}/required_actions' + static operationId = 'getTRLinkTrmRequiredActions' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/get-tr-link-vasp-by-id.ts b/src/commands/trlink/get-tr-link-vasp-by-id.ts index 5b83abc..96e3981 100644 --- a/src/commands/trlink/get-tr-link-vasp-by-id.ts +++ b/src/commands/trlink/get-tr-link-vasp-by-id.ts @@ -25,6 +25,7 @@ export default class GetTRLinkVaspById extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/vasps/{vaspId}' + static operationId = 'getTRLinkVaspById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/list-tr-link-supported-assets.ts b/src/commands/trlink/list-tr-link-supported-assets.ts index 2c2af86..f848ac2 100644 --- a/src/commands/trlink/list-tr-link-supported-assets.ts +++ b/src/commands/trlink/list-tr-link-supported-assets.ts @@ -28,6 +28,7 @@ export default class ListTRLinkSupportedAssets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/assets' + static operationId = 'listTRLinkSupportedAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/list-tr-link-vasps.ts b/src/commands/trlink/list-tr-link-vasps.ts index 919b533..3700e2e 100644 --- a/src/commands/trlink/list-tr-link-vasps.ts +++ b/src/commands/trlink/list-tr-link-vasps.ts @@ -28,6 +28,7 @@ export default class ListTRLinkVasps extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/vasps' + static operationId = 'listTRLinkVasps' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/redirect-tr-link-trm.ts b/src/commands/trlink/redirect-tr-link-trm.ts index d10c3f9..9ccf480 100644 --- a/src/commands/trlink/redirect-tr-link-trm.ts +++ b/src/commands/trlink/redirect-tr-link-trm.ts @@ -29,6 +29,7 @@ export default class RedirectTRLinkTrm extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId}/redirect' + static operationId = 'redirectTRLinkTrm' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/resolve-action-tr-link-trm.ts b/src/commands/trlink/resolve-action-tr-link-trm.ts index f63e7ef..e692ef1 100644 --- a/src/commands/trlink/resolve-action-tr-link-trm.ts +++ b/src/commands/trlink/resolve-action-tr-link-trm.ts @@ -29,6 +29,7 @@ export default class ResolveActionTRLinkTrm extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId}/resolve_action' + static operationId = 'resolveActionTRLinkTrm' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/set-tr-link-destination-travel-rule-message-id.ts b/src/commands/trlink/set-tr-link-destination-travel-rule-message-id.ts index b52b56f..79d3704 100644 --- a/src/commands/trlink/set-tr-link-destination-travel-rule-message-id.ts +++ b/src/commands/trlink/set-tr-link-destination-travel-rule-message-id.ts @@ -25,6 +25,7 @@ export default class SetTRLinkDestinationTravelRuleMessageId extends FireblocksB static method = 'POST' static path = '/v1/screening/trlink/transaction/{txId}/destination/travel_rule_message_id' + static operationId = 'setTRLinkDestinationTravelRuleMessageId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/set-tr-link-transaction-travel-rule-message-id.ts b/src/commands/trlink/set-tr-link-transaction-travel-rule-message-id.ts index fa98a35..7fb1eb7 100644 --- a/src/commands/trlink/set-tr-link-transaction-travel-rule-message-id.ts +++ b/src/commands/trlink/set-tr-link-transaction-travel-rule-message-id.ts @@ -25,6 +25,7 @@ export default class SetTRLinkTransactionTravelRuleMessageId extends FireblocksB static method = 'POST' static path = '/v1/screening/trlink/transaction/{txId}/travel_rule_message_id' + static operationId = 'setTRLinkTransactionTravelRuleMessageId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/test-tr-link-integration-connection.ts b/src/commands/trlink/test-tr-link-integration-connection.ts index d6da54e..49ed451 100644 --- a/src/commands/trlink/test-tr-link-integration-connection.ts +++ b/src/commands/trlink/test-tr-link-integration-connection.ts @@ -21,6 +21,7 @@ export default class TestTRLinkIntegrationConnection extends FireblocksBaseComma static method = 'POST' static path = '/v1/screening/trlink/customers/integration/{customerIntegrationId}/test_connection' + static operationId = 'testTRLinkIntegrationConnection' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/trlink/update-tr-link-customer.ts b/src/commands/trlink/update-tr-link-customer.ts index 08c8496..4b162e6 100644 --- a/src/commands/trlink/update-tr-link-customer.ts +++ b/src/commands/trlink/update-tr-link-customer.ts @@ -25,6 +25,7 @@ export default class UpdateTRLinkCustomer extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/screening/trlink/customers/{customerId}' + static operationId = 'updateTRLinkCustomer' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/user-groups/create-user-group.ts b/src/commands/user-groups/create-user-group.ts index 777b950..0948f14 100644 --- a/src/commands/user-groups/create-user-group.ts +++ b/src/commands/user-groups/create-user-group.ts @@ -21,14 +21,13 @@ export default class CreateUserGroup extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/management/user_groups' - static isBeta = true + static operationId = 'createUserGroup' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(CreateUserGroup) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/user-groups/delete-user-group.ts b/src/commands/user-groups/delete-user-group.ts index 32b0d2a..0f51a42 100644 --- a/src/commands/user-groups/delete-user-group.ts +++ b/src/commands/user-groups/delete-user-group.ts @@ -21,14 +21,13 @@ export default class DeleteUserGroup extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/management/user_groups/{groupId}' - static isBeta = true + static operationId = 'deleteUserGroup' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(DeleteUserGroup) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/user-groups/get-user-group.ts b/src/commands/user-groups/get-user-group.ts index 9ecf44c..7050bfe 100644 --- a/src/commands/user-groups/get-user-group.ts +++ b/src/commands/user-groups/get-user-group.ts @@ -21,14 +21,13 @@ export default class GetUserGroup extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/user_groups/{groupId}' - static isBeta = true + static operationId = 'getUserGroup' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetUserGroup) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/user-groups/get-user-groups.ts b/src/commands/user-groups/get-user-groups.ts index f1522d1..3744067 100644 --- a/src/commands/user-groups/get-user-groups.ts +++ b/src/commands/user-groups/get-user-groups.ts @@ -17,14 +17,13 @@ export default class GetUserGroups extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/user_groups' - static isBeta = true + static operationId = 'getUserGroups' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetUserGroups) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/user-groups/update-user-group.ts b/src/commands/user-groups/update-user-group.ts index 973591b..912e921 100644 --- a/src/commands/user-groups/update-user-group.ts +++ b/src/commands/user-groups/update-user-group.ts @@ -25,14 +25,13 @@ export default class UpdateUserGroup extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/management/user_groups/{groupId}' - static isBeta = true + static operationId = 'updateUserGroup' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpdateUserGroup) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/users/get-users.ts b/src/commands/users/get-users.ts index 0634631..b8a2e70 100644 --- a/src/commands/users/get-users.ts +++ b/src/commands/users/get-users.ts @@ -17,6 +17,7 @@ export default class GetUsers extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/users' + static operationId = 'getUsers' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/utxo-management/get-utxo-selection-config.ts b/src/commands/utxo-management/get-utxo-selection-config.ts index 29bbfef..5cb92a1 100644 --- a/src/commands/utxo-management/get-utxo-selection-config.ts +++ b/src/commands/utxo-management/get-utxo-selection-config.ts @@ -17,14 +17,13 @@ export default class GetUtxoSelectionConfig extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/utxo_management/selection_config' - static isBeta = true + static operationId = 'getUtxoSelectionConfig' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetUtxoSelectionConfig) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/utxo-management/get-utxos.ts b/src/commands/utxo-management/get-utxos.ts index 9c1d4f7..93dabc4 100644 --- a/src/commands/utxo-management/get-utxos.ts +++ b/src/commands/utxo-management/get-utxos.ts @@ -67,14 +67,13 @@ export default class GetUtxos extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/utxo_management/{vaultAccountId}/{assetId}/unspent_outputs' - static isBeta = true + static operationId = 'getUtxos' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetUtxos) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/utxo-management/get-vault-asset-utxo-selection-config.ts b/src/commands/utxo-management/get-vault-asset-utxo-selection-config.ts index 7c4579d..409c658 100644 --- a/src/commands/utxo-management/get-vault-asset-utxo-selection-config.ts +++ b/src/commands/utxo-management/get-vault-asset-utxo-selection-config.ts @@ -17,14 +17,13 @@ export default class GetVaultAssetUtxoSelectionConfig extends FireblocksBaseComm static method = 'GET' static path = '/v1/utxo_management/{vaultAccountId}/{assetId}/selection_config' - static isBeta = true + static operationId = 'getVaultAssetUtxoSelectionConfig' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(GetVaultAssetUtxoSelectionConfig) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/utxo-management/update-utxo-labels.ts b/src/commands/utxo-management/update-utxo-labels.ts index 42763eb..bd7d8e4 100644 --- a/src/commands/utxo-management/update-utxo-labels.ts +++ b/src/commands/utxo-management/update-utxo-labels.ts @@ -29,14 +29,13 @@ export default class UpdateUtxoLabels extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/utxo_management/{vaultAccountId}/{assetId}/labels' - static isBeta = true + static operationId = 'updateUtxoLabels' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpdateUtxoLabels) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/utxo-management/upsert-utxo-selection-config.ts b/src/commands/utxo-management/upsert-utxo-selection-config.ts index 7bc5f54..b5adaba 100644 --- a/src/commands/utxo-management/upsert-utxo-selection-config.ts +++ b/src/commands/utxo-management/upsert-utxo-selection-config.ts @@ -21,14 +21,13 @@ export default class UpsertUtxoSelectionConfig extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/utxo_management/selection_config' - static isBeta = true + static operationId = 'upsertUtxoSelectionConfig' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpsertUtxoSelectionConfig) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/utxo-management/upsert-vault-asset-utxo-selection-config.ts b/src/commands/utxo-management/upsert-vault-asset-utxo-selection-config.ts index a2399b8..2757765 100644 --- a/src/commands/utxo-management/upsert-vault-asset-utxo-selection-config.ts +++ b/src/commands/utxo-management/upsert-vault-asset-utxo-selection-config.ts @@ -21,14 +21,13 @@ export default class UpsertVaultAssetUtxoSelectionConfig extends FireblocksBaseC static method = 'PUT' static path = '/v1/utxo_management/{vaultAccountId}/{assetId}/selection_config' - static isBeta = true + static operationId = 'upsertVaultAssetUtxoSelectionConfig' + static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] async run(): Promise { const {flags} = await this.parse(UpsertVaultAssetUtxoSelectionConfig) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - let body: Record | undefined if (flags.data) { try { diff --git a/src/commands/vaults/activate-asset-for-vault-account.ts b/src/commands/vaults/activate-asset-for-vault-account.ts index 50e89b7..934f5e5 100644 --- a/src/commands/vaults/activate-asset-for-vault-account.ts +++ b/src/commands/vaults/activate-asset-for-vault-account.ts @@ -28,6 +28,7 @@ export default class ActivateAssetForVaultAccount extends FireblocksBaseCommand static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/activate' + static operationId = 'activateAssetForVaultAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/activate-usdc-gateway-wallet-beta.ts b/src/commands/vaults/activate-usdc-gateway-wallet-beta.ts index 59e7dde..51c2200 100644 --- a/src/commands/vaults/activate-usdc-gateway-wallet-beta.ts +++ b/src/commands/vaults/activate-usdc-gateway-wallet-beta.ts @@ -21,6 +21,7 @@ export default class ActivateUsdcGatewayWalletBeta extends FireblocksBaseCommand static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/usdc_gateway/activate' + static operationId = 'activateUsdcGatewayWalletBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/attach-or-detach-tags-from-vault-accounts.ts b/src/commands/vaults/attach-or-detach-tags-from-vault-accounts.ts index 80f9310..6d9ab3a 100644 --- a/src/commands/vaults/attach-or-detach-tags-from-vault-accounts.ts +++ b/src/commands/vaults/attach-or-detach-tags-from-vault-accounts.ts @@ -21,6 +21,7 @@ export default class AttachOrDetachTagsFromVaultAccounts extends FireblocksBaseC static method = 'POST' static path = '/v1/vault/accounts/attached_tags' + static operationId = 'attachOrDetachTagsFromVaultAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/create-legacy-address.ts b/src/commands/vaults/create-legacy-address.ts index b37e9fa..f3971d3 100644 --- a/src/commands/vaults/create-legacy-address.ts +++ b/src/commands/vaults/create-legacy-address.ts @@ -29,6 +29,7 @@ export default class CreateLegacyAddress extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy' + static operationId = 'createLegacyAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/create-multiple-accounts.ts b/src/commands/vaults/create-multiple-accounts.ts index 6f5aac3..7e7726e 100644 --- a/src/commands/vaults/create-multiple-accounts.ts +++ b/src/commands/vaults/create-multiple-accounts.ts @@ -21,6 +21,7 @@ export default class CreateMultipleAccounts extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/bulk' + static operationId = 'createMultipleAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/create-multiple-deposit-addresses.ts b/src/commands/vaults/create-multiple-deposit-addresses.ts index 57cf64f..088e1b7 100644 --- a/src/commands/vaults/create-multiple-deposit-addresses.ts +++ b/src/commands/vaults/create-multiple-deposit-addresses.ts @@ -21,6 +21,7 @@ export default class CreateMultipleDepositAddresses extends FireblocksBaseComman static method = 'POST' static path = '/v1/vault/accounts/addresses/bulk' + static operationId = 'createMultipleDepositAddresses' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/create-vault-account-asset-address.ts b/src/commands/vaults/create-vault-account-asset-address.ts index 7f7fa2b..d6cc6d5 100644 --- a/src/commands/vaults/create-vault-account-asset-address.ts +++ b/src/commands/vaults/create-vault-account-asset-address.ts @@ -28,6 +28,7 @@ export default class CreateVaultAccountAssetAddress extends FireblocksBaseComman static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses' + static operationId = 'createVaultAccountAssetAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/create-vault-account-asset.ts b/src/commands/vaults/create-vault-account-asset.ts index d74fdd8..8994eb0 100644 --- a/src/commands/vaults/create-vault-account-asset.ts +++ b/src/commands/vaults/create-vault-account-asset.ts @@ -31,6 +31,7 @@ export default class CreateVaultAccountAsset extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}' + static operationId = 'createVaultAccountAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/create-vault-account.ts b/src/commands/vaults/create-vault-account.ts index 4883dc5..cbf33e2 100644 --- a/src/commands/vaults/create-vault-account.ts +++ b/src/commands/vaults/create-vault-account.ts @@ -21,6 +21,7 @@ export default class CreateVaultAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts' + static operationId = 'createVaultAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/deactivate-usdc-gateway-wallet-beta.ts b/src/commands/vaults/deactivate-usdc-gateway-wallet-beta.ts index b4c2d8a..ca232e9 100644 --- a/src/commands/vaults/deactivate-usdc-gateway-wallet-beta.ts +++ b/src/commands/vaults/deactivate-usdc-gateway-wallet-beta.ts @@ -21,6 +21,7 @@ export default class DeactivateUsdcGatewayWalletBeta extends FireblocksBaseComma static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/usdc_gateway/deactivate' + static operationId = 'deactivateUsdcGatewayWalletBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/disable-usdc-gateway-deposit-automation-schedule-beta.ts b/src/commands/vaults/disable-usdc-gateway-deposit-automation-schedule-beta.ts index 9201387..ff2a12e 100644 --- a/src/commands/vaults/disable-usdc-gateway-deposit-automation-schedule-beta.ts +++ b/src/commands/vaults/disable-usdc-gateway-deposit-automation-schedule-beta.ts @@ -25,6 +25,7 @@ export default class DisableUsdcGatewayDepositAutomationScheduleBeta extends Fir static method = 'DELETE' static path = '/v1/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation/{automationId}' + static operationId = 'disableUsdcGatewayDepositAutomationScheduleBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-asset-wallets.ts b/src/commands/vaults/get-asset-wallets.ts index c5d1f2a..9e449f0 100644 --- a/src/commands/vaults/get-asset-wallets.ts +++ b/src/commands/vaults/get-asset-wallets.ts @@ -38,6 +38,7 @@ export default class GetAssetWallets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/asset_wallets' + static operationId = 'getAssetWallets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-create-multiple-deposit-addresses-job-status.ts b/src/commands/vaults/get-create-multiple-deposit-addresses-job-status.ts index 24fb615..bc4ba32 100644 --- a/src/commands/vaults/get-create-multiple-deposit-addresses-job-status.ts +++ b/src/commands/vaults/get-create-multiple-deposit-addresses-job-status.ts @@ -21,6 +21,7 @@ export default class GetCreateMultipleDepositAddressesJobStatus extends Firebloc static method = 'GET' static path = '/v1/vault/accounts/addresses/bulk/{jobId}' + static operationId = 'getCreateMultipleDepositAddressesJobStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-create-multiple-vault-accounts-job-status.ts b/src/commands/vaults/get-create-multiple-vault-accounts-job-status.ts index 1943392..cb6e187 100644 --- a/src/commands/vaults/get-create-multiple-vault-accounts-job-status.ts +++ b/src/commands/vaults/get-create-multiple-vault-accounts-job-status.ts @@ -21,6 +21,7 @@ export default class GetCreateMultipleVaultAccountsJobStatus extends FireblocksB static method = 'GET' static path = '/v1/vault/accounts/bulk/{jobId}' + static operationId = 'getCreateMultipleVaultAccountsJobStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-max-bip-index-used.ts b/src/commands/vaults/get-max-bip-index-used.ts index ee5f8f3..7a781e2 100644 --- a/src/commands/vaults/get-max-bip-index-used.ts +++ b/src/commands/vaults/get-max-bip-index-used.ts @@ -25,6 +25,7 @@ export default class GetMaxBipIndexUsed extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used' + static operationId = 'getMaxBipIndexUsed' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-max-spendable-amount.ts b/src/commands/vaults/get-max-spendable-amount.ts index fa61d16..0a7cdb8 100644 --- a/src/commands/vaults/get-max-spendable-amount.ts +++ b/src/commands/vaults/get-max-spendable-amount.ts @@ -46,6 +46,7 @@ export default class GetMaxSpendableAmount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount' + static operationId = 'getMaxSpendableAmount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-paged-vault-accounts.ts b/src/commands/vaults/get-paged-vault-accounts.ts index b5a1d6b..a2a4beb 100644 --- a/src/commands/vaults/get-paged-vault-accounts.ts +++ b/src/commands/vaults/get-paged-vault-accounts.ts @@ -53,6 +53,7 @@ export default class GetPagedVaultAccounts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts_paged' + static operationId = 'getPagedVaultAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-public-key-info-for-address.ts b/src/commands/vaults/get-public-key-info-for-address.ts index 8b6a659..9404a00 100644 --- a/src/commands/vaults/get-public-key-info-for-address.ts +++ b/src/commands/vaults/get-public-key-info-for-address.ts @@ -36,6 +36,7 @@ export default class GetPublicKeyInfoForAddress extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info' + static operationId = 'getPublicKeyInfoForAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-public-key-info.ts b/src/commands/vaults/get-public-key-info.ts index f4bd98d..8e3dcf7 100644 --- a/src/commands/vaults/get-public-key-info.ts +++ b/src/commands/vaults/get-public-key-info.ts @@ -28,6 +28,7 @@ export default class GetPublicKeyInfo extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/public_key_info' + static operationId = 'getPublicKeyInfo' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-unspent-inputs.ts b/src/commands/vaults/get-unspent-inputs.ts index 6f161f1..ff93a9e 100644 --- a/src/commands/vaults/get-unspent-inputs.ts +++ b/src/commands/vaults/get-unspent-inputs.ts @@ -25,6 +25,7 @@ export default class GetUnspentInputs extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs' + static operationId = 'getUnspentInputs' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-usdc-gateway-deposit-automation-beta.ts b/src/commands/vaults/get-usdc-gateway-deposit-automation-beta.ts index 51fa840..b274d53 100644 --- a/src/commands/vaults/get-usdc-gateway-deposit-automation-beta.ts +++ b/src/commands/vaults/get-usdc-gateway-deposit-automation-beta.ts @@ -21,6 +21,7 @@ export default class GetUsdcGatewayDepositAutomationBeta extends FireblocksBaseC static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation' + static operationId = 'getUsdcGatewayDepositAutomationBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-usdc-gateway-wallet-info-beta.ts b/src/commands/vaults/get-usdc-gateway-wallet-info-beta.ts index dfa49f0..37f2aa5 100644 --- a/src/commands/vaults/get-usdc-gateway-wallet-info-beta.ts +++ b/src/commands/vaults/get-usdc-gateway-wallet-info-beta.ts @@ -21,6 +21,7 @@ export default class GetUsdcGatewayWalletInfoBeta extends FireblocksBaseCommand static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/usdc_gateway' + static operationId = 'getUsdcGatewayWalletInfoBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-account-asset-addresses-paginated.ts b/src/commands/vaults/get-vault-account-asset-addresses-paginated.ts index 27e61ea..ac3d8e7 100644 --- a/src/commands/vaults/get-vault-account-asset-addresses-paginated.ts +++ b/src/commands/vaults/get-vault-account-asset-addresses-paginated.ts @@ -34,6 +34,7 @@ export default class GetVaultAccountAssetAddressesPaginated extends FireblocksBa static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated' + static operationId = 'getVaultAccountAssetAddressesPaginated' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-account-asset-addresses.ts b/src/commands/vaults/get-vault-account-asset-addresses.ts index 3a4e80c..523e6aa 100644 --- a/src/commands/vaults/get-vault-account-asset-addresses.ts +++ b/src/commands/vaults/get-vault-account-asset-addresses.ts @@ -25,6 +25,7 @@ export default class GetVaultAccountAssetAddresses extends FireblocksBaseCommand static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses' + static operationId = 'getVaultAccountAssetAddresses' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-account-asset.ts b/src/commands/vaults/get-vault-account-asset.ts index 7750401..ee053ca 100644 --- a/src/commands/vaults/get-vault-account-asset.ts +++ b/src/commands/vaults/get-vault-account-asset.ts @@ -25,6 +25,7 @@ export default class GetVaultAccountAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}' + static operationId = 'getVaultAccountAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-account.ts b/src/commands/vaults/get-vault-account.ts index 5059fb5..3ba9701 100644 --- a/src/commands/vaults/get-vault-account.ts +++ b/src/commands/vaults/get-vault-account.ts @@ -21,6 +21,7 @@ export default class GetVaultAccount extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts/{vaultAccountId}' + static operationId = 'getVaultAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-accounts.ts b/src/commands/vaults/get-vault-accounts.ts index bf0dde9..ea15b6e 100644 --- a/src/commands/vaults/get-vault-accounts.ts +++ b/src/commands/vaults/get-vault-accounts.ts @@ -29,6 +29,7 @@ export default class GetVaultAccounts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/accounts' + static operationId = 'getVaultAccounts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-assets.ts b/src/commands/vaults/get-vault-assets.ts index ed743bd..9fc0a84 100644 --- a/src/commands/vaults/get-vault-assets.ts +++ b/src/commands/vaults/get-vault-assets.ts @@ -23,6 +23,7 @@ export default class GetVaultAssets extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/assets' + static operationId = 'getVaultAssets' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/get-vault-balance-by-asset.ts b/src/commands/vaults/get-vault-balance-by-asset.ts index dc9294f..e6c2d07 100644 --- a/src/commands/vaults/get-vault-balance-by-asset.ts +++ b/src/commands/vaults/get-vault-balance-by-asset.ts @@ -21,6 +21,7 @@ export default class GetVaultBalanceByAsset extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/assets/{assetId}' + static operationId = 'getVaultBalanceByAsset' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/hide-vault-account.ts b/src/commands/vaults/hide-vault-account.ts index c7ae5b0..2a43c47 100644 --- a/src/commands/vaults/hide-vault-account.ts +++ b/src/commands/vaults/hide-vault-account.ts @@ -21,6 +21,7 @@ export default class HideVaultAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/hide' + static operationId = 'hideVaultAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/lookup-vault-by-address.ts b/src/commands/vaults/lookup-vault-by-address.ts index e67100a..71261ec 100644 --- a/src/commands/vaults/lookup-vault-by-address.ts +++ b/src/commands/vaults/lookup-vault-by-address.ts @@ -21,6 +21,7 @@ export default class LookupVaultByAddress extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/vault/lookup_by_address' + static operationId = 'lookupVaultByAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/register-tempo-omnibus-wallet.ts b/src/commands/vaults/register-tempo-omnibus-wallet.ts deleted file mode 100644 index 1450783..0000000 --- a/src/commands/vaults/register-tempo-omnibus-wallet.ts +++ /dev/null @@ -1,58 +0,0 @@ -import {Flags} from '@oclif/core' -import {FireblocksBaseCommand} from '../../lib/base-command.js' - -export default class RegisterTempoOmnibusWallet extends FireblocksBaseCommand { - static summary = 'Register a Tempo omnibus wallet' - - static description = 'Registers a Tempo omnibus wallet for the requested vault account.\nTriggering this flow requires the vault account to hold PATH_USD with a balance sufficient to cover the gas fee.\nEndpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.\n\nOperation ID: registerTempoOmnibusWallet\nDocs: https://docs.fireblocks.com/api/swagger-ui/#/Vaults/registerTempoOmnibusWallet' - - static enableJsonFlag = false - - static flags = { - 'vault-account-id': Flags.string({ - description: 'The ID of the vault account for which to register the Tempo wallet.', - required: true, - }), - 'asset-id': Flags.string({ - description: 'The Tempo network asset to register for the vault account.', - required: true, - }), - 'include-headers': Flags.boolean({ - description: 'Include spec-defined response headers in output', - default: false, - }), - } - - static method = 'POST' - static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/omnibus/tempo/register' - static isBeta = false - static responseHeaders: string[] = ["X-Request-ID"] - - async run(): Promise { - const {flags} = await this.parse(RegisterTempoOmnibusWallet) - - - const headers: Record = {} - if (flags['idempotency-key']) { - headers['Idempotency-Key'] = flags['idempotency-key'] - } - - const pathParams: Record = {} - pathParams['vaultAccountId'] = String(flags['vault-account-id']) - pathParams['assetId'] = String(flags['asset-id']) - - - await this.confirmOrAbort('POST', '/v1/vault/accounts/{vaultAccountId}/{assetId}/omnibus/tempo/register') - - const result = await this.makeRequest( - 'POST', - '/v1/vault/accounts/{vaultAccountId}/{assetId}/omnibus/tempo/register', - { - headers, - pathParams, - }, - ) - - return result - } -} diff --git a/src/commands/vaults/set-customer-ref-id-for-address.ts b/src/commands/vaults/set-customer-ref-id-for-address.ts index 50baf3a..3ed7740 100644 --- a/src/commands/vaults/set-customer-ref-id-for-address.ts +++ b/src/commands/vaults/set-customer-ref-id-for-address.ts @@ -33,6 +33,7 @@ export default class SetCustomerRefIdForAddress extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id' + static operationId = 'setCustomerRefIdForAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/set-usdc-gateway-deposit-automation-beta.ts b/src/commands/vaults/set-usdc-gateway-deposit-automation-beta.ts index 263253b..953f511 100644 --- a/src/commands/vaults/set-usdc-gateway-deposit-automation-beta.ts +++ b/src/commands/vaults/set-usdc-gateway-deposit-automation-beta.ts @@ -25,6 +25,7 @@ export default class SetUsdcGatewayDepositAutomationBeta extends FireblocksBaseC static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation' + static operationId = 'setUsdcGatewayDepositAutomationBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/set-vault-account-auto-fuel.ts b/src/commands/vaults/set-vault-account-auto-fuel.ts index f9665a8..45dd79b 100644 --- a/src/commands/vaults/set-vault-account-auto-fuel.ts +++ b/src/commands/vaults/set-vault-account-auto-fuel.ts @@ -25,6 +25,7 @@ export default class SetVaultAccountAutoFuel extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/set_auto_fuel' + static operationId = 'setVaultAccountAutoFuel' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/set-vault-account-customer-ref-id.ts b/src/commands/vaults/set-vault-account-customer-ref-id.ts index fe72d7c..d102273 100644 --- a/src/commands/vaults/set-vault-account-customer-ref-id.ts +++ b/src/commands/vaults/set-vault-account-customer-ref-id.ts @@ -25,6 +25,7 @@ export default class SetVaultAccountCustomerRefId extends FireblocksBaseCommand static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/set_customer_ref_id' + static operationId = 'setVaultAccountCustomerRefId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/unhide-vault-account.ts b/src/commands/vaults/unhide-vault-account.ts index da5886b..a12c0e1 100644 --- a/src/commands/vaults/unhide-vault-account.ts +++ b/src/commands/vaults/unhide-vault-account.ts @@ -21,6 +21,7 @@ export default class UnhideVaultAccount extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/unhide' + static operationId = 'unhideVaultAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/update-usdc-gateway-deposit-automation-beta.ts b/src/commands/vaults/update-usdc-gateway-deposit-automation-beta.ts index 9dd91f2..e98fd7d 100644 --- a/src/commands/vaults/update-usdc-gateway-deposit-automation-beta.ts +++ b/src/commands/vaults/update-usdc-gateway-deposit-automation-beta.ts @@ -29,6 +29,7 @@ export default class UpdateUsdcGatewayDepositAutomationBeta extends FireblocksBa static method = 'PATCH' static path = '/v1/vault/accounts/{vaultAccountId}/virtual_asset_wallet/usdc_gateway/deposit_automation/{automationId}' + static operationId = 'updateUsdcGatewayDepositAutomationBeta' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/update-vault-account-asset-address.ts b/src/commands/vaults/update-vault-account-asset-address.ts index 0dfa4a7..3ba88db 100644 --- a/src/commands/vaults/update-vault-account-asset-address.ts +++ b/src/commands/vaults/update-vault-account-asset-address.ts @@ -32,6 +32,7 @@ export default class UpdateVaultAccountAssetAddress extends FireblocksBaseComman static method = 'PUT' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}' + static operationId = 'updateVaultAccountAssetAddress' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/update-vault-account-asset-balance.ts b/src/commands/vaults/update-vault-account-asset-balance.ts index 96ba361..bc7a4d6 100644 --- a/src/commands/vaults/update-vault-account-asset-balance.ts +++ b/src/commands/vaults/update-vault-account-asset-balance.ts @@ -25,6 +25,7 @@ export default class UpdateVaultAccountAssetBalance extends FireblocksBaseComman static method = 'POST' static path = '/v1/vault/accounts/{vaultAccountId}/{assetId}/balance' + static operationId = 'updateVaultAccountAssetBalance' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/vaults/update-vault-account.ts b/src/commands/vaults/update-vault-account.ts index 3e4c225..48ac7fb 100644 --- a/src/commands/vaults/update-vault-account.ts +++ b/src/commands/vaults/update-vault-account.ts @@ -25,6 +25,7 @@ export default class UpdateVaultAccount extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/vault/accounts/{vaultAccountId}' + static operationId = 'updateVaultAccount' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/web3-connections/create.ts b/src/commands/web3-connections/create.ts index d62c5b0..d3bdc7f 100644 --- a/src/commands/web3-connections/create.ts +++ b/src/commands/web3-connections/create.ts @@ -21,6 +21,7 @@ export default class Create extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/connections/wc' + static operationId = 'create' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/web3-connections/get.ts b/src/commands/web3-connections/get.ts index 0420b9d..70a94b8 100644 --- a/src/commands/web3-connections/get.ts +++ b/src/commands/web3-connections/get.ts @@ -37,6 +37,7 @@ export default class Get extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/connections' + static operationId = 'get' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/web3-connections/remove.ts b/src/commands/web3-connections/remove.ts index fe8bfd7..0907989 100644 --- a/src/commands/web3-connections/remove.ts +++ b/src/commands/web3-connections/remove.ts @@ -21,6 +21,7 @@ export default class Remove extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/connections/wc/{id}' + static operationId = 'remove' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/web3-connections/submit.ts b/src/commands/web3-connections/submit.ts index 14c7c5f..9cb017c 100644 --- a/src/commands/web3-connections/submit.ts +++ b/src/commands/web3-connections/submit.ts @@ -25,6 +25,7 @@ export default class Submit extends FireblocksBaseCommand { static method = 'PUT' static path = '/v1/connections/wc/{id}' + static operationId = 'submit' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/create-webhook-mtls-config.ts b/src/commands/webhooks-v2/create-webhook-mtls-config.ts index f60a30b..641ab22 100644 --- a/src/commands/webhooks-v2/create-webhook-mtls-config.ts +++ b/src/commands/webhooks-v2/create-webhook-mtls-config.ts @@ -21,6 +21,7 @@ export default class CreateWebhookMtlsConfig extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks_settings/mtls' + static operationId = 'createWebhookMtlsConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/create-webhook-oauth.ts b/src/commands/webhooks-v2/create-webhook-oauth.ts index 63705fb..100953d 100644 --- a/src/commands/webhooks-v2/create-webhook-oauth.ts +++ b/src/commands/webhooks-v2/create-webhook-oauth.ts @@ -21,6 +21,7 @@ export default class CreateWebhookOauth extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks_settings/oauth' + static operationId = 'createWebhookOauth' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/create-webhook.ts b/src/commands/webhooks-v2/create-webhook.ts index 25d774c..9813c27 100644 --- a/src/commands/webhooks-v2/create-webhook.ts +++ b/src/commands/webhooks-v2/create-webhook.ts @@ -21,6 +21,7 @@ export default class CreateWebhook extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks' + static operationId = 'createWebhook' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/delete-webhook-mtls-config.ts b/src/commands/webhooks-v2/delete-webhook-mtls-config.ts index 2cbc05e..cf47628 100644 --- a/src/commands/webhooks-v2/delete-webhook-mtls-config.ts +++ b/src/commands/webhooks-v2/delete-webhook-mtls-config.ts @@ -25,6 +25,7 @@ export default class DeleteWebhookMtlsConfig extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/webhooks_settings/mtls/{webhookMtlsId}' + static operationId = 'deleteWebhookMtlsConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/delete-webhook-oauth.ts b/src/commands/webhooks-v2/delete-webhook-oauth.ts index c736434..4f90638 100644 --- a/src/commands/webhooks-v2/delete-webhook-oauth.ts +++ b/src/commands/webhooks-v2/delete-webhook-oauth.ts @@ -25,6 +25,7 @@ export default class DeleteWebhookOauth extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/webhooks_settings/oauth/{webhookOauthId}' + static operationId = 'deleteWebhookOauth' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/delete-webhook.ts b/src/commands/webhooks-v2/delete-webhook.ts index 4f1435b..1830d9f 100644 --- a/src/commands/webhooks-v2/delete-webhook.ts +++ b/src/commands/webhooks-v2/delete-webhook.ts @@ -21,6 +21,7 @@ export default class DeleteWebhook extends FireblocksBaseCommand { static method = 'DELETE' static path = '/v1/webhooks/{webhookId}' + static operationId = 'deleteWebhook' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-metrics.ts b/src/commands/webhooks-v2/get-metrics.ts index d9840bd..1723887 100644 --- a/src/commands/webhooks-v2/get-metrics.ts +++ b/src/commands/webhooks-v2/get-metrics.ts @@ -26,6 +26,7 @@ export default class GetMetrics extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}/metrics/{metricName}' + static operationId = 'getMetrics' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-mtls-csr.ts b/src/commands/webhooks-v2/get-mtls-csr.ts index 4c7eeaf..cf4d571 100644 --- a/src/commands/webhooks-v2/get-mtls-csr.ts +++ b/src/commands/webhooks-v2/get-mtls-csr.ts @@ -22,6 +22,7 @@ export default class GetMtlsCsr extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks_settings/mtls_csr' + static operationId = 'getMtlsCsr' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-notification-attempts.ts b/src/commands/webhooks-v2/get-notification-attempts.ts index 227fdef..fb86eca 100644 --- a/src/commands/webhooks-v2/get-notification-attempts.ts +++ b/src/commands/webhooks-v2/get-notification-attempts.ts @@ -32,6 +32,7 @@ export default class GetNotificationAttempts extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}/notifications/{notificationId}/attempts' + static operationId = 'getNotificationAttempts' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-notification.ts b/src/commands/webhooks-v2/get-notification.ts index 01c0abd..6a87581 100644 --- a/src/commands/webhooks-v2/get-notification.ts +++ b/src/commands/webhooks-v2/get-notification.ts @@ -28,6 +28,7 @@ export default class GetNotification extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}/notifications/{notificationId}' + static operationId = 'getNotification' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-notifications.ts b/src/commands/webhooks-v2/get-notifications.ts index 6a208f6..662d52d 100644 --- a/src/commands/webhooks-v2/get-notifications.ts +++ b/src/commands/webhooks-v2/get-notifications.ts @@ -53,6 +53,7 @@ export default class GetNotifications extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}/notifications' + static operationId = 'getNotifications' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-resend-by-query-job-status.ts b/src/commands/webhooks-v2/get-resend-by-query-job-status.ts index b0b6625..9ee172f 100644 --- a/src/commands/webhooks-v2/get-resend-by-query-job-status.ts +++ b/src/commands/webhooks-v2/get-resend-by-query-job-status.ts @@ -25,6 +25,7 @@ export default class GetResendByQueryJobStatus extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}/notifications/resend_by_query/jobs/{jobId}' + static operationId = 'getResendByQueryJobStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-resend-job-status.ts b/src/commands/webhooks-v2/get-resend-job-status.ts index 7d06876..b04b67a 100644 --- a/src/commands/webhooks-v2/get-resend-job-status.ts +++ b/src/commands/webhooks-v2/get-resend-job-status.ts @@ -25,6 +25,7 @@ export default class GetResendJobStatus extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId}' + static operationId = 'getResendJobStatus' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-webhook-mtls-config.ts b/src/commands/webhooks-v2/get-webhook-mtls-config.ts index d1b93d1..14e9f8e 100644 --- a/src/commands/webhooks-v2/get-webhook-mtls-config.ts +++ b/src/commands/webhooks-v2/get-webhook-mtls-config.ts @@ -21,6 +21,7 @@ export default class GetWebhookMtlsConfig extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks_settings/mtls/{webhookMtlsId}' + static operationId = 'getWebhookMtlsConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-webhook-mtls-configs.ts b/src/commands/webhooks-v2/get-webhook-mtls-configs.ts index fab3e86..ceaf68b 100644 --- a/src/commands/webhooks-v2/get-webhook-mtls-configs.ts +++ b/src/commands/webhooks-v2/get-webhook-mtls-configs.ts @@ -20,6 +20,7 @@ export default class GetWebhookMtlsConfigs extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks_settings/mtls' + static operationId = 'getWebhookMtlsConfigs' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-webhook-oauth.ts b/src/commands/webhooks-v2/get-webhook-oauth.ts index 8330d37..2caa98e 100644 --- a/src/commands/webhooks-v2/get-webhook-oauth.ts +++ b/src/commands/webhooks-v2/get-webhook-oauth.ts @@ -21,6 +21,7 @@ export default class GetWebhookOauth extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks_settings/oauth/{webhookOauthId}' + static operationId = 'getWebhookOauth' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-webhook-oauths.ts b/src/commands/webhooks-v2/get-webhook-oauths.ts index 9bbbecc..2cce817 100644 --- a/src/commands/webhooks-v2/get-webhook-oauths.ts +++ b/src/commands/webhooks-v2/get-webhook-oauths.ts @@ -17,6 +17,7 @@ export default class GetWebhookOauths extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks_settings/oauth' + static operationId = 'getWebhookOauths' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-webhook.ts b/src/commands/webhooks-v2/get-webhook.ts index 7cbd30f..aca78dc 100644 --- a/src/commands/webhooks-v2/get-webhook.ts +++ b/src/commands/webhooks-v2/get-webhook.ts @@ -21,6 +21,7 @@ export default class GetWebhook extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks/{webhookId}' + static operationId = 'getWebhook' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/get-webhooks.ts b/src/commands/webhooks-v2/get-webhooks.ts index ebd29a8..bb78efb 100644 --- a/src/commands/webhooks-v2/get-webhooks.ts +++ b/src/commands/webhooks-v2/get-webhooks.ts @@ -29,6 +29,7 @@ export default class GetWebhooks extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/webhooks' + static operationId = 'getWebhooks' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/resend-failed-notifications.ts b/src/commands/webhooks-v2/resend-failed-notifications.ts index 39c2ce8..0e5d747 100644 --- a/src/commands/webhooks-v2/resend-failed-notifications.ts +++ b/src/commands/webhooks-v2/resend-failed-notifications.ts @@ -25,6 +25,7 @@ export default class ResendFailedNotifications extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks/{webhookId}/notifications/resend_failed' + static operationId = 'resendFailedNotifications' static isBeta = false static responseHeaders: string[] = ["X-Request-ID","Location"] diff --git a/src/commands/webhooks-v2/resend-notification-by-id.ts b/src/commands/webhooks-v2/resend-notification-by-id.ts index 58f9f88..972ced5 100644 --- a/src/commands/webhooks-v2/resend-notification-by-id.ts +++ b/src/commands/webhooks-v2/resend-notification-by-id.ts @@ -25,6 +25,7 @@ export default class ResendNotificationById extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks/{webhookId}/notifications/{notificationId}/resend' + static operationId = 'resendNotificationById' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/resend-notifications-by-query.ts b/src/commands/webhooks-v2/resend-notifications-by-query.ts index 44420af..4cea4e3 100644 --- a/src/commands/webhooks-v2/resend-notifications-by-query.ts +++ b/src/commands/webhooks-v2/resend-notifications-by-query.ts @@ -25,6 +25,7 @@ export default class ResendNotificationsByQuery extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks/{webhookId}/notifications/resend_by_query' + static operationId = 'resendNotificationsByQuery' static isBeta = false static responseHeaders: string[] = ["X-Request-ID","Location"] diff --git a/src/commands/webhooks-v2/resend-notifications-by-resource-id.ts b/src/commands/webhooks-v2/resend-notifications-by-resource-id.ts index f5eeb1e..599e293 100644 --- a/src/commands/webhooks-v2/resend-notifications-by-resource-id.ts +++ b/src/commands/webhooks-v2/resend-notifications-by-resource-id.ts @@ -25,6 +25,7 @@ export default class ResendNotificationsByResourceId extends FireblocksBaseComma static method = 'POST' static path = '/v1/webhooks/{webhookId}/notifications/resend_by_resource' + static operationId = 'resendNotificationsByResourceId' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/update-webhook-mtls-config.ts b/src/commands/webhooks-v2/update-webhook-mtls-config.ts index 6f6ecfd..1842840 100644 --- a/src/commands/webhooks-v2/update-webhook-mtls-config.ts +++ b/src/commands/webhooks-v2/update-webhook-mtls-config.ts @@ -25,6 +25,7 @@ export default class UpdateWebhookMtlsConfig extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/webhooks_settings/mtls/{webhookMtlsId}' + static operationId = 'updateWebhookMtlsConfig' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/update-webhook-oauth.ts b/src/commands/webhooks-v2/update-webhook-oauth.ts index b1a333d..d507eee 100644 --- a/src/commands/webhooks-v2/update-webhook-oauth.ts +++ b/src/commands/webhooks-v2/update-webhook-oauth.ts @@ -25,6 +25,7 @@ export default class UpdateWebhookOauth extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/webhooks_settings/oauth/{webhookOauthId}' + static operationId = 'updateWebhookOauth' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks-v2/update-webhook.ts b/src/commands/webhooks-v2/update-webhook.ts index f47fb08..5bc3e4d 100644 --- a/src/commands/webhooks-v2/update-webhook.ts +++ b/src/commands/webhooks-v2/update-webhook.ts @@ -25,6 +25,7 @@ export default class UpdateWebhook extends FireblocksBaseCommand { static method = 'PATCH' static path = '/v1/webhooks/{webhookId}' + static operationId = 'updateWebhook' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks/resend-transaction-webhooks.ts b/src/commands/webhooks/resend-transaction-webhooks.ts index cfb8507..111aefd 100644 --- a/src/commands/webhooks/resend-transaction-webhooks.ts +++ b/src/commands/webhooks/resend-transaction-webhooks.ts @@ -25,6 +25,7 @@ export default class ResendTransactionWebhooks extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks/resend/{txId}' + static operationId = 'resendTransactionWebhooks' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/webhooks/resend-webhooks.ts b/src/commands/webhooks/resend-webhooks.ts index 08bdd93..3812ec1 100644 --- a/src/commands/webhooks/resend-webhooks.ts +++ b/src/commands/webhooks/resend-webhooks.ts @@ -17,6 +17,7 @@ export default class ResendWebhooks extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/webhooks/resend' + static operationId = 'resendWebhooks' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/whitelist-ip-addresses/get-whitelist-ip-addresses.ts b/src/commands/whitelist-ip-addresses/get-whitelist-ip-addresses.ts index cc6ebea..3ed6598 100644 --- a/src/commands/whitelist-ip-addresses/get-whitelist-ip-addresses.ts +++ b/src/commands/whitelist-ip-addresses/get-whitelist-ip-addresses.ts @@ -21,6 +21,7 @@ export default class GetWhitelistIpAddresses extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/api_users/{userId}/whitelist_ip_addresses' + static operationId = 'getWhitelistIpAddresses' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/workspace-status/get-workspace-status.ts b/src/commands/workspace-status/get-workspace-status.ts index 73daf21..eec174e 100644 --- a/src/commands/workspace-status/get-workspace-status.ts +++ b/src/commands/workspace-status/get-workspace-status.ts @@ -13,13 +13,12 @@ export default class GetWorkspaceStatus extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/management/workspace_status' - static isBeta = true + static operationId = 'getWorkspaceStatus' + static isBeta = false async run(): Promise { const {flags} = await this.parse(GetWorkspaceStatus) - this.logToStderr('Warning: This command is in beta and may change in future releases.') - const headers: Record = {} diff --git a/src/commands/workspace/freeze-workspace.ts b/src/commands/workspace/freeze-workspace.ts index e7d5e4f..9e755fd 100644 --- a/src/commands/workspace/freeze-workspace.ts +++ b/src/commands/workspace/freeze-workspace.ts @@ -17,6 +17,7 @@ export default class FreezeWorkspace extends FireblocksBaseCommand { static method = 'POST' static path = '/v1/workspace/freeze' + static operationId = 'freezeWorkspace' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/commands/workspace/get-workspace.ts b/src/commands/workspace/get-workspace.ts index 24f661a..1a36f8b 100644 --- a/src/commands/workspace/get-workspace.ts +++ b/src/commands/workspace/get-workspace.ts @@ -17,6 +17,7 @@ export default class GetWorkspace extends FireblocksBaseCommand { static method = 'GET' static path = '/v1/workspace' + static operationId = 'getWorkspace' static isBeta = false static responseHeaders: string[] = ["X-Request-ID"] diff --git a/src/lib/base-command.ts b/src/lib/base-command.ts index c0fcee8..3a5350d 100644 --- a/src/lib/base-command.ts +++ b/src/lib/base-command.ts @@ -4,6 +4,7 @@ import {resolveAuth} from './auth/index.js' import type {AuthContext} from './auth/index.js' import {fireblocksFetch, type RequestOptions, type ApiResponse} from './http/client.js' import {mapHttpError, EXIT_CODE} from './errors/mapper.js' +import {buildLifecycleWarning, isSuppressed, SUPPRESS_ENV_VAR} from './lifecycle/warning.js' import {formatOutput} from './output/formatter.js' import {formatHeaders} from './output/headers.js' @@ -158,6 +159,14 @@ export abstract class FireblocksBaseCommand extends Command { this.logToStderr(`[DEBUG] Request-ID: ${response.requestId}`) } + // Warn when the response reports a non-GA lifecycle state. Ahead of the error + // handling below on purpose: the header is present on allowed error responses too. + const operationId = (this.constructor as {operationId?: string}).operationId + if (operationId && !isSuppressed(process.env[SUPPRESS_ENV_VAR])) { + const warning = buildLifecycleWarning(response.headers, operationId, response.status) + if (warning) this.logToStderr(`Warning: ${warning}`) + } + // Output response headers if --include-headers is set and the command declares spec-defined headers. // Headers are metadata and always go to stderr to keep stdout clean for JSON consumers and pipes. const responseHeaderNames = (this.constructor as {responseHeaders?: string[]}).responseHeaders ?? [] diff --git a/src/lib/lifecycle/warning.test.ts b/src/lib/lifecycle/warning.test.ts new file mode 100644 index 0000000..5e432f2 --- /dev/null +++ b/src/lib/lifecycle/warning.test.ts @@ -0,0 +1,285 @@ +import { + buildLifecycleWarning, + isSuppressed, + LIFECYCLE_STATE_HEADER, + LINK_HEADER, + SUNSET_HEADER, + SUPPRESS_ENV_VAR, +} from './warning.js' + +const SUNSET = 'Fri, 15 Jan 2027 00:00:00 GMT' +const MIGRATION_GUIDE = 'https://developer.fireblocks.com/docs/v2-migration' +const SUCCESSOR = 'https://api.fireblocks.io/v1/transactions_v2' + +function headersOf(state?: string, sunset?: string, link?: string): Headers { + const headers = new Headers() + if (state !== undefined) headers.set(LIFECYCLE_STATE_HEADER, state) + if (sunset !== undefined) headers.set(SUNSET_HEADER, sunset) + if (link !== undefined) headers.set(LINK_HEADER, link) + return headers +} + +describe('buildLifecycleWarning', () => { + describe('states that warn', () => { + it('warns for beta', () => { + expect(buildLifecycleWarning(headersOf('beta'), 'getWebhooks')).toBe( + "Operation 'getWebhooks' is in 'beta' lifecycle state and is not generally available. " + + 'It may change or be removed without notice.', + ) + }) + + it('renders the beta state verbatim, lowercase', () => { + const message = buildLifecycleWarning(headersOf('beta'), 'op') + expect(message).toContain("'beta'") + expect(message).not.toContain("'Beta'") + }) + + it('no longer recognises the old private_beta name (strict rename)', () => { + expect(buildLifecycleWarning(headersOf('private_beta'), 'op')).toBeUndefined() + expect(buildLifecycleWarning(headersOf('private_beta'), 'op', 200)).toBeUndefined() + }) + + it('no longer mentions a major version bump', () => { + expect(buildLifecycleWarning(headersOf('beta'), 'op')).not.toContain('major version') + }) + + it('warns for beta whatever the status, including 410', () => { + for (const status of [200, 404, 410, 500, undefined]) { + expect(buildLifecycleWarning(headersOf('beta'), 'op', status)).toBeDefined() + } + }) + }) + + describe('closed state', () => { + const CLOSED_MESSAGE = + "Operation 'getContractTemplates' has been closed and is no longer supported. " + + 'Your access is provided under a temporary exception and may be revoked. ' + + 'Contact your Customer Success Manager for migration support' + + it('stays silent on 410 Gone, which already says the operation is closed', () => { + expect(buildLifecycleWarning(headersOf('closed'), 'getContractTemplates', 410)).toBeUndefined() + }) + + it.each([200, 201, 400, 401, 403, 404, 429, 500, 503])('warns with the exception message on status %j', (status) => { + expect(buildLifecycleWarning(headersOf('closed'), 'getContractTemplates', status)).toBe(CLOSED_MESSAGE) + }) + + it('warns when the status is not known, since only a known 410 silences it', () => { + expect(buildLifecycleWarning(headersOf('closed'), 'getContractTemplates')).toBe(CLOSED_MESSAGE) + }) + + it('names the operation and has no trailing period', () => { + const message = buildLifecycleWarning(headersOf('closed'), 'someOtherOperation', 200)! + expect(message).toContain("'someOtherOperation'") + expect(message.endsWith('migration support')).toBe(true) + }) + + it('does not use the generic lifecycle-state wording', () => { + expect(buildLifecycleWarning(headersOf('closed'), 'op', 200)).not.toContain('lifecycle state') + }) + + it('is case-insensitive on the state value', () => { + expect(buildLifecycleWarning(headersOf('CLOSED'), 'getContractTemplates', 200)).toBe(CLOSED_MESSAGE) + }) + + it('still honours 410 when the state value is uppercase', () => { + expect(buildLifecycleWarning(headersOf('CLOSED'), 'getContractTemplates', 410)).toBeUndefined() + }) + }) + + describe('410 only silences closed', () => { + it('still warns for deprecated on 410', () => { + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET), 'op', 410)).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.`, + ) + }) + + it('stays silent for ga and unknown states regardless of status', () => { + expect(buildLifecycleWarning(headersOf('ga'), 'op', 404)).toBeUndefined() + expect(buildLifecycleWarning(headersOf('quantum_preview'), 'op', 404)).toBeUndefined() + }) + }) + + describe('silence', () => { + it.each(['ga', 'internal', 'unlisted', 'quantum_preview', '', ' ', 'private beta', 'private-beta'])( + 'stays silent for state %j', + (state) => { + expect(buildLifecycleWarning(headersOf(state), 'op')).toBeUndefined() + }, + ) + + it('stays silent when the header is absent', () => { + expect(buildLifecycleWarning(new Headers(), 'op')).toBeUndefined() + }) + }) + + describe('case handling', () => { + it('warns on an uppercase state value', () => { + const message = buildLifecycleWarning(headersOf('DEPRECATED', SUNSET), 'op') + expect(message).toBe(`Operation 'op' is deprecated and will stop working after ${SUNSET}.`) + }) + + it.each(['Fireblocks-Lifecycle-State', 'fireblocks-lifecycle-state', 'FIREBLOCKS-LIFECYCLE-STATE'])( + 'looks the header name up case-insensitively: %s', + (name) => { + const headers = new Headers({[name]: 'beta'}) + expect(buildLifecycleWarning(headers, 'op')).toBeDefined() + }, + ) + }) + + describe('deprecated message shapes', () => { + it('uses the sunset alone when there are no links', () => { + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.`, + ) + }) + + it('appends the successor clause', () => { + const link = `<${SUCCESSOR}>; rel="successor-version"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}. Use ${SUCCESSOR} instead.`, + ) + }) + + it('appends the migration guide clause', () => { + const link = `<${MIGRATION_GUIDE}>; rel="deprecation"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}. Migration guide: ${MIGRATION_GUIDE}`, + ) + }) + + it('orders successor before migration guide when both are present', () => { + const link = `<${MIGRATION_GUIDE}>; rel="deprecation", <${SUCCESSOR}>; rel="successor-version"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}. ` + + `Use ${SUCCESSOR} instead. Migration guide: ${MIGRATION_GUIDE}`, + ) + }) + + it('degrades gracefully without a sunset header', () => { + expect(buildLifecycleWarning(headersOf('deprecated'), 'op')).toBe("Operation 'op' is deprecated.") + }) + }) + + describe('Link parsing', () => { + it('does not split a URI containing a comma', () => { + const url = 'https://developer.fireblocks.com/docs/a,b' + const link = `<${url}>; rel="deprecation"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Migration guide: ${url}`, + ) + }) + + it('accepts an unquoted rel', () => { + const link = `<${SUCCESSOR}>; rel=successor-version` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Use ${SUCCESSOR} instead.`, + ) + }) + + it('reads repeated Link headers, which Headers joins with a comma', () => { + const headers = headersOf('deprecated', SUNSET) + headers.append(LINK_HEADER, `<${MIGRATION_GUIDE}>; rel="deprecation"`) + headers.append(LINK_HEADER, `<${SUCCESSOR}>; rel="successor-version"`) + const message = buildLifecycleWarning(headers, 'op') + expect(message).toContain(`Use ${SUCCESSOR} instead.`) + expect(message).toContain(`Migration guide: ${MIGRATION_GUIDE}`) + }) + + it('parses rel after other parameters', () => { + const link = `<${MIGRATION_GUIDE}>; type="text/html"; rel="deprecation"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Migration guide: ${MIGRATION_GUIDE}`, + ) + }) + + it('ignores a parameter after rel', () => { + const link = `<${MIGRATION_GUIDE}>; rel="deprecation"; title="Migrate to v2"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Migration guide: ${MIGRATION_GUIDE}`, + ) + }) + + it('serves each relation when rel lists several', () => { + const link = `<${MIGRATION_GUIDE}>; rel="deprecation successor-version"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.` + + ` Use ${MIGRATION_GUIDE} instead.` + + ` Migration guide: ${MIGRATION_GUIDE}`, + ) + }) + + it('finds the relation among several in a multi-valued rel', () => { + const link = `<${SUCCESSOR}>; rel="successor-version alternate"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Use ${SUCCESSOR} instead.`, + ) + }) + + it('handles two links that each have leading parameters', () => { + const link = + `<${MIGRATION_GUIDE}>; type="text/html"; rel="deprecation", ` + + `<${SUCCESSOR}>; title="v2"; rel="successor-version"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.` + + ` Use ${SUCCESSOR} instead.` + + ` Migration guide: ${MIGRATION_GUIDE}`, + ) + }) + + it('does not credit a rel to the previous link-value', () => { + // Only the second link carries a rel; the first must not pick it up. + const link = `<${MIGRATION_GUIDE}>; type="text/html", <${SUCCESSOR}>; rel="successor-version"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.` + + ` Use ${SUCCESSOR} instead.`, + ) + }) + + it.each(['REL="deprecation"', 'Rel="deprecation"', 'rel="Deprecation"', 'rel=DEPRECATION'])( + 'matches the rel name and value case-insensitively: %s', + (rel) => { + const link = `<${MIGRATION_GUIDE}>; ${rel}` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Migration guide: ${MIGRATION_GUIDE}`, + ) + }, + ) + + it('keeps the first occurrence when a relation appears twice', () => { + const first = 'https://developer.fireblocks.com/docs/first' + const link = `<${first}>; rel="deprecation", ; rel="deprecation"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toContain( + `Migration guide: ${first}`, + ) + }) + + it('ignores unknown relations', () => { + const link = `<${SUCCESSOR}>; rel="something-else"` + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, link), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.`, + ) + }) + + it('does not throw on a malformed Link header', () => { + expect(buildLifecycleWarning(headersOf('deprecated', SUNSET, 'not a link header'), 'op')).toBe( + `Operation 'op' is deprecated and will stop working after ${SUNSET}.`, + ) + }) + }) +}) + +describe('isSuppressed', () => { + it('uses the documented variable name', () => { + expect(SUPPRESS_ENV_VAR).toBe('FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING') + }) + + it.each(['1', 'true', 'yes'])('suppresses for %j', (value) => { + expect(isSuppressed(value)).toBe(true) + }) + + it.each([undefined, '', '0', 'false'])('does not suppress for %j', (value) => { + expect(isSuppressed(value)).toBe(false) + }) +}) diff --git a/src/lib/lifecycle/warning.ts b/src/lib/lifecycle/warning.ts new file mode 100644 index 0000000..32d1c5b --- /dev/null +++ b/src/lib/lifecycle/warning.ts @@ -0,0 +1,111 @@ +/** + * API lifecycle warnings. + * + * When a response reports a non-GA lifecycle state, the CLI prints a warning to + * stderr naming the operation and its state. The state is read from the + * `Fireblocks-Lifecycle-State` response header, so it stays accurate regardless of + * which CLI version is installed. + * + * The wording is identical to the Fireblocks SDKs (Python, TypeScript, Java). + * + * Header values are used as received. They are gateway-authored: the gateway strips + * any downstream-supplied lifecycle headers and reapplies its own, derived from the + * deployed specification, which is validated by the OpenAPI lint rules. + */ + +/** Set (e.g. to 1) to suppress lifecycle warnings entirely; 0 and false do not suppress. */ +export const SUPPRESS_ENV_VAR = 'FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING' + +export const LIFECYCLE_STATE_HEADER = 'Fireblocks-Lifecycle-State' +export const SUNSET_HEADER = 'Sunset' +export const LINK_HEADER = 'Link' + +export const BETA_STATE = 'beta' +export const DEPRECATED_STATE = 'deprecated' +export const CLOSED_STATE = 'closed' +export const WARNING_STATES: ReadonlySet = new Set([BETA_STATE, DEPRECATED_STATE, CLOSED_STATE]) + +// The gateway answers a closed operation with 410 Gone to every caller without a +// temporary exception. That response already says what happened, so no warning. +export const GONE_STATUS = 410 + +export const REL_DEPRECATION = 'deprecation' +export const REL_SUCCESSOR_VERSION = 'successor-version' + +// RFC 8288. Anchored on the angle brackets rather than split on commas, because a +// comma is legal inside a URI and Headers joins repeated Link headers with ", ". +// `rel` may follow other parameters (`; type="text/html"; rel="deprecation"`), is +// matched case-insensitively, and may be quoted or bare. `[^<]*?` keeps the parameters +// between `>` and `rel` from running into the next link-value. +const LINK_PATTERN = /<([^>]*)>[^<]*?;\s*rel\s*=\s*(?:"([^"]*)"|([^\s;,]+))/gi + +/** True when the suppression env var is set to anything other than 0 or false. */ +export function isSuppressed(value: string | undefined): boolean { + return Boolean(value) && value !== '0' && value !== 'false' +} + +/** Map link relation -> URL, first occurrence wins. */ +function parseLinks(headers: Headers): Record { + const links: Record = {} + const raw = headers.get(LINK_HEADER) + if (!raw) return links + + for (const match of raw.matchAll(LINK_PATTERN)) { + const url = match[1].trim() + // `rel` can list several relation types separated by spaces: rel="deprecation successor-version" + for (const relation of (match[2] ?? match[3]).toLowerCase().split(/\s+/)) { + if (relation && !(relation in links)) { + links[relation] = url + } + } + } + + return links +} + +/** + * Build the warning for a response, or undefined when nothing should be logged. + * Silent on: absent or empty header, an unrecognised state, `ga`, and a `closed` + * operation answered with 410 Gone. An unknown status counts as "not 410". + */ +export function buildLifecycleWarning( + headers: Headers, + operationId: string, + status?: number, +): string | undefined { + const rawState = headers.get(LIFECYCLE_STATE_HEADER) + if (!rawState) return undefined + + const state = rawState.trim().toLowerCase() + if (!WARNING_STATES.has(state)) return undefined + + if (state === BETA_STATE) { + return ( + `Operation '${operationId}' is in 'beta' lifecycle state and is not generally available.` + + ' It may change or be removed without notice.' + ) + } + + if (state === CLOSED_STATE) { + if (status === GONE_STATUS) return undefined + return ( + `Operation '${operationId}' has been closed and is no longer supported.` + + ' Your access is provided under a temporary exception and may be revoked.' + + ' Contact your Customer Success Manager for migration support' + ) + } + + const sunset = headers.get(SUNSET_HEADER)?.trim() + let message = sunset + ? `Operation '${operationId}' is deprecated and will stop working after ${sunset}.` + : `Operation '${operationId}' is deprecated.` + + const links = parseLinks(headers) + const successor = links[REL_SUCCESSOR_VERSION] + if (successor) message += ` Use ${successor} instead.` + + const migrationGuide = links[REL_DEPRECATION] + if (migrationGuide) message += ` Migration guide: ${migrationGuide}` + + return message +} diff --git a/test/contract.test.ts b/test/contract.test.ts index f51e1f5..ad7e04f 100644 --- a/test/contract.test.ts +++ b/test/contract.test.ts @@ -45,6 +45,11 @@ describe('contract: generated CLI structure', () => { expect(content).toContain("'include-headers': Flags.boolean(") }) + it('generated commands expose their operationId for lifecycle warnings', () => { + const content = readFileSync(join(COMMANDS_DIR, 'transactions', 'get-transactions.ts'), 'utf-8') + expect(content).toContain("static operationId = 'getTransactions'") + }) + it('commands without response headers do not have include-headers flag', () => { // whoami is a hand-written command without responseHeaders const whoamiContent = readFileSync(join(COMMANDS_DIR, 'whoami.ts'), 'utf-8') diff --git a/test/e2e.test.ts b/test/e2e.test.ts index 791c24b..7d9dd6a 100644 --- a/test/e2e.test.ts +++ b/test/e2e.test.ts @@ -499,4 +499,208 @@ describe('e2e: full command execution flow', () => { } }) }) + + + describe('lifecycle warnings', () => { + const SUPPRESS_ENV_VAR = 'FIREBLOCKS_SDK_SUPPRESS_LIFECYCLE_WARNING' + const SUNSET = 'Fri, 15 Jan 2027 00:00:00 GMT' + const originalSuppress = process.env[SUPPRESS_ENV_VAR] + + beforeEach(() => { + delete process.env[SUPPRESS_ENV_VAR] + }) + + afterEach(() => { + if (originalSuppress === undefined) delete process.env[SUPPRESS_ENV_VAR] + else process.env[SUPPRESS_ENV_VAR] = originalSuppress + }) + + /** Run GetVaultAccount, capturing stdout, stderr and the exit code. */ + async function runGetVaultAccount(extraArgs: string[] = []) { + const {default: GetVaultAccount} = require('../src/commands/vaults/get-vault-account.js') + const logSpy = jest.spyOn(GetVaultAccount.prototype, 'log').mockImplementation(() => {}) + const stderrSpy = jest.spyOn(GetVaultAccount.prototype, 'logToStderr').mockImplementation(() => {}) + + let exitCode = 0 + try { + await GetVaultAccount.run(['--vault-account-id', '123', '--no-confirm', ...extraArgs]) + } catch (error: any) { + if (error?.oclif?.exit === undefined) throw error + exitCode = error.oclif.exit + } + + const stdout = logSpy.mock.calls.map((c) => c[0] as string) + const stderr = stderrSpy.mock.calls.map((c) => c[0] as string) + logSpy.mockRestore() + stderrSpy.mockRestore() + return {stdout, stderr, exitCode} + } + + const warnings = (stderr: string[]) => stderr.filter((line) => line.startsWith('Warning:')) + + it('warns on stderr for a beta response and keeps stdout to the JSON body', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, {'fireblocks-lifecycle-state': 'beta'}), + ) + + const {stdout, stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(0) + expect(warnings(stderr)).toEqual([ + "Warning: Operation 'getVaultAccount' is in 'beta' lifecycle state and is not generally available. " + + 'It may change or be removed without notice.', + ]) + expect(stdout).toHaveLength(1) + expect(stdout[0]).toContain('"123"') + expect(stdout[0]).not.toContain('Warning') + }) + + it('prints nothing for the old private_beta state name (strict rename)', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, {'fireblocks-lifecycle-state': 'private_beta'}), + ) + + const {stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(0) + expect(warnings(stderr)).toEqual([]) + }) + + it('includes sunset, successor and migration guide for a deprecated response', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, { + 'fireblocks-lifecycle-state': 'deprecated', + sunset: SUNSET, + link: + '; rel="deprecation", ' + + '; rel="successor-version"', + }), + ) + + const {stderr} = await runGetVaultAccount() + + expect(warnings(stderr)).toEqual([ + `Warning: Operation 'getVaultAccount' is deprecated and will stop working after ${SUNSET}. ` + + 'Use https://api.fireblocks.io/v1/vault/accounts_v2/{id} instead. ' + + 'Migration guide: https://developer.fireblocks.com/docs/v2-migration', + ]) + }) + + it('warns on an error response, before the structured error, without changing the exit code', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(404, {message: 'Not found'}, { + 'fireblocks-lifecycle-state': 'deprecated', + sunset: SUNSET, + }), + ) + + const {stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(4) + expect(stderr).toHaveLength(2) + expect(stderr[0]).toBe(`Warning: Operation 'getVaultAccount' is deprecated and will stop working after ${SUNSET}.`) + expect(JSON.parse(stderr[1])).toMatchObject({code: 4, status: 404}) + }) + + describe('closed operations', () => { + const CLOSED_MESSAGE = + "Warning: Operation 'getVaultAccount' has been closed and is no longer supported. " + + 'Your access is provided under a temporary exception and may be revoked. ' + + 'Contact your Customer Success Manager for migration support' + + it('warns for a closed operation that still answers 200 under a temporary exception', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, {'fireblocks-lifecycle-state': 'closed'}), + ) + + const {stdout, stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(0) + expect(warnings(stderr)).toEqual([CLOSED_MESSAGE]) + expect(stdout).toHaveLength(1) + expect(stdout[0]).toContain('"123"') + }) + + it('warns on a closed 404 and keeps the structured error and exit code', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(404, {message: 'Not found'}, {'fireblocks-lifecycle-state': 'closed'}), + ) + + const {stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(4) + expect(stderr).toHaveLength(2) + expect(stderr[0]).toBe(CLOSED_MESSAGE) + expect(JSON.parse(stderr[1])).toMatchObject({code: 4, status: 404}) + }) + + it('prints no warning on 410 Gone, only the structured error', async () => { + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(410, {message: 'Gone'}, {'fireblocks-lifecycle-state': 'closed'}), + ) + + const {stdout, stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(1) + expect(warnings(stderr)).toEqual([]) + expect(stderr).toHaveLength(1) + expect(JSON.parse(stderr[0])).toMatchObject({code: 1, status: 410}) + expect(stdout).toHaveLength(0) + }) + + it('is suppressed by the environment variable', async () => { + process.env[SUPPRESS_ENV_VAR] = '1' + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, {'fireblocks-lifecycle-state': 'closed'}), + ) + + const {stderr} = await runGetVaultAccount() + + expect(warnings(stderr)).toEqual([]) + }) + }) + + it.each([ + ['ga', {'fireblocks-lifecycle-state': 'ga'}], + ['an unrecognised state', {'fireblocks-lifecycle-state': 'quantum_preview'}], + ['no lifecycle header', {}], + ])('stays silent for %s', async (_label, headers) => { + mockFireblocksFetch.mockResolvedValueOnce(createMockApiResponse(200, {id: '123'}, headers)) + + const {stderr, exitCode} = await runGetVaultAccount() + + expect(exitCode).toBe(0) + expect(warnings(stderr)).toEqual([]) + }) + + it.each(['1', 'true'])('is suppressed when %s is %s', async (value) => { + process.env[SUPPRESS_ENV_VAR] = value + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, {'fireblocks-lifecycle-state': 'beta'}), + ) + + const {stderr} = await runGetVaultAccount() + + expect(warnings(stderr)).toEqual([]) + }) + + it.each(['0', 'false'])('still warns when the suppression variable is %s', async (value) => { + process.env[SUPPRESS_ENV_VAR] = value + mockFireblocksFetch.mockResolvedValueOnce( + createMockApiResponse(200, {id: '123'}, {'fireblocks-lifecycle-state': 'beta'}), + ) + + const {stderr} = await runGetVaultAccount() + + expect(warnings(stderr)).toHaveLength(1) + }) + + it('does not warn on --dry-run, which makes no request', async () => { + const {stderr, exitCode} = await runGetVaultAccount(['--dry-run']) + + expect(exitCode).toBe(0) + expect(mockFireblocksFetch).not.toHaveBeenCalled() + expect(warnings(stderr)).toEqual([]) + }) + }) }) diff --git a/yarn.lock b/yarn.lock index 6b436c8..ff59cea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14,9 +14,9 @@ tslib "^2.6.2" "@aws-sdk/client-cloudfront@^3.1079.0": - version "3.1132.0" - resolved "https://registry.npmjs.org/@aws-sdk/client-cloudfront/-/client-cloudfront-3.1132.0.tgz#13d79b63af257f753fd55012beed11d1170e646f" - integrity sha512-z8U/2DKldmuumQ6U0LWoPsG01rlmoGwQQLJIscM/lkPuwD4S6LfZZV0AbxXHOY1Wc9C84dbc3SK5Z++o0RRrOQ== + version "3.1137.0" + resolved "https://registry.npmjs.org/@aws-sdk/client-cloudfront/-/client-cloudfront-3.1137.0.tgz#274d208da5e2978d3964b4be5fd549377aeb05c5" + integrity sha512-bBXXYO7GTpVsh71QCCdWhWOH7UAcpmL4KX0mKqhVZxbpMd9D1uquwn4pLq1Jpep5k+mD24Gs0BMi0ZKHNGamAw== dependencies: "@aws-sdk/core" "^3.978.0" "@aws-sdk/credential-provider-node" "^3.972.83" @@ -28,9 +28,9 @@ tslib "^2.6.2" "@aws-sdk/client-s3@^3.1079.0": - version "3.1132.0" - resolved "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.1132.0.tgz#62e3733eaebe1db3c63cc4836788396a1f28991f" - integrity sha512-ccS2utR3YpKE1KEkAlo1Oq9kUhzy/IOIbpwHAcENn/JzpzCj9l79I2o6stTzXGOKbL8+XEdH2P7c2Znp8PbBlQ== + version "3.1137.0" + resolved "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.1137.0.tgz#cfc66cab5182b63dcfec1a1d2aa5ecabb9741a13" + integrity sha512-ppiYnDyy2qCDT3PIV83XJwAi0BhVUZ/jOHxUgC5tlMCaFeKRL8PVVub8A0pUMkF1yvZtzNOp3ClbmTCcIa9w3g== dependencies: "@aws-sdk/checksums" "^3.1001.0" "@aws-sdk/core" "^3.978.0" @@ -343,9 +343,9 @@ "@babel/types" "^7.29.7" "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.29.7", "@babel/parser@^7.29.8": - version "7.29.8" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz#9653716a2f10c677b98fbc63d4bfb000c302cf17" - integrity sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA== + version "7.29.9" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz#e7ee0a24f752c5296c6455855ccb72662e67ea96" + integrity sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA== dependencies: "@babel/types" "^7.29.8" @@ -1402,10 +1402,17 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@^22", "@types/node@^22.5.5": - version "22.20.2" - resolved "https://registry.npmjs.org/@types/node/-/node-22.20.2.tgz#daae777b5f5965a587f50cc80d5364c2ddf27e36" - integrity sha512-xlvWf4Vs9n1PEVYwP1n4vvG07M6y8WgvJ2t0vbrWTmijsIHp1cS+uJ2kMIRdY3nHZK0nCYKrPeD171+SzF4/zw== +"@types/node@*": + version "26.6.2" + resolved "https://registry.npmjs.org/@types/node/-/node-26.6.2.tgz#11bfb8e00bafe728d2113e474a7637becc9ab279" + integrity sha512-X1P21scMv4zGKLYqjdGjaKa7COa0RKVYYZZN/NfvLQ1JegxFhdhpZG/Lyn8AXx6CDUavKAd11v6BvfpkDByK8g== + dependencies: + undici-types "~8.9.0" + +"@types/node@^22", "@types/node@^22.5.5": + version "22.20.4" + resolved "https://registry.npmjs.org/@types/node/-/node-22.20.4.tgz#37aab5e1beb215f4c036ea0e17343e59abf430de" + integrity sha512-zJRE40jpHtKqE/C4fgHrAKQLJuSpzEnP9ff9Y7YtoR3Wd2pwqzlekDeEuUQXjRd+QCYnVnNwuJYmhdk9XV8gvA== dependencies: undici-types "~6.21.0" @@ -1582,10 +1589,10 @@ balanced-match@^4.0.2: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz#bfb10662feed8196a2c62e7c68e17720c274179a" integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== -baseline-browser-mapping@^2.11.20: - version "2.11.23" - resolved "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.23.tgz#304c980a35de0f460cf12985359d6e11494c1ab4" - integrity sha512-le521dGVfxM7yRX0EikCoSz+rOK+hHzdDt/E7mG1jOJB/6WAAUuwVroLwaB7ApaUsz5Q0kFlDXLSA9MheUIfRQ== +baseline-browser-mapping@^2.11.23: + version "2.11.25" + resolved "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.25.tgz#88b942ce372bdf2d6a2652136bbf7826c65c77be" + integrity sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw== bowser@^2.11.0: version "2.14.1" @@ -1622,15 +1629,15 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.28.9" - resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.28.9.tgz#07ce6b449b90af880eb9bfb7cd39372cc4f71c8c" - integrity sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg== + version "4.29.0" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz#e50e72c30c4b5f7ec894c09feb6ed525167f5344" + integrity sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA== dependencies: - baseline-browser-mapping "^2.11.20" + baseline-browser-mapping "^2.11.23" caniuse-lite "^1.0.30001810" - electron-to-chromium "^1.5.420" - node-releases "^2.0.54" - update-browserslist-db "^1.3.2" + electron-to-chromium "^1.5.427" + node-releases "^2.0.55" + update-browserslist-db "^1.3.3" bs-logger@^0.2.6: version "0.2.6" @@ -1928,10 +1935,10 @@ ejs@^6: resolved "https://registry.npmjs.org/ejs/-/ejs-6.0.1.tgz#88ea8ce00335c3575d7c3602dd76e84b0bd60f43" integrity sha512-UaaM14yby8U3k02ihS1Bmj5Kz2d7CCQM1scxpgs4Mhkq8F1wR2gl3+Ts4h5Ne4Mnt7M9m4Dw7jsuMr3+xO4vZA== -electron-to-chromium@^1.5.420: - version "1.5.428" - resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.428.tgz#36bdb39055d71ab08a54855508ef33940bc467e6" - integrity sha512-1JxbaFJj1bRKurj1uY3l4xxpU9kOUAUjcIgApj0qu1Pao5GhoIWI8iL0BeMYJ2njig1hBx0A7eKD9VGjH9wlHw== +electron-to-chromium@^1.5.427: + version "1.5.434" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.434.tgz#265b62e4a177891cc74690511ca911130410aeb0" + integrity sha512-7EeFW9OLf1NN9NKQP9xdOE/XKqjxv7JDPP6AEAkHli11+Fae1OaLoNuAf13hQv1PPNtuES0pLQSPk2+fS3s8ww== emittery@^0.13.1: version "0.13.1" @@ -2206,7 +2213,7 @@ has-flag@^4.0.0: resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -hasown@^2.0.3: +hasown@^2.0.4: version "2.0.4" resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz#8c62d8cb90beb2aad5d0a5b67581ad9854c3f003" integrity sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A== @@ -2317,11 +2324,11 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.16.1: - version "2.16.2" - resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz#3e07450a8080ebce3fbf0cac494f4d2ab324e082" - integrity sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA== + version "2.17.0" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz#75c1c76236c9f7e38ddbfff292e127dc13b21027" + integrity sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA== dependencies: - hasown "^2.0.3" + hasown "^2.0.4" is-docker@^3.0.0: version "3.0.0" @@ -3047,10 +3054,10 @@ node-int64@^0.4.0: resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.54: - version "2.0.55" - resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.55.tgz#c52faedb68001dcfe77495b5ed1ac5827a1788fc" - integrity sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ== +node-releases@^2.0.55: + version "2.0.56" + resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.56.tgz#fff6a4093fe05d994a2a5e415eee5fcef874e6dc" + integrity sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A== normalize-package-data@^6: version "6.0.2" @@ -3477,9 +3484,9 @@ spdx-expression-parse@^3.0.0: spdx-license-ids "^3.0.0" spdx-license-ids@^3.0.0: - version "3.0.23" - resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.23.tgz#b069e687b1291a32f126893ed76a27a745ee2133" - integrity sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw== + version "3.0.24" + resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.24.tgz#550436df9dc7dcf5c29832ceda40256a9b00de3a" + integrity sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ== sprintf-js@~1.0.2: version "1.0.3" @@ -3630,9 +3637,9 @@ tslib@^2.0.3, tslib@^2.6.2: integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== tsx@^4: - version "4.23.13" - resolved "https://registry.npmjs.org/tsx/-/tsx-4.23.13.tgz#393b8dd813d49e25aed7b1d7cbac6930da49ec08" - integrity sha512-BL5MGkRln6aDYhb0xbQlEAGw743BaZYWdbWtdJOBriYJboKgUUYCadFp2/FpBBZquBC/ezNBn7wMMPx7FDZUDw== + version "4.23.15" + resolved "https://registry.npmjs.org/tsx/-/tsx-4.23.15.tgz#f53901695685ad567fed0f08532f7782e631c251" + integrity sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw== dependencies: esbuild "~0.28.0" optionalDependencies: @@ -3675,12 +3682,17 @@ undici-types@~6.21.0: resolved "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== +undici-types@~8.9.0: + version "8.9.0" + resolved "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz#e240d97c8b5d85e5347ce73d25865c7906c1ec9f" + integrity sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg== + universalify@^0.1.0: version "0.1.2" resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== -update-browserslist-db@^1.3.2: +update-browserslist-db@^1.3.3: version "1.3.3" resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz#197e21fb2561fa89f8b94fad605a2b296a18993a" integrity sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==