@dynamic-labs/sdk-api 0.0.963 → 0.0.964
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 +136 -0
- package/src/apis/SDKApi.d.ts +55 -1
- package/src/apis/SDKApi.js +136 -0
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/ExportAleoViewKeyRequest.cjs +43 -0
- package/src/models/ExportAleoViewKeyRequest.d.ts +27 -0
- package/src/models/ExportAleoViewKeyRequest.js +37 -0
- package/src/models/SignAleoRequestWithWaasRequest.cjs +43 -0
- package/src/models/SignAleoRequestWithWaasRequest.d.ts +29 -0
- package/src/models/SignAleoRequestWithWaasRequest.js +37 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -115,6 +115,7 @@ var ExchangeTransferResponse = require('../models/ExchangeTransferResponse.cjs')
|
|
|
115
115
|
require('../models/ExportFormatEnum.cjs');
|
|
116
116
|
require('../models/ExportModelEnum.cjs');
|
|
117
117
|
require('../models/ExportStatusEnum.cjs');
|
|
118
|
+
var ExportAleoViewKeyRequest = require('../models/ExportAleoViewKeyRequest.cjs');
|
|
118
119
|
var ExportEmbeddedWalletResponse = require('../models/ExportEmbeddedWalletResponse.cjs');
|
|
119
120
|
var ExportWaasWalletPrivateKeyRequest = require('../models/ExportWaasWalletPrivateKeyRequest.cjs');
|
|
120
121
|
var ExternalAuthAssertionResponse = require('../models/ExternalAuthAssertionResponse.cjs');
|
|
@@ -220,6 +221,7 @@ var ScanWebsiteUrlRequest = require('../models/ScanWebsiteUrlRequest.cjs');
|
|
|
220
221
|
var ScanWebsiteUrlResponse = require('../models/ScanWebsiteUrlResponse.cjs');
|
|
221
222
|
require('../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.cjs');
|
|
222
223
|
var SdkSettingsRequest = require('../models/SdkSettingsRequest.cjs');
|
|
224
|
+
var SignAleoRequestWithWaasRequest = require('../models/SignAleoRequestWithWaasRequest.cjs');
|
|
223
225
|
var SignMessageWithWaasRequest = require('../models/SignMessageWithWaasRequest.cjs');
|
|
224
226
|
var SimulateEVMTransactionRequest = require('../models/SimulateEVMTransactionRequest.cjs');
|
|
225
227
|
var SimulateSVMTransactionRequest = require('../models/SimulateSVMTransactionRequest.cjs');
|
|
@@ -2541,6 +2543,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2541
2543
|
async eventsOptions(requestParameters, initOverrides) {
|
|
2542
2544
|
await this.eventsOptionsRaw(requestParameters, initOverrides);
|
|
2543
2545
|
}
|
|
2546
|
+
/**
|
|
2547
|
+
* Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
|
|
2548
|
+
* Export an Aleo wallet view key
|
|
2549
|
+
*/
|
|
2550
|
+
async exportAleoViewKeyRaw(requestParameters, initOverrides) {
|
|
2551
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2552
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKey.');
|
|
2553
|
+
}
|
|
2554
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2555
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKey.');
|
|
2556
|
+
}
|
|
2557
|
+
if (requestParameters.exportAleoViewKeyRequest === null || requestParameters.exportAleoViewKeyRequest === undefined) {
|
|
2558
|
+
throw new runtime.RequiredError('exportAleoViewKeyRequest', 'Required parameter requestParameters.exportAleoViewKeyRequest was null or undefined when calling exportAleoViewKey.');
|
|
2559
|
+
}
|
|
2560
|
+
const queryParameters = {};
|
|
2561
|
+
const headerParameters = {};
|
|
2562
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2563
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2564
|
+
const token = this.configuration.accessToken;
|
|
2565
|
+
const tokenString = await token("bearerAuth", []);
|
|
2566
|
+
if (tokenString) {
|
|
2567
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
const response = await this.request({
|
|
2571
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
2572
|
+
method: 'POST',
|
|
2573
|
+
headers: headerParameters,
|
|
2574
|
+
query: queryParameters,
|
|
2575
|
+
body: ExportAleoViewKeyRequest.ExportAleoViewKeyRequestToJSON(requestParameters.exportAleoViewKeyRequest),
|
|
2576
|
+
}, initOverrides);
|
|
2577
|
+
return new runtime.TextApiResponse(response);
|
|
2578
|
+
}
|
|
2579
|
+
/**
|
|
2580
|
+
* Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
|
|
2581
|
+
* Export an Aleo wallet view key
|
|
2582
|
+
*/
|
|
2583
|
+
async exportAleoViewKey(requestParameters, initOverrides) {
|
|
2584
|
+
const response = await this.exportAleoViewKeyRaw(requestParameters, initOverrides);
|
|
2585
|
+
return await response.value();
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* Options call for this endpoint
|
|
2589
|
+
*/
|
|
2590
|
+
async exportAleoViewKeyOptionsRaw(requestParameters, initOverrides) {
|
|
2591
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2592
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKeyOptions.');
|
|
2593
|
+
}
|
|
2594
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2595
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKeyOptions.');
|
|
2596
|
+
}
|
|
2597
|
+
const queryParameters = {};
|
|
2598
|
+
const headerParameters = {};
|
|
2599
|
+
const response = await this.request({
|
|
2600
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
2601
|
+
method: 'OPTIONS',
|
|
2602
|
+
headers: headerParameters,
|
|
2603
|
+
query: queryParameters,
|
|
2604
|
+
}, initOverrides);
|
|
2605
|
+
return new runtime.VoidApiResponse(response);
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* Options call for this endpoint
|
|
2609
|
+
*/
|
|
2610
|
+
async exportAleoViewKeyOptions(requestParameters, initOverrides) {
|
|
2611
|
+
await this.exportAleoViewKeyOptionsRaw(requestParameters, initOverrides);
|
|
2612
|
+
}
|
|
2544
2613
|
/**
|
|
2545
2614
|
* Exports the private key of a WAAS wallet through an MPC ceremony.
|
|
2546
2615
|
* Export a WAAS wallet private key
|
|
@@ -7852,6 +7921,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
7852
7921
|
async settingsOptions(requestParameters, initOverrides) {
|
|
7853
7922
|
await this.settingsOptionsRaw(requestParameters, initOverrides);
|
|
7854
7923
|
}
|
|
7924
|
+
/**
|
|
7925
|
+
* Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
|
|
7926
|
+
* Sign an Aleo function-call request with a WAAS wallet
|
|
7927
|
+
*/
|
|
7928
|
+
async signAleoRequestRaw(requestParameters, initOverrides) {
|
|
7929
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7930
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequest.');
|
|
7931
|
+
}
|
|
7932
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7933
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequest.');
|
|
7934
|
+
}
|
|
7935
|
+
if (requestParameters.signAleoRequestWithWaasRequest === null || requestParameters.signAleoRequestWithWaasRequest === undefined) {
|
|
7936
|
+
throw new runtime.RequiredError('signAleoRequestWithWaasRequest', 'Required parameter requestParameters.signAleoRequestWithWaasRequest was null or undefined when calling signAleoRequest.');
|
|
7937
|
+
}
|
|
7938
|
+
const queryParameters = {};
|
|
7939
|
+
const headerParameters = {};
|
|
7940
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7941
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7942
|
+
const token = this.configuration.accessToken;
|
|
7943
|
+
const tokenString = await token("bearerAuth", []);
|
|
7944
|
+
if (tokenString) {
|
|
7945
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7946
|
+
}
|
|
7947
|
+
}
|
|
7948
|
+
const response = await this.request({
|
|
7949
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
7950
|
+
method: 'POST',
|
|
7951
|
+
headers: headerParameters,
|
|
7952
|
+
query: queryParameters,
|
|
7953
|
+
body: SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestToJSON(requestParameters.signAleoRequestWithWaasRequest),
|
|
7954
|
+
}, initOverrides);
|
|
7955
|
+
return new runtime.TextApiResponse(response);
|
|
7956
|
+
}
|
|
7957
|
+
/**
|
|
7958
|
+
* Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
|
|
7959
|
+
* Sign an Aleo function-call request with a WAAS wallet
|
|
7960
|
+
*/
|
|
7961
|
+
async signAleoRequest(requestParameters, initOverrides) {
|
|
7962
|
+
const response = await this.signAleoRequestRaw(requestParameters, initOverrides);
|
|
7963
|
+
return await response.value();
|
|
7964
|
+
}
|
|
7965
|
+
/**
|
|
7966
|
+
* Options call for this endpoint
|
|
7967
|
+
*/
|
|
7968
|
+
async signAleoRequestOptionsRaw(requestParameters, initOverrides) {
|
|
7969
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7970
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequestOptions.');
|
|
7971
|
+
}
|
|
7972
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7973
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequestOptions.');
|
|
7974
|
+
}
|
|
7975
|
+
const queryParameters = {};
|
|
7976
|
+
const headerParameters = {};
|
|
7977
|
+
const response = await this.request({
|
|
7978
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
7979
|
+
method: 'OPTIONS',
|
|
7980
|
+
headers: headerParameters,
|
|
7981
|
+
query: queryParameters,
|
|
7982
|
+
}, initOverrides);
|
|
7983
|
+
return new runtime.VoidApiResponse(response);
|
|
7984
|
+
}
|
|
7985
|
+
/**
|
|
7986
|
+
* Options call for this endpoint
|
|
7987
|
+
*/
|
|
7988
|
+
async signAleoRequestOptions(requestParameters, initOverrides) {
|
|
7989
|
+
await this.signAleoRequestOptionsRaw(requestParameters, initOverrides);
|
|
7990
|
+
}
|
|
7855
7991
|
/**
|
|
7856
7992
|
* Verifies the email code and authenticates the user, returning a JWT.
|
|
7857
7993
|
* Verify email and sign in
|
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, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
13
|
+
import { Account, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AttachSourceOperationRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
transactionId: string;
|
|
@@ -298,6 +298,15 @@ export interface EstimateTransactionFeeOptionsRequest {
|
|
|
298
298
|
export interface EventsOptionsRequest {
|
|
299
299
|
environmentId: string;
|
|
300
300
|
}
|
|
301
|
+
export interface ExportAleoViewKeyOperationRequest {
|
|
302
|
+
environmentId: string;
|
|
303
|
+
walletId: string;
|
|
304
|
+
exportAleoViewKeyRequest: ExportAleoViewKeyRequest;
|
|
305
|
+
}
|
|
306
|
+
export interface ExportAleoViewKeyOptionsRequest {
|
|
307
|
+
environmentId: string;
|
|
308
|
+
walletId: string;
|
|
309
|
+
}
|
|
301
310
|
export interface ExportPrivateKeyRequest {
|
|
302
311
|
environmentId: string;
|
|
303
312
|
walletId: string;
|
|
@@ -984,6 +993,15 @@ export interface SessionKeyOptionsRequest {
|
|
|
984
993
|
export interface SettingsOptionsRequest {
|
|
985
994
|
environmentId: string;
|
|
986
995
|
}
|
|
996
|
+
export interface SignAleoRequestRequest {
|
|
997
|
+
environmentId: string;
|
|
998
|
+
walletId: string;
|
|
999
|
+
signAleoRequestWithWaasRequest: SignAleoRequestWithWaasRequest;
|
|
1000
|
+
}
|
|
1001
|
+
export interface SignAleoRequestOptionsRequest {
|
|
1002
|
+
environmentId: string;
|
|
1003
|
+
walletId: string;
|
|
1004
|
+
}
|
|
987
1005
|
export interface SignInWithEmailVerificationRequest {
|
|
988
1006
|
environmentId: string;
|
|
989
1007
|
emailVerificationVerifyRequest: EmailVerificationVerifyRequest;
|
|
@@ -1872,6 +1890,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1872
1890
|
/**
|
|
1873
1891
|
*/
|
|
1874
1892
|
eventsOptions(requestParameters: EventsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1893
|
+
/**
|
|
1894
|
+
* Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
|
|
1895
|
+
* Export an Aleo wallet view key
|
|
1896
|
+
*/
|
|
1897
|
+
exportAleoViewKeyRaw(requestParameters: ExportAleoViewKeyOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
|
|
1900
|
+
* Export an Aleo wallet view key
|
|
1901
|
+
*/
|
|
1902
|
+
exportAleoViewKey(requestParameters: ExportAleoViewKeyOperationRequest, initOverrides?: RequestInit): Promise<string>;
|
|
1903
|
+
/**
|
|
1904
|
+
* Options call for this endpoint
|
|
1905
|
+
*/
|
|
1906
|
+
exportAleoViewKeyOptionsRaw(requestParameters: ExportAleoViewKeyOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1907
|
+
/**
|
|
1908
|
+
* Options call for this endpoint
|
|
1909
|
+
*/
|
|
1910
|
+
exportAleoViewKeyOptions(requestParameters: ExportAleoViewKeyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1875
1911
|
/**
|
|
1876
1912
|
* Exports the private key of a WAAS wallet through an MPC ceremony.
|
|
1877
1913
|
* Export a WAAS wallet private key
|
|
@@ -3472,6 +3508,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3472
3508
|
* Options call for this endpoint
|
|
3473
3509
|
*/
|
|
3474
3510
|
settingsOptions(requestParameters: SettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3511
|
+
/**
|
|
3512
|
+
* Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
|
|
3513
|
+
* Sign an Aleo function-call request with a WAAS wallet
|
|
3514
|
+
*/
|
|
3515
|
+
signAleoRequestRaw(requestParameters: SignAleoRequestRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>;
|
|
3516
|
+
/**
|
|
3517
|
+
* Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
|
|
3518
|
+
* Sign an Aleo function-call request with a WAAS wallet
|
|
3519
|
+
*/
|
|
3520
|
+
signAleoRequest(requestParameters: SignAleoRequestRequest, initOverrides?: RequestInit): Promise<string>;
|
|
3521
|
+
/**
|
|
3522
|
+
* Options call for this endpoint
|
|
3523
|
+
*/
|
|
3524
|
+
signAleoRequestOptionsRaw(requestParameters: SignAleoRequestOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3525
|
+
/**
|
|
3526
|
+
* Options call for this endpoint
|
|
3527
|
+
*/
|
|
3528
|
+
signAleoRequestOptions(requestParameters: SignAleoRequestOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3475
3529
|
/**
|
|
3476
3530
|
* Verifies the email code and authenticates the user, returning a JWT.
|
|
3477
3531
|
* Verify email and sign in
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -111,6 +111,7 @@ import { ExchangeTransferResponseFromJSON } from '../models/ExchangeTransferResp
|
|
|
111
111
|
import '../models/ExportFormatEnum.js';
|
|
112
112
|
import '../models/ExportModelEnum.js';
|
|
113
113
|
import '../models/ExportStatusEnum.js';
|
|
114
|
+
import { ExportAleoViewKeyRequestToJSON } from '../models/ExportAleoViewKeyRequest.js';
|
|
114
115
|
import { ExportEmbeddedWalletResponseFromJSON } from '../models/ExportEmbeddedWalletResponse.js';
|
|
115
116
|
import { ExportWaasWalletPrivateKeyRequestToJSON } from '../models/ExportWaasWalletPrivateKeyRequest.js';
|
|
116
117
|
import { ExternalAuthAssertionResponseFromJSON } from '../models/ExternalAuthAssertionResponse.js';
|
|
@@ -216,6 +217,7 @@ import { ScanWebsiteUrlRequestToJSON } from '../models/ScanWebsiteUrlRequest.js'
|
|
|
216
217
|
import { ScanWebsiteUrlResponseFromJSON } from '../models/ScanWebsiteUrlResponse.js';
|
|
217
218
|
import '../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js';
|
|
218
219
|
import { SdkSettingsRequestToJSON } from '../models/SdkSettingsRequest.js';
|
|
220
|
+
import { SignAleoRequestWithWaasRequestToJSON } from '../models/SignAleoRequestWithWaasRequest.js';
|
|
219
221
|
import { SignMessageWithWaasRequestToJSON } from '../models/SignMessageWithWaasRequest.js';
|
|
220
222
|
import { SimulateEVMTransactionRequestToJSON } from '../models/SimulateEVMTransactionRequest.js';
|
|
221
223
|
import { SimulateSVMTransactionRequestToJSON } from '../models/SimulateSVMTransactionRequest.js';
|
|
@@ -2537,6 +2539,73 @@ class SDKApi extends BaseAPI {
|
|
|
2537
2539
|
async eventsOptions(requestParameters, initOverrides) {
|
|
2538
2540
|
await this.eventsOptionsRaw(requestParameters, initOverrides);
|
|
2539
2541
|
}
|
|
2542
|
+
/**
|
|
2543
|
+
* Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
|
|
2544
|
+
* Export an Aleo wallet view key
|
|
2545
|
+
*/
|
|
2546
|
+
async exportAleoViewKeyRaw(requestParameters, initOverrides) {
|
|
2547
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2548
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKey.');
|
|
2549
|
+
}
|
|
2550
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2551
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKey.');
|
|
2552
|
+
}
|
|
2553
|
+
if (requestParameters.exportAleoViewKeyRequest === null || requestParameters.exportAleoViewKeyRequest === undefined) {
|
|
2554
|
+
throw new RequiredError('exportAleoViewKeyRequest', 'Required parameter requestParameters.exportAleoViewKeyRequest was null or undefined when calling exportAleoViewKey.');
|
|
2555
|
+
}
|
|
2556
|
+
const queryParameters = {};
|
|
2557
|
+
const headerParameters = {};
|
|
2558
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2559
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2560
|
+
const token = this.configuration.accessToken;
|
|
2561
|
+
const tokenString = await token("bearerAuth", []);
|
|
2562
|
+
if (tokenString) {
|
|
2563
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
const response = await this.request({
|
|
2567
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
2568
|
+
method: 'POST',
|
|
2569
|
+
headers: headerParameters,
|
|
2570
|
+
query: queryParameters,
|
|
2571
|
+
body: ExportAleoViewKeyRequestToJSON(requestParameters.exportAleoViewKeyRequest),
|
|
2572
|
+
}, initOverrides);
|
|
2573
|
+
return new TextApiResponse(response);
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
|
|
2577
|
+
* Export an Aleo wallet view key
|
|
2578
|
+
*/
|
|
2579
|
+
async exportAleoViewKey(requestParameters, initOverrides) {
|
|
2580
|
+
const response = await this.exportAleoViewKeyRaw(requestParameters, initOverrides);
|
|
2581
|
+
return await response.value();
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
* Options call for this endpoint
|
|
2585
|
+
*/
|
|
2586
|
+
async exportAleoViewKeyOptionsRaw(requestParameters, initOverrides) {
|
|
2587
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2588
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKeyOptions.');
|
|
2589
|
+
}
|
|
2590
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2591
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKeyOptions.');
|
|
2592
|
+
}
|
|
2593
|
+
const queryParameters = {};
|
|
2594
|
+
const headerParameters = {};
|
|
2595
|
+
const response = await this.request({
|
|
2596
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
2597
|
+
method: 'OPTIONS',
|
|
2598
|
+
headers: headerParameters,
|
|
2599
|
+
query: queryParameters,
|
|
2600
|
+
}, initOverrides);
|
|
2601
|
+
return new VoidApiResponse(response);
|
|
2602
|
+
}
|
|
2603
|
+
/**
|
|
2604
|
+
* Options call for this endpoint
|
|
2605
|
+
*/
|
|
2606
|
+
async exportAleoViewKeyOptions(requestParameters, initOverrides) {
|
|
2607
|
+
await this.exportAleoViewKeyOptionsRaw(requestParameters, initOverrides);
|
|
2608
|
+
}
|
|
2540
2609
|
/**
|
|
2541
2610
|
* Exports the private key of a WAAS wallet through an MPC ceremony.
|
|
2542
2611
|
* Export a WAAS wallet private key
|
|
@@ -7848,6 +7917,73 @@ class SDKApi extends BaseAPI {
|
|
|
7848
7917
|
async settingsOptions(requestParameters, initOverrides) {
|
|
7849
7918
|
await this.settingsOptionsRaw(requestParameters, initOverrides);
|
|
7850
7919
|
}
|
|
7920
|
+
/**
|
|
7921
|
+
* Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
|
|
7922
|
+
* Sign an Aleo function-call request with a WAAS wallet
|
|
7923
|
+
*/
|
|
7924
|
+
async signAleoRequestRaw(requestParameters, initOverrides) {
|
|
7925
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7926
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequest.');
|
|
7927
|
+
}
|
|
7928
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7929
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequest.');
|
|
7930
|
+
}
|
|
7931
|
+
if (requestParameters.signAleoRequestWithWaasRequest === null || requestParameters.signAleoRequestWithWaasRequest === undefined) {
|
|
7932
|
+
throw new RequiredError('signAleoRequestWithWaasRequest', 'Required parameter requestParameters.signAleoRequestWithWaasRequest was null or undefined when calling signAleoRequest.');
|
|
7933
|
+
}
|
|
7934
|
+
const queryParameters = {};
|
|
7935
|
+
const headerParameters = {};
|
|
7936
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7937
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7938
|
+
const token = this.configuration.accessToken;
|
|
7939
|
+
const tokenString = await token("bearerAuth", []);
|
|
7940
|
+
if (tokenString) {
|
|
7941
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7942
|
+
}
|
|
7943
|
+
}
|
|
7944
|
+
const response = await this.request({
|
|
7945
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
7946
|
+
method: 'POST',
|
|
7947
|
+
headers: headerParameters,
|
|
7948
|
+
query: queryParameters,
|
|
7949
|
+
body: SignAleoRequestWithWaasRequestToJSON(requestParameters.signAleoRequestWithWaasRequest),
|
|
7950
|
+
}, initOverrides);
|
|
7951
|
+
return new TextApiResponse(response);
|
|
7952
|
+
}
|
|
7953
|
+
/**
|
|
7954
|
+
* Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
|
|
7955
|
+
* Sign an Aleo function-call request with a WAAS wallet
|
|
7956
|
+
*/
|
|
7957
|
+
async signAleoRequest(requestParameters, initOverrides) {
|
|
7958
|
+
const response = await this.signAleoRequestRaw(requestParameters, initOverrides);
|
|
7959
|
+
return await response.value();
|
|
7960
|
+
}
|
|
7961
|
+
/**
|
|
7962
|
+
* Options call for this endpoint
|
|
7963
|
+
*/
|
|
7964
|
+
async signAleoRequestOptionsRaw(requestParameters, initOverrides) {
|
|
7965
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7966
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequestOptions.');
|
|
7967
|
+
}
|
|
7968
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7969
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequestOptions.');
|
|
7970
|
+
}
|
|
7971
|
+
const queryParameters = {};
|
|
7972
|
+
const headerParameters = {};
|
|
7973
|
+
const response = await this.request({
|
|
7974
|
+
path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
7975
|
+
method: 'OPTIONS',
|
|
7976
|
+
headers: headerParameters,
|
|
7977
|
+
query: queryParameters,
|
|
7978
|
+
}, initOverrides);
|
|
7979
|
+
return new VoidApiResponse(response);
|
|
7980
|
+
}
|
|
7981
|
+
/**
|
|
7982
|
+
* Options call for this endpoint
|
|
7983
|
+
*/
|
|
7984
|
+
async signAleoRequestOptions(requestParameters, initOverrides) {
|
|
7985
|
+
await this.signAleoRequestOptionsRaw(requestParameters, initOverrides);
|
|
7986
|
+
}
|
|
7851
7987
|
/**
|
|
7852
7988
|
* Verifies the email code and authenticates the user, returning a JWT.
|
|
7853
7989
|
* Verify email and sign in
|
package/src/index.cjs
CHANGED
|
@@ -264,6 +264,7 @@ var ExchangeTransaction = require('./models/ExchangeTransaction.cjs');
|
|
|
264
264
|
var ExchangeTransferResponse = require('./models/ExchangeTransferResponse.cjs');
|
|
265
265
|
var ExchangeUpdateRequest = require('./models/ExchangeUpdateRequest.cjs');
|
|
266
266
|
var Export = require('./models/Export.cjs');
|
|
267
|
+
var ExportAleoViewKeyRequest = require('./models/ExportAleoViewKeyRequest.cjs');
|
|
267
268
|
var ExportCreateRequest = require('./models/ExportCreateRequest.cjs');
|
|
268
269
|
var ExportEmbeddedWalletResponse = require('./models/ExportEmbeddedWalletResponse.cjs');
|
|
269
270
|
var ExportFormatEnum = require('./models/ExportFormatEnum.cjs');
|
|
@@ -551,6 +552,7 @@ var SessionsResponse = require('./models/SessionsResponse.cjs');
|
|
|
551
552
|
var SessionsTrendResult = require('./models/SessionsTrendResult.cjs');
|
|
552
553
|
var SettlementConfigInput = require('./models/SettlementConfigInput.cjs');
|
|
553
554
|
var SettlementStrategyEnum = require('./models/SettlementStrategyEnum.cjs');
|
|
555
|
+
var SignAleoRequestWithWaasRequest = require('./models/SignAleoRequestWithWaasRequest.cjs');
|
|
554
556
|
var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
|
|
555
557
|
var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
|
|
556
558
|
var SignMessageBtcTransaction = require('./models/SignMessageBtcTransaction.cjs');
|
|
@@ -1645,6 +1647,9 @@ exports.ExchangeUpdateRequestToJSON = ExchangeUpdateRequest.ExchangeUpdateReques
|
|
|
1645
1647
|
exports.ExportFromJSON = Export.ExportFromJSON;
|
|
1646
1648
|
exports.ExportFromJSONTyped = Export.ExportFromJSONTyped;
|
|
1647
1649
|
exports.ExportToJSON = Export.ExportToJSON;
|
|
1650
|
+
exports.ExportAleoViewKeyRequestFromJSON = ExportAleoViewKeyRequest.ExportAleoViewKeyRequestFromJSON;
|
|
1651
|
+
exports.ExportAleoViewKeyRequestFromJSONTyped = ExportAleoViewKeyRequest.ExportAleoViewKeyRequestFromJSONTyped;
|
|
1652
|
+
exports.ExportAleoViewKeyRequestToJSON = ExportAleoViewKeyRequest.ExportAleoViewKeyRequestToJSON;
|
|
1648
1653
|
exports.ExportCreateRequestFromJSON = ExportCreateRequest.ExportCreateRequestFromJSON;
|
|
1649
1654
|
exports.ExportCreateRequestFromJSONTyped = ExportCreateRequest.ExportCreateRequestFromJSONTyped;
|
|
1650
1655
|
exports.ExportCreateRequestToJSON = ExportCreateRequest.ExportCreateRequestToJSON;
|
|
@@ -2686,6 +2691,9 @@ Object.defineProperty(exports, 'SettlementStrategyEnum', {
|
|
|
2686
2691
|
exports.SettlementStrategyEnumFromJSON = SettlementStrategyEnum.SettlementStrategyEnumFromJSON;
|
|
2687
2692
|
exports.SettlementStrategyEnumFromJSONTyped = SettlementStrategyEnum.SettlementStrategyEnumFromJSONTyped;
|
|
2688
2693
|
exports.SettlementStrategyEnumToJSON = SettlementStrategyEnum.SettlementStrategyEnumToJSON;
|
|
2694
|
+
exports.SignAleoRequestWithWaasRequestFromJSON = SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestFromJSON;
|
|
2695
|
+
exports.SignAleoRequestWithWaasRequestFromJSONTyped = SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestFromJSONTyped;
|
|
2696
|
+
exports.SignAleoRequestWithWaasRequestToJSON = SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestToJSON;
|
|
2689
2697
|
Object.defineProperty(exports, 'SignInProviderEnum', {
|
|
2690
2698
|
enumerable: true,
|
|
2691
2699
|
get: function () { return SignInProviderEnum.SignInProviderEnum; }
|
package/src/index.js
CHANGED
|
@@ -260,6 +260,7 @@ export { ExchangeTransactionFromJSON, ExchangeTransactionFromJSONTyped, Exchange
|
|
|
260
260
|
export { ExchangeTransferResponseFromJSON, ExchangeTransferResponseFromJSONTyped, ExchangeTransferResponseToJSON } from './models/ExchangeTransferResponse.js';
|
|
261
261
|
export { ExchangeUpdateRequestFromJSON, ExchangeUpdateRequestFromJSONTyped, ExchangeUpdateRequestToJSON } from './models/ExchangeUpdateRequest.js';
|
|
262
262
|
export { ExportFromJSON, ExportFromJSONTyped, ExportToJSON } from './models/Export.js';
|
|
263
|
+
export { ExportAleoViewKeyRequestFromJSON, ExportAleoViewKeyRequestFromJSONTyped, ExportAleoViewKeyRequestToJSON } from './models/ExportAleoViewKeyRequest.js';
|
|
263
264
|
export { ExportCreateRequestFromJSON, ExportCreateRequestFromJSONTyped, ExportCreateRequestToJSON } from './models/ExportCreateRequest.js';
|
|
264
265
|
export { ExportEmbeddedWalletResponseFromJSON, ExportEmbeddedWalletResponseFromJSONTyped, ExportEmbeddedWalletResponseToJSON } from './models/ExportEmbeddedWalletResponse.js';
|
|
265
266
|
export { ExportFormatEnum, ExportFormatEnumFromJSON, ExportFormatEnumFromJSONTyped, ExportFormatEnumToJSON } from './models/ExportFormatEnum.js';
|
|
@@ -547,6 +548,7 @@ export { SessionsResponseFromJSON, SessionsResponseFromJSONTyped, SessionsRespon
|
|
|
547
548
|
export { SessionsTrendResultFromJSON, SessionsTrendResultFromJSONTyped, SessionsTrendResultToJSON } from './models/SessionsTrendResult.js';
|
|
548
549
|
export { SettlementConfigInputFromJSON, SettlementConfigInputFromJSONTyped, SettlementConfigInputToJSON } from './models/SettlementConfigInput.js';
|
|
549
550
|
export { SettlementStrategyEnum, SettlementStrategyEnumFromJSON, SettlementStrategyEnumFromJSONTyped, SettlementStrategyEnumToJSON } from './models/SettlementStrategyEnum.js';
|
|
551
|
+
export { SignAleoRequestWithWaasRequestFromJSON, SignAleoRequestWithWaasRequestFromJSONTyped, SignAleoRequestWithWaasRequestToJSON } from './models/SignAleoRequestWithWaasRequest.js';
|
|
550
552
|
export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
|
|
551
553
|
export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
|
|
552
554
|
export { SignMessageBtcTransactionFromJSON, SignMessageBtcTransactionFromJSONTyped, SignMessageBtcTransactionToJSON } from './models/SignMessageBtcTransaction.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
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 ExportAleoViewKeyRequestFromJSON(json) {
|
|
19
|
+
return ExportAleoViewKeyRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function ExportAleoViewKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'exportId': json['exportId'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function ExportAleoViewKeyRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'exportId': value.exportId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.ExportAleoViewKeyRequestFromJSON = ExportAleoViewKeyRequestFromJSON;
|
|
42
|
+
exports.ExportAleoViewKeyRequestFromJSONTyped = ExportAleoViewKeyRequestFromJSONTyped;
|
|
43
|
+
exports.ExportAleoViewKeyRequestToJSON = ExportAleoViewKeyRequestToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 ExportAleoViewKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportAleoViewKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the view-key export session
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExportAleoViewKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
exportId: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function ExportAleoViewKeyRequestFromJSON(json: any): ExportAleoViewKeyRequest;
|
|
26
|
+
export declare function ExportAleoViewKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportAleoViewKeyRequest;
|
|
27
|
+
export declare function ExportAleoViewKeyRequestToJSON(value?: ExportAleoViewKeyRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 ExportAleoViewKeyRequestFromJSON(json) {
|
|
15
|
+
return ExportAleoViewKeyRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function ExportAleoViewKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'exportId': json['exportId'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function ExportAleoViewKeyRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'exportId': value.exportId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { ExportAleoViewKeyRequestFromJSON, ExportAleoViewKeyRequestFromJSONTyped, ExportAleoViewKeyRequestToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
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 SignAleoRequestWithWaasRequestFromJSON(json) {
|
|
19
|
+
return SignAleoRequestWithWaasRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function SignAleoRequestWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'payload': json['payload'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function SignAleoRequestWithWaasRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'payload': value.payload,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.SignAleoRequestWithWaasRequestFromJSON = SignAleoRequestWithWaasRequestFromJSON;
|
|
42
|
+
exports.SignAleoRequestWithWaasRequestFromJSONTyped = SignAleoRequestWithWaasRequestFromJSONTyped;
|
|
43
|
+
exports.SignAleoRequestWithWaasRequestToJSON = SignAleoRequestWithWaasRequestToJSON;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 SignAleoRequestWithWaasRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SignAleoRequestWithWaasRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Aleo EdBls12377 sign request payload (function_id, is_root, program_checksum, inputs)
|
|
20
|
+
* @type {{ [key: string]: object; }}
|
|
21
|
+
* @memberof SignAleoRequestWithWaasRequest
|
|
22
|
+
*/
|
|
23
|
+
payload: {
|
|
24
|
+
[key: string]: object;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function SignAleoRequestWithWaasRequestFromJSON(json: any): SignAleoRequestWithWaasRequest;
|
|
28
|
+
export declare function SignAleoRequestWithWaasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignAleoRequestWithWaasRequest;
|
|
29
|
+
export declare function SignAleoRequestWithWaasRequestToJSON(value?: SignAleoRequestWithWaasRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 SignAleoRequestWithWaasRequestFromJSON(json) {
|
|
15
|
+
return SignAleoRequestWithWaasRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function SignAleoRequestWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'payload': json['payload'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function SignAleoRequestWithWaasRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'payload': value.payload,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { SignAleoRequestWithWaasRequestFromJSON, SignAleoRequestWithWaasRequestFromJSONTyped, SignAleoRequestWithWaasRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ export * from './ExchangeTransaction';
|
|
|
218
218
|
export * from './ExchangeTransferResponse';
|
|
219
219
|
export * from './ExchangeUpdateRequest';
|
|
220
220
|
export * from './Export';
|
|
221
|
+
export * from './ExportAleoViewKeyRequest';
|
|
221
222
|
export * from './ExportCreateRequest';
|
|
222
223
|
export * from './ExportEmbeddedWalletResponse';
|
|
223
224
|
export * from './ExportFormatEnum';
|
|
@@ -505,6 +506,7 @@ export * from './SessionsResponse';
|
|
|
505
506
|
export * from './SessionsTrendResult';
|
|
506
507
|
export * from './SettlementConfigInput';
|
|
507
508
|
export * from './SettlementStrategyEnum';
|
|
509
|
+
export * from './SignAleoRequestWithWaasRequest';
|
|
508
510
|
export * from './SignInProviderEnum';
|
|
509
511
|
export * from './SignMessageAuthorizationSignature';
|
|
510
512
|
export * from './SignMessageBtcTransaction';
|