@cubist-labs/cubesigner-sdk 0.4.254 → 0.4.259
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/audit_log.d.ts +5 -5
- package/dist/src/client/api_client.d.ts +18 -3
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +27 -4
- package/dist/src/key.d.ts +5 -8
- package/dist/src/key.d.ts.map +1 -1
- package/dist/src/key.js +6 -2
- package/dist/src/org.d.ts +463 -25
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/org.js +66 -26
- package/dist/src/schema.d.ts +531 -13
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +7 -0
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +23 -3
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +10 -1
- package/package.json +1 -1
- package/src/client/api_client.ts +36 -4
- package/src/key.ts +8 -8
- package/src/org.ts +82 -28
- package/src/schema.ts +581 -9
- package/src/schema_types.ts +30 -2
- package/src/scopes.ts +9 -0
package/dist/src/schema.d.ts
CHANGED
|
@@ -1753,6 +1753,9 @@ export interface components {
|
|
|
1753
1753
|
{
|
|
1754
1754
|
BinanceDryRun: components["schemas"]["BinanceDryRunArgs"];
|
|
1755
1755
|
},
|
|
1756
|
+
{
|
|
1757
|
+
BybitDryRun: components["schemas"]["BybitDryRunArgs"];
|
|
1758
|
+
},
|
|
1756
1759
|
{
|
|
1757
1760
|
CoinbaseDryRun: components["schemas"]["CoinbaseDryRunArgs"];
|
|
1758
1761
|
},
|
|
@@ -1761,7 +1764,7 @@ export interface components {
|
|
|
1761
1764
|
}
|
|
1762
1765
|
]>;
|
|
1763
1766
|
/** @enum {string} */
|
|
1764
|
-
AcceptedValueCode: "SignDryRun" | "BinanceDryRun" | "CoinbaseDryRun" | "MfaRequired";
|
|
1767
|
+
AcceptedValueCode: "SignDryRun" | "BinanceDryRun" | "BybitDryRun" | "CoinbaseDryRun" | "MfaRequired";
|
|
1765
1768
|
/**
|
|
1766
1769
|
* @description Determines who controls the keys within an org
|
|
1767
1770
|
* @enum {string}
|
|
@@ -2774,7 +2777,7 @@ export interface components {
|
|
|
2774
2777
|
/** @enum {string} */
|
|
2775
2778
|
BadGatewayErrorCode: "Generic" | "CustomChainRpcError" | "EsploraApiError" | "SentryApiError" | "CallWebhookError" | "OAuthProviderError" | "OidcDisoveryFailed" | "OidcIssuerJwkEndpointUnavailable" | "SmtpServerUnavailable";
|
|
2776
2779
|
/** @enum {string} */
|
|
2777
|
-
BadRequestErrorCode: "GenericBadRequest" | "DisallowedAllowRuleReference" | "InvalidPaginationToken" | "InvalidEmail" | "InvalidEmailTemplate" | "QueryMetricsError" | "InvalidTelegramData" | "ValidationError" | "WebhookPolicyTimeoutOutOfBounds" | "WebhookPolicyDisallowedUrlScheme" | "WebhookPolicyDisallowedUrlHost" | "WebhookPolicyDisallowedHeaders" | "ReservedName" | "UserEmailNotConfigured" | "EmailPasswordNotFound" | "PasswordAuthNotAllowedByInvitation" | "OneTimeCodeExpired" | "InvalidBody" | "InvalidJwt" | "InvitationNoLongerValid" | "TokenRequestError" | "InvalidMfaReceipt" | "InvalidMfaPolicyCount" | "InvalidMfaPolicyNumAuthFactors" | "InvalidMfaPolicyNumAllowedApprovers" | "InvalidMfaPolicyGracePeriodTooLong" | "InvalidBabylonStakingPolicyParams" | "InvalidSuiTxReceiversEmptyAllowlist" | "InvalidBtcTxReceiversEmptyAllowlist" | "InvalidRequireRoleSessionAllowlist" | "InvalidCreateKeyCount" | "InvalidDiffieHellmanCount" | "OrgInviteExistingUser" | "OrgUserAlreadyExists" | "OrgNameTaken" | "KwkNotFoundInRegion" | "OrgIsNotOrgExport" | "RoleNameTaken" | "PolicyNameTaken" | "NameTaken" | "ContactNameInvalid" | "ContactAddressesInvalid" | "ContactLabelInvalid" | "ContactModified" | "PolicyNotFound" | "PolicyVersionNotFound" | "PolicyRuleDisallowedByType" | "PolicyTypeDisallowed" | "PolicyDuplicateError" | "PolicyStillAttached" | "PolicyModified" | "PolicyNotAttached" | "AddKeyToRoleCountTooHigh" | "InvalidKeyId" | "InvalidTimeLockAlreadyInThePast" | "InvalidRestrictedScopes" | "InvalidUpdate" | "InvalidMetadataLength" | "InvalidLength" | "InvalidKeyMaterialId" | "KeyNotFound" | "SiweChallengeNotFound" | "SiweInvalidRequest" | "UserExportDerivedKey" | "UserExportPublicKeyInvalid" | "NistP256PublicKeyInvalid" | "UnableToAccessSmtpRelay" | "UserExportInProgress" | "RoleNotFound" | "InvalidRoleNameOrId" | "InvalidMfaReceiptOrgIdMissing" | "InvalidMfaReceiptInvalidOrgId" | "MfaRequestNotFound" | "InvalidKeyType" | "InvalidPropertiesForKeyType" | "MismatchedKeyPropertiesPatch" | "MissingBinanceApiKey" | "MissingCoinbaseApiKey" | "BinanceKeyMasterMismatch" | "InvalidKeyMaterial" | "InvalidHexValue" | "InvalidBase32Value" | "InvalidBase58Value" | "InvalidBase64Value" | "InvalidSs58Value" | "InvalidForkVersionLength" | "InvalidEthAddress" | "InvalidStellarAddress" | "InvalidOrgNameOrId" | "InvalidUpdateOrgRequestDisallowedMfaType" | "InvalidUpdateOrgRequestEmptyAllowedMfaTypes" | "EmailOtpDelayTooShortForRegisterMfa" | "InvalidStakeDeposit" | "InvalidBlobSignRequest" | "InvalidDiffieHellmanRequest" | "InvalidSolanaSignRequest" | "InvalidEip712SignRequest" | "OnlySpecifyOne" | "NoOidcDataInProof" | "InvalidEvmSignRequest" | "InvalidEth2SignRequest" | "InvalidDeriveKeyRequest" | "InvalidStakingAmount" | "CustomStakingAmountNotAllowedForWrapperContract" | "InvalidUnstakeRequest" | "InvalidCreateUserRequest" | "UserAlreadyExists" | "IdpUserAlreadyExists" | "CognitoUserAlreadyOrgMember" | "UserNotFound" | "UserWithEmailNotFound" | "PolicyKeyMismatch" | "EmptyScopes" | "InvalidScopesForRoleSession" | "InvalidLifetime" | "NoSingleKeyForUser" | "InvalidOrgPolicyRule" | "SourceIpAllowlistEmpty" | "LimitWindowTooLong" | "Erc20ContractDisallowed" | "EmptyRuleError" | "OptionalListEmpty" | "MultipleExclusiveFieldsProvided" | "DuplicateFieldEntry" | "InvalidRange" | "InvalidOrgPolicyRepeatedRule" | "InvalidSuiTransaction" | "SuiSenderMismatch" | "AvaSignHashError" | "AvaSignError" | "BtcSegwitHashError" | "BtcTaprootHashError" | "BtcSignError" | "TaprootSignError" | "Eip712SignError" | "InvalidMemberRoleInUserAdd" | "InvalidMemberRoleInRecipientAdd" | "ThirdPartyUserAlreadyExists" | "OidcIdentityAlreadyExists" | "UserAlreadyHasIdentity" | "ThirdPartyUserNotFound" | "DeleteOidcUserError" | "DeleteUserError" | "SessionRoleMismatch" | "InvalidOidcToken" | "InvalidOidcIdentity" | "OidcIssuerUnsupported" | "OidcIssuerNotAllowed" | "OidcIssuerNoApplicableJwk" | "FidoKeyAlreadyRegistered" | "FidoKeySignCountTooLow" | "FidoVerificationFailed" | "FidoChallengeMfaMismatch" | "UnsupportedLegacyCognitoSession" | "InvalidIdentityProof" | "PaginationDataExpired" | "ExistingKeysViolateExclusiveKeyAccess" | "ExportDelayTooShort" | "ExportWindowTooLong" | "InvalidTotpFailureLimit" | "InvalidEip191SignRequest" | "CannotResendUserInvitation" | "InvalidNotificationEndpointCount" | "CannotDeletePendingSubscription" | "InvalidNotificationUrlProtocol" | "EmptyOneOfOrgEventFilter" | "EmptyAllExceptOrgEventFilter" | "InvalidTapNodeHash" | "InvalidOneTimeCode" | "MessageNotFound" | "MessageAlreadySigned" | "MessageRejected" | "MessageReplaced" | "InvalidMessageType" | "EmptyAddress" | "InvalidEth2SigningPolicySlotRange" | "InvalidEth2SigningPolicyEpochRange" | "InvalidEth2SigningPolicyTimestampRange" | "InvalidEth2SigningPolicyOverlappingRule" | "RpcUrlMissing" | "MmiChainIdMissing" | "EthersInvalidRpcUrl" | "EthersGetTransactionCountError" | "InvalidPassword" | "BabylonStakingFeePlusDustOverflow" | "BabylonStaking" | "BabylonStakingIncorrectKey" | "BabylonStakingSegwitNonDeposit" | "BabylonStakingRegistrationRequiresTaproot" | "PsbtSigning" | "TooManyResets" | "TooManyRequests" | "TooManyFailedLogins" | "BadBtcMessageSignP2shFlag" | "InvalidTendermintRequest" | "PolicyVersionMaxReached" | "PolicyVersionInvalid" | "PolicySecretLimitReached" | "PolicySecretTooLarge" | "InvalidImportKey" | "AlienOwnerInvalid" | "EmptyUpdateRequest" | "InvalidPolicyReference" | "PolicyEngineDisabled" | "InvalidWasmPolicy" | "InvalidPolicy" | "RedundantDerivationPath" | "ImportKeyMissing" | "InvalidAbiMethods" | "BabylonCovSign" | "InvalidPolicyLogsRequest" | "UserProfileMigrationMultipleEntries" | "UserProfileMigrationTooManyItems" | "InputTooShort" | "InvalidTweakLength" | "InvalidCustomChains" | "InvalidRpcRequest";
|
|
2780
|
+
BadRequestErrorCode: "GenericBadRequest" | "DisallowedAllowRuleReference" | "InvalidPaginationToken" | "InvalidEmail" | "InvalidEmailTemplate" | "QueryMetricsError" | "InvalidTelegramData" | "ValidationError" | "WebhookPolicyTimeoutOutOfBounds" | "WebhookPolicyDisallowedUrlScheme" | "WebhookPolicyDisallowedUrlHost" | "WebhookPolicyDisallowedHeaders" | "ReservedName" | "UserEmailNotConfigured" | "EmailPasswordNotFound" | "PasswordAuthNotAllowedByInvitation" | "OneTimeCodeExpired" | "InvalidBody" | "InvalidJwt" | "InvitationNoLongerValid" | "TokenRequestError" | "InvalidMfaReceipt" | "InvalidMfaPolicyCount" | "InvalidMfaPolicyNumAuthFactors" | "InvalidMfaPolicyNumAllowedApprovers" | "InvalidMfaPolicyGracePeriodTooLong" | "InvalidBabylonStakingPolicyParams" | "InvalidSuiTxReceiversEmptyAllowlist" | "InvalidBtcTxReceiversEmptyAllowlist" | "InvalidRequireRoleSessionAllowlist" | "InvalidCreateKeyCount" | "InvalidDiffieHellmanCount" | "OrgInviteExistingUser" | "OrgUserAlreadyExists" | "OrgNameTaken" | "KwkNotFoundInRegion" | "OrgIsNotOrgExport" | "RoleNameTaken" | "PolicyNameTaken" | "NameTaken" | "ContactNameInvalid" | "ContactAddressesInvalid" | "ContactLabelInvalid" | "ContactModified" | "PolicyNotFound" | "PolicyVersionNotFound" | "PolicyRuleDisallowedByType" | "PolicyTypeDisallowed" | "PolicyDuplicateError" | "PolicyStillAttached" | "PolicyModified" | "PolicyNotAttached" | "AddKeyToRoleCountTooHigh" | "InvalidKeyId" | "InvalidTimeLockAlreadyInThePast" | "InvalidRestrictedScopes" | "InvalidUpdate" | "InvalidMetadataLength" | "InvalidLength" | "InvalidKeyMaterialId" | "KeyNotFound" | "SiweChallengeNotFound" | "SiweInvalidRequest" | "UserExportDerivedKey" | "UserExportPublicKeyInvalid" | "NistP256PublicKeyInvalid" | "UnableToAccessSmtpRelay" | "UserExportInProgress" | "RoleNotFound" | "InvalidRoleNameOrId" | "InvalidMfaReceiptOrgIdMissing" | "InvalidMfaReceiptInvalidOrgId" | "MfaRequestNotFound" | "InvalidKeyType" | "InvalidPropertiesForKeyType" | "MismatchedKeyPropertiesPatch" | "MissingBinanceApiKey" | "MissingBybitApiKey" | "MissingCoinbaseApiKey" | "BinanceKeyMasterMismatch" | "BybitAccountMismatch" | "InvalidKeyMaterial" | "InvalidHexValue" | "InvalidBase32Value" | "InvalidBase58Value" | "InvalidBase64Value" | "InvalidSs58Value" | "InvalidForkVersionLength" | "InvalidEthAddress" | "InvalidStellarAddress" | "InvalidOrgNameOrId" | "InvalidUpdateOrgRequestDisallowedMfaType" | "InvalidUpdateOrgRequestEmptyAllowedMfaTypes" | "EmailOtpDelayTooShortForRegisterMfa" | "InvalidStakeDeposit" | "InvalidBlobSignRequest" | "InvalidDiffieHellmanRequest" | "InvalidSolanaSignRequest" | "InvalidEip712SignRequest" | "OnlySpecifyOne" | "NoOidcDataInProof" | "InvalidEvmSignRequest" | "InvalidEth2SignRequest" | "InvalidDeriveKeyRequest" | "InvalidStakingAmount" | "CustomStakingAmountNotAllowedForWrapperContract" | "InvalidUnstakeRequest" | "InvalidCreateUserRequest" | "UserAlreadyExists" | "IdpUserAlreadyExists" | "CognitoUserAlreadyOrgMember" | "UserNotFound" | "UserWithEmailNotFound" | "PolicyKeyMismatch" | "EmptyScopes" | "InvalidScopesForRoleSession" | "InvalidLifetime" | "NoSingleKeyForUser" | "InvalidOrgPolicyRule" | "SourceIpAllowlistEmpty" | "LimitWindowTooLong" | "Erc20ContractDisallowed" | "EmptyRuleError" | "OptionalListEmpty" | "MultipleExclusiveFieldsProvided" | "DuplicateFieldEntry" | "InvalidRange" | "InvalidOrgPolicyRepeatedRule" | "InvalidSuiTransaction" | "SuiSenderMismatch" | "AvaSignHashError" | "AvaSignError" | "BtcSegwitHashError" | "BtcTaprootHashError" | "BtcSignError" | "TaprootSignError" | "Eip712SignError" | "InvalidMemberRoleInUserAdd" | "InvalidMemberRoleInRecipientAdd" | "ThirdPartyUserAlreadyExists" | "OidcIdentityAlreadyExists" | "UserAlreadyHasIdentity" | "ThirdPartyUserNotFound" | "DeleteOidcUserError" | "DeleteUserError" | "SessionRoleMismatch" | "InvalidOidcToken" | "InvalidOidcIdentity" | "OidcIssuerUnsupported" | "OidcIssuerNotAllowed" | "OidcIssuerNoApplicableJwk" | "FidoKeyAlreadyRegistered" | "FidoKeySignCountTooLow" | "FidoVerificationFailed" | "FidoChallengeMfaMismatch" | "UnsupportedLegacyCognitoSession" | "InvalidIdentityProof" | "PaginationDataExpired" | "ExistingKeysViolateExclusiveKeyAccess" | "ExportDelayTooShort" | "ExportWindowTooLong" | "InvalidTotpFailureLimit" | "InvalidEip191SignRequest" | "CannotResendUserInvitation" | "InvalidNotificationEndpointCount" | "CannotDeletePendingSubscription" | "InvalidNotificationUrlProtocol" | "EmptyOneOfOrgEventFilter" | "EmptyAllExceptOrgEventFilter" | "InvalidTapNodeHash" | "InvalidOneTimeCode" | "MessageNotFound" | "MessageAlreadySigned" | "MessageRejected" | "MessageReplaced" | "InvalidMessageType" | "EmptyAddress" | "InvalidEth2SigningPolicySlotRange" | "InvalidEth2SigningPolicyEpochRange" | "InvalidEth2SigningPolicyTimestampRange" | "InvalidEth2SigningPolicyOverlappingRule" | "RpcUrlMissing" | "MmiChainIdMissing" | "EthersInvalidRpcUrl" | "EthersGetTransactionCountError" | "InvalidPassword" | "BabylonStakingFeePlusDustOverflow" | "BabylonStaking" | "BabylonStakingIncorrectKey" | "BabylonStakingSegwitNonDeposit" | "BabylonStakingRegistrationRequiresTaproot" | "PsbtSigning" | "TooManyResets" | "TooManyRequests" | "TooManyFailedLogins" | "BadBtcMessageSignP2shFlag" | "InvalidTendermintRequest" | "PolicyVersionMaxReached" | "PolicyVersionInvalid" | "PolicySecretLimitReached" | "PolicySecretTooLarge" | "InvalidImportKey" | "AlienOwnerInvalid" | "EmptyUpdateRequest" | "InvalidPolicyReference" | "PolicyEngineDisabled" | "InvalidWasmPolicy" | "InvalidPolicy" | "RedundantDerivationPath" | "ImportKeyMissing" | "InvalidAbiMethods" | "BabylonCovSign" | "InvalidPolicyLogsRequest" | "UserProfileMigrationMultipleEntries" | "UserProfileMigrationTooManyItems" | "InputTooShort" | "InvalidTweakLength" | "InvalidCustomChains" | "InvalidRpcRequest";
|
|
2778
2781
|
BillingArgs: {
|
|
2779
2782
|
billing_org: components["schemas"]["Id"];
|
|
2780
2783
|
event_type: components["schemas"]["BillingEvent"];
|
|
@@ -2791,7 +2794,7 @@ export interface components {
|
|
|
2791
2794
|
* @description Billing event types.
|
|
2792
2795
|
* @enum {string}
|
|
2793
2796
|
*/
|
|
2794
|
-
BillingEvent: "Mmi" | "MmiMessageGet" | "MmiMessageList" | "MmiMessageSign" | "MmiMessageReject" | "MmiMessageDelete" | "AboutMe" | "UserResetEmailInit" | "UserResetEmailComplete" | "UserDeleteTotp" | "UserResetTotpInit" | "UserResetTotpComplete" | "UserVerifyTotp" | "UserRegisterFidoInit" | "UserRegisterFidoComplete" | "UserDeleteFido" | "CreateProofOidc" | "CreateProofCubeSigner" | "VerifyProof" | "AddOidcIdentity" | "RemoveOidcIdentity" | "ListOidcIdentities" | "GetOrg" | "UpdateOrg" | "GetOrgExport" | "CreateOrg" | "ListKeys" | "AttestKey" | "GetKey" | "GetKeyByMaterialId" | "ListKeyRoles" | "UpdateKey" | "ListHistoricalKeyTx" | "Invite" | "CancelInvitation" | "ListInvitations" | "ListUsers" | "GetUser" | "GetUserByEmail" | "GetUserByOidc" | "UpdateMembership" | "ResetMemberMfa" | "CompleteResetMemberMfa" | "CreateRole" | "AttestRole" | "GetRole" | "ListTokenKeys" | "ListRoles" | "GetRoleKey" | "ListRoleKeys" | "ListRoleUsers" | "UpdateRole" | "DeleteRole" | "ConfigureEmail" | "GetEmailConfig" | "DeleteEmailConfig" | "ListHistoricalRoleTx" | "CreatePolicy" | "GetPolicy" | "ListPolicies" | "DeletePolicy" | "UpdatePolicy" | "InvokePolicy" | "GetPolicyLogs" | "UploadWasmPolicy" | "GetPolicySecrets" | "UpdatePolicySecrets" | "SetPolicySecret" | "DeletePolicySecret" | "CreatePolicyImportKey" | "GetPolicyBucket" | "ListPolicyBuckets" | "UpdatePolicyBucket" | "UserExportDelete" | "UserExportList" | "UserExportInit" | "UserExportComplete" | "AddUserToRole" | "RemoveUserFromRole" | "MfaApproveCs" | "MfaRejectCs" | "MfaGet" | "MfaList" | "AddKeysToRole" | "RemoveKeyFromRole" | "CreateToken" | "CreateSession" | "RevokeSession" | "RevokeCurrentSession" | "RevokeSessions" | "ListSessions" | "GetSession" | "SignerSessionRefresh" | "MfaApproveTotp" | "MfaRejectTotp" | "MfaFidoInit" | "MfaApproveFidoComplete" | "MfaRejectFidoComplete" | "MfaEmailInit" | "MfaEmailComplete" | "Cube3signerHeartbeat" | "CreateContact" | "GetContact" | "ListContacts" | "DeleteContact" | "UpdateContact" | "LookupContactsByAddress" | "QueryMetrics" | "QueryAuditLog" | "Counts" | "CreateKey" | "ImportKey" | "CreateKeyImportKey" | "DeriveKey" | "DeleteKey" | "AvaSign" | "AvaSerializedTxSign" | "BabylonRegistration" | "BabylonStaking" | "BabylonCovSign" | "BinanceSign" | "CoinbaseSign" | "BlobSign" | "BtcMessageSign" | "BtcSign" | "DiffieHellmanExchange" | "PsbtSign" | "PsbtLegacyInputSign" | "PsbtSegwitInputSign" | "PsbtTaprootInputSign" | "TaprootSign" | "Eip712Sign" | "Eip191Sign" | "Eth1Sign" | "Eth2Sign" | "SolanaSign" | "SuiSign" | "TendermintSign" | "Stake" | "Unstake" | "PasskeyAuthInit" | "PasskeyAuthComplete" | "OidcAuth" | "Oauth2Twitter" | "OAuth2TokenRefresh" | "EmailOtpAuth" | "SiweInit" | "SiweComplete" | "TelegramAuth" | "CreateOidcUser" | "DeleteOidcUser" | "DeleteUser" | "CreateEotsNonces" | "EotsSign" | "AuthMigrationIdentityAdd" | "AuthMigrationIdentityRemove" | "AuthMigrationUserUpdate" | "KeyCreated" | "KeyImported" | "InvitationAccept" | "IdpAuthenticate" | "IdpPasswordResetRequest" | "IdpPasswordResetConfirm" | "RpcApi" | "RpcCreateTransaction" | "RpcGetTransaction" | "RpcListTransactions" | "RpcRetryTransaction" | "RpcBinance" | "RpcCoinbase" | "CustomChainRpcCall" | "EsploraApiCall" | "SentryApiCall" | "SentryApiCallPublic" | "MmiJwkSet" | "AttestationJwkSet" | "UserOrgs" | "PublicOrgInfo" | "EmailMyOrgs";
|
|
2797
|
+
BillingEvent: "Mmi" | "MmiMessageGet" | "MmiMessageList" | "MmiMessageSign" | "MmiMessageReject" | "MmiMessageDelete" | "AboutMe" | "UserResetEmailInit" | "UserResetEmailComplete" | "UserDeleteTotp" | "UserResetTotpInit" | "UserResetTotpComplete" | "UserVerifyTotp" | "UserRegisterFidoInit" | "UserRegisterFidoComplete" | "UserDeleteFido" | "CreateProofOidc" | "CreateProofCubeSigner" | "VerifyProof" | "AddOidcIdentity" | "RemoveOidcIdentity" | "ListOidcIdentities" | "GetOrg" | "UpdateOrg" | "GetOrgExport" | "CreateOrg" | "ListKeys" | "AttestKey" | "GetKey" | "GetKeyByMaterialId" | "ListKeyRoles" | "UpdateKey" | "ListHistoricalKeyTx" | "Invite" | "CancelInvitation" | "ListInvitations" | "ListUsers" | "GetUser" | "GetUserByEmail" | "GetUserByOidc" | "UpdateMembership" | "ResetMemberMfa" | "CompleteResetMemberMfa" | "CreateRole" | "AttestRole" | "GetRole" | "ListTokenKeys" | "ListRoles" | "GetRoleKey" | "ListRoleKeys" | "ListRoleUsers" | "UpdateRole" | "DeleteRole" | "ConfigureEmail" | "GetEmailConfig" | "DeleteEmailConfig" | "ListHistoricalRoleTx" | "CreatePolicy" | "GetPolicy" | "ListPolicies" | "DeletePolicy" | "UpdatePolicy" | "InvokePolicy" | "GetPolicyLogs" | "UploadWasmPolicy" | "GetPolicySecrets" | "UpdatePolicySecrets" | "SetPolicySecret" | "DeletePolicySecret" | "CreatePolicyImportKey" | "GetPolicyBucket" | "ListPolicyBuckets" | "UpdatePolicyBucket" | "UserExportDelete" | "UserExportList" | "UserExportInit" | "UserExportComplete" | "AddUserToRole" | "RemoveUserFromRole" | "MfaApproveCs" | "MfaRejectCs" | "MfaGet" | "MfaList" | "AddKeysToRole" | "RemoveKeyFromRole" | "CreateToken" | "CreateSession" | "RevokeSession" | "RevokeCurrentSession" | "RevokeSessions" | "ListSessions" | "GetSession" | "SignerSessionRefresh" | "MfaApproveTotp" | "MfaRejectTotp" | "MfaFidoInit" | "MfaApproveFidoComplete" | "MfaRejectFidoComplete" | "MfaEmailInit" | "MfaEmailComplete" | "Cube3signerHeartbeat" | "CreateContact" | "GetContact" | "ListContacts" | "DeleteContact" | "UpdateContact" | "LookupContactsByAddress" | "QueryMetrics" | "QueryAuditLog" | "Counts" | "CreateKey" | "ImportKey" | "CreateKeyImportKey" | "DeriveKey" | "DeleteKey" | "AvaSign" | "AvaSerializedTxSign" | "BabylonRegistration" | "BabylonStaking" | "BabylonCovSign" | "BinanceSign" | "BybitSign" | "CoinbaseSign" | "BlobSign" | "BtcMessageSign" | "BtcSign" | "DiffieHellmanExchange" | "PsbtSign" | "PsbtLegacyInputSign" | "PsbtSegwitInputSign" | "PsbtTaprootInputSign" | "TaprootSign" | "Eip712Sign" | "Eip191Sign" | "Eth1Sign" | "Eth2Sign" | "SolanaSign" | "SuiSign" | "TendermintSign" | "Stake" | "Unstake" | "PasskeyAuthInit" | "PasskeyAuthComplete" | "OidcAuth" | "Oauth2Twitter" | "OAuth2TokenRefresh" | "EmailOtpAuth" | "SiweInit" | "SiweComplete" | "TelegramAuth" | "CreateOidcUser" | "DeleteOidcUser" | "DeleteUser" | "CreateEotsNonces" | "EotsSign" | "AuthMigrationIdentityAdd" | "AuthMigrationIdentityRemove" | "AuthMigrationUserUpdate" | "KeyCreated" | "KeyImported" | "InvitationAccept" | "IdpAuthenticate" | "IdpPasswordResetRequest" | "IdpPasswordResetConfirm" | "RpcApi" | "RpcCreateTransaction" | "RpcGetTransaction" | "RpcListTransactions" | "RpcRetryTransaction" | "RpcBinance" | "RpcBybit" | "RpcCoinbase" | "CustomChainRpcCall" | "EsploraApiCall" | "SentryApiCall" | "SentryApiCallPublic" | "MmiJwkSet" | "AttestationJwkSet" | "UserOrgs" | "PublicOrgInfo" | "EmailMyOrgs";
|
|
2795
2798
|
/** @description Parameters envelope for all Binance RPC methods. */
|
|
2796
2799
|
BinanceAccountInfoParams: components["schemas"]["AccountInfoRequest"] & {
|
|
2797
2800
|
dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
|
|
@@ -3308,6 +3311,480 @@ export interface components {
|
|
|
3308
3311
|
metadata?: unknown;
|
|
3309
3312
|
owner: components["schemas"]["Id"];
|
|
3310
3313
|
};
|
|
3314
|
+
/**
|
|
3315
|
+
* @description Wire-format patch payload for [`KeyProperties::BybitApi`].
|
|
3316
|
+
*
|
|
3317
|
+
* Every field follows the same per-field PATCH semantics: a missing field
|
|
3318
|
+
* leaves the existing value alone, a JSON `null` clears it, and a value sets it.
|
|
3319
|
+
*/
|
|
3320
|
+
BybitApiPropertiesPatch: {
|
|
3321
|
+
/** @description The Bybit-issued API key string. Encrypted server-side before storage. */
|
|
3322
|
+
api_key?: string | null;
|
|
3323
|
+
/** @description Arbitrary label. Useful for storing the corresponding API key label on the Bybit side. */
|
|
3324
|
+
label?: string | null;
|
|
3325
|
+
};
|
|
3326
|
+
/** @description One entry in [`BybitQueryCoinsBalanceResponse::balance`]. */
|
|
3327
|
+
BybitCoinBalance: {
|
|
3328
|
+
/** @description Bonus / promotional balance, as a decimal string. */
|
|
3329
|
+
bonus?: string | null;
|
|
3330
|
+
/** @description Coin symbol, uppercase (e.g. `USDT`, `BTC`). */
|
|
3331
|
+
coin: string;
|
|
3332
|
+
/** @description Portion of `wallet_balance` that can be transferred out. */
|
|
3333
|
+
transferBalance: string;
|
|
3334
|
+
/** @description Total wallet balance for `coin`, as a decimal string. */
|
|
3335
|
+
walletBalance: string;
|
|
3336
|
+
};
|
|
3337
|
+
/** @description One entry in [`BybitQueryDepositAddressResponse::chains`]. */
|
|
3338
|
+
BybitDepositChain: {
|
|
3339
|
+
/** @description Deposit address on this chain. */
|
|
3340
|
+
addressDeposit: string;
|
|
3341
|
+
/** @description Single-deposit cap for this coin on this chain; `"-1"` means no limit. */
|
|
3342
|
+
batchReleaseLimit?: string | null;
|
|
3343
|
+
/** @description Short chain code (e.g. `ETH`, `TRX`). */
|
|
3344
|
+
chain: string;
|
|
3345
|
+
/** @description Human-readable chain name (e.g. `Ethereum (ERC20)`). */
|
|
3346
|
+
chainType?: string | null;
|
|
3347
|
+
/**
|
|
3348
|
+
* @description Token contract address on this chain. Bybit only returns the last 6
|
|
3349
|
+
* characters; empty for native coins.
|
|
3350
|
+
*/
|
|
3351
|
+
contractAddress?: string | null;
|
|
3352
|
+
/**
|
|
3353
|
+
* @description Memo / tag required for chains that use one (e.g. XRP, EOS). Empty for
|
|
3354
|
+
* chains that don't.
|
|
3355
|
+
*/
|
|
3356
|
+
tagDeposit?: string | null;
|
|
3357
|
+
};
|
|
3358
|
+
BybitDryRunArgs: {
|
|
3359
|
+
/** @description The Bybit API method that would have been used */
|
|
3360
|
+
method: string;
|
|
3361
|
+
/** @description The request body (for POST endpoints) or query string (for GET endpoints). */
|
|
3362
|
+
payload: string;
|
|
3363
|
+
/** @description The Bybit API url that would have been called */
|
|
3364
|
+
url: string;
|
|
3365
|
+
};
|
|
3366
|
+
/**
|
|
3367
|
+
* @description "Dry run" modes for Bybit requests.
|
|
3368
|
+
* @enum {string}
|
|
3369
|
+
*/
|
|
3370
|
+
BybitDryRunMode: "NO_SIGN" | "NO_SUBMIT";
|
|
3371
|
+
/**
|
|
3372
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
3373
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
3374
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
3375
|
+
* directly below.)
|
|
3376
|
+
*/
|
|
3377
|
+
BybitQueryCoinsBalanceParams: components["schemas"]["BybitQueryCoinsBalanceRequest"] & {
|
|
3378
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3379
|
+
keyId: components["schemas"]["Id"];
|
|
3380
|
+
/**
|
|
3381
|
+
* Format: int32
|
|
3382
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3383
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
3384
|
+
*/
|
|
3385
|
+
recvWindow?: number | null;
|
|
3386
|
+
};
|
|
3387
|
+
/** @description Parameters for `GET /v5/asset/transfer/query-account-coins-balance`. */
|
|
3388
|
+
BybitQueryCoinsBalanceRequest: {
|
|
3389
|
+
/**
|
|
3390
|
+
* @description Wallet type. Common values: `"FUND"`, `"UNIFIED"`, `"CONTRACT"`. Bybit
|
|
3391
|
+
* expects this verbatim; we don't constrain it on our side.
|
|
3392
|
+
*/
|
|
3393
|
+
accountType: string;
|
|
3394
|
+
/**
|
|
3395
|
+
* @description Optional list of coin symbols, comma-separated (e.g. `"BTC,USDT"`).
|
|
3396
|
+
* Bybit returns balances for all coins when omitted.
|
|
3397
|
+
*/
|
|
3398
|
+
coin?: string | null;
|
|
3399
|
+
/**
|
|
3400
|
+
* @description Optional sub-account UID. When supplied, the master key queries the
|
|
3401
|
+
* named sub-account's balance.
|
|
3402
|
+
*/
|
|
3403
|
+
memberId?: string | null;
|
|
3404
|
+
/**
|
|
3405
|
+
* @description Optional flag: `"0"` query without conversion to USD (default),
|
|
3406
|
+
* `"1"` include USD valuation. Bybit accepts this as a string.
|
|
3407
|
+
*/
|
|
3408
|
+
withBonus?: string | null;
|
|
3409
|
+
};
|
|
3410
|
+
/** @description Response of `GET /v5/asset/transfer/query-account-coins-balance`. */
|
|
3411
|
+
BybitQueryCoinsBalanceResponse: {
|
|
3412
|
+
/** @description Account type the balances belong to (e.g. `UNIFIED`, `FUND`, `CONTRACT`). */
|
|
3413
|
+
accountType: string;
|
|
3414
|
+
/** @description Per-coin balances. */
|
|
3415
|
+
balance: components["schemas"]["BybitCoinBalance"][];
|
|
3416
|
+
/** @description UID of the (sub-)account whose balance is being reported. */
|
|
3417
|
+
memberId?: string | null;
|
|
3418
|
+
};
|
|
3419
|
+
/**
|
|
3420
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
3421
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
3422
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
3423
|
+
* directly below.)
|
|
3424
|
+
*/
|
|
3425
|
+
BybitQueryDepositAddressParams: components["schemas"]["BybitQueryDepositAddressRequest"] & {
|
|
3426
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3427
|
+
keyId: components["schemas"]["Id"];
|
|
3428
|
+
/**
|
|
3429
|
+
* Format: int32
|
|
3430
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3431
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
3432
|
+
*/
|
|
3433
|
+
recvWindow?: number | null;
|
|
3434
|
+
};
|
|
3435
|
+
/** @description Parameters for `GET /v5/asset/deposit/query-address`. */
|
|
3436
|
+
BybitQueryDepositAddressRequest: {
|
|
3437
|
+
/**
|
|
3438
|
+
* @description Optional network identifier (e.g. `"ETH"`, `"TRX"`). When omitted,
|
|
3439
|
+
* Bybit returns the deposit address on every supported chain.
|
|
3440
|
+
*/
|
|
3441
|
+
chainType?: string | null;
|
|
3442
|
+
/** @description Coin symbol (e.g. `"BTC"`, `"USDT"`). */
|
|
3443
|
+
coin: string;
|
|
3444
|
+
};
|
|
3445
|
+
/** @description Response of `GET /v5/asset/deposit/query-address`. */
|
|
3446
|
+
BybitQueryDepositAddressResponse: {
|
|
3447
|
+
/** @description One deposit address per supported chain. */
|
|
3448
|
+
chains: components["schemas"]["BybitDepositChain"][];
|
|
3449
|
+
/** @description Coin symbol the deposit addresses are for (e.g. `USDT`). */
|
|
3450
|
+
coin: string;
|
|
3451
|
+
};
|
|
3452
|
+
/**
|
|
3453
|
+
* @description Parameters for [`BybitRpc::QuerySubMembers`].
|
|
3454
|
+
*
|
|
3455
|
+
* Bybit endpoint: `GET /v5/user/query-sub-members`. Takes no inputs beyond
|
|
3456
|
+
* the common envelope.
|
|
3457
|
+
*/
|
|
3458
|
+
BybitQuerySubMembersParams: {
|
|
3459
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3460
|
+
keyId: components["schemas"]["Id"];
|
|
3461
|
+
/**
|
|
3462
|
+
* Format: int32
|
|
3463
|
+
* @description Optional receive window in milliseconds. Defaults to 10000.
|
|
3464
|
+
*/
|
|
3465
|
+
recvWindow?: number | null;
|
|
3466
|
+
};
|
|
3467
|
+
/** @description Response of `GET /v5/user/query-sub-members`. */
|
|
3468
|
+
BybitQuerySubMembersResponse: {
|
|
3469
|
+
/** @description The sub-accounts under the calling master account. */
|
|
3470
|
+
subMembers: components["schemas"]["BybitSubMember"][];
|
|
3471
|
+
};
|
|
3472
|
+
/**
|
|
3473
|
+
* @description Parameters for [`BybitRpc::QueryUser`].
|
|
3474
|
+
*
|
|
3475
|
+
* Bybit endpoint: `GET /v5/user/query-api`. Takes no inputs beyond the common
|
|
3476
|
+
* `recvWindow` / `timestamp` envelope; defined directly (instead of through
|
|
3477
|
+
* the [`BybitParams`] generic alias) so utoipa emits a non-empty schema.
|
|
3478
|
+
*/
|
|
3479
|
+
BybitQueryUserParams: {
|
|
3480
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3481
|
+
keyId: components["schemas"]["Id"];
|
|
3482
|
+
/**
|
|
3483
|
+
* Format: int32
|
|
3484
|
+
* @description Optional receive window in milliseconds. Defaults to 10000.
|
|
3485
|
+
*/
|
|
3486
|
+
recvWindow?: number | null;
|
|
3487
|
+
};
|
|
3488
|
+
/** @description Response of `GET /v5/user/query-api`. */
|
|
3489
|
+
BybitQueryUserResponse: {
|
|
3490
|
+
/** @description Bybit account KYC level (`"0"` = none). */
|
|
3491
|
+
kycLevel?: string | null;
|
|
3492
|
+
/** @description Optional free-text label set on the API key. */
|
|
3493
|
+
note?: string | null;
|
|
3494
|
+
/**
|
|
3495
|
+
* @description Master account UID for sub-accounts, `"0"` if the calling key is a
|
|
3496
|
+
* master account.
|
|
3497
|
+
*/
|
|
3498
|
+
parentUid: string;
|
|
3499
|
+
/** @description API permissions assigned to the key. */
|
|
3500
|
+
permissions?: unknown;
|
|
3501
|
+
/**
|
|
3502
|
+
* Format: int64
|
|
3503
|
+
* @description Bybit-assigned account UID of the API key.
|
|
3504
|
+
*/
|
|
3505
|
+
userID: number;
|
|
3506
|
+
/** @description VIP level. */
|
|
3507
|
+
vipLevel?: string | null;
|
|
3508
|
+
[key: string]: unknown;
|
|
3509
|
+
};
|
|
3510
|
+
/**
|
|
3511
|
+
* @description Bybit-family RPC methods. Each variant authenticates as the
|
|
3512
|
+
* [`KeyType::HmacSha256`] key in its `params.key_id` (which must carry
|
|
3513
|
+
* [`KeyProperties::BybitApi`]).
|
|
3514
|
+
*/
|
|
3515
|
+
BybitRpc: {
|
|
3516
|
+
/** @enum {string} */
|
|
3517
|
+
method: "cs_bybitQueryUser";
|
|
3518
|
+
params: components["schemas"]["BybitQueryUserParams"];
|
|
3519
|
+
} | {
|
|
3520
|
+
/** @enum {string} */
|
|
3521
|
+
method: "cs_bybitQuerySubMembers";
|
|
3522
|
+
params: components["schemas"]["BybitQuerySubMembersParams"];
|
|
3523
|
+
} | {
|
|
3524
|
+
/** @enum {string} */
|
|
3525
|
+
method: "cs_bybitQueryCoinsBalance";
|
|
3526
|
+
params: components["schemas"]["BybitQueryCoinsBalanceParams"];
|
|
3527
|
+
} | {
|
|
3528
|
+
/** @enum {string} */
|
|
3529
|
+
method: "cs_bybitQueryDepositAddress";
|
|
3530
|
+
params: components["schemas"]["BybitQueryDepositAddressParams"];
|
|
3531
|
+
} | {
|
|
3532
|
+
/** @enum {string} */
|
|
3533
|
+
method: "cs_bybitUniversalTransfer";
|
|
3534
|
+
params: components["schemas"]["BybitUniversalTransferParams"];
|
|
3535
|
+
} | {
|
|
3536
|
+
/** @enum {string} */
|
|
3537
|
+
method: "cs_bybitWithdraw";
|
|
3538
|
+
params: components["schemas"]["BybitWithdrawParams"];
|
|
3539
|
+
} | {
|
|
3540
|
+
/** @enum {string} */
|
|
3541
|
+
method: "cs_bybitWithdrawals";
|
|
3542
|
+
params: components["schemas"]["BybitWithdrawalsParams"];
|
|
3543
|
+
};
|
|
3544
|
+
/** @description Response returned by the typed `bybit_sign` endpoint. */
|
|
3545
|
+
BybitSignResponse: {
|
|
3546
|
+
/** @description Optional policy evaluation tree. */
|
|
3547
|
+
policy_eval_tree?: unknown;
|
|
3548
|
+
} & {
|
|
3549
|
+
/**
|
|
3550
|
+
* @description The Bybit-bound payload (URL-encoded query for GET, JSON body for
|
|
3551
|
+
* POST). Submitted verbatim by the rpc-api lambda; the payload bytes are
|
|
3552
|
+
* also part of the signing input.
|
|
3553
|
+
*/
|
|
3554
|
+
payload: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* Format: int32
|
|
3557
|
+
* @description Effective receive window in milliseconds.
|
|
3558
|
+
*/
|
|
3559
|
+
recv_window: number;
|
|
3560
|
+
/**
|
|
3561
|
+
* @description Hex-encoded HMAC-SHA256 signature of
|
|
3562
|
+
* `timestamp || apiKey || recvWindow || payload`. Goes into the
|
|
3563
|
+
* `X-BAPI-SIGN` header.
|
|
3564
|
+
*/
|
|
3565
|
+
signature_hex: string;
|
|
3566
|
+
/**
|
|
3567
|
+
* Format: int64
|
|
3568
|
+
* @description Signing timestamp (ms since epoch). Picked by the signer.
|
|
3569
|
+
*/
|
|
3570
|
+
timestamp_ms: number;
|
|
3571
|
+
};
|
|
3572
|
+
/** @description One entry in [`BybitQuerySubMembersResponse::sub_members`]. */
|
|
3573
|
+
BybitSubMember: {
|
|
3574
|
+
/**
|
|
3575
|
+
* Format: int32
|
|
3576
|
+
* @description Trading account configuration: `1` Classic, `3` UTA1.0, `4` UTA1.0 Pro,
|
|
3577
|
+
* `5` UTA2.0, `6` UTA2.0 Pro.
|
|
3578
|
+
*/
|
|
3579
|
+
accountMode?: number | null;
|
|
3580
|
+
/**
|
|
3581
|
+
* Format: int32
|
|
3582
|
+
* @description Sub-account category: `1` standard, `6` custodial.
|
|
3583
|
+
*/
|
|
3584
|
+
memberType?: number | null;
|
|
3585
|
+
/** @description Free-text remark associated with the sub-account. */
|
|
3586
|
+
remark?: string | null;
|
|
3587
|
+
/**
|
|
3588
|
+
* Format: int32
|
|
3589
|
+
* @description Account state: `1` active, `2` login-restricted, `4` frozen.
|
|
3590
|
+
*/
|
|
3591
|
+
status?: number | null;
|
|
3592
|
+
/** @description Sub-account UID. */
|
|
3593
|
+
uid: string;
|
|
3594
|
+
/** @description Display name of the sub-account. */
|
|
3595
|
+
username?: string | null;
|
|
3596
|
+
[key: string]: unknown;
|
|
3597
|
+
};
|
|
3598
|
+
/**
|
|
3599
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
3600
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
3601
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
3602
|
+
* directly below.)
|
|
3603
|
+
*/
|
|
3604
|
+
BybitUniversalTransferParams: components["schemas"]["BybitUniversalTransferRequest"] & {
|
|
3605
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3606
|
+
keyId: components["schemas"]["Id"];
|
|
3607
|
+
/**
|
|
3608
|
+
* Format: int32
|
|
3609
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3610
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
3611
|
+
*/
|
|
3612
|
+
recvWindow?: number | null;
|
|
3613
|
+
};
|
|
3614
|
+
/** @description Parameters for `POST /v5/asset/transfer/universal-transfer`. */
|
|
3615
|
+
BybitUniversalTransferRequest: {
|
|
3616
|
+
/** @description Amount as a decimal string (e.g. `"1.5"`). Sent verbatim. */
|
|
3617
|
+
amount: string;
|
|
3618
|
+
/** @description Coin symbol (e.g. `"USDT"`). */
|
|
3619
|
+
coin: string;
|
|
3620
|
+
/**
|
|
3621
|
+
* @description Source wallet type. Defaults to `"FUND"` if omitted; the signer
|
|
3622
|
+
* substitutes the default before signing so the signed and submitted
|
|
3623
|
+
* payloads match.
|
|
3624
|
+
*/
|
|
3625
|
+
fromAccountType?: string | null;
|
|
3626
|
+
/**
|
|
3627
|
+
* Format: int64
|
|
3628
|
+
* @description Source account UID. For "self", the manager substitutes the caller's
|
|
3629
|
+
* own UID before this struct reaches the signer.
|
|
3630
|
+
*/
|
|
3631
|
+
fromMemberId: number;
|
|
3632
|
+
/** @description Destination wallet type. Defaults to `"FUND"` if omitted. */
|
|
3633
|
+
toAccountType?: string | null;
|
|
3634
|
+
/**
|
|
3635
|
+
* Format: int64
|
|
3636
|
+
* @description Destination account UID.
|
|
3637
|
+
*/
|
|
3638
|
+
toMemberId: number;
|
|
3639
|
+
/**
|
|
3640
|
+
* @description Client-supplied transfer id (UUID). Bybit echoes it back as the
|
|
3641
|
+
* canonical reference for this transfer.
|
|
3642
|
+
*/
|
|
3643
|
+
transferId: string;
|
|
3644
|
+
};
|
|
3645
|
+
/** @description Response of `POST /v5/asset/transfer/universal-transfer`. */
|
|
3646
|
+
BybitUniversalTransferResponse: {
|
|
3647
|
+
/**
|
|
3648
|
+
* @description Transfer state: one of `SUCCESS`, `PENDING`, `FAILED`, or
|
|
3649
|
+
* `STATUS_UNKNOWN`.
|
|
3650
|
+
*/
|
|
3651
|
+
status?: string | null;
|
|
3652
|
+
/**
|
|
3653
|
+
* @description UUID Bybit assigned to the transfer; the caller-supplied `transferId`
|
|
3654
|
+
* echoed back.
|
|
3655
|
+
*/
|
|
3656
|
+
transferId: string;
|
|
3657
|
+
};
|
|
3658
|
+
/** @description One entry in [`BybitWithdrawalsResponse::rows`]. */
|
|
3659
|
+
BybitWithdrawEntry: {
|
|
3660
|
+
/** @description Withdrawal amount as a decimal string. */
|
|
3661
|
+
amount: string;
|
|
3662
|
+
/** @description Short chain code (e.g. `ETH`, `TRX`). */
|
|
3663
|
+
chain: string;
|
|
3664
|
+
/** @description Coin symbol, uppercase (e.g. `USDT`). */
|
|
3665
|
+
coin: string;
|
|
3666
|
+
/** @description Creation timestamp, in milliseconds since epoch (as a string). */
|
|
3667
|
+
createTime: string;
|
|
3668
|
+
/**
|
|
3669
|
+
* @description Withdrawal state, e.g. `success`, `pending`, `failed`, `cancelled`. See
|
|
3670
|
+
* the Bybit docs for the full set, which depends on `withdraw_type`.
|
|
3671
|
+
*/
|
|
3672
|
+
status: string;
|
|
3673
|
+
/** @description Memo / tag for chains that use one (e.g. XRP, EOS). */
|
|
3674
|
+
tag?: string | null;
|
|
3675
|
+
/** @description Destination: an on-chain address, or a Bybit UID for internal transfers. */
|
|
3676
|
+
toAddress: string;
|
|
3677
|
+
/**
|
|
3678
|
+
* @description On-chain transaction hash; empty for failed/cancelled withdrawals and
|
|
3679
|
+
* for in-flight on-chain withdrawals before broadcast.
|
|
3680
|
+
*/
|
|
3681
|
+
txId?: string | null;
|
|
3682
|
+
/** @description Timestamp of the most recent status change, in milliseconds since epoch. */
|
|
3683
|
+
updateTime: string;
|
|
3684
|
+
/** @description Network / processing fee charged for the withdrawal, as a decimal string. */
|
|
3685
|
+
withdrawFee: string;
|
|
3686
|
+
/** @description Bybit-assigned withdrawal id. */
|
|
3687
|
+
withdrawId: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* Format: int32
|
|
3690
|
+
* @description Withdrawal classification: `0` on-chain, `1` off-chain (internal).
|
|
3691
|
+
*/
|
|
3692
|
+
withdrawType?: number | null;
|
|
3693
|
+
[key: string]: unknown;
|
|
3694
|
+
};
|
|
3695
|
+
/**
|
|
3696
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
3697
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
3698
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
3699
|
+
* directly below.)
|
|
3700
|
+
*/
|
|
3701
|
+
BybitWithdrawParams: components["schemas"]["BybitWithdrawRequest"] & {
|
|
3702
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3703
|
+
keyId: components["schemas"]["Id"];
|
|
3704
|
+
/**
|
|
3705
|
+
* Format: int32
|
|
3706
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3707
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
3708
|
+
*/
|
|
3709
|
+
recvWindow?: number | null;
|
|
3710
|
+
};
|
|
3711
|
+
/** @description Parameters for `POST /v5/asset/withdraw/create`. Master-only. */
|
|
3712
|
+
BybitWithdrawRequest: {
|
|
3713
|
+
/**
|
|
3714
|
+
* @description Source wallet (`"FUND"` or `"SPOT"`). Defaults to Bybit's account-level
|
|
3715
|
+
* default when omitted.
|
|
3716
|
+
*/
|
|
3717
|
+
accountType?: string | null;
|
|
3718
|
+
/** @description Destination address. Must already be in Bybit's address book. */
|
|
3719
|
+
address: string;
|
|
3720
|
+
/** @description Amount as a decimal string. Sent verbatim. */
|
|
3721
|
+
amount: string;
|
|
3722
|
+
/** @description Network identifier (e.g. `"ETH"`, `"TRX"`). Required by Bybit. */
|
|
3723
|
+
chain: string;
|
|
3724
|
+
/** @description Coin symbol (e.g. `"USDT"`, `"BTC"`). */
|
|
3725
|
+
coin: string;
|
|
3726
|
+
/**
|
|
3727
|
+
* Format: int32
|
|
3728
|
+
* @description Force-chain flag: `0` (default), `1`, or `2`. See Bybit docs.
|
|
3729
|
+
*/
|
|
3730
|
+
forceChain?: number | null;
|
|
3731
|
+
/** @description Client-supplied request id (UUID). Used by Bybit for idempotency. */
|
|
3732
|
+
requestId: string;
|
|
3733
|
+
/** @description Optional memo / tag (e.g. for XRP, XLM). */
|
|
3734
|
+
tag?: string | null;
|
|
3735
|
+
/**
|
|
3736
|
+
* Format: int64
|
|
3737
|
+
* @description Server-supplied timestamp (ms since epoch). Set by the signer just before
|
|
3738
|
+
* signing; clients leave this `None` (because the server will ignore it anyway).
|
|
3739
|
+
*/
|
|
3740
|
+
timestamp?: number | null;
|
|
3741
|
+
};
|
|
3742
|
+
/** @description Response of `POST /v5/asset/withdraw/create`. */
|
|
3743
|
+
BybitWithdrawResponse: {
|
|
3744
|
+
/** @description Bybit-assigned withdrawal id. */
|
|
3745
|
+
id: string;
|
|
3746
|
+
};
|
|
3747
|
+
/**
|
|
3748
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
3749
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
3750
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
3751
|
+
* directly below.)
|
|
3752
|
+
*/
|
|
3753
|
+
BybitWithdrawalsParams: components["schemas"]["BybitWithdrawalsRequest"] & {
|
|
3754
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
3755
|
+
keyId: components["schemas"]["Id"];
|
|
3756
|
+
/**
|
|
3757
|
+
* Format: int32
|
|
3758
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3759
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
3760
|
+
*/
|
|
3761
|
+
recvWindow?: number | null;
|
|
3762
|
+
};
|
|
3763
|
+
/** @description Parameters for `GET /v5/asset/withdraw/query-record`. */
|
|
3764
|
+
BybitWithdrawalsRequest: {
|
|
3765
|
+
/** @description Filter by coin symbol. */
|
|
3766
|
+
coin?: string | null;
|
|
3767
|
+
/**
|
|
3768
|
+
* Format: int32
|
|
3769
|
+
* @description Page size.
|
|
3770
|
+
*/
|
|
3771
|
+
limit?: number | null;
|
|
3772
|
+
/**
|
|
3773
|
+
* @description Filter by Bybit-assigned withdrawal id (the `id` returned by
|
|
3774
|
+
* [`BybitRpc::Withdraw`]).
|
|
3775
|
+
*/
|
|
3776
|
+
withdrawID?: string | null;
|
|
3777
|
+
};
|
|
3778
|
+
/** @description Response of `GET /v5/asset/withdraw/query-record`. */
|
|
3779
|
+
BybitWithdrawalsResponse: {
|
|
3780
|
+
/**
|
|
3781
|
+
* @description Opaque cursor to pass back as `cursor` on the next request to fetch
|
|
3782
|
+
* the next page; absent on the last page.
|
|
3783
|
+
*/
|
|
3784
|
+
nextPageCursor?: string | null;
|
|
3785
|
+
/** @description Withdrawal records matching the query. */
|
|
3786
|
+
rows: components["schemas"]["BybitWithdrawEntry"][];
|
|
3787
|
+
};
|
|
3311
3788
|
CancelInvitationRequest: {
|
|
3312
3789
|
email: components["schemas"]["Email"];
|
|
3313
3790
|
};
|
|
@@ -4105,7 +4582,7 @@ export interface components {
|
|
|
4105
4582
|
DepositResponse: {
|
|
4106
4583
|
/** @description Deposit address. */
|
|
4107
4584
|
address: string;
|
|
4108
|
-
/** @description Asset symbol (echoes
|
|
4585
|
+
/** @description Asset symbol (echoes the request's `coin` field). */
|
|
4109
4586
|
coin: string;
|
|
4110
4587
|
/**
|
|
4111
4588
|
* @description Secondary address identifier required by some assets (e.g. memo for
|
|
@@ -4926,7 +5403,7 @@ export interface components {
|
|
|
4926
5403
|
* @description Explicitly named scopes for accessing CubeSigner APIs
|
|
4927
5404
|
* @enum {string}
|
|
4928
5405
|
*/
|
|
4929
|
-
ExplicitScope: "sign:*" | "sign:ava" | "sign:binance:*" | "sign:binance:subToMaster" | "sign:binance:subToSub" | "sign:binance:universalTransfer" | "sign:binance:subAccountAssets" | "sign:binance:accountInfo" | "sign:binance:subAccountTransferHistory" | "sign:binance:universalTransferHistory" | "sign:binance:withdraw" | "sign:binance:withdrawHistory" | "sign:binance:deposit" | "sign:binance:listSubAccounts" | "sign:binance:coinInfo" | "sign:coinbase:*" | "sign:coinbase:accounts:list" | "sign:coinbase:portfolios:list" | "sign:coinbase:funds:move" | "sign:blob" | "sign:diffieHellman" | "sign:btc:*" | "sign:btc:segwit" | "sign:btc:taproot" | "sign:btc:psbt:*" | "sign:btc:psbt:doge" | "sign:btc:psbt:legacy" | "sign:btc:psbt:segwit" | "sign:btc:psbt:taproot" | "sign:btc:psbt:ltcSegwit" | "sign:btc:message:*" | "sign:btc:message:segwit" | "sign:btc:message:legacy" | "sign:babylon:*" | "sign:babylon:eots:*" | "sign:babylon:eots:nonces" | "sign:babylon:eots:sign" | "sign:babylon:staking:*" | "sign:babylon:staking:deposit" | "sign:babylon:staking:unbond" | "sign:babylon:staking:withdraw" | "sign:babylon:staking:slash" | "sign:babylon:registration" | "sign:babylon:covenant" | "sign:evm:*" | "sign:evm:tx" | "sign:evm:eip191" | "sign:evm:eip712" | "sign:eth2:*" | "sign:eth2:validate" | "sign:eth2:stake" | "sign:eth2:unstake" | "sign:solana" | "sign:sui" | "sign:tendermint" | "sign:mmi" | "manage:*" | "manage:readonly" | "manage:email:*" | "manage:email:get" | "manage:email:update" | "manage:email:delete" | "manage:mfa:*" | "manage:mfa:readonly" | "manage:mfa:list" | "manage:mfa:vote:*" | "manage:mfa:vote:cs" | "manage:mfa:vote:email" | "manage:mfa:vote:fido" | "manage:mfa:vote:totp" | "manage:mfa:register:*" | "manage:mfa:register:fido" | "manage:mfa:register:totp" | "manage:mfa:register:email" | "manage:mfa:unregister:*" | "manage:mfa:unregister:fido" | "manage:mfa:unregister:totp" | "manage:mfa:verify:*" | "manage:mfa:verify:totp" | "manage:key:*" | "manage:key:readonly" | "manage:key:get" | "manage:key:attest" | "manage:key:listRoles" | "manage:key:list" | "manage:key:history:tx:list" | "manage:key:create" | "manage:key:import" | "manage:key:update:*" | "manage:key:update:owner" | "manage:key:update:policy" | "manage:key:update:enabled" | "manage:key:update:region" | "manage:key:update:metadata" | "manage:key:update:properties" | "manage:key:update:editPolicy" | "manage:key:delete" | "manage:policy:*" | "manage:policy:readonly" | "manage:policy:create" | "manage:policy:get" | "manage:policy:list" | "manage:policy:delete" | "manage:policy:update:*" | "manage:policy:update:owner" | "manage:policy:update:name" | "manage:policy:update:acl" | "manage:policy:update:editPolicy" | "manage:policy:update:metadata" | "manage:policy:update:rule" | "manage:policy:invoke" | "manage:policy:wasm:*" | "manage:policy:wasm:upload" | "manage:policy:secrets:*" | "manage:policy:secrets:get" | "manage:policy:secrets:update:*" | "manage:policy:secrets:update:values" | "manage:policy:secrets:update:acl" | "manage:policy:secrets:update:editPolicy" | "manage:policy:buckets:*" | "manage:policy:buckets:get" | "manage:policy:buckets:list" | "manage:policy:buckets:update:*" | "manage:policy:buckets:update:owner" | "manage:policy:buckets:update:acl" | "manage:policy:buckets:update:metadata" | "manage:contact:*" | "manage:contact:readonly" | "manage:contact:create" | "manage:contact:get" | "manage:contact:list" | "manage:contact:delete" | "manage:contact:update:*" | "manage:contact:update:name" | "manage:contact:update:addresses" | "manage:contact:update:owner" | "manage:contact:update:labels" | "manage:contact:update:metadata" | "manage:contact:update:editPolicy" | "manage:contact:lookup:*" | "manage:contact:lookup:address" | "manage:policy:createImportKey" | "manage:role:*" | "manage:role:readonly" | "manage:role:create" | "manage:role:delete" | "manage:role:get:*" | "manage:role:attest" | "manage:role:get:keys" | "manage:role:get:keys:list" | "manage:role:get:keys:get" | "manage:role:get:users" | "manage:role:list" | "manage:role:update:*" | "manage:role:update:enabled" | "manage:role:update:policy" | "manage:role:update:editPolicy" | "manage:role:update:actions" | "manage:role:update:key:*" | "manage:role:update:key:add" | "manage:role:update:key:remove" | "manage:role:update:user:*" | "manage:role:update:user:add" | "manage:role:update:user:remove" | "manage:role:history:tx:list" | "manage:identity:*" | "manage:identity:readonly" | "manage:identity:verify" | "manage:identity:add" | "manage:identity:remove" | "manage:identity:list" | "manage:org:*" | "manage:org:create" | "manage:org:metrics:query" | "manage:org:audit:query" | "manage:org:readonly" | "manage:org:addUser" | "manage:org:inviteUser" | "manage:org:inviteAlien" | "manage:org:invitation:list" | "manage:org:invitation:cancel" | "manage:org:updateMembership:*" | "manage:org:updateMembership:owner" | "manage:org:updateMembership:member" | "manage:org:updateMembership:alien" | "manage:org:listUsers" | "manage:org:user:get" | "manage:org:deleteUser:*" | "manage:org:deleteUser:owner" | "manage:org:deleteUser:member" | "manage:org:deleteUser:alien" | "manage:org:get" | "manage:org:update:*" | "manage:org:update:enabled" | "manage:org:update:policy" | "manage:org:update:signPolicy" | "manage:org:update:export" | "manage:org:update:totpFailureLimit" | "manage:org:update:notificationEndpoints" | "manage:org:update:defaultInviteKind" | "manage:org:update:idpConfiguration" | "manage:org:update:passkeyConfiguration" | "manage:org:update:emailPreferences" | "manage:org:update:historicalData" | "manage:org:update:requireScopeCeiling" | "manage:org:update:alienLoginRequirement" | "manage:org:update:memberLoginRequirement" | "manage:org:update:keyExportRequirement" | "manage:org:update:allowedMfaTypes" | "manage:org:update:policyEngineConf" | "manage:org:update:customChains" | "manage:org:update:extProps" | "manage:org:update:editPolicy" | "manage:org:user:resetMfa" | "manage:session:*" | "manage:session:readonly" | "manage:session:get" | "manage:session:list" | "manage:session:create" | "manage:session:extend" | "manage:session:revoke" | "manage:export:*" | "manage:export:readonly" | "manage:export:org:*" | "manage:export:org:get" | "manage:export:user:*" | "manage:export:user:delete" | "manage:export:user:list" | "manage:authMigration:*" | "manage:authMigration:identity:add" | "manage:authMigration:identity:remove" | "manage:authMigration:user:update" | "manage:mmi:*" | "manage:mmi:readonly" | "manage:mmi:get" | "manage:mmi:list" | "manage:mmi:reject" | "manage:mmi:delete" | "export:*" | "export:user:*" | "export:user:init" | "export:user:complete" | "mmi:*" | "orgAccess:*" | "orgAccess:child:*" | "rpc:*" | "rpc:createTransaction:*" | "rpc:createTransaction:evm" | "rpc:retryTransaction" | "rpc:getTransaction" | "rpc:listTransactions" | "rpc:binance" | "rpc:coinbase";
|
|
5406
|
+
ExplicitScope: "sign:*" | "sign:ava" | "sign:binance:*" | "sign:binance:subToMaster" | "sign:binance:subToSub" | "sign:binance:universalTransfer" | "sign:binance:subAccountAssets" | "sign:binance:accountInfo" | "sign:binance:subAccountTransferHistory" | "sign:binance:universalTransferHistory" | "sign:binance:withdraw" | "sign:binance:withdrawHistory" | "sign:binance:deposit" | "sign:binance:listSubAccounts" | "sign:binance:coinInfo" | "sign:bybit:*" | "sign:bybit:queryUser" | "sign:bybit:querySubMembers" | "sign:bybit:queryCoinsBalance" | "sign:bybit:queryDepositAddress" | "sign:bybit:universalTransfer" | "sign:bybit:withdraw" | "sign:bybit:withdrawals" | "sign:coinbase:*" | "sign:coinbase:accounts:list" | "sign:coinbase:portfolios:list" | "sign:coinbase:funds:move" | "sign:blob" | "sign:diffieHellman" | "sign:btc:*" | "sign:btc:segwit" | "sign:btc:taproot" | "sign:btc:psbt:*" | "sign:btc:psbt:doge" | "sign:btc:psbt:legacy" | "sign:btc:psbt:segwit" | "sign:btc:psbt:taproot" | "sign:btc:psbt:ltcSegwit" | "sign:btc:message:*" | "sign:btc:message:segwit" | "sign:btc:message:legacy" | "sign:babylon:*" | "sign:babylon:eots:*" | "sign:babylon:eots:nonces" | "sign:babylon:eots:sign" | "sign:babylon:staking:*" | "sign:babylon:staking:deposit" | "sign:babylon:staking:unbond" | "sign:babylon:staking:withdraw" | "sign:babylon:staking:slash" | "sign:babylon:registration" | "sign:babylon:covenant" | "sign:evm:*" | "sign:evm:tx" | "sign:evm:eip191" | "sign:evm:eip712" | "sign:eth2:*" | "sign:eth2:validate" | "sign:eth2:stake" | "sign:eth2:unstake" | "sign:solana" | "sign:sui" | "sign:tendermint" | "sign:mmi" | "manage:*" | "manage:readonly" | "manage:email:*" | "manage:email:get" | "manage:email:update" | "manage:email:delete" | "manage:mfa:*" | "manage:mfa:readonly" | "manage:mfa:list" | "manage:mfa:vote:*" | "manage:mfa:vote:cs" | "manage:mfa:vote:email" | "manage:mfa:vote:fido" | "manage:mfa:vote:totp" | "manage:mfa:register:*" | "manage:mfa:register:fido" | "manage:mfa:register:totp" | "manage:mfa:register:email" | "manage:mfa:unregister:*" | "manage:mfa:unregister:fido" | "manage:mfa:unregister:totp" | "manage:mfa:verify:*" | "manage:mfa:verify:totp" | "manage:key:*" | "manage:key:readonly" | "manage:key:get" | "manage:key:attest" | "manage:key:listRoles" | "manage:key:list" | "manage:key:history:tx:list" | "manage:key:create" | "manage:key:import" | "manage:key:update:*" | "manage:key:update:owner" | "manage:key:update:policy" | "manage:key:update:enabled" | "manage:key:update:region" | "manage:key:update:metadata" | "manage:key:update:properties" | "manage:key:update:editPolicy" | "manage:key:delete" | "manage:policy:*" | "manage:policy:readonly" | "manage:policy:create" | "manage:policy:get" | "manage:policy:list" | "manage:policy:delete" | "manage:policy:update:*" | "manage:policy:update:owner" | "manage:policy:update:name" | "manage:policy:update:acl" | "manage:policy:update:editPolicy" | "manage:policy:update:metadata" | "manage:policy:update:rule" | "manage:policy:invoke" | "manage:policy:wasm:*" | "manage:policy:wasm:upload" | "manage:policy:secrets:*" | "manage:policy:secrets:get" | "manage:policy:secrets:update:*" | "manage:policy:secrets:update:values" | "manage:policy:secrets:update:acl" | "manage:policy:secrets:update:editPolicy" | "manage:policy:buckets:*" | "manage:policy:buckets:get" | "manage:policy:buckets:list" | "manage:policy:buckets:update:*" | "manage:policy:buckets:update:owner" | "manage:policy:buckets:update:acl" | "manage:policy:buckets:update:metadata" | "manage:contact:*" | "manage:contact:readonly" | "manage:contact:create" | "manage:contact:get" | "manage:contact:list" | "manage:contact:delete" | "manage:contact:update:*" | "manage:contact:update:name" | "manage:contact:update:addresses" | "manage:contact:update:owner" | "manage:contact:update:labels" | "manage:contact:update:metadata" | "manage:contact:update:editPolicy" | "manage:contact:lookup:*" | "manage:contact:lookup:address" | "manage:policy:createImportKey" | "manage:role:*" | "manage:role:readonly" | "manage:role:create" | "manage:role:delete" | "manage:role:get:*" | "manage:role:attest" | "manage:role:get:keys" | "manage:role:get:keys:list" | "manage:role:get:keys:get" | "manage:role:get:users" | "manage:role:list" | "manage:role:update:*" | "manage:role:update:enabled" | "manage:role:update:policy" | "manage:role:update:editPolicy" | "manage:role:update:actions" | "manage:role:update:key:*" | "manage:role:update:key:add" | "manage:role:update:key:remove" | "manage:role:update:user:*" | "manage:role:update:user:add" | "manage:role:update:user:remove" | "manage:role:history:tx:list" | "manage:identity:*" | "manage:identity:readonly" | "manage:identity:verify" | "manage:identity:add" | "manage:identity:remove" | "manage:identity:list" | "manage:org:*" | "manage:org:create" | "manage:org:metrics:query" | "manage:org:audit:query" | "manage:org:readonly" | "manage:org:addUser" | "manage:org:inviteUser" | "manage:org:inviteAlien" | "manage:org:invitation:list" | "manage:org:invitation:cancel" | "manage:org:updateMembership:*" | "manage:org:updateMembership:owner" | "manage:org:updateMembership:member" | "manage:org:updateMembership:alien" | "manage:org:listUsers" | "manage:org:user:get" | "manage:org:deleteUser:*" | "manage:org:deleteUser:owner" | "manage:org:deleteUser:member" | "manage:org:deleteUser:alien" | "manage:org:get" | "manage:org:update:*" | "manage:org:update:enabled" | "manage:org:update:policy" | "manage:org:update:signPolicy" | "manage:org:update:export" | "manage:org:update:totpFailureLimit" | "manage:org:update:notificationEndpoints" | "manage:org:update:defaultInviteKind" | "manage:org:update:idpConfiguration" | "manage:org:update:passkeyConfiguration" | "manage:org:update:emailPreferences" | "manage:org:update:historicalData" | "manage:org:update:requireScopeCeiling" | "manage:org:update:alienLoginRequirement" | "manage:org:update:memberLoginRequirement" | "manage:org:update:keyExportRequirement" | "manage:org:update:allowedMfaTypes" | "manage:org:update:policyEngineConf" | "manage:org:update:customChains" | "manage:org:update:extProps" | "manage:org:update:editPolicy" | "manage:org:user:resetMfa" | "manage:session:*" | "manage:session:readonly" | "manage:session:get" | "manage:session:list" | "manage:session:create" | "manage:session:extend" | "manage:session:revoke" | "manage:export:*" | "manage:export:readonly" | "manage:export:org:*" | "manage:export:org:get" | "manage:export:user:*" | "manage:export:user:delete" | "manage:export:user:list" | "manage:authMigration:*" | "manage:authMigration:identity:add" | "manage:authMigration:identity:remove" | "manage:authMigration:user:update" | "manage:mmi:*" | "manage:mmi:readonly" | "manage:mmi:get" | "manage:mmi:list" | "manage:mmi:reject" | "manage:mmi:delete" | "export:*" | "export:user:*" | "export:user:init" | "export:user:complete" | "mmi:*" | "orgAccess:*" | "orgAccess:child:*" | "rpc:*" | "rpc:createTransaction:*" | "rpc:createTransaction:evm" | "rpc:retryTransaction" | "rpc:getTransaction" | "rpc:listTransactions" | "rpc:binance" | "rpc:bybit" | "rpc:coinbase";
|
|
4930
5407
|
/**
|
|
4931
5408
|
* @description This type specifies the interpretation of the `fee` field in Babylon
|
|
4932
5409
|
* staking requests. If `sats`, the field is intpreted as a fixed value
|
|
@@ -5400,7 +5877,7 @@ export interface components {
|
|
|
5400
5877
|
result?: Record<string, unknown> | null;
|
|
5401
5878
|
};
|
|
5402
5879
|
/** @description Valid `result` from the JSON-RPC API. */
|
|
5403
|
-
JsonRpcResult: components["schemas"]["TransactionInfo"] | components["schemas"]["ListTransactionsPaginatedResponse"] | components["schemas"]["SubAccountTransferResponse"] | components["schemas"]["UniversalTransferResponse"] | components["schemas"]["SubAccountAssetsResponse"] | components["schemas"]["AccountInfoResponse"] | components["schemas"]["SubAccountTransferHistoryResponse"] | components["schemas"]["UniversalTransferHistoryResponse"] | components["schemas"]["WithdrawResponse"] | components["schemas"]["WithdrawHistoryResponse"] | components["schemas"]["DepositResponse"] | components["schemas"]["ListSubAccountsResponse"] | components["schemas"]["CoinInfoResponse"] | components["schemas"]["CoinbaseListAccountsResponse"] | components["schemas"]["CoinbaseListPortfoliosResponse"] | components["schemas"]["CoinbaseMoveFundsResponse"];
|
|
5880
|
+
JsonRpcResult: components["schemas"]["TransactionInfo"] | components["schemas"]["ListTransactionsPaginatedResponse"] | components["schemas"]["SubAccountTransferResponse"] | components["schemas"]["UniversalTransferResponse"] | components["schemas"]["SubAccountAssetsResponse"] | components["schemas"]["AccountInfoResponse"] | components["schemas"]["SubAccountTransferHistoryResponse"] | components["schemas"]["UniversalTransferHistoryResponse"] | components["schemas"]["WithdrawResponse"] | components["schemas"]["WithdrawHistoryResponse"] | components["schemas"]["DepositResponse"] | components["schemas"]["ListSubAccountsResponse"] | components["schemas"]["CoinInfoResponse"] | components["schemas"]["BybitQueryUserResponse"] | components["schemas"]["BybitQuerySubMembersResponse"] | components["schemas"]["BybitQueryCoinsBalanceResponse"] | components["schemas"]["BybitQueryDepositAddressResponse"] | components["schemas"]["BybitUniversalTransferResponse"] | components["schemas"]["BybitWithdrawResponse"] | components["schemas"]["BybitWithdrawalsResponse"] | components["schemas"]["CoinbaseListAccountsResponse"] | components["schemas"]["CoinbaseListPortfoliosResponse"] | components["schemas"]["CoinbaseMoveFundsResponse"];
|
|
5404
5881
|
JwkSetResponse: {
|
|
5405
5882
|
/** @description The keys included in this set */
|
|
5406
5883
|
keys: Record<string, never>[];
|
|
@@ -5547,10 +6024,14 @@ export interface components {
|
|
|
5547
6024
|
components["schemas"]["CoinbaseApiPropertiesPatch"] & {
|
|
5548
6025
|
/** @enum {string} */
|
|
5549
6026
|
kind: "CoinbaseApi";
|
|
6027
|
+
},
|
|
6028
|
+
components["schemas"]["BybitApiPropertiesPatch"] & {
|
|
6029
|
+
/** @enum {string} */
|
|
6030
|
+
kind: "BybitApi";
|
|
5550
6031
|
}
|
|
5551
6032
|
]>;
|
|
5552
6033
|
/** @enum {string} */
|
|
5553
|
-
KeyType: "SecpEthAddr" | "SecpBtc" | "SecpBtcTest" | "SecpBtcLegacy" | "SecpBtcLegacyTest" | "SecpAvaAddr" | "SecpAvaTestAddr" | "BlsPub" | "BlsInactive" | "BlsAvaIcm" | "Ed25519SolanaAddr" | "Ed25519SuiAddr" | "Ed25519AptosAddr" | "Ed25519CardanoAddrVk" | "Ed25519StellarAddr" | "Ed25519SubstrateAddr" | "Ed25519CantonAddr" | "Ed25519BinanceApi" | "Ed25519CoinbaseApi" | "Mnemonic" | "Stark" | "BabylonEots" | "BabylonCov" | "TaprootBtc" | "TaprootBtcTest" | "SecpCosmosAddr" | "P256CosmosAddr" | "P256OntologyAddr" | "P256Neo3Addr" | "Ed25519TendermintAddr" | "SecpTronAddr" | "Ed25519TonAddr" | "SecpDogeAddr" | "SecpDogeTestAddr" | "SecpKaspaAddr" | "SecpKaspaTestAddr" | "SchnorrKaspaAddr" | "SchnorrKaspaTestAddr" | "SecpLtc" | "SecpLtcTest" | "SecpXrpAddr" | "Ed25519XrpAddr" | "BabyJubjub";
|
|
6034
|
+
KeyType: "SecpEthAddr" | "SecpBtc" | "SecpBtcTest" | "SecpBtcLegacy" | "SecpBtcLegacyTest" | "SecpAvaAddr" | "SecpAvaTestAddr" | "BlsPub" | "BlsInactive" | "BlsAvaIcm" | "Ed25519SolanaAddr" | "Ed25519SuiAddr" | "Ed25519AptosAddr" | "Ed25519CardanoAddrVk" | "Ed25519StellarAddr" | "Ed25519SubstrateAddr" | "Ed25519CantonAddr" | "Ed25519BinanceApi" | "Ed25519CoinbaseApi" | "Mnemonic" | "Stark" | "BabylonEots" | "BabylonCov" | "TaprootBtc" | "TaprootBtcTest" | "SecpCosmosAddr" | "P256CosmosAddr" | "P256OntologyAddr" | "P256Neo3Addr" | "Ed25519TendermintAddr" | "SecpTronAddr" | "Ed25519TonAddr" | "SecpDogeAddr" | "SecpDogeTestAddr" | "SecpKaspaAddr" | "SecpKaspaTestAddr" | "SchnorrKaspaAddr" | "SchnorrKaspaTestAddr" | "SecpLtc" | "SecpLtcTest" | "SecpXrpAddr" | "Ed25519XrpAddr" | "BabyJubjub" | "HmacSha256";
|
|
5554
6035
|
KeyTypeAndDerivationPath: {
|
|
5555
6036
|
/**
|
|
5556
6037
|
* @description List of derivation paths for which to derive.
|
|
@@ -6023,7 +6504,7 @@ export interface components {
|
|
|
6023
6504
|
* @description All different kinds of sensitive operations
|
|
6024
6505
|
* @enum {string}
|
|
6025
6506
|
*/
|
|
6026
|
-
OperationKind: "AvaSign" | "AvaChainTxSign" | "BabylonCovSign" | "BabylonRegistration" | "BabylonStaking" | "
|
|
6507
|
+
OperationKind: "AvaSign" | "AvaChainTxSign" | "BabylonCovSign" | "BabylonRegistration" | "BabylonStaking" | "BinanceSubToMaster" | "BinanceSubToSub" | "BinanceUniversalTransfer" | "BinanceSubAccountAssets" | "BinanceAccountInfo" | "BinanceSubAccountTransferHistory" | "BinanceUniversalTransferHistory" | "BinanceWithdraw" | "BinanceWithdrawHistory" | "BinanceDeposit" | "BinanceListSubAccounts" | "BinanceCoinInfo" | "BlobSign" | "BtcMessageSign" | "BtcSign" | "BybitQueryUser" | "BybitQuerySubMembers" | "BybitQueryCoinsBalance" | "BybitQueryDepositAddress" | "BybitUniversalTransfer" | "BybitWithdraw" | "BybitWithdrawals" | "CoinbaseListAccounts" | "CoinbaseListPortfolios" | "CoinbaseMoveFunds" | "DiffieHellman" | "PsbtSign" | "TaprootSign" | "Eip191Sign" | "Eip712Sign" | "EotsNonces" | "EotsSign" | "Eth1Sign" | "Eth2Sign" | "Eth2Stake" | "Eth2Unstake" | "SolanaSign" | "SuiSign" | "TendermintSign" | "RoleUpdate";
|
|
6027
6508
|
OrgAlertsPrefs: {
|
|
6028
6509
|
/** @description Recipient users for org-level alerts */
|
|
6029
6510
|
alert_recipients?: components["schemas"]["Id"][] | null;
|
|
@@ -7630,9 +8111,9 @@ export interface components {
|
|
|
7630
8111
|
* Top-level dispatch. Wire format is preserved by `#[serde(untagged)]`: each
|
|
7631
8112
|
* inbound request is matched against one of the internally-tagged inner enums
|
|
7632
8113
|
* ([`CsRpc`] for the core methods, [`BinanceRpc`] for the Binance family,
|
|
7633
|
-
* [`CoinbaseRpc`] for the Coinbase family).
|
|
8114
|
+
* [`BybitRpc`] for the Bybit family, [`CoinbaseRpc`] for the Coinbase family).
|
|
7634
8115
|
*/
|
|
7635
|
-
RpcMethod: components["schemas"]["CsRpc"] | components["schemas"]["BinanceRpc"] | components["schemas"]["CoinbaseRpc"];
|
|
8116
|
+
RpcMethod: components["schemas"]["CsRpc"] | components["schemas"]["BinanceRpc"] | components["schemas"]["BybitRpc"] | components["schemas"]["CoinbaseRpc"];
|
|
7636
8117
|
/** @description All scopes for accessing CubeSigner APIs */
|
|
7637
8118
|
Scope: components["schemas"]["ExplicitScope"] | string;
|
|
7638
8119
|
/** @description A set of scopes. */
|
|
@@ -8645,8 +9126,8 @@ export interface components {
|
|
|
8645
9126
|
asset: string;
|
|
8646
9127
|
/**
|
|
8647
9128
|
* @description Optional client-supplied transfer id. If set, Binance echoes it back
|
|
8648
|
-
* on
|
|
8649
|
-
* as a filter on
|
|
9129
|
+
* as `client_tran_id` on the `UniversalTransferResponse` and lets it be
|
|
9130
|
+
* used as a filter on
|
|
8650
9131
|
* [`UniversalTransferHistoryRequest::client_tran_id`].
|
|
8651
9132
|
*/
|
|
8652
9133
|
clientTranId?: string | null;
|
|
@@ -9514,7 +9995,7 @@ export interface components {
|
|
|
9514
9995
|
endTime?: number | null;
|
|
9515
9996
|
/**
|
|
9516
9997
|
* @description Comma-separated list of Binance-assigned withdrawal ids (the `id`
|
|
9517
|
-
* field of
|
|
9998
|
+
* field of `WithdrawResponse`). Up to 45 ids per query, per Binance.
|
|
9518
9999
|
*/
|
|
9519
10000
|
idList?: string | null;
|
|
9520
10001
|
/**
|
|
@@ -9781,6 +10262,38 @@ export interface components {
|
|
|
9781
10262
|
};
|
|
9782
10263
|
};
|
|
9783
10264
|
};
|
|
10265
|
+
/** @description Response returned by the typed `bybit_sign` endpoint. */
|
|
10266
|
+
BybitSignResponse: {
|
|
10267
|
+
content: {
|
|
10268
|
+
"application/json": {
|
|
10269
|
+
/** @description Optional policy evaluation tree. */
|
|
10270
|
+
policy_eval_tree?: unknown;
|
|
10271
|
+
} & {
|
|
10272
|
+
/**
|
|
10273
|
+
* @description The Bybit-bound payload (URL-encoded query for GET, JSON body for
|
|
10274
|
+
* POST). Submitted verbatim by the rpc-api lambda; the payload bytes are
|
|
10275
|
+
* also part of the signing input.
|
|
10276
|
+
*/
|
|
10277
|
+
payload: string;
|
|
10278
|
+
/**
|
|
10279
|
+
* Format: int32
|
|
10280
|
+
* @description Effective receive window in milliseconds.
|
|
10281
|
+
*/
|
|
10282
|
+
recv_window: number;
|
|
10283
|
+
/**
|
|
10284
|
+
* @description Hex-encoded HMAC-SHA256 signature of
|
|
10285
|
+
* `timestamp || apiKey || recvWindow || payload`. Goes into the
|
|
10286
|
+
* `X-BAPI-SIGN` header.
|
|
10287
|
+
*/
|
|
10288
|
+
signature_hex: string;
|
|
10289
|
+
/**
|
|
10290
|
+
* Format: int64
|
|
10291
|
+
* @description Signing timestamp (ms since epoch). Picked by the signer.
|
|
10292
|
+
*/
|
|
10293
|
+
timestamp_ms: number;
|
|
10294
|
+
};
|
|
10295
|
+
};
|
|
10296
|
+
};
|
|
9784
10297
|
/** @description Response returned by the typed `coinbase_sign` endpoint. */
|
|
9785
10298
|
CoinbaseSignResponse: {
|
|
9786
10299
|
content: {
|
|
@@ -11593,6 +12106,11 @@ export interface operations {
|
|
|
11593
12106
|
};
|
|
11594
12107
|
responses: {
|
|
11595
12108
|
200: components["responses"]["UpdateOrgResponse"];
|
|
12109
|
+
202: {
|
|
12110
|
+
content: {
|
|
12111
|
+
"application/json": components["schemas"]["AcceptedResponse"];
|
|
12112
|
+
};
|
|
12113
|
+
};
|
|
11596
12114
|
default: {
|
|
11597
12115
|
content: {
|
|
11598
12116
|
"application/json": components["schemas"]["ErrorResponse"];
|