@dynamic-labs/sdk-api 0.149.0 → 0.150.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 +1 -1
- package/src/apis/SDKApi.cjs +2 -44
- package/src/apis/SDKApi.d.ts +3 -18
- package/src/apis/SDKApi.js +2 -44
- package/src/apis/ServerApi.cjs +2 -40
- package/src/apis/ServerApi.d.ts +3 -19
- package/src/apis/ServerApi.js +2 -40
- package/src/index.cjs +0 -4
- package/src/index.js +0 -1
- package/src/models/index.d.ts +0 -1
- package/src/models/WaasConfidentialSeedPutRequest.cjs +0 -39
- package/src/models/WaasConfidentialSeedPutRequest.d.ts +0 -45
- package/src/models/WaasConfidentialSeedPutRequest.js +0 -33
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -383,7 +383,6 @@ var VerifyUnlinkRequest = require('../models/VerifyUnlinkRequest.cjs');
|
|
|
383
383
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
384
384
|
require('../models/WaasBroadcastStatus.cjs');
|
|
385
385
|
var WaasConfidentialSeedCreateRequest = require('../models/WaasConfidentialSeedCreateRequest.cjs');
|
|
386
|
-
var WaasConfidentialSeedPutRequest = require('../models/WaasConfidentialSeedPutRequest.cjs');
|
|
387
386
|
var WaasConfidentialSeedResponse = require('../models/WaasConfidentialSeedResponse.cjs');
|
|
388
387
|
require('../models/WaasConfidentialTransferOperation.cjs');
|
|
389
388
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
@@ -8136,47 +8135,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8136
8135
|
async publishEvent(requestParameters, initOverrides) {
|
|
8137
8136
|
await this.publishEventRaw(requestParameters, initOverrides);
|
|
8138
8137
|
}
|
|
8139
|
-
/**
|
|
8140
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8141
|
-
* Store a Solana confidential-transfer seed
|
|
8142
|
-
*/
|
|
8143
|
-
async putWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
8144
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8145
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8146
|
-
}
|
|
8147
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8148
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8149
|
-
}
|
|
8150
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
8151
|
-
throw new runtime.RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeed.');
|
|
8152
|
-
}
|
|
8153
|
-
const queryParameters = {};
|
|
8154
|
-
const headerParameters = {};
|
|
8155
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8156
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
8157
|
-
const token = this.configuration.accessToken;
|
|
8158
|
-
const tokenString = await token("bearerAuth", []);
|
|
8159
|
-
if (tokenString) {
|
|
8160
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8161
|
-
}
|
|
8162
|
-
}
|
|
8163
|
-
const response = await this.request({
|
|
8164
|
-
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8165
|
-
method: 'PUT',
|
|
8166
|
-
headers: headerParameters,
|
|
8167
|
-
query: queryParameters,
|
|
8168
|
-
body: WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
8169
|
-
}, initOverrides);
|
|
8170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
8171
|
-
}
|
|
8172
|
-
/**
|
|
8173
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8174
|
-
* Store a Solana confidential-transfer seed
|
|
8175
|
-
*/
|
|
8176
|
-
async putWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
8177
|
-
const response = await this.putWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
8178
|
-
return await response.value();
|
|
8179
|
-
}
|
|
8180
8138
|
/**
|
|
8181
8139
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
8182
8140
|
* Get a quote for a checkout transaction
|
|
@@ -11760,7 +11718,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11760
11718
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11761
11719
|
}
|
|
11762
11720
|
/**
|
|
11763
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11721
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
11764
11722
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11765
11723
|
*/
|
|
11766
11724
|
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -11793,7 +11751,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11793
11751
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11794
11752
|
}
|
|
11795
11753
|
/**
|
|
11796
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11754
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
11797
11755
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11798
11756
|
*/
|
|
11799
11757
|
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -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,
|
|
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, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, 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;
|
|
@@ -1025,11 +1025,6 @@ export interface PublishEventRequest {
|
|
|
1025
1025
|
environmentId: string;
|
|
1026
1026
|
publishEvents: PublishEvents;
|
|
1027
1027
|
}
|
|
1028
|
-
export interface PutWaasConfidentialSeedRequest {
|
|
1029
|
-
environmentId: string;
|
|
1030
|
-
walletId: string;
|
|
1031
|
-
waasConfidentialSeedPutRequest: WaasConfidentialSeedPutRequest;
|
|
1032
|
-
}
|
|
1033
1028
|
export interface QuoteCheckoutTransactionRequest {
|
|
1034
1029
|
environmentId: string;
|
|
1035
1030
|
transactionId: string;
|
|
@@ -4093,16 +4088,6 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4093
4088
|
* Publish SDK events
|
|
4094
4089
|
*/
|
|
4095
4090
|
publishEvent(requestParameters: PublishEventRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4096
|
-
/**
|
|
4097
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
4098
|
-
* Store a Solana confidential-transfer seed
|
|
4099
|
-
*/
|
|
4100
|
-
putWaasConfidentialSeedRaw(requestParameters: PutWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
|
|
4101
|
-
/**
|
|
4102
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
4103
|
-
* Store a Solana confidential-transfer seed
|
|
4104
|
-
*/
|
|
4105
|
-
putWaasConfidentialSeed(requestParameters: PutWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
|
|
4106
4091
|
/**
|
|
4107
4092
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
4108
4093
|
* Get a quote for a checkout transaction
|
|
@@ -5118,12 +5103,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5118
5103
|
*/
|
|
5119
5104
|
signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5120
5105
|
/**
|
|
5121
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
5106
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
5122
5107
|
* Co-sign enclave-built confidential-transfer transactions
|
|
5123
5108
|
*/
|
|
5124
5109
|
signWaasConfidentialTransactionsRaw(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
5125
5110
|
/**
|
|
5126
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
5111
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
5127
5112
|
* Co-sign enclave-built confidential-transfer transactions
|
|
5128
5113
|
*/
|
|
5129
5114
|
signWaasConfidentialTransactions(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -379,7 +379,6 @@ import { VerifyUnlinkRequestToJSON } from '../models/VerifyUnlinkRequest.js';
|
|
|
379
379
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
380
380
|
import '../models/WaasBroadcastStatus.js';
|
|
381
381
|
import { WaasConfidentialSeedCreateRequestToJSON } from '../models/WaasConfidentialSeedCreateRequest.js';
|
|
382
|
-
import { WaasConfidentialSeedPutRequestToJSON } from '../models/WaasConfidentialSeedPutRequest.js';
|
|
383
382
|
import { WaasConfidentialSeedResponseFromJSON } from '../models/WaasConfidentialSeedResponse.js';
|
|
384
383
|
import '../models/WaasConfidentialTransferOperation.js';
|
|
385
384
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
@@ -8132,47 +8131,6 @@ class SDKApi extends BaseAPI {
|
|
|
8132
8131
|
async publishEvent(requestParameters, initOverrides) {
|
|
8133
8132
|
await this.publishEventRaw(requestParameters, initOverrides);
|
|
8134
8133
|
}
|
|
8135
|
-
/**
|
|
8136
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8137
|
-
* Store a Solana confidential-transfer seed
|
|
8138
|
-
*/
|
|
8139
|
-
async putWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
8140
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8141
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8142
|
-
}
|
|
8143
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8144
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8145
|
-
}
|
|
8146
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
8147
|
-
throw new RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeed.');
|
|
8148
|
-
}
|
|
8149
|
-
const queryParameters = {};
|
|
8150
|
-
const headerParameters = {};
|
|
8151
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8152
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
8153
|
-
const token = this.configuration.accessToken;
|
|
8154
|
-
const tokenString = await token("bearerAuth", []);
|
|
8155
|
-
if (tokenString) {
|
|
8156
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8157
|
-
}
|
|
8158
|
-
}
|
|
8159
|
-
const response = await this.request({
|
|
8160
|
-
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8161
|
-
method: 'PUT',
|
|
8162
|
-
headers: headerParameters,
|
|
8163
|
-
query: queryParameters,
|
|
8164
|
-
body: WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
8165
|
-
}, initOverrides);
|
|
8166
|
-
return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
8167
|
-
}
|
|
8168
|
-
/**
|
|
8169
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8170
|
-
* Store a Solana confidential-transfer seed
|
|
8171
|
-
*/
|
|
8172
|
-
async putWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
8173
|
-
const response = await this.putWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
8174
|
-
return await response.value();
|
|
8175
|
-
}
|
|
8176
8134
|
/**
|
|
8177
8135
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
8178
8136
|
* Get a quote for a checkout transaction
|
|
@@ -11756,7 +11714,7 @@ class SDKApi extends BaseAPI {
|
|
|
11756
11714
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11757
11715
|
}
|
|
11758
11716
|
/**
|
|
11759
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11717
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
11760
11718
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11761
11719
|
*/
|
|
11762
11720
|
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -11789,7 +11747,7 @@ class SDKApi extends BaseAPI {
|
|
|
11789
11747
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11790
11748
|
}
|
|
11791
11749
|
/**
|
|
11792
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11750
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
11793
11751
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11794
11752
|
*/
|
|
11795
11753
|
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -232,7 +232,6 @@ require('../models/UserFilterableFieldsEnum.cjs');
|
|
|
232
232
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
233
233
|
require('../models/WaasBroadcastStatus.cjs');
|
|
234
234
|
var WaasConfidentialSeedCreateRequest = require('../models/WaasConfidentialSeedCreateRequest.cjs');
|
|
235
|
-
var WaasConfidentialSeedPutRequest = require('../models/WaasConfidentialSeedPutRequest.cjs');
|
|
236
235
|
var WaasConfidentialSeedResponse = require('../models/WaasConfidentialSeedResponse.cjs');
|
|
237
236
|
require('../models/WaasConfidentialTransferOperation.cjs');
|
|
238
237
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
@@ -1148,43 +1147,6 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1148
1147
|
const response = await this.listBusinessAccountsServerRaw(requestParameters, initOverrides);
|
|
1149
1148
|
return await response.value();
|
|
1150
1149
|
}
|
|
1151
|
-
/**
|
|
1152
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1153
|
-
* Server — store a Solana confidential-transfer seed
|
|
1154
|
-
*/
|
|
1155
|
-
async putWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
|
|
1156
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1157
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1158
|
-
}
|
|
1159
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1160
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1161
|
-
}
|
|
1162
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
1163
|
-
throw new runtime.RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1164
|
-
}
|
|
1165
|
-
const queryParameters = {};
|
|
1166
|
-
const headerParameters = {};
|
|
1167
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1168
|
-
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1169
|
-
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1170
|
-
}
|
|
1171
|
-
const response = await this.request({
|
|
1172
|
-
path: `/server/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1173
|
-
method: 'PUT',
|
|
1174
|
-
headers: headerParameters,
|
|
1175
|
-
query: queryParameters,
|
|
1176
|
-
body: WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
1177
|
-
}, initOverrides);
|
|
1178
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
1179
|
-
}
|
|
1180
|
-
/**
|
|
1181
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1182
|
-
* Server — store a Solana confidential-transfer seed
|
|
1183
|
-
*/
|
|
1184
|
-
async putWaasConfidentialSeedServer(requestParameters, initOverrides) {
|
|
1185
|
-
const response = await this.putWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
|
|
1186
|
-
return await response.value();
|
|
1187
|
-
}
|
|
1188
1150
|
/**
|
|
1189
1151
|
* Refreshes the MPC key shares for the specified WAAS wallet. `shareSetId` is required for server-mode wallets; without it the request is rejected with 422.
|
|
1190
1152
|
* Server — refresh WAAS keyshares
|
|
@@ -1442,7 +1404,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1442
1404
|
return await response.value();
|
|
1443
1405
|
}
|
|
1444
1406
|
/**
|
|
1445
|
-
* Provisions one MPC signing room
|
|
1407
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
1446
1408
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1447
1409
|
*/
|
|
1448
1410
|
async signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides) {
|
|
@@ -1471,7 +1433,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1471
1433
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
1472
1434
|
}
|
|
1473
1435
|
/**
|
|
1474
|
-
* Provisions one MPC signing room
|
|
1436
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
1475
1437
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1476
1438
|
*/
|
|
1477
1439
|
async signWaasConfidentialTransactionsServer(requestParameters, initOverrides) {
|
package/src/apis/ServerApi.d.ts
CHANGED
|
@@ -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,
|
|
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, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
|
|
14
14
|
export interface AddBusinessAccountMemberServerRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
businessAccountId: string;
|
|
@@ -144,12 +144,6 @@ export interface ListBusinessAccountsServerRequest {
|
|
|
144
144
|
externalRef?: Array<string>;
|
|
145
145
|
xDynServerSigningProof?: string;
|
|
146
146
|
}
|
|
147
|
-
export interface PutWaasConfidentialSeedServerRequest {
|
|
148
|
-
environmentId: string;
|
|
149
|
-
walletId: string;
|
|
150
|
-
waasConfidentialSeedPutRequest: WaasConfidentialSeedPutRequest;
|
|
151
|
-
xDynServerSigningProof?: string;
|
|
152
|
-
}
|
|
153
147
|
export interface RefreshKeySharesServerRequest {
|
|
154
148
|
environmentId: string;
|
|
155
149
|
walletId: string;
|
|
@@ -504,16 +498,6 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
504
498
|
* Server — list business accounts the caller is a member of
|
|
505
499
|
*/
|
|
506
500
|
listBusinessAccountsServer(requestParameters: ListBusinessAccountsServerRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
507
|
-
/**
|
|
508
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
509
|
-
* Server — store a Solana confidential-transfer seed
|
|
510
|
-
*/
|
|
511
|
-
putWaasConfidentialSeedServerRaw(requestParameters: PutWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
|
|
512
|
-
/**
|
|
513
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
514
|
-
* Server — store a Solana confidential-transfer seed
|
|
515
|
-
*/
|
|
516
|
-
putWaasConfidentialSeedServer(requestParameters: PutWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
|
|
517
501
|
/**
|
|
518
502
|
* Refreshes the MPC key shares for the specified WAAS wallet. `shareSetId` is required for server-mode wallets; without it the request is rejected with 422.
|
|
519
503
|
* Server — refresh WAAS keyshares
|
|
@@ -585,12 +569,12 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
585
569
|
*/
|
|
586
570
|
signMessageServer(requestParameters: SignMessageServerRequest, initOverrides?: RequestInit): Promise<OpenRoomResponse>;
|
|
587
571
|
/**
|
|
588
|
-
* Provisions one MPC signing room
|
|
572
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
589
573
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
590
574
|
*/
|
|
591
575
|
signWaasConfidentialTransactionsServerRaw(requestParameters: SignWaasConfidentialTransactionsServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
592
576
|
/**
|
|
593
|
-
* Provisions one MPC signing room
|
|
577
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
594
578
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
595
579
|
*/
|
|
596
580
|
signWaasConfidentialTransactionsServer(requestParameters: SignWaasConfidentialTransactionsServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -228,7 +228,6 @@ import '../models/UserFilterableFieldsEnum.js';
|
|
|
228
228
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
229
229
|
import '../models/WaasBroadcastStatus.js';
|
|
230
230
|
import { WaasConfidentialSeedCreateRequestToJSON } from '../models/WaasConfidentialSeedCreateRequest.js';
|
|
231
|
-
import { WaasConfidentialSeedPutRequestToJSON } from '../models/WaasConfidentialSeedPutRequest.js';
|
|
232
231
|
import { WaasConfidentialSeedResponseFromJSON } from '../models/WaasConfidentialSeedResponse.js';
|
|
233
232
|
import '../models/WaasConfidentialTransferOperation.js';
|
|
234
233
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
@@ -1144,43 +1143,6 @@ class ServerApi extends BaseAPI {
|
|
|
1144
1143
|
const response = await this.listBusinessAccountsServerRaw(requestParameters, initOverrides);
|
|
1145
1144
|
return await response.value();
|
|
1146
1145
|
}
|
|
1147
|
-
/**
|
|
1148
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1149
|
-
* Server — store a Solana confidential-transfer seed
|
|
1150
|
-
*/
|
|
1151
|
-
async putWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
|
|
1152
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1153
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1154
|
-
}
|
|
1155
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1156
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1157
|
-
}
|
|
1158
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
1159
|
-
throw new RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1160
|
-
}
|
|
1161
|
-
const queryParameters = {};
|
|
1162
|
-
const headerParameters = {};
|
|
1163
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1164
|
-
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1165
|
-
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1166
|
-
}
|
|
1167
|
-
const response = await this.request({
|
|
1168
|
-
path: `/server/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1169
|
-
method: 'PUT',
|
|
1170
|
-
headers: headerParameters,
|
|
1171
|
-
query: queryParameters,
|
|
1172
|
-
body: WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
1173
|
-
}, initOverrides);
|
|
1174
|
-
return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
1175
|
-
}
|
|
1176
|
-
/**
|
|
1177
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1178
|
-
* Server — store a Solana confidential-transfer seed
|
|
1179
|
-
*/
|
|
1180
|
-
async putWaasConfidentialSeedServer(requestParameters, initOverrides) {
|
|
1181
|
-
const response = await this.putWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
|
|
1182
|
-
return await response.value();
|
|
1183
|
-
}
|
|
1184
1146
|
/**
|
|
1185
1147
|
* Refreshes the MPC key shares for the specified WAAS wallet. `shareSetId` is required for server-mode wallets; without it the request is rejected with 422.
|
|
1186
1148
|
* Server — refresh WAAS keyshares
|
|
@@ -1438,7 +1400,7 @@ class ServerApi extends BaseAPI {
|
|
|
1438
1400
|
return await response.value();
|
|
1439
1401
|
}
|
|
1440
1402
|
/**
|
|
1441
|
-
* Provisions one MPC signing room
|
|
1403
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
1442
1404
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1443
1405
|
*/
|
|
1444
1406
|
async signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides) {
|
|
@@ -1467,7 +1429,7 @@ class ServerApi extends BaseAPI {
|
|
|
1467
1429
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
1468
1430
|
}
|
|
1469
1431
|
/**
|
|
1470
|
-
* Provisions one MPC signing room
|
|
1432
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
1471
1433
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1472
1434
|
*/
|
|
1473
1435
|
async signWaasConfidentialTransactionsServer(requestParameters, initOverrides) {
|
package/src/index.cjs
CHANGED
|
@@ -977,7 +977,6 @@ var WaasBroadcastSvmCosignerSignature = require('./models/WaasBroadcastSvmCosign
|
|
|
977
977
|
var WaasChainEnum = require('./models/WaasChainEnum.cjs');
|
|
978
978
|
var WaasConfidentialAccountState = require('./models/WaasConfidentialAccountState.cjs');
|
|
979
979
|
var WaasConfidentialSeedCreateRequest = require('./models/WaasConfidentialSeedCreateRequest.cjs');
|
|
980
|
-
var WaasConfidentialSeedPutRequest = require('./models/WaasConfidentialSeedPutRequest.cjs');
|
|
981
980
|
var WaasConfidentialSeedResponse = require('./models/WaasConfidentialSeedResponse.cjs');
|
|
982
981
|
var WaasConfidentialTransferOperation = require('./models/WaasConfidentialTransferOperation.cjs');
|
|
983
982
|
var WaasDelegateSignMessageRequest = require('./models/WaasDelegateSignMessageRequest.cjs');
|
|
@@ -4740,9 +4739,6 @@ exports.WaasConfidentialAccountStateToJSON = WaasConfidentialAccountState.WaasCo
|
|
|
4740
4739
|
exports.WaasConfidentialSeedCreateRequestFromJSON = WaasConfidentialSeedCreateRequest.WaasConfidentialSeedCreateRequestFromJSON;
|
|
4741
4740
|
exports.WaasConfidentialSeedCreateRequestFromJSONTyped = WaasConfidentialSeedCreateRequest.WaasConfidentialSeedCreateRequestFromJSONTyped;
|
|
4742
4741
|
exports.WaasConfidentialSeedCreateRequestToJSON = WaasConfidentialSeedCreateRequest.WaasConfidentialSeedCreateRequestToJSON;
|
|
4743
|
-
exports.WaasConfidentialSeedPutRequestFromJSON = WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestFromJSON;
|
|
4744
|
-
exports.WaasConfidentialSeedPutRequestFromJSONTyped = WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestFromJSONTyped;
|
|
4745
|
-
exports.WaasConfidentialSeedPutRequestToJSON = WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON;
|
|
4746
4742
|
exports.WaasConfidentialSeedResponseFromJSON = WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON;
|
|
4747
4743
|
exports.WaasConfidentialSeedResponseFromJSONTyped = WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSONTyped;
|
|
4748
4744
|
exports.WaasConfidentialSeedResponseToJSON = WaasConfidentialSeedResponse.WaasConfidentialSeedResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -973,7 +973,6 @@ export { WaasBroadcastSvmCosignerSignatureFromJSON, WaasBroadcastSvmCosignerSign
|
|
|
973
973
|
export { WaasChainEnum, WaasChainEnumFromJSON, WaasChainEnumFromJSONTyped, WaasChainEnumToJSON } from './models/WaasChainEnum.js';
|
|
974
974
|
export { WaasConfidentialAccountStateFromJSON, WaasConfidentialAccountStateFromJSONTyped, WaasConfidentialAccountStateToJSON } from './models/WaasConfidentialAccountState.js';
|
|
975
975
|
export { WaasConfidentialSeedCreateRequestFromJSON, WaasConfidentialSeedCreateRequestFromJSONTyped, WaasConfidentialSeedCreateRequestToJSON } from './models/WaasConfidentialSeedCreateRequest.js';
|
|
976
|
-
export { WaasConfidentialSeedPutRequestFromJSON, WaasConfidentialSeedPutRequestFromJSONTyped, WaasConfidentialSeedPutRequestToJSON } from './models/WaasConfidentialSeedPutRequest.js';
|
|
977
976
|
export { WaasConfidentialSeedResponseFromJSON, WaasConfidentialSeedResponseFromJSONTyped, WaasConfidentialSeedResponseToJSON } from './models/WaasConfidentialSeedResponse.js';
|
|
978
977
|
export { WaasConfidentialTransferOperation, WaasConfidentialTransferOperationFromJSON, WaasConfidentialTransferOperationFromJSONTyped, WaasConfidentialTransferOperationToJSON } from './models/WaasConfidentialTransferOperation.js';
|
|
979
978
|
export { WaasDelegateSignMessageRequestFromJSON, WaasDelegateSignMessageRequestFromJSONTyped, WaasDelegateSignMessageRequestToJSON } from './models/WaasDelegateSignMessageRequest.js';
|
package/src/models/index.d.ts
CHANGED
|
@@ -920,7 +920,6 @@ export * from './WaasBroadcastSvmCosignerSignature';
|
|
|
920
920
|
export * from './WaasChainEnum';
|
|
921
921
|
export * from './WaasConfidentialAccountState';
|
|
922
922
|
export * from './WaasConfidentialSeedCreateRequest';
|
|
923
|
-
export * from './WaasConfidentialSeedPutRequest';
|
|
924
923
|
export * from './WaasConfidentialSeedResponse';
|
|
925
924
|
export * from './WaasConfidentialTransferOperation';
|
|
926
925
|
export * from './WaasDelegateSignMessageRequest';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
|
|
7
|
-
/* tslint:disable */
|
|
8
|
-
function WaasConfidentialSeedPutRequestFromJSON(json) {
|
|
9
|
-
return WaasConfidentialSeedPutRequestFromJSONTyped(json);
|
|
10
|
-
}
|
|
11
|
-
function WaasConfidentialSeedPutRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if ((json === undefined) || (json === null)) {
|
|
13
|
-
return json;
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
'solanaAddress': json['solanaAddress'],
|
|
17
|
-
'encryptedSeed': json['encryptedSeed'],
|
|
18
|
-
'elgamalPubkey': json['elgamalPubkey'],
|
|
19
|
-
'derivationVersion': !runtime.exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function WaasConfidentialSeedPutRequestToJSON(value) {
|
|
23
|
-
if (value === undefined) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
if (value === null) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'solanaAddress': value.solanaAddress,
|
|
31
|
-
'encryptedSeed': value.encryptedSeed,
|
|
32
|
-
'elgamalPubkey': value.elgamalPubkey,
|
|
33
|
-
'derivationVersion': value.derivationVersion,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.WaasConfidentialSeedPutRequestFromJSON = WaasConfidentialSeedPutRequestFromJSON;
|
|
38
|
-
exports.WaasConfidentialSeedPutRequestFromJSONTyped = WaasConfidentialSeedPutRequestFromJSONTyped;
|
|
39
|
-
exports.WaasConfidentialSeedPutRequestToJSON = WaasConfidentialSeedPutRequestToJSON;
|
|
@@ -1,45 +0,0 @@
|
|
|
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 WaasConfidentialSeedPutRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface WaasConfidentialSeedPutRequest {
|
|
18
|
-
/**
|
|
19
|
-
* Solana address (base58 public key) the seed derives ElGamal keys for
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof WaasConfidentialSeedPutRequest
|
|
22
|
-
*/
|
|
23
|
-
solanaAddress: string;
|
|
24
|
-
/**
|
|
25
|
-
* Evervault-sealed confidential seed (`ev:`-prefixed); opaque to redcoast
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WaasConfidentialSeedPutRequest
|
|
28
|
-
*/
|
|
29
|
-
encryptedSeed: string;
|
|
30
|
-
/**
|
|
31
|
-
* Base64-encoded 32-byte ElGamal public key derived from the seed
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof WaasConfidentialSeedPutRequest
|
|
34
|
-
*/
|
|
35
|
-
elgamalPubkey: string;
|
|
36
|
-
/**
|
|
37
|
-
* Seed derivation version (defaults to 1; higher versions insert a new row)
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof WaasConfidentialSeedPutRequest
|
|
40
|
-
*/
|
|
41
|
-
derivationVersion?: number;
|
|
42
|
-
}
|
|
43
|
-
export declare function WaasConfidentialSeedPutRequestFromJSON(json: any): WaasConfidentialSeedPutRequest;
|
|
44
|
-
export declare function WaasConfidentialSeedPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasConfidentialSeedPutRequest;
|
|
45
|
-
export declare function WaasConfidentialSeedPutRequestToJSON(value?: WaasConfidentialSeedPutRequest | null): any;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
function WaasConfidentialSeedPutRequestFromJSON(json) {
|
|
5
|
-
return WaasConfidentialSeedPutRequestFromJSONTyped(json);
|
|
6
|
-
}
|
|
7
|
-
function WaasConfidentialSeedPutRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
-
if ((json === undefined) || (json === null)) {
|
|
9
|
-
return json;
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
'solanaAddress': json['solanaAddress'],
|
|
13
|
-
'encryptedSeed': json['encryptedSeed'],
|
|
14
|
-
'elgamalPubkey': json['elgamalPubkey'],
|
|
15
|
-
'derivationVersion': !exists(json, 'derivationVersion') ? undefined : json['derivationVersion'],
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function WaasConfidentialSeedPutRequestToJSON(value) {
|
|
19
|
-
if (value === undefined) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
if (value === null) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'solanaAddress': value.solanaAddress,
|
|
27
|
-
'encryptedSeed': value.encryptedSeed,
|
|
28
|
-
'elgamalPubkey': value.elgamalPubkey,
|
|
29
|
-
'derivationVersion': value.derivationVersion,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { WaasConfidentialSeedPutRequestFromJSON, WaasConfidentialSeedPutRequestFromJSONTyped, WaasConfidentialSeedPutRequestToJSON };
|