@dynamic-labs/sdk-api-core 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.963",
3
+ "version": "0.0.964",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -96,6 +96,7 @@ require('../models/EnvironmentEnum.cjs');
96
96
  require('../models/ExchangeKeyEnum.cjs');
97
97
  var ExchangeTransaction = require('../models/ExchangeTransaction.cjs');
98
98
  var ExchangeTransferResponse = require('../models/ExchangeTransferResponse.cjs');
99
+ var ExportAleoViewKeyRequest = require('../models/ExportAleoViewKeyRequest.cjs');
99
100
  var ExportEmbeddedWalletResponse = require('../models/ExportEmbeddedWalletResponse.cjs');
100
101
  var ExportWaasWalletPrivateKeyRequest = require('../models/ExportWaasWalletPrivateKeyRequest.cjs');
101
102
  var ExternalAuthAssertionResponse = require('../models/ExternalAuthAssertionResponse.cjs');
@@ -201,6 +202,7 @@ var ScanWebsiteUrlRequest = require('../models/ScanWebsiteUrlRequest.cjs');
201
202
  var ScanWebsiteUrlResponse = require('../models/ScanWebsiteUrlResponse.cjs');
202
203
  require('../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.cjs');
203
204
  var SdkSettingsRequest = require('../models/SdkSettingsRequest.cjs');
205
+ var SignAleoRequestWithWaasRequest = require('../models/SignAleoRequestWithWaasRequest.cjs');
204
206
  var SignMessageWithWaasRequest = require('../models/SignMessageWithWaasRequest.cjs');
205
207
  var SimulateEVMTransactionRequest = require('../models/SimulateEVMTransactionRequest.cjs');
206
208
  var SimulateSVMTransactionRequest = require('../models/SimulateSVMTransactionRequest.cjs');
