@dynamic-labs/sdk-api 0.142.0 → 0.144.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.142.0",
3
+ "version": "0.144.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -404,6 +404,8 @@ var WaasSignConfidentialTransferRequest = require('../models/WaasSignConfidentia
404
404
  var WaasSignConfidentialTransferResponse = require('../models/WaasSignConfidentialTransferResponse.cjs');
405
405
  var WaasSignerPolicyLayerUpdateRequest = require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
406
406
  require('../models/WaasSvmCommitment.cjs');
407
+ var WaasSvmConfidentialBalanceRequest = require('../models/WaasSvmConfidentialBalanceRequest.cjs');
408
+ var WaasSvmConfidentialBalanceResponse = require('../models/WaasSvmConfidentialBalanceResponse.cjs');
407
409
  var WaasTransactionBroadcast = require('../models/WaasTransactionBroadcast.cjs');
408
410
  require('../models/WaasTransactionBroadcastSubmissionState.cjs');
409
411
  require('../models/WaasTransactionBroadcastReason.cjs');
@@ -5843,6 +5845,73 @@ class SDKApi extends runtime.BaseAPI {
5843
5845
  const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
5844
5846
  return await response.value();
5845
5847
  }
5848
+ /**
5849
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The enclave is offline: the caller supplies the token account\'s raw on-chain state (`accountState`) read via `getAccountInfo` moments before invoking.
5850
+ * Decrypt a Token-2022 confidential token account\'s balances
5851
+ */
5852
+ async getWaasSvmConfidentialBalanceRaw(requestParameters, initOverrides) {
5853
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5854
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSvmConfidentialBalance.');
5855
+ }
5856
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5857
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSvmConfidentialBalance.');
5858
+ }
5859
+ if (requestParameters.waasSvmConfidentialBalanceRequest === null || requestParameters.waasSvmConfidentialBalanceRequest === undefined) {
5860
+ throw new runtime.RequiredError('waasSvmConfidentialBalanceRequest', 'Required parameter requestParameters.waasSvmConfidentialBalanceRequest was null or undefined when calling getWaasSvmConfidentialBalance.');
5861
+ }
5862
+ const queryParameters = {};
5863
+ const headerParameters = {};
5864
+ headerParameters['Content-Type'] = 'application/json';
5865
+ if (this.configuration && this.configuration.accessToken) {
5866
+ const token = this.configuration.accessToken;
5867
+ const tokenString = await token("bearerAuth", []);
5868
+ if (tokenString) {
5869
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5870
+ }
5871
+ }
5872
+ const response = await this.request({
5873
+ path: `/sdk/{environmentId}/waas/{walletId}/svmConfidentialBalance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5874
+ method: 'POST',
5875
+ headers: headerParameters,
5876
+ query: queryParameters,
5877
+ body: WaasSvmConfidentialBalanceRequest.WaasSvmConfidentialBalanceRequestToJSON(requestParameters.waasSvmConfidentialBalanceRequest),
5878
+ }, initOverrides);
5879
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasSvmConfidentialBalanceResponse.WaasSvmConfidentialBalanceResponseFromJSON(jsonValue));
5880
+ }
5881
+ /**
5882
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The enclave is offline: the caller supplies the token account\'s raw on-chain state (`accountState`) read via `getAccountInfo` moments before invoking.
5883
+ * Decrypt a Token-2022 confidential token account\'s balances
5884
+ */
5885
+ async getWaasSvmConfidentialBalance(requestParameters, initOverrides) {
5886
+ const response = await this.getWaasSvmConfidentialBalanceRaw(requestParameters, initOverrides);
5887
+ return await response.value();
5888
+ }
5889
+ /**
5890
+ * Options call for this endpoint
5891
+ */
5892
+ async getWaasSvmConfidentialBalanceOptionsRaw(requestParameters, initOverrides) {
5893
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5894
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSvmConfidentialBalanceOptions.');
5895
+ }
5896
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5897
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSvmConfidentialBalanceOptions.');
5898
+ }
5899
+ const queryParameters = {};
5900
+ const headerParameters = {};
5901
+ const response = await this.request({
5902
+ path: `/sdk/{environmentId}/waas/{walletId}/svmConfidentialBalance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5903
+ method: 'OPTIONS',
5904
+ headers: headerParameters,
5905
+ query: queryParameters,
5906
+ }, initOverrides);
5907
+ return new runtime.VoidApiResponse(response);
5908
+ }
5909
+ /**
5910
+ * Options call for this endpoint
5911
+ */
5912
+ async getWaasSvmConfidentialBalanceOptions(requestParameters, initOverrides) {
5913
+ await this.getWaasSvmConfidentialBalanceOptionsRaw(requestParameters, initOverrides);
5914
+ }
5846
5915
  /**
5847
5916
  * Reads stored state only. Sending an idempotency key as well is rejected.
5848
5917
  * Get a sent transaction
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
13
+ import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
@@ -709,6 +709,15 @@ export interface GetWaasSignerSelfPolicyLayerRequest {
709
709
  walletId: string;
710
710
  shareSetId?: string;
711
711
  }
712
+ export interface GetWaasSvmConfidentialBalanceRequest {
713
+ environmentId: string;
714
+ walletId: string;
715
+ waasSvmConfidentialBalanceRequest: WaasSvmConfidentialBalanceRequest;
716
+ }
717
+ export interface GetWaasSvmConfidentialBalanceOptionsRequest {
718
+ environmentId: string;
719
+ walletId: string;
720
+ }
712
721
  export interface GetWaasTransactionBroadcastRequest {
713
722
  environmentId: string;
714
723
  transactionId: string;
@@ -3399,6 +3408,24 @@ export declare class SDKApi extends runtime.BaseAPI {
3399
3408
  * Get a signer-Layer\'s Rules
3400
3409
  */
