@cubist-labs/cubesigner-sdk 0.4.244 → 0.4.247

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.
Files changed (56) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/spec/env/gamma.json +5 -0
  3. package/dist/src/audit_log.d.ts +3 -3
  4. package/dist/src/client/api_client.d.ts +13 -6
  5. package/dist/src/client/api_client.d.ts.map +1 -1
  6. package/dist/src/client/api_client.js +23 -13
  7. package/dist/src/client/base_client.d.ts +5 -1
  8. package/dist/src/client/base_client.d.ts.map +1 -1
  9. package/dist/src/client/base_client.js +43 -9
  10. package/dist/src/client/session.d.ts +3 -1
  11. package/dist/src/client/session.d.ts.map +1 -1
  12. package/dist/src/client/session.js +7 -3
  13. package/dist/src/client.d.ts +12 -5
  14. package/dist/src/client.d.ts.map +1 -1
  15. package/dist/src/client.js +15 -4
  16. package/dist/src/diffie_hellman.js +2 -2
  17. package/dist/src/env.d.ts +7 -0
  18. package/dist/src/env.d.ts.map +1 -1
  19. package/dist/src/env.js +14 -1
  20. package/dist/src/key.js +3 -3
  21. package/dist/src/org.d.ts.map +1 -1
  22. package/dist/src/org.js +3 -2
  23. package/dist/src/policy.d.ts +24 -7
  24. package/dist/src/policy.d.ts.map +1 -1
  25. package/dist/src/policy.js +34 -16
  26. package/dist/src/response.d.ts +3 -3
  27. package/dist/src/response.d.ts.map +1 -1
  28. package/dist/src/response.js +3 -6
  29. package/dist/src/schema.d.ts +186 -33
  30. package/dist/src/schema.d.ts.map +1 -1
  31. package/dist/src/schema.js +1 -1
  32. package/dist/src/schema_types.d.ts.map +1 -1
  33. package/dist/src/schema_types.js +2 -1
  34. package/dist/src/scopes.d.ts.map +1 -1
  35. package/dist/src/scopes.js +14 -11
  36. package/dist/src/user_export.d.ts +1 -1
  37. package/dist/src/user_export.js +3 -3
  38. package/dist/src/util.d.ts +7 -0
  39. package/dist/src/util.d.ts.map +1 -1
  40. package/dist/src/util.js +30 -7
  41. package/package.json +1 -1
  42. package/src/client/api_client.ts +26 -14
  43. package/src/client/base_client.ts +51 -2
  44. package/src/client/session.ts +10 -3
  45. package/src/client.ts +17 -4
  46. package/src/diffie_hellman.ts +1 -1
  47. package/src/env.ts +17 -0
  48. package/src/key.ts +2 -2
  49. package/src/org.ts +2 -1
  50. package/src/policy.ts +34 -16
  51. package/src/response.ts +6 -9
  52. package/src/schema.ts +202 -49
  53. package/src/schema_types.ts +1 -0
  54. package/src/scopes.ts +13 -10
  55. package/src/user_export.ts +2 -2
  56. package/src/util.ts +34 -8
@@ -1660,6 +1660,19 @@ export interface paths {
1660
1660
  */
1661
1661
  get: operations["userOrgs"];
1662
1662
  };
1663
+ "/v1/org/{org_id}/binance/sign/{material_id}": {
1664
+ /**
1665
+ * Sign Binance RPC Request
1666
+ * @description Sign Binance RPC Request
1667
+ *
1668
+ * Signs a typed [`BinanceRpc`] request with the [`KeyType::Ed25519BinanceApi`]
1669
+ * key identified by `material_id`. The signer URL-encodes the inner request,
1670
+ * appends Binance's `recvWindow` and `timestamp` parameters, signs the
1671
+ * resulting query, and returns the full query string ready to be submitted
1672
+ * to Binance.
1673
+ */
1674
+ post: operations["binanceSign"];
1675
+ };
1663
1676
  "/v1/org/{org_id}/blob/sign/{key_id}": {
1664
1677
  /**
1665
1678
  * Sign Raw Blob
@@ -1790,7 +1803,7 @@ export interface components {
1790
1803
  */
1791
1804
  omitZeroBalances?: boolean | null;
1792
1805
  };