@@ -2516,6 +2518,73 @@ class SDKApi extends runtime.BaseAPI {
2516
2518
  async eventsOptions(requestParameters, initOverrides) {
2517
2519
  await this.eventsOptionsRaw(requestParameters, initOverrides);
2518
2520
  }
2521
+ /**
2522
+ * Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
2523
+ * Export an Aleo wallet view key
2524
+ */
2525
+ async exportAleoViewKeyRaw(requestParameters, initOverrides) {
2526
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2527
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKey.');
2528
+ }
2529
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2530
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKey.');
2531
+ }
2532
+ if (requestParameters.exportAleoViewKeyRequest === null || requestParameters.exportAleoViewKeyRequest === undefined) {
2533
+ throw new runtime.RequiredError('exportAleoViewKeyRequest', 'Required parameter requestParameters.exportAleoViewKeyRequest was null or undefined when calling exportAleoViewKey.');
2534
+ }
2535
+ const queryParameters = {};
2536
+ const headerParameters = {};
2537
+ headerParameters['Content-Type'] = 'application/json';
2538
+ if (this.configuration && this.configuration.accessToken) {
2539
+ const token = this.configuration.accessToken;
2540
+ const tokenString = await token("bearerAuth", []);
2541
+ if (tokenString) {
2542
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2543
+ }
2544
+ }
2545
+ const response = await this.request({
2546
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2547
+ method: 'POST',
2548
+ headers: headerParameters,
2549
+ query: queryParameters,
2550
+ body: ExportAleoViewKeyRequest.ExportAleoViewKeyRequestToJSON(requestParameters.exportAleoViewKeyRequest),
2551
+ }, initOverrides);
2552
+ return new runtime.TextApiResponse(response);
2553
+ }
2554
+ /**
2555
+ * Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
2556
+ * Export an Aleo wallet view key
2557
+ */
2558
+ async exportAleoViewKey(requestParameters, initOverrides) {
2559
+ const response = await this.exportAleoViewKeyRaw(requestParameters, initOverrides);
2560
+ return await response.value();
2561
+ }
2562
+ /**
2563
+ * Options call for this endpoint
2564
+ */
2565
+ async exportAleoViewKeyOptionsRaw(requestParameters, initOverrides) {
2566
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2567
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKeyOptions.');
2568
+ }
2569
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2570
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKeyOptions.');
2571
+ }
2572
+ const queryParameters = {};
2573
+ const headerParameters = {};
2574
+ const response = await this.request({
2575
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2576
+ method: 'OPTIONS',
2577
+ headers: headerParameters,
2578
+ query: queryParameters,
2579
+ }, initOverrides);
2580
+ return new runtime.VoidApiResponse(response);
2581
+ }
2582
+ /**
2583
+ * Options call for this endpoint
2584
+ */
2585
+ async exportAleoViewKeyOptions(requestParameters, initOverrides) {
2586
+ await this.exportAleoViewKeyOptionsRaw(requestParameters, initOverrides);
2587
+ }
2519
2588
  /**
2520
2589
  * Exports the private key of a WAAS wallet through an MPC ceremony.
2521
2590
  * Export a WAAS wallet private key
@@ -7750,6 +7819,73 @@ class SDKApi extends runtime.BaseAPI {
7750
7819
  async settingsOptions(requestParameters, initOverrides) {
7751
7820
  await this.settingsOptionsRaw(requestParameters, initOverrides);
7752
7821
  }
7822
+ /**
7823
+ * Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
7824
+ * Sign an Aleo function-call request with a WAAS wallet
7825
+ */
7826
+ async signAleoRequestRaw(requestParameters, initOverrides) {
7827
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7828
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequest.');
7829
+ }
7830
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
7831
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequest.');
7832
+ }
7833
+ if (requestParameters.signAleoRequestWithWaasRequest === null || requestParameters.signAleoRequestWithWaasRequest === undefined) {
7834
+ throw new runtime.RequiredError('signAleoRequestWithWaasRequest', 'Required parameter requestParameters.signAleoRequestWithWaasRequest was null or undefined when calling signAleoRequest.');
7835
+ }
7836
+ const queryParameters = {};
7837
+ const headerParameters = {};
7838
+ headerParameters['Content-Type'] = 'application/json';
7839
+ if (this.configuration && this.configuration.accessToken) {
7840
+ const token = this.configuration.accessToken;
7841
+ const tokenString = await token("bearerAuth", []);
7842
+ if (tokenString) {
7843
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
7844
+ }
7845
+ }
7846
+ const response = await this.request({
7847
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
7848
+ method: 'POST',
7849
+ headers: headerParameters,
7850
+ query: queryParameters,
7851
+ body: SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestToJSON(requestParameters.signAleoRequestWithWaasRequest),
7852
+ }, initOverrides);
7853
+ return new runtime.TextApiResponse(response);
7854
+ }
7855
+ /**
7856
+ * Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
7857
+ * Sign an Aleo function-call request with a WAAS wallet
7858
+ */
7859
+ async signAleoRequest(requestParameters, initOverrides) {
7860
+ const response = await this.signAleoRequestRaw(requestParameters, initOverrides);
7861
+ return await response.value();
7862
+ }
7863
+ /**
7864
+ * Options call for this endpoint
7865
+ */
7866
+ async signAleoRequestOptionsRaw(requestParameters, initOverrides) {
7867
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7868
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequestOptions.');
7869
+ }
7870
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
7871
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequestOptions.');
7872
+ }
7873
+ const queryParameters = {};
7874
+ const headerParameters = {};
7875
+ const response = await this.request({
7876
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
7877
+ method: 'OPTIONS',
7878
+ headers: headerParameters,
7879
+ query: queryParameters,
7880
+ }, initOverrides);
7881
+ return new runtime.VoidApiResponse(response);
7882
+ }
7883
+ /**
7884
+ * Options call for this endpoint
7885
+ */
7886
+ async signAleoRequestOptions(requestParameters, initOverrides) {
7887
+ await this.signAleoRequestOptionsRaw(requestParameters, initOverrides);
7888
+ }
7753
7889
  /**
7754
7890
  * Verifies the email code and authenticates the user, returning a JWT.
7755
7891
  * Verify email and sign in
@@ -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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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;
@@ -979,6 +988,15 @@ export interface SessionKeyOptionsRequest {
979
988
  export interface SettingsOptionsRequest {
980
989
  environmentId: string;
981
990
  }
991
+ export interface SignAleoRequestRequest {
992
+ environmentId: string;
993
+ walletId: string;
994
+ signAleoRequestWithWaasRequest: SignAleoRequestWithWaasRequest;
995
+ }
996
+ export interface SignAleoRequestOptionsRequest {
997
+ environmentId: string;
998
+ walletId: string;
999
+ }
982
1000
  export interface SignInWithEmailVerificationRequest {
983
1001
  environmentId: string;
984
1002
  emailVerificationVerifyRequest: EmailVerificationVerifyRequest;
@@ -1867,6 +1885,24 @@ export declare class SDKApi extends runtime.BaseAPI {
1867
1885
  /**
1868
1886
  */