3401
3410
  getWaasSignerSelfPolicyLayer(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
3411
+ /**
3412
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The enclave is offline: the caller supplies the token account\'s raw on-chain state (`accountState`) read via `getAccountInfo` moments before invoking.
3413
+ * Decrypt a Token-2022 confidential token account\'s balances
3414
+ */
3415
+ getWaasSvmConfidentialBalanceRaw(requestParameters: GetWaasSvmConfidentialBalanceRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSvmConfidentialBalanceResponse>>;
3416
+ /**
3417
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The enclave is offline: the caller supplies the token account\'s raw on-chain state (`accountState`) read via `getAccountInfo` moments before invoking.
3418
+ * Decrypt a Token-2022 confidential token account\'s balances
3419
+ */
3420
+ getWaasSvmConfidentialBalance(requestParameters: GetWaasSvmConfidentialBalanceRequest, initOverrides?: RequestInit): Promise<WaasSvmConfidentialBalanceResponse>;
3421
+ /**
3422
+ * Options call for this endpoint
3423
+ */
3424
+ getWaasSvmConfidentialBalanceOptionsRaw(requestParameters: GetWaasSvmConfidentialBalanceOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3425
+ /**
3426
+ * Options call for this endpoint
3427
+ */
3428
+ getWaasSvmConfidentialBalanceOptions(requestParameters: GetWaasSvmConfidentialBalanceOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3402
3429
  /**
3403
3430
  * Reads stored state only. Sending an idempotency key as well is rejected.
3404
3431
  * Get a sent transaction
@@ -400,6 +400,8 @@ import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignCon
400
400
  import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
401
401
  import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
402
402
  import '../models/WaasSvmCommitment.js';
403
+ import { WaasSvmConfidentialBalanceRequestToJSON } from '../models/WaasSvmConfidentialBalanceRequest.js';
404
+ import { WaasSvmConfidentialBalanceResponseFromJSON } from '../models/WaasSvmConfidentialBalanceResponse.js';
403
405
  import { WaasTransactionBroadcastFromJSON } from '../models/WaasTransactionBroadcast.js';
404
406
  import '../models/WaasTransactionBroadcastSubmissionState.js';
405
407
  import '../models/WaasTransactionBroadcastReason.js';
@@ -5839,6 +5841,73 @@ class SDKApi extends BaseAPI {
5839
5841
  const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
5840
5842
  return await response.value();
5841
5843
  }
5844
+ /**
5845
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The enclave is offline: the caller supplies the token account\'s raw on-chain state (`accountState`) read via `getAccountInfo` moments before invoking.
5846
+ * Decrypt a Token-2022 confidential token account\'s balances
5847
+ */
5848
+ async getWaasSvmConfidentialBalanceRaw(requestParameters, initOverrides) {
5849
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5850
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSvmConfidentialBalance.');
5851
+ }
5852
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5853
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSvmConfidentialBalance.');
5854
+ }
5855
+ if (requestParameters.waasSvmConfidentialBalanceRequest === null || requestParameters.waasSvmConfidentialBalanceRequest === undefined) {
5856
+ throw new RequiredError('waasSvmConfidentialBalanceRequest', 'Required parameter requestParameters.waasSvmConfidentialBalanceRequest was null or undefined when calling getWaasSvmConfidentialBalance.');
5857
+ }
5858
+ const queryParameters = {};
5859
+ const headerParameters = {};
5860
+ headerParameters['Content-Type'] = 'application/json';
5861
+ if (this.configuration && this.configuration.accessToken) {
5862
+ const token = this.configuration.accessToken;
5863
+ const tokenString = await token("bearerAuth", []);
5864
+ if (tokenString) {
5865
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5866
+ }
5867
+ }
5868
+ const response = await this.request({
5869
+ path: `/sdk/{environmentId}/waas/{walletId}/svmConfidentialBalance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5870
+ method: 'POST',
5871
+ headers: headerParameters,
5872
+ query: queryParameters,
5873
+ body: WaasSvmConfidentialBalanceRequestToJSON(requestParameters.waasSvmConfidentialBalanceRequest),
5874
+ }, initOverrides);
5875
+ return new JSONApiResponse(response, (jsonValue) => WaasSvmConfidentialBalanceResponseFromJSON(jsonValue));
5876
+ }
5877
+ /**
5878
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The enclave is offline: the caller supplies the token account\'s raw on-chain state (`accountState`) read via `getAccountInfo` moments before invoking.
5879
+ * Decrypt a Token-2022 confidential token account\'s balances
5880
+ */
5881
+ async getWaasSvmConfidentialBalance(requestParameters, initOverrides) {
5882
+ const response = await this.getWaasSvmConfidentialBalanceRaw(requestParameters, initOverrides);
5883
+ return await response.value();
5884
+ }
5885
+ /**
5886
+ * Options call for this endpoint
5887
+ */
5888
+ async getWaasSvmConfidentialBalanceOptionsRaw(requestParameters, initOverrides) {
5889
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5890
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSvmConfidentialBalanceOptions.');
5891
+ }
5892
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5893
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSvmConfidentialBalanceOptions.');
5894
+ }
5895
+ const queryParameters = {};
5896
+ const headerParameters = {};
5897
+ const response = await this.request({
5898
+ path: `/sdk/{environmentId}/waas/{walletId}/svmConfidentialBalance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5899
+ method: 'OPTIONS',
5900
+ headers: headerParameters,
5901
+ query: queryParameters,
5902
+ }, initOverrides);
5903
+ return new VoidApiResponse(response);
5904
+ }
5905
+ /**
5906
+ * Options call for this endpoint
5907
+ */
5908
+ async getWaasSvmConfidentialBalanceOptions(requestParameters, initOverrides) {
5909
+ await this.getWaasSvmConfidentialBalanceOptionsRaw(requestParameters, initOverrides);
5910
+ }
5842
5911
  /**
5843
5912
  * Reads stored state only. Sending an idempotency key as well is rejected.
5844
5913
  * Get a sent transaction
@@ -252,6 +252,8 @@ var WaasSignConfidentialTransferRequest = require('../models/WaasSignConfidentia
252
252
  var WaasSignConfidentialTransferResponse = require('../models/WaasSignConfidentialTransferResponse.cjs');
253
253
  require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
254
254
  require('../models/WaasSvmCommitment.cjs');
255
+ var WaasSvmConfidentialBalanceRequest = require('../models/WaasSvmConfidentialBalanceRequest.cjs');
256
+ var WaasSvmConfidentialBalanceResponse = require('../models/WaasSvmConfidentialBalanceResponse.cjs');
255
257
  require('../models/WaasTransactionBroadcast.cjs');
256
258
  require('../models/WaasTransactionBroadcastSubmissionState.cjs');
257
259
  require('../models/WaasTransactionBroadcastReason.cjs');
@@ -946,6 +948,43 @@ class ServerApi extends runtime.BaseAPI {
946
948
  const response = await this.getWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
947
949
  return await response.value();
948
950
  }
951
+ /**
952
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
953
+ * Server — decrypt a Token-2022 confidential token account\'s balances
954
+ */
955
+ async getWaasSvmConfidentialBalanceServerRaw(requestParameters, initOverrides) {
956
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
957
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSvmConfidentialBalanceServer.');
958
+ }
959
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
960
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSvmConfidentialBalanceServer.');
961
+ }
962
+ if (requestParameters.waasSvmConfidentialBalanceRequest === null || requestParameters.waasSvmConfidentialBalanceRequest === undefined) {
963
+ throw new runtime.RequiredError('waasSvmConfidentialBalanceRequest', 'Required parameter requestParameters.waasSvmConfidentialBalanceRequest was null or undefined when calling getWaasSvmConfidentialBalanceServer.');
964
+ }
965
+ const queryParameters = {};
966
+ const headerParameters = {};
967
+ headerParameters['Content-Type'] = 'application/json';
968
+ if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
969
+ headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
970
+ }
971
+ const response = await this.request({
972
+ path: `/server/{environmentId}/waas/{walletId}/svmConfidentialBalance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
973
+ method: 'POST',
974
+ headers: headerParameters,
975
+ query: queryParameters,
976
+ body: WaasSvmConfidentialBalanceRequest.WaasSvmConfidentialBalanceRequestToJSON(requestParameters.waasSvmConfidentialBalanceRequest),
977
+ }, initOverrides);
978
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasSvmConfidentialBalanceResponse.WaasSvmConfidentialBalanceResponseFromJSON(jsonValue));
979
+ }
980
+ /**
981
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
982
+ * Server — decrypt a Token-2022 confidential token account\'s balances
983
+ */
984
+ async getWaasSvmConfidentialBalanceServer(requestParameters, initOverrides) {
985
+ const response = await this.getWaasSvmConfidentialBalanceServerRaw(requestParameters, initOverrides);
986
+ return await response.value();
987
+ }
949
988
  /**
950
989
  * Fetches a single WaaS wallet by address, scoped to the environment.
951
990
  * Server — get a WAAS wallet by address
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasWalletByAddressResponse } from '../models';
13
+ import { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
14
14
  export interface AddBusinessAccountMemberServerRequest {
15
15
  environmentId: string;
16
16
  businessAccountId: string;
@@ -114,6 +114,12 @@ export interface GetWaasConfidentialSeedServerRequest {
114
114
  xDynServerSigningProof?: string;
115
115
  derivationVersion?: number;
116
116
  }
117
+ export interface GetWaasSvmConfidentialBalanceServerRequest {
118
+ environmentId: string;
119
+ walletId: string;
120
+ waasSvmConfidentialBalanceRequest: WaasSvmConfidentialBalanceRequest;
121
+ xDynServerSigningProof?: string;
122
+ }
117
123
  export interface GetWaasWalletWithVerifiedCredentialsServerRequest {
118
124
  environmentId: string;
119
125
  walletAddress: string;
@@ -434,6 +440,16 @@ export declare class ServerApi extends runtime.BaseAPI {
434
440
  * Server — fetch a wallet\'s confidential-transfer seed
435
441
  */
436
442
  getWaasConfidentialSeedServer(requestParameters: GetWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
443
+ /**
444
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
445
+ * Server — decrypt a Token-2022 confidential token account\'s balances
446
+ */
447
+ getWaasSvmConfidentialBalanceServerRaw(requestParameters: GetWaasSvmConfidentialBalanceServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSvmConfidentialBalanceResponse>>;
448
+ /**
449
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
450
+ * Server — decrypt a Token-2022 confidential token account\'s balances
451
+ */
452
+ getWaasSvmConfidentialBalanceServer(requestParameters: GetWaasSvmConfidentialBalanceServerRequest, initOverrides?: RequestInit): Promise<WaasSvmConfidentialBalanceResponse>;
437
453
  /**
438
454
  * Fetches a single WaaS wallet by address, scoped to the environment.
439
455
  * Server — get a WAAS wallet by address
@@ -248,6 +248,8 @@ import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignCon
248
248
  import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
249
249
  import '../models/WaasSignerPolicyLayerUpdateRequest.js';
250
250
  import '../models/WaasSvmCommitment.js';
251
+ import { WaasSvmConfidentialBalanceRequestToJSON } from '../models/WaasSvmConfidentialBalanceRequest.js';
252
+ import { WaasSvmConfidentialBalanceResponseFromJSON } from '../models/WaasSvmConfidentialBalanceResponse.js';
251
253
  import '../models/WaasTransactionBroadcast.js';
252
254
  import '../models/WaasTransactionBroadcastSubmissionState.js';
253
255
  import '../models/WaasTransactionBroadcastReason.js';
@@ -942,6 +944,43 @@ class ServerApi extends BaseAPI {
942
944
  const response = await this.getWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
943
945
  return await response.value();
944
946
  }
947
+ /**
948
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
949
+ * Server — decrypt a Token-2022 confidential token account\'s balances
950
+ */
951
+ async getWaasSvmConfidentialBalanceServerRaw(requestParameters, initOverrides) {
952
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
953
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSvmConfidentialBalanceServer.');
954
+ }
955
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
956
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSvmConfidentialBalanceServer.');
957
+ }
958
+ if (requestParameters.waasSvmConfidentialBalanceRequest === null || requestParameters.waasSvmConfidentialBalanceRequest === undefined) {
959
+ throw new RequiredError('waasSvmConfidentialBalanceRequest', 'Required parameter requestParameters.waasSvmConfidentialBalanceRequest was null or undefined when calling getWaasSvmConfidentialBalanceServer.');
960
+ }
961
+ const queryParameters = {};
962
+ const headerParameters = {};
963
+ headerParameters['Content-Type'] = 'application/json';
964
+ if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
965
+ headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
966
+ }
967
+ const response = await this.request({
968
+ path: `/server/{environmentId}/waas/{walletId}/svmConfidentialBalance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
969
+ method: 'POST',
970
+ headers: headerParameters,
971
+ query: queryParameters,
972
+ body: WaasSvmConfidentialBalanceRequestToJSON(requestParameters.waasSvmConfidentialBalanceRequest),
973
+ }, initOverrides);
974
+ return new JSONApiResponse(response, (jsonValue) => WaasSvmConfidentialBalanceResponseFromJSON(jsonValue));
975
+ }
976
+ /**
977
+ * Decrypts the wallet\'s stored confidential seed inside the enclave and uses the derived ElGamal key to decrypt the available and pending confidential balance ciphertexts on the token account. Stateless — nothing is signed and no transaction is produced. The caller supplies the token account\'s raw on-chain state; the enclave is offline and cannot reach Solana RPC.
978
+ * Server — decrypt a Token-2022 confidential token account\'s balances
979
+ */
980
+ async getWaasSvmConfidentialBalanceServer(requestParameters, initOverrides) {
981
+ const response = await this.getWaasSvmConfidentialBalanceServerRaw(requestParameters, initOverrides);
982
+ return await response.value();
983
+ }
945
984
  /**
946
985
  * Fetches a single WaaS wallet by address, scoped to the environment.
947
986
  * Server — get a WAAS wallet by address
package/src/index.cjs CHANGED
@@ -1022,6 +1022,8 @@ var WaasSignConfidentialTransferResponse = require('./models/WaasSignConfidentia
1022
1022
  var WaasSignerPolicyLayerUpdateRequest = require('./models/WaasSignerPolicyLayerUpdateRequest.cjs');
1023
1023
  var WaasSignerPolicyLayerUpdateRequestAllOf = require('./models/WaasSignerPolicyLayerUpdateRequestAllOf.cjs');
1024
1024
  var WaasSvmCommitment = require('./models/WaasSvmCommitment.cjs');
1025
+ var WaasSvmConfidentialBalanceRequest = require('./models/WaasSvmConfidentialBalanceRequest.cjs');
1026
+ var WaasSvmConfidentialBalanceResponse = require('./models/WaasSvmConfidentialBalanceResponse.cjs');
1025
1027
  var WaasTransactionBroadcast = require('./models/WaasTransactionBroadcast.cjs');
1026
1028
  var WaasTransactionBroadcastError = require('./models/WaasTransactionBroadcastError.cjs');
1027
1029
  var WaasTransactionBroadcastErrorPayload = require('./models/WaasTransactionBroadcastErrorPayload.cjs');
@@ -4939,6 +4941,12 @@ Object.defineProperty(exports, 'WaasSvmCommitment', {
4939
4941
  exports.WaasSvmCommitmentFromJSON = WaasSvmCommitment.WaasSvmCommitmentFromJSON;
4940
4942
  exports.WaasSvmCommitmentFromJSONTyped = WaasSvmCommitment.WaasSvmCommitmentFromJSONTyped;
4941
4943
  exports.WaasSvmCommitmentToJSON = WaasSvmCommitment.WaasSvmCommitmentToJSON;
4944
+ exports.WaasSvmConfidentialBalanceRequestFromJSON = WaasSvmConfidentialBalanceRequest.WaasSvmConfidentialBalanceRequestFromJSON;
4945
+ exports.WaasSvmConfidentialBalanceRequestFromJSONTyped = WaasSvmConfidentialBalanceRequest.WaasSvmConfidentialBalanceRequestFromJSONTyped;
4946
+ exports.WaasSvmConfidentialBalanceRequestToJSON = WaasSvmConfidentialBalanceRequest.WaasSvmConfidentialBalanceRequestToJSON;
4947
+ exports.WaasSvmConfidentialBalanceResponseFromJSON = WaasSvmConfidentialBalanceResponse.WaasSvmConfidentialBalanceResponseFromJSON;
4948
+ exports.WaasSvmConfidentialBalanceResponseFromJSONTyped = WaasSvmConfidentialBalanceResponse.WaasSvmConfidentialBalanceResponseFromJSONTyped;
4949
+ exports.WaasSvmConfidentialBalanceResponseToJSON = WaasSvmConfidentialBalanceResponse.WaasSvmConfidentialBalanceResponseToJSON;
4942
4950
  Object.defineProperty(exports, 'WaasTransactionBroadcastChainTypeEnum', {
4943
4951
  enumerable: true,
4944
4952
  get: function () { return WaasTransactionBroadcast.WaasTransactionBroadcastChainTypeEnum; }
package/src/index.js CHANGED
@@ -1018,6 +1018,8 @@ export { WaasSignConfidentialTransferResponseFromJSON, WaasSignConfidentialTrans
1018
1018
  export { WaasSignerPolicyLayerUpdateRequestFromJSON, WaasSignerPolicyLayerUpdateRequestFromJSONTyped, WaasSignerPolicyLayerUpdateRequestOpEnum, WaasSignerPolicyLayerUpdateRequestToJSON } from './models/WaasSignerPolicyLayerUpdateRequest.js';
1019
1019
  export { WaasSignerPolicyLayerUpdateRequestAllOfFromJSON, WaasSignerPolicyLayerUpdateRequestAllOfFromJSONTyped, WaasSignerPolicyLayerUpdateRequestAllOfToJSON } from './models/WaasSignerPolicyLayerUpdateRequestAllOf.js';
1020
1020
  export { WaasSvmCommitment, WaasSvmCommitmentFromJSON, WaasSvmCommitmentFromJSONTyped, WaasSvmCommitmentToJSON } from './models/WaasSvmCommitment.js';
1021
+ export { WaasSvmConfidentialBalanceRequestFromJSON, WaasSvmConfidentialBalanceRequestFromJSONTyped, WaasSvmConfidentialBalanceRequestToJSON } from './models/WaasSvmConfidentialBalanceRequest.js';
1022
+ export { WaasSvmConfidentialBalanceResponseFromJSON, WaasSvmConfidentialBalanceResponseFromJSONTyped, WaasSvmConfidentialBalanceResponseToJSON } from './models/WaasSvmConfidentialBalanceResponse.js';
1021
1023
  export { WaasTransactionBroadcastChainTypeEnum, WaasTransactionBroadcastFromJSON, WaasTransactionBroadcastFromJSONTyped, WaasTransactionBroadcastToJSON } from './models/WaasTransactionBroadcast.js';
1022
1024
  export { WaasTransactionBroadcastErrorFromJSON, WaasTransactionBroadcastErrorFromJSONTyped, WaasTransactionBroadcastErrorToJSON } from './models/WaasTransactionBroadcastError.js';
1023
1025
  export { WaasTransactionBroadcastErrorPayloadFromJSON, WaasTransactionBroadcastErrorPayloadFromJSONTyped, WaasTransactionBroadcastErrorPayloadToJSON } from './models/WaasTransactionBroadcastErrorPayload.js';
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasConfidentialAccountState = require('./WaasConfidentialAccountState.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WaasSvmConfidentialBalanceRequestFromJSON(json) {
10
+ return WaasSvmConfidentialBalanceRequestFromJSONTyped(json);
11
+ }
12
+ function WaasSvmConfidentialBalanceRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'solanaAddress': json['solanaAddress'],
18
+ 'derivationVersion': !runtime.exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
19
+ 'tokenAccount': json['tokenAccount'],
20
+ 'mint': json['mint'],
21
+ 'accountState': WaasConfidentialAccountState.WaasConfidentialAccountStateFromJSON(json['accountState']),
22
+ };
23
+ }
24
+ function WaasSvmConfidentialBalanceRequestToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'solanaAddress': value.solanaAddress,
33
+ 'derivationVersion': value.derivationVersion,
34
+ 'tokenAccount': value.tokenAccount,
35
+ 'mint': value.mint,
36
+ 'accountState': WaasConfidentialAccountState.WaasConfidentialAccountStateToJSON(value.accountState),
37
+ };
38
+ }
39
+
40
+ exports.WaasSvmConfidentialBalanceRequestFromJSON = WaasSvmConfidentialBalanceRequestFromJSON;
41
+ exports.WaasSvmConfidentialBalanceRequestFromJSONTyped = WaasSvmConfidentialBalanceRequestFromJSONTyped;
42
+ exports.WaasSvmConfidentialBalanceRequestToJSON = WaasSvmConfidentialBalanceRequestToJSON;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { WaasConfidentialAccountState } from './WaasConfidentialAccountState';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasSvmConfidentialBalanceRequest
17
+ */
18
+ export interface WaasSvmConfidentialBalanceRequest {
19
+ /**
20
+ * Solana address (base58 public key) whose stored confidential seed decrypts the balances. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed` or the PUT variant).
21
+ * @type {string}
22
+ * @memberof WaasSvmConfidentialBalanceRequest
23
+ */
24
+ solanaAddress: string;
25
+ /**
26
+ * Version of the stored seed to decrypt with. Defaults to the newest stored version; must match the version active on the confidential token account.
27
+ * @type {number}
28
+ * @memberof WaasSvmConfidentialBalanceRequest
29
+ */
30
+ derivationVersion?: number;
31
+ /**
32
+ * The confidential-capable token account to read.
33
+ * @type {string}
34
+ * @memberof WaasSvmConfidentialBalanceRequest
35
+ */
36
+ tokenAccount: string;
37
+ /**
38
+ * The Token-2022 mint.
39
+ * @type {string}
40
+ * @memberof WaasSvmConfidentialBalanceRequest
41
+ */
42
+ mint: string;
43
+ /**
44
+ *
45
+ * @type {WaasConfidentialAccountState}
46
+ * @memberof WaasSvmConfidentialBalanceRequest
47
+ */
48
+ accountState: WaasConfidentialAccountState;
49
+ }
50
+ export declare function WaasSvmConfidentialBalanceRequestFromJSON(json: any): WaasSvmConfidentialBalanceRequest;
51
+ export declare function WaasSvmConfidentialBalanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSvmConfidentialBalanceRequest;
52
+ export declare function WaasSvmConfidentialBalanceRequestToJSON(value?: WaasSvmConfidentialBalanceRequest | null): any;
@@ -0,0 +1,36 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasConfidentialAccountStateFromJSON, WaasConfidentialAccountStateToJSON } from './WaasConfidentialAccountState.js';
3
+
4
+ /* tslint:disable */
5
+ function WaasSvmConfidentialBalanceRequestFromJSON(json) {
6
+ return WaasSvmConfidentialBalanceRequestFromJSONTyped(json);
7
+ }
8
+ function WaasSvmConfidentialBalanceRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'solanaAddress': json['solanaAddress'],
14
+ 'derivationVersion': !exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
15
+ 'tokenAccount': json['tokenAccount'],
16
+ 'mint': json['mint'],
17
+ 'accountState': WaasConfidentialAccountStateFromJSON(json['accountState']),
18
+ };
19
+ }
20
+ function WaasSvmConfidentialBalanceRequestToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'solanaAddress': value.solanaAddress,
29
+ 'derivationVersion': value.derivationVersion,
30
+ 'tokenAccount': value.tokenAccount,
31
+ 'mint': value.mint,
32
+ 'accountState': WaasConfidentialAccountStateToJSON(value.accountState),
33
+ };
34
+ }
35
+
36
+ export { WaasSvmConfidentialBalanceRequestFromJSON, WaasSvmConfidentialBalanceRequestFromJSONTyped, WaasSvmConfidentialBalanceRequestToJSON };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function WaasSvmConfidentialBalanceResponseFromJSON(json) {
19
+ return WaasSvmConfidentialBalanceResponseFromJSONTyped(json);
20
+ }
21
+ function WaasSvmConfidentialBalanceResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'availableBalance': json['availableBalance'],
27
+ 'pendingBalance': json['pendingBalance'],
28
+ };
29
+ }
30
+ function WaasSvmConfidentialBalanceResponseToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'availableBalance': value.availableBalance,
39
+ 'pendingBalance': value.pendingBalance,
40
+ };
41
+ }
42
+
43
+ exports.WaasSvmConfidentialBalanceResponseFromJSON = WaasSvmConfidentialBalanceResponseFromJSON;
44
+ exports.WaasSvmConfidentialBalanceResponseFromJSONTyped = WaasSvmConfidentialBalanceResponseFromJSONTyped;
45
+ exports.WaasSvmConfidentialBalanceResponseToJSON = WaasSvmConfidentialBalanceResponseToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface WaasSvmConfidentialBalanceResponse
16
+ */
17
+ export interface WaasSvmConfidentialBalanceResponse {
18
+ /**
19
+ * The decrypted available confidential balance of the token account, in base units, decimal-encoded (u64).
20
+ * @type {string}
21
+ * @memberof WaasSvmConfidentialBalanceResponse
22
+ */
23
+ availableBalance: string;
24
+ /**
25
+ * The decrypted pending confidential balance of the token account, in base units, decimal-encoded (u64).
26
+ * @type {string}
27
+ * @memberof WaasSvmConfidentialBalanceResponse
28
+ */
29
+ pendingBalance: string;
30
+ }
31
+ export declare function WaasSvmConfidentialBalanceResponseFromJSON(json: any): WaasSvmConfidentialBalanceResponse;
32
+ export declare function WaasSvmConfidentialBalanceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSvmConfidentialBalanceResponse;
33
+ export declare function WaasSvmConfidentialBalanceResponseToJSON(value?: WaasSvmConfidentialBalanceResponse | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function WaasSvmConfidentialBalanceResponseFromJSON(json) {
15
+ return WaasSvmConfidentialBalanceResponseFromJSONTyped(json);
16
+ }
17
+ function WaasSvmConfidentialBalanceResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'availableBalance': json['availableBalance'],
23
+ 'pendingBalance': json['pendingBalance'],
24
+ };
25
+ }
26
+ function WaasSvmConfidentialBalanceResponseToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'availableBalance': value.availableBalance,
35
+ 'pendingBalance': value.pendingBalance,
36
+ };
37
+ }
38
+
39
+ export { WaasSvmConfidentialBalanceResponseFromJSON, WaasSvmConfidentialBalanceResponseFromJSONTyped, WaasSvmConfidentialBalanceResponseToJSON };
@@ -29,6 +29,7 @@ exports.WaasTransactionBroadcastReason = void 0;
29
29
  WaasTransactionBroadcastReason["NonceGap"] = "nonce_gap";