1793
- /** @description Response for [`BinanceManager::account_info`]. */
1806
+ /** @description Response returned by `cs_binanceAccountInfo`. */
1794
1807
  AccountInfoResponse: {
1795
1808
  /** @description Account type, e.g. `"SPOT"`. Left as `String` for forward compatibility. */
1796
1809
  accountType: string;
@@ -2788,17 +2801,18 @@ export interface components {
2788
2801
  * @description Billing event types.
2789
2802
  * @enum {string}
2790
2803
  */
2791
- 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" | "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" | "RpcBinanceSubToMaster" | "RpcBinanceSubToSub" | "RpcBinanceUniversalTransfer" | "RpcBinanceSubAccountAssets" | "RpcBinanceAccountInfo" | "RpcBinanceSubAccountTransferHistory" | "RpcBinanceUniversalTransferHistory" | "RpcBinanceWithdraw" | "RpcBinanceWithdrawHistory" | "CustomChainRpcCall" | "EsploraApiCall" | "SentryApiCall" | "SentryApiCallPublic" | "MmiJwkSet" | "AttestationJwkSet" | "UserOrgs" | "PublicOrgInfo" | "EmailMyOrgs";
2804
+ 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" | "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" | "CustomChainRpcCall" | "EsploraApiCall" | "SentryApiCall" | "SentryApiCallPublic" | "MmiJwkSet" | "AttestationJwkSet" | "UserOrgs" | "PublicOrgInfo" | "EmailMyOrgs";
2792
2805
  /** @description Parameters envelope for all Binance RPC methods. */
2793
2806
  BinanceAccountInfoParams: components["schemas"]["AccountInfoRequest"] & {
2794
2807
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2795
2808
  keyId: components["schemas"]["Id"];
2796
2809
  /**
2810
+ * Format: float
2797
2811
  * @description Optional "receive window", i.e., for how long the request stays valid.
2798
2812
  * May only be specified in milliseconds, with up to three decimal places of precision.
2799
- * If omitted, defaults to "10000". Must not be greater than "60000".
2813
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2800
2814
  */
2801
- recvWindow?: string | null;
2815
+ recvWindow?: number | null;
2802
2816
  };
2803
2817
  BinanceApiPropertiesPatch: {
2804
2818
  /** @description The Binance-issued API key string. Encrypted server-side before storage. */
@@ -2810,6 +2824,18 @@ export interface components {
2810
2824
  /** @description Arbitrary label. Useful for storing the corresponding API key label on the Binance side. */
2811
2825
  label?: string | null;
2812
2826
  };
2827
+ /** @description Parameters envelope for all Binance RPC methods. */
2828
+ BinanceDepositParams: components["schemas"]["DepositRequest"] & {
2829
+ dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2830
+ keyId: components["schemas"]["Id"];
2831
+ /**
2832
+ * Format: float
2833
+ * @description Optional "receive window", i.e., for how long the request stays valid.
2834
+ * May only be specified in milliseconds, with up to three decimal places of precision.
2835
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2836
+ */
2837
+ recvWindow?: number | null;
2838
+ };
2813
2839
  BinanceDryRunArgs: {
2814
2840
  /** @description The Binance API method that would have been used */
2815
2841
  method: string;
@@ -2817,7 +2843,7 @@ export interface components {
2817
2843
  url: string;
2818
2844
  };
2819
2845
  /**
2820
- * @description Different "dry run" modes for executing Binance requests
2846
+ * @description Different "dry run" modes for executing Binance requests.
2821
2847
  * @enum {string}
2822
2848
  */
2823
2849
  BinanceDryRunMode: "NO_SIGN" | "NO_SUBMIT";
@@ -2861,94 +2887,117 @@ export interface components {
2861
2887
  /** @enum {string} */
2862
2888
  method: "cs_binanceWithdrawHistory";
2863
2889
  params: components["schemas"]["BinanceWithdrawHistoryParams"];
2890
+ } | {
2891
+ /** @enum {string} */
2892
+ method: "cs_binanceDeposit";
2893
+ params: components["schemas"]["BinanceDepositParams"];
2894
+ };
2895
+ /** @description Response returned by the typed `binance_sign` endpoint. */
2896
+ BinanceSignResponse: {
2897
+ /** @description Optional policy evaluation tree. */
2898
+ policy_eval_tree?: unknown;
2899
+ } & {
2900
+ /**
2901
+ * @description The full signed query string, ready to be submitted to Binance.
2902
+ * Encoded as `<urlencoded params>&recvWindow=<ms>&timestamp=<ms>&signature=<urlencoded base64 sig>`.
2903
+ */
2904
+ signed_query: string;
2864
2905
  };
2865
2906
  /** @description Parameters envelope for all Binance RPC methods. */
2866
2907
  BinanceSubAccountAssetsParams: components["schemas"]["SubAccountAssetsRequest"] & {
2867
2908
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2868
2909
  keyId: components["schemas"]["Id"];
2869
2910
  /**
2911
+ * Format: float
2870
2912
  * @description Optional "receive window", i.e., for how long the request stays valid.
2871
2913
  * May only be specified in milliseconds, with up to three decimal places of precision.
2872
- * If omitted, defaults to "10000". Must not be greater than "60000".
2914
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2873
2915
  */
2874
- recvWindow?: string | null;
2916
+ recvWindow?: number | null;
2875
2917
  };
2876
2918
  /** @description Parameters envelope for all Binance RPC methods. */
2877
2919
  BinanceSubAccountTransferHistoryParams: components["schemas"]["SubAccountTransferHistoryRequest"] & {
2878
2920
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2879
2921
  keyId: components["schemas"]["Id"];
2880
2922
  /**
2923
+ * Format: float
2881
2924
  * @description Optional "receive window", i.e., for how long the request stays valid.
2882
2925
  * May only be specified in milliseconds, with up to three decimal places of precision.
2883
- * If omitted, defaults to "10000". Must not be greater than "60000".
2926
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2884
2927
  */
2885
- recvWindow?: string | null;
2928
+ recvWindow?: number | null;
2886
2929
  };
2887
2930
  /** @description Parameters envelope for all Binance RPC methods. */
2888
2931
  BinanceSubToMasterParams: components["schemas"]["SubToMasterRequest"] & {
2889
2932
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2890
2933
  keyId: components["schemas"]["Id"];
2891
2934
  /**
2935
+ * Format: float
2892
2936
  * @description Optional "receive window", i.e., for how long the request stays valid.
2893
2937
  * May only be specified in milliseconds, with up to three decimal places of precision.
2894
- * If omitted, defaults to "10000". Must not be greater than "60000".
2938
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2895
2939
  */
2896
- recvWindow?: string | null;
2940
+ recvWindow?: number | null;
2897
2941
  };
2898
2942
  /** @description Parameters envelope for all Binance RPC methods. */
2899
2943
  BinanceSubToSubParams: components["schemas"]["SubToSubRequest"] & {
2900
2944
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2901
2945
  keyId: components["schemas"]["Id"];
2902
2946
  /**
2947
+ * Format: float
2903
2948
  * @description Optional "receive window", i.e., for how long the request stays valid.
2904
2949
  * May only be specified in milliseconds, with up to three decimal places of precision.
2905
- * If omitted, defaults to "10000". Must not be greater than "60000".
2950
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2906
2951
  */
2907
- recvWindow?: string | null;
2952
+ recvWindow?: number | null;
2908
2953
  };
2909
2954
  /** @description Parameters envelope for all Binance RPC methods. */
2910
2955
  BinanceUniversalTransferHistoryParams: components["schemas"]["UniversalTransferHistoryRequest"] & {
2911
2956
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2912
2957
  keyId: components["schemas"]["Id"];
2913
2958
  /**
2959
+ * Format: float
2914
2960
  * @description Optional "receive window", i.e., for how long the request stays valid.
2915
2961
  * May only be specified in milliseconds, with up to three decimal places of precision.
2916
- * If omitted, defaults to "10000". Must not be greater than "60000".
2962
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2917
2963
  */
2918
- recvWindow?: string | null;
2964
+ recvWindow?: number | null;
2919
2965
  };
2920
2966
  /** @description Parameters envelope for all Binance RPC methods. */
2921
2967
  BinanceUniversalTransferParams: components["schemas"]["UniversalTransferRequest"] & {
2922
2968
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2923
2969
  keyId: components["schemas"]["Id"];
2924
2970
  /**
2971
+ * Format: float
2925
2972
  * @description Optional "receive window", i.e., for how long the request stays valid.
2926
2973
  * May only be specified in milliseconds, with up to three decimal places of precision.
2927
- * If omitted, defaults to "10000". Must not be greater than "60000".
2974
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2928
2975
  */
2929
- recvWindow?: string | null;
2976
+ recvWindow?: number | null;
2930
2977
  };
2931
2978
  /** @description Parameters envelope for all Binance RPC methods. */
2932
2979
  BinanceWithdrawHistoryParams: components["schemas"]["WithdrawHistoryRequest"] & {
2933
2980
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2934
2981
  keyId: components["schemas"]["Id"];
2935
2982
  /**
2983
+ * Format: float
2936
2984
  * @description Optional "receive window", i.e., for how long the request stays valid.
2937
2985
  * May only be specified in milliseconds, with up to three decimal places of precision.
2938
- * If omitted, defaults to "10000". Must not be greater than "60000".
2986
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2939
2987
  */
2940
- recvWindow?: string | null;
2988
+ recvWindow?: number | null;
2941
2989
  };
2942
2990
  /** @description Parameters envelope for all Binance RPC methods. */
2943
2991
  BinanceWithdrawParams: components["schemas"]["WithdrawRequest"] & {
2944
2992
  dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
2945
2993
  keyId: components["schemas"]["Id"];
2946
2994
  /**
2995
+ * Format: float
2947
2996
  * @description Optional "receive window", i.e., for how long the request stays valid.
2948
2997
  * May only be specified in milliseconds, with up to three decimal places of precision.
2949
- * If omitted, defaults to "10000". Must not be greater than "60000".
2998
+ * If omitted, defaults to 10000. Must not be greater than 60000.
2950
2999
  */
2951
- recvWindow?: string | null;
3000
+ recvWindow?: number | null;
2952
3001
  };
2953
3002
  /** @description A bitcoin address and its network. */
2954
3003
  BitcoinAddressInfo: {
@@ -3697,6 +3746,11 @@ export interface components {
3697
3746
  method: "cs_createTransaction";
3698
3747
  params: components["schemas"]["CreateTransactionRequest"];
3699
3748
  },
3749
+ {
3750
+ /** @enum {string} */
3751
+ method: "cs_retryTransaction";
3752
+ params: components["schemas"]["RetryTransactionRequest"];
3753
+ },
3700
3754
  {
3701
3755
  /** @enum {string} */
3702
3756
  method: "cs_getTransaction";
@@ -3740,6 +3794,40 @@ export interface components {
3740
3794
  /** @description Custom EVM chains. */
3741
3795
  evm: components["schemas"]["EvmCustomChain"][];
3742
3796
  };
3797
+ /**
3798
+ * @description Parameters for `GET /sapi/v1/capital/deposit/address`.
3799
+ *
3800
+ * Fetches the deposit address for `coin` on the account that the signing key
3801
+ * authenticates as. Optionally narrows the address to a specific `network`.
3802
+ */
3803
+ DepositRequest: {
3804
+ /**
3805
+ * @description Required only when `network` is `"LIGHTNING"`: the deposit amount that
3806
+ * the returned invoice should encode, as a decimal string.
3807
+ */
3808
+ amount?: string | null;
3809
+ /** @description The asset symbol whose deposit address to fetch (e.g. `"USDT"`, `"BTC"`). */
3810
+ coin: string;
3811
+ /**
3812
+ * @description Network identifier (e.g. `"BSC"`, `"ETH"`). If omitted, Binance returns
3813
+ * the address on the asset's default network.
3814
+ */
3815
+ network?: string | null;
3816
+ };
3817
+ /** @description Response returned by `cs_binanceDeposit`. */
3818
+ DepositResponse: {
3819
+ /** @description Deposit address. */
3820
+ address: string;
3821
+ /** @description Asset symbol (echoes [`DepositRequest::coin`]). */
3822
+ coin: string;
3823
+ /**
3824
+ * @description Secondary address identifier required by some assets (e.g. memo for
3825
+ * XRP, tag for XLM). Empty string when the asset does not use one.
3826
+ */
3827
+ tag: string;
3828
+ /** @description Blockchain explorer URL for `address`. */
3829
+ url: string;
3830
+ };
3743
3831
  /**
3744
3832
  * @description Information produced by a successful deposit
3745
3833
  * @example {
@@ -4467,6 +4555,11 @@ export interface components {
4467
4555
  };
4468
4556
  /** @description EVM-specific transaction details. */
4469
4557
  EvmTransactionDetails: {
4558
+ /**
4559
+ * Format: int64
4560
+ * @description The EVM chain id for the chain the transaction is submitted to.
4561
+ */
4562
+ chain_id: number;
4470
4563
  /**
4471
4564
  * @description The transaction hash, as submitted to the chain.
4472
4565
  *
@@ -4530,8 +4623,7 @@ export interface components {
4530
4623
  /**
4531
4624
  * @description Optional nonce.
4532
4625
  *
4533
- * If not specified, the sender's transaction count from the latest block is
4534
- * used.
4626
+ * If not specified, the next available nonce is used.
4535
4627
  */
4536
4628
  nonce?: string | null;
4537
4629
  };
@@ -4547,7 +4639,7 @@ export interface components {
4547
4639
  * @description Explicitly named scopes for accessing CubeSigner APIs
4548
4640
  * @enum {string}
4549
4641
  */
4550
- ExplicitScope: "sign:*" | "sign:ava" | "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:getTransaction" | "rpc:listTransactions" | "rpc:binance:*" | "rpc:binance:subToMaster" | "rpc:binance:subToSub" | "rpc:binance:universalTransfer" | "rpc:binance:subAccountAssets" | "rpc:binance:accountInfo" | "rpc:binance:subAccountTransferHistory" | "rpc:binance:universalTransferHistory" | "rpc:binance:withdraw" | "rpc:binance:withdrawHistory";
4642
+ 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: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";
4551
4643
  /**
4552
4644
  * @description This type specifies the interpretation of the `fee` field in Babylon
4553
4645
  * staking requests. If `sats`, the field is intpreted as a fixed value
@@ -5021,7 +5113,7 @@ export interface components {
5021
5113
  result?: Record<string, unknown> | null;
5022
5114
  };
5023
5115
  /** @description Valid `result` from the JSON-RPC API. */
5024
- 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"];
5116
+ 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"];
5025
5117
  JwkSetResponse: {
5026
5118
  /** @description The keys included in this set */
5027
5119
  keys: Record<string, never>[];
@@ -5558,7 +5650,7 @@ export interface components {
5558
5650
  * @description All different kinds of sensitive operations
5559
5651
  * @enum {string}
5560
5652
  */
5561
- OperationKind: "AvaSign" | "AvaChainTxSign" | "BabylonCovSign" | "BabylonRegistration" | "BabylonStaking" | "BlobSign" | "BtcMessageSign" | "BtcSign" | "DiffieHellman" | "PsbtSign" | "TaprootSign" | "Eip191Sign" | "Eip712Sign" | "EotsNonces" | "EotsSign" | "Eth1Sign" | "Eth2Sign" | "Eth2Stake" | "Eth2Unstake" | "SolanaSign" | "SuiSign" | "TendermintSign" | "RoleUpdate";
5653
+ OperationKind: "AvaSign" | "AvaChainTxSign" | "BabylonCovSign" | "BabylonRegistration" | "BabylonStaking" | "BinanceSign" | "BlobSign" | "BtcMessageSign" | "BtcSign" | "DiffieHellman" | "PsbtSign" | "TaprootSign" | "Eip191Sign" | "Eip712Sign" | "EotsNonces" | "EotsSign" | "Eth1Sign" | "Eth2Sign" | "Eth2Stake" | "Eth2Unstake" | "SolanaSign" | "SuiSign" | "TendermintSign" | "RoleUpdate";
5562
5654
  OrgAlertsPrefs: {
5563
5655
  /** @description Recipient users for org-level alerts */
5564
5656
  alert_recipients?: components["schemas"]["Id"][] | null;
@@ -7077,6 +7169,11 @@ export interface components {
7077
7169
  RestrictedActionsMap: {
7078
7170
  [key: string]: components["schemas"]["MemberRole"][];
7079
7171
  };
7172
+ /** @description Parameters for the [`cs_retryTransaction`](RpcMethod::RetryTransaction) method. */
7173
+ RetryTransactionRequest: components["schemas"]["EvmTxCustomization"] & {
7174
+ /** @description The transaction id. */
7175
+ id: string;
7176
+ };
7080
7177
  /**
7081
7178
  * @description List of role actions that can be restricted to a set of member roles
7082
7179
  * @enum {string}
@@ -7537,7 +7634,7 @@ export interface components {
7537
7634
  /** @description Email address of the sub-account whose balances to fetch. */
7538
7635
  email: string;
7539
7636
  };
7540
- /** @description Response for [`BinanceManager::sub_account_assets`]. */
7637
+ /** @description Response returned by `cs_binanceSubAccountAssets`. */
7541
7638
  SubAccountAssetsResponse: {
7542
7639
  /**
7543
7640
  * @description One entry per asset held in the sub-account's spot wallet. Binance
@@ -7625,13 +7722,13 @@ export interface components {
7625
7722
  type?: number | null;
7626
7723
  };
7627
7724
  /**
7628
- * @description Response for [`BinanceManager::sub_account_transfer_history`].
7725
+ * @description Response returned by `cs_binanceSubAccountTransferHistory`.
7629
7726
  *
7630
7727
  * Binance returns a top-level JSON array; this newtype preserves that wire
7631
7728
  * format while giving the response a named type in the OpenAPI schema.
7632
7729
  */
7633
7730
  SubAccountTransferHistoryResponse: components["schemas"]["SubAccountTransferHistoryEntry"][];
7634
- /** @description Response for [`BinanceManager::sub_to_master`] and [`BinanceManager::sub_to_sub`]. */
7731
+ /** @description Response returned by `cs_binanceSubToMaster` and `cs_binanceSubToSub`. */
7635
7732
  SubAccountTransferResponse: {
7636
7733
  /** Format: int64 */
7637
7734
  txnId: number;
@@ -8123,7 +8220,7 @@ export interface components {
8123
8220
  /** @description Filter to transfers destined for this sub-account email. */
8124
8221
  toEmail?: string | null;
8125
8222
  };
8126
- /** @description Response for [`BinanceManager::universal_transfer_history`]. */
8223
+ /** @description Response returned by `cs_binanceUniversalTransferHistory`. */
8127
8224
  UniversalTransferHistoryResponse: {
8128
8225
  /** @description Transfers in the current page. */
8129
8226
  result: components["schemas"]["UniversalTransferHistoryEntry"][];
@@ -8160,7 +8257,7 @@ export interface components {
8160
8257
  /** @description Destination sub-account email. If `None`, the destination is the master account. */
8161
8258
  toEmail?: string | null;
8162
8259
  };
8163
- /** @description Response for [`BinanceManager::universal_transfer`]. */
8260
+ /** @description Response returned by `cs_binanceUniversalTransfer`. */
8164
8261
  UniversalTransferResponse: {
8165
8262
  clientTranId?: string | null;
8166
8263
  /** Format: int64 */
@@ -9050,7 +9147,7 @@ export interface components {
9050
9147
  withdrawOrderId?: string | null;
9051
9148
  };
9052
9149
  /**
9053
- * @description Response for [`BinanceManager::withdraw_history`].
9150
+ * @description Response returned by `cs_binanceWithdrawHistory`.
9054
9151
  *
9055
9152
  * Binance returns a top-level JSON array; this newtype preserves that wire
9056
9153
  * format while giving the response a named type in the OpenAPI schema.
@@ -9101,7 +9198,7 @@ export interface components {
9101
9198
  */
9102
9199
  withdrawOrderId?: string | null;
9103
9200
  };
9104
- /** @description Response for [`BinanceManager::withdraw`]. */
9201
+ /** @description Response returned by `cs_binanceWithdraw`. */
9105
9202
  WithdrawResponse: {
9106
9203
  /**
9107
9204
  * @description Binance-assigned withdrawal id. Used to look the request up later via
@@ -9234,6 +9331,21 @@ export interface components {
9234
9331
  };
9235
9332
  };
9236
9333
  };
9334
+ /** @description Response returned by the typed `binance_sign` endpoint. */
9335
+ BinanceSignResponse: {
9336
+ content: {
9337
+ "application/json": {
9338
+ /** @description Optional policy evaluation tree. */
9339
+ policy_eval_tree?: unknown;
9340
+ } & {
9341
+ /**
9342
+ * @description The full signed query string, ready to be submitted to Binance.
9343
+ * Encoded as `<urlencoded params>&recvWindow=<ms>&timestamp=<ms>&signature=<urlencoded base64 sig>`.
9344
+ */
9345
+ signed_query: string;
9346
+ };
9347
+ };
9348
+ };
9237
9349
  /** @description BTC message signing response */
9238
9350
  BtcMessageSignResponse: {
9239
9351
  content: {
@@ -16548,6 +16660,47 @@ export interface operations {
16548
16660
  };
16549
16661
  };
16550
16662
  };
16663
+ /**
16664
+ * Sign Binance RPC Request
16665
+ * @description Sign Binance RPC Request
16666
+ *
16667
+ * Signs a typed [`BinanceRpc`] request with the [`KeyType::Ed25519BinanceApi`]
16668
+ * key identified by `material_id`. The signer URL-encodes the inner request,
16669
+ * appends Binance's `recvWindow` and `timestamp` parameters, signs the
16670
+ * resulting query, and returns the full query string ready to be submitted
16671
+ * to Binance.
16672
+ */
16673
+ binanceSign: {
16674
+ parameters: {
16675
+ path: {
16676
+ /**
16677
+ * @description Name or ID of the desired Org
16678
+ * @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
16679
+ */
16680
+ org_id: string;
16681
+ /** @description Material id of the Ed25519BinanceApi key */
16682
+ material_id: string;
16683
+ };
16684
+ };
16685
+ requestBody: {
16686
+ content: {
16687
+ "application/json": components["schemas"]["BinanceRpc"];
16688
+ };
16689
+ };
16690
+ responses: {
16691
+ 200: components["responses"]["BinanceSignResponse"];
16692
+ 202: {
16693
+ content: {
16694
+ "application/json": components["schemas"]["AcceptedResponse"];
16695
+ };
16696
+ };
16697
+ default: {
16698
+ content: {
16699
+ "application/json": components["schemas"]["ErrorResponse"];
16700
+ };
16701
+ };
16702
+ };
16703
+ };
16551
16704
  /**
16552
16705
  * Sign Raw Blob
16553
16706
  * @description Sign Raw Blob