1869
1887
  eventsOptions(requestParameters: EventsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1888
+ /**
1889
+ * Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
1890
+ * Export an Aleo wallet view key
1891
+ */
1892
+ exportAleoViewKeyRaw(requestParameters: ExportAleoViewKeyOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>;
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
+ exportAleoViewKey(requestParameters: ExportAleoViewKeyOperationRequest, initOverrides?: RequestInit): Promise<string>;
1898
+ /**
1899
+ * Options call for this endpoint
1900
+ */
1901
+ exportAleoViewKeyOptionsRaw(requestParameters: ExportAleoViewKeyOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1902
+ /**
1903
+ * Options call for this endpoint
1904
+ */
1905
+ exportAleoViewKeyOptions(requestParameters: ExportAleoViewKeyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1870
1906
  /**
1871
1907
  * Exports the private key of a WAAS wallet through an MPC ceremony.
1872
1908
  * Export a WAAS wallet private key
@@ -3439,6 +3475,24 @@ export declare class SDKApi extends runtime.BaseAPI {
3439
3475
  * Options call for this endpoint
3440
3476
  */
3441
3477
  settingsOptions(requestParameters: SettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3478
+ /**
3479
+ * Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
3480
+ * Sign an Aleo function-call request with a WAAS wallet
3481
+ */
3482
+ signAleoRequestRaw(requestParameters: SignAleoRequestRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>;
3483
+ /**
3484
+ * Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
3485
+ * Sign an Aleo function-call request with a WAAS wallet
3486
+ */
3487
+ signAleoRequest(requestParameters: SignAleoRequestRequest, initOverrides?: RequestInit): Promise<string>;
3488
+ /**
3489
+ * Options call for this endpoint
3490
+ */
3491
+ signAleoRequestOptionsRaw(requestParameters: SignAleoRequestOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3492
+ /**
3493
+ * Options call for this endpoint
3494
+ */
3495
+ signAleoRequestOptions(requestParameters: SignAleoRequestOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3442
3496
  /**
3443
3497
  * Verifies the email code and authenticates the user, returning a JWT.
3444
3498
  * Verify email and sign in
@@ -92,6 +92,7 @@ import '../models/EnvironmentEnum.js';
92
92
  import '../models/ExchangeKeyEnum.js';
93
93
  import { ExchangeTransactionFromJSON } from '../models/ExchangeTransaction.js';
94
94
  import { ExchangeTransferResponseFromJSON } from '../models/ExchangeTransferResponse.js';
95
+ import { ExportAleoViewKeyRequestToJSON } from '../models/ExportAleoViewKeyRequest.js';
95
96
  import { ExportEmbeddedWalletResponseFromJSON } from '../models/ExportEmbeddedWalletResponse.js';
96
97
  import { ExportWaasWalletPrivateKeyRequestToJSON } from '../models/ExportWaasWalletPrivateKeyRequest.js';
97
98
  import { ExternalAuthAssertionResponseFromJSON } from '../models/ExternalAuthAssertionResponse.js';
@@ -197,6 +198,7 @@ import { ScanWebsiteUrlRequestToJSON } from '../models/ScanWebsiteUrlRequest.js'
197
198
  import { ScanWebsiteUrlResponseFromJSON } from '../models/ScanWebsiteUrlResponse.js';
198
199
  import '../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js';
199
200
  import { SdkSettingsRequestToJSON } from '../models/SdkSettingsRequest.js';
201
+ import { SignAleoRequestWithWaasRequestToJSON } from '../models/SignAleoRequestWithWaasRequest.js';
200
202
  import { SignMessageWithWaasRequestToJSON } from '../models/SignMessageWithWaasRequest.js';
201
203
  import { SimulateEVMTransactionRequestToJSON } from '../models/SimulateEVMTransactionRequest.js';
202
204
  import { SimulateSVMTransactionRequestToJSON } from '../models/SimulateSVMTransactionRequest.js';
@@ -2512,6 +2514,73 @@ class SDKApi extends BaseAPI {
2512
2514
  async eventsOptions(requestParameters, initOverrides) {
2513
2515
  await this.eventsOptionsRaw(requestParameters, initOverrides);
2514
2516
  }
2517
+ /**
2518
+ * Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
2519
+ * Export an Aleo wallet view key
2520
+ */
2521
+ async exportAleoViewKeyRaw(requestParameters, initOverrides) {
2522
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2523
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKey.');
2524
+ }
2525
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2526
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKey.');
2527
+ }
2528
+ if (requestParameters.exportAleoViewKeyRequest === null || requestParameters.exportAleoViewKeyRequest === undefined) {
2529
+ throw new RequiredError('exportAleoViewKeyRequest', 'Required parameter requestParameters.exportAleoViewKeyRequest was null or undefined when calling exportAleoViewKey.');
2530
+ }
2531
+ const queryParameters = {};
2532
+ const headerParameters = {};
2533
+ headerParameters['Content-Type'] = 'application/json';
2534
+ if (this.configuration && this.configuration.accessToken) {
2535
+ const token = this.configuration.accessToken;
2536
+ const tokenString = await token("bearerAuth", []);
2537
+ if (tokenString) {
2538
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2539
+ }
2540
+ }
2541
+ const response = await this.request({
2542
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/viewKey/export`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2543
+ method: 'POST',
2544
+ headers: headerParameters,
2545
+ query: queryParameters,
2546
+ body: ExportAleoViewKeyRequestToJSON(requestParameters.exportAleoViewKeyRequest),
2547
+ }, initOverrides);
2548
+ return new TextApiResponse(response);
2549
+ }
2550
+ /**
2551
+ * Runs the Aleo view-key export ceremony. The view key is delivered to the initiating client (iframe) via Sodot\'s relay.
2552
+ * Export an Aleo wallet view key
2553
+ */
2554
+ async exportAleoViewKey(requestParameters, initOverrides) {
2555
+ const response = await this.exportAleoViewKeyRaw(requestParameters, initOverrides);
2556
+ return await response.value();
2557
+ }
2558
+ /**
2559
+ * Options call for this endpoint
2560
+ */
2561
+ async exportAleoViewKeyOptionsRaw(requestParameters, initOverrides) {
2562
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2563
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling exportAleoViewKeyOptions.');
2564
+ }
2565
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2566
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling exportAleoViewKeyOptions.');
2567
+ }
2568
+ const queryParameters = {};
2569
+ const headerParameters = {};
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: 'OPTIONS',
2573
+ headers: headerParameters,
2574
+ query: queryParameters,
2575
+ }, initOverrides);
2576
+ return new VoidApiResponse(response);
2577
+ }
2578
+ /**
2579
+ * Options call for this endpoint
2580
+ */
2581
+ async exportAleoViewKeyOptions(requestParameters, initOverrides) {
2582
+ await this.exportAleoViewKeyOptionsRaw(requestParameters, initOverrides);
2583
+ }
2515
2584
  /**
2516
2585
  * Exports the private key of a WAAS wallet through an MPC ceremony.
2517
2586
  * Export a WAAS wallet private key
@@ -7746,6 +7815,73 @@ class SDKApi extends BaseAPI {
7746
7815
  async settingsOptions(requestParameters, initOverrides) {
7747
7816
  await this.settingsOptionsRaw(requestParameters, initOverrides);
7748
7817
  }
7818
+ /**
7819
+ * Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
7820
+ * Sign an Aleo function-call request with a WAAS wallet
7821
+ */
7822
+ async signAleoRequestRaw(requestParameters, initOverrides) {
7823
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7824
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequest.');
7825
+ }
7826
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
7827
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequest.');
7828
+ }
7829
+ if (requestParameters.signAleoRequestWithWaasRequest === null || requestParameters.signAleoRequestWithWaasRequest === undefined) {
7830
+ throw new RequiredError('signAleoRequestWithWaasRequest', 'Required parameter requestParameters.signAleoRequestWithWaasRequest was null or undefined when calling signAleoRequest.');
7831
+ }
7832
+ const queryParameters = {};
7833
+ const headerParameters = {};
7834
+ headerParameters['Content-Type'] = 'application/json';
7835
+ if (this.configuration && this.configuration.accessToken) {
7836
+ const token = this.configuration.accessToken;
7837
+ const tokenString = await token("bearerAuth", []);
7838
+ if (tokenString) {
7839
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
7840
+ }
7841
+ }
7842
+ const response = await this.request({
7843
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
7844
+ method: 'POST',
7845
+ headers: headerParameters,
7846
+ query: queryParameters,
7847
+ body: SignAleoRequestWithWaasRequestToJSON(requestParameters.signAleoRequestWithWaasRequest),
7848
+ }, initOverrides);
7849
+ return new TextApiResponse(response);
7850
+ }
7851
+ /**
7852
+ * Signs an Aleo EdBls12377 sign request payload using the specified WAAS wallet through an MPC ceremony.
7853
+ * Sign an Aleo function-call request with a WAAS wallet
7854
+ */
7855
+ async signAleoRequest(requestParameters, initOverrides) {
7856
+ const response = await this.signAleoRequestRaw(requestParameters, initOverrides);
7857
+ return await response.value();
7858
+ }
7859
+ /**
7860
+ * Options call for this endpoint
7861
+ */
7862
+ async signAleoRequestOptionsRaw(requestParameters, initOverrides) {
7863
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7864
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signAleoRequestOptions.');
7865
+ }
7866
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
7867
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signAleoRequestOptions.');
7868
+ }
7869
+ const queryParameters = {};
7870
+ const headerParameters = {};
7871
+ const response = await this.request({
7872
+ path: `/sdk/{environmentId}/waas/{walletId}/aleo/signRequest`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
7873
+ method: 'OPTIONS',
7874
+ headers: headerParameters,
7875
+ query: queryParameters,
7876
+ }, initOverrides);
7877
+ return new VoidApiResponse(response);
7878
+ }
7879
+ /**
7880
+ * Options call for this endpoint
7881
+ */
7882
+ async signAleoRequestOptions(requestParameters, initOverrides) {
7883
+ await this.signAleoRequestOptionsRaw(requestParameters, initOverrides);
7884
+ }
7749
7885
  /**
7750
7886
  * Verifies the email code and authenticates the user, returning a JWT.
7751
7887
  * Verify email and sign in
package/src/index.cjs CHANGED
@@ -139,6 +139,7 @@ var ExchangeKeyEnum = require('./models/ExchangeKeyEnum.cjs');
139
139
  var ExchangeOption = require('./models/ExchangeOption.cjs');
140
140
  var ExchangeTransaction = require('./models/ExchangeTransaction.cjs');
141
141
  var ExchangeTransferResponse = require('./models/ExchangeTransferResponse.cjs');
142
+ var ExportAleoViewKeyRequest = require('./models/ExportAleoViewKeyRequest.cjs');
142
143
  var ExportEmbeddedWalletResponse = require('./models/ExportEmbeddedWalletResponse.cjs');
143
144
  var ExportWaasWalletPrivateKeyRequest = require('./models/ExportWaasWalletPrivateKeyRequest.cjs');
144
145
  var ExternalAuth = require('./models/ExternalAuth.cjs');
@@ -344,6 +345,7 @@ var SdkViewsResponse = require('./models/SdkViewsResponse.cjs');
344
345
  var SecurityNotifications = require('./models/SecurityNotifications.cjs');
345
346
  var SettlementConfigInput = require('./models/SettlementConfigInput.cjs');
346
347
  var SettlementStrategyEnum = require('./models/SettlementStrategyEnum.cjs');
348
+ var SignAleoRequestWithWaasRequest = require('./models/SignAleoRequestWithWaasRequest.cjs');
347
349
  var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
348
350
  var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
349
351
  var SignMessageBtcTransaction = require('./models/SignMessageBtcTransaction.cjs');
@@ -1029,6 +1031,9 @@ exports.ExchangeTransactionToJSON = ExchangeTransaction.ExchangeTransactionToJSO
1029
1031
  exports.ExchangeTransferResponseFromJSON = ExchangeTransferResponse.ExchangeTransferResponseFromJSON;
1030
1032
  exports.ExchangeTransferResponseFromJSONTyped = ExchangeTransferResponse.ExchangeTransferResponseFromJSONTyped;
1031
1033
  exports.ExchangeTransferResponseToJSON = ExchangeTransferResponse.ExchangeTransferResponseToJSON;
1034
+ exports.ExportAleoViewKeyRequestFromJSON = ExportAleoViewKeyRequest.ExportAleoViewKeyRequestFromJSON;
1035
+ exports.ExportAleoViewKeyRequestFromJSONTyped = ExportAleoViewKeyRequest.ExportAleoViewKeyRequestFromJSONTyped;
1036
+ exports.ExportAleoViewKeyRequestToJSON = ExportAleoViewKeyRequest.ExportAleoViewKeyRequestToJSON;
1032
1037
  exports.ExportEmbeddedWalletResponseFromJSON = ExportEmbeddedWalletResponse.ExportEmbeddedWalletResponseFromJSON;
1033
1038
  exports.ExportEmbeddedWalletResponseFromJSONTyped = ExportEmbeddedWalletResponse.ExportEmbeddedWalletResponseFromJSONTyped;
1034
1039
  exports.ExportEmbeddedWalletResponseToJSON = ExportEmbeddedWalletResponse.ExportEmbeddedWalletResponseToJSON;
@@ -1800,6 +1805,9 @@ Object.defineProperty(exports, 'SettlementStrategyEnum', {
1800
1805
  exports.SettlementStrategyEnumFromJSON = SettlementStrategyEnum.SettlementStrategyEnumFromJSON;
1801
1806
  exports.SettlementStrategyEnumFromJSONTyped = SettlementStrategyEnum.SettlementStrategyEnumFromJSONTyped;
1802
1807
  exports.SettlementStrategyEnumToJSON = SettlementStrategyEnum.SettlementStrategyEnumToJSON;
1808
+ exports.SignAleoRequestWithWaasRequestFromJSON = SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestFromJSON;
1809
+ exports.SignAleoRequestWithWaasRequestFromJSONTyped = SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestFromJSONTyped;
1810
+ exports.SignAleoRequestWithWaasRequestToJSON = SignAleoRequestWithWaasRequest.SignAleoRequestWithWaasRequestToJSON;
1803
1811
  Object.defineProperty(exports, 'SignInProviderEnum', {
1804
1812
  enumerable: true,
1805
1813
  get: function () { return SignInProviderEnum.SignInProviderEnum; }
package/src/index.js CHANGED
@@ -135,6 +135,7 @@ export { ExchangeKeyEnum, ExchangeKeyEnumFromJSON, ExchangeKeyEnumFromJSONTyped,
135
135
  export { ExchangeOptionFromJSON, ExchangeOptionFromJSONTyped, ExchangeOptionToJSON } from './models/ExchangeOption.js';
136
136
  export { ExchangeTransactionFromJSON, ExchangeTransactionFromJSONTyped, ExchangeTransactionToJSON } from './models/ExchangeTransaction.js';
137
137
  export { ExchangeTransferResponseFromJSON, ExchangeTransferResponseFromJSONTyped, ExchangeTransferResponseToJSON } from './models/ExchangeTransferResponse.js';
138
+ export { ExportAleoViewKeyRequestFromJSON, ExportAleoViewKeyRequestFromJSONTyped, ExportAleoViewKeyRequestToJSON } from './models/ExportAleoViewKeyRequest.js';
138
139
  export { ExportEmbeddedWalletResponseFromJSON, ExportEmbeddedWalletResponseFromJSONTyped, ExportEmbeddedWalletResponseToJSON } from './models/ExportEmbeddedWalletResponse.js';
139
140
  export { ExportWaasWalletPrivateKeyRequestFromJSON, ExportWaasWalletPrivateKeyRequestFromJSONTyped, ExportWaasWalletPrivateKeyRequestToJSON } from './models/ExportWaasWalletPrivateKeyRequest.js';
140
141
  export { ExternalAuthFromJSON, ExternalAuthFromJSONTyped, ExternalAuthToJSON } from './models/ExternalAuth.js';
@@ -340,6 +341,7 @@ export { SdkViewsResponseFromJSON, SdkViewsResponseFromJSONTyped, SdkViewsRespon
340
341
  export { SecurityNotificationsFromJSON, SecurityNotificationsFromJSONTyped, SecurityNotificationsToJSON } from './models/SecurityNotifications.js';
341
342
  export { SettlementConfigInputFromJSON, SettlementConfigInputFromJSONTyped, SettlementConfigInputToJSON } from './models/SettlementConfigInput.js';
342
343
  export { SettlementStrategyEnum, SettlementStrategyEnumFromJSON, SettlementStrategyEnumFromJSONTyped, SettlementStrategyEnumToJSON } from './models/SettlementStrategyEnum.js';
344
+ export { SignAleoRequestWithWaasRequestFromJSON, SignAleoRequestWithWaasRequestFromJSONTyped, SignAleoRequestWithWaasRequestToJSON } from './models/SignAleoRequestWithWaasRequest.js';
343
345
  export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
344
346
  export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
345
347
  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 };
@@ -132,6 +132,7 @@ export * from './ExchangeKeyEnum';
132
132
  export * from './ExchangeOption';
133
133
  export * from './ExchangeTransaction';
134
134
  export * from './ExchangeTransferResponse';
135
+ export * from './ExportAleoViewKeyRequest';
135
136
  export * from './ExportEmbeddedWalletResponse';
136
137
  export * from './ExportWaasWalletPrivateKeyRequest';
137
138
  export * from './ExternalAuth';
@@ -337,6 +338,7 @@ export * from './SdkViewsResponse';
337
338
  export * from './SecurityNotifications';
338
339
  export * from './SettlementConfigInput';
339
340
  export * from './SettlementStrategyEnum';
341
+ export * from './SignAleoRequestWithWaasRequest';
340
342
  export * from './SignInProviderEnum';
341
343
  export * from './SignMessageAuthorizationSignature';
342
344
  export * from './SignMessageBtcTransaction';