30
30
  WaasTransactionBroadcastReason["CeremonyFailed"] = "ceremony_failed";
31
31
  WaasTransactionBroadcastReason["AssemblyFailed"] = "assembly_failed";
32
+ WaasTransactionBroadcastReason["StorageFailed"] = "storage_failed";
32
33
  WaasTransactionBroadcastReason["InsufficientFunds"] = "insufficient_funds";
33
34
  WaasTransactionBroadcastReason["BroadcasterStopped"] = "broadcaster_stopped";
34
35
  WaasTransactionBroadcastReason["BroadcasterFailed"] = "broadcaster_failed";
@@ -22,6 +22,7 @@ export declare enum WaasTransactionBroadcastReason {
22
22
  NonceGap = "nonce_gap",
23
23
  CeremonyFailed = "ceremony_failed",
24
24
  AssemblyFailed = "assembly_failed",
25
+ StorageFailed = "storage_failed",
25
26
  InsufficientFunds = "insufficient_funds",
26
27
  BroadcasterStopped = "broadcaster_stopped",
27
28
  BroadcasterFailed = "broadcaster_failed"
@@ -25,6 +25,7 @@ var WaasTransactionBroadcastReason;
25
25
  WaasTransactionBroadcastReason["NonceGap"] = "nonce_gap";
26
26
  WaasTransactionBroadcastReason["CeremonyFailed"] = "ceremony_failed";
27
27
  WaasTransactionBroadcastReason["AssemblyFailed"] = "assembly_failed";
28
+ WaasTransactionBroadcastReason["StorageFailed"] = "storage_failed";
28
29
  WaasTransactionBroadcastReason["InsufficientFunds"] = "insufficient_funds";
29
30
  WaasTransactionBroadcastReason["BroadcasterStopped"] = "broadcaster_stopped";
30
31
  WaasTransactionBroadcastReason["BroadcasterFailed"] = "broadcaster_failed";
@@ -965,6 +965,8 @@ export * from './WaasSignConfidentialTransferResponse';
965
965
  export * from './WaasSignerPolicyLayerUpdateRequest';
966
966
  export * from './WaasSignerPolicyLayerUpdateRequestAllOf';
967
967
  export * from './WaasSvmCommitment';
968
+ export * from './WaasSvmConfidentialBalanceRequest';
969
+ export * from './WaasSvmConfidentialBalanceResponse';
968
970
  export * from './WaasTransactionBroadcast';
969
971
  export * from './WaasTransactionBroadcastError';
970
972
  export * from './WaasTransactionBroadcastErrorPayload';