@dynamic-labs/sdk-api-core 0.0.912 → 0.0.914
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 +71 -0
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +71 -0
- package/src/index.cjs +12 -0
- package/src/index.js +3 -0
- package/src/models/Checkout.cjs +0 -2
- package/src/models/Checkout.d.ts +0 -6
- package/src/models/Checkout.js +0 -2
- package/src/models/CheckoutCreateRequest.cjs +0 -2
- package/src/models/CheckoutCreateRequest.d.ts +0 -6
- package/src/models/CheckoutCreateRequest.js +0 -2
- package/src/models/CheckoutUpdateRequest.cjs +0 -2
- package/src/models/CheckoutUpdateRequest.d.ts +0 -6
- package/src/models/CheckoutUpdateRequest.js +0 -2
- package/src/models/StepUpCheckRequest.cjs +33 -0
- package/src/models/StepUpCheckRequest.d.ts +28 -0
- package/src/models/StepUpCheckRequest.js +27 -0
- package/src/models/StepUpCheckResponse.cjs +38 -0
- package/src/models/StepUpCheckResponse.d.ts +40 -0
- package/src/models/StepUpCheckResponse.js +32 -0
- package/src/models/StepUpCredential.cjs +40 -0
- package/src/models/StepUpCredential.d.ts +46 -0
- package/src/models/StepUpCredential.js +34 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -201,6 +201,8 @@ var SponsorSVMTransactionResponse = require('../models/SponsorSVMTransactionResp
|
|
|
201
201
|
require('../models/SsoProviderEnum.cjs');
|
|
202
202
|
var SsoProviderCheckRequest = require('../models/SsoProviderCheckRequest.cjs');
|
|
203
203
|
var SsoProviderCheckResponse = require('../models/SsoProviderCheckResponse.cjs');
|
|
204
|
+
var StepUpCheckRequest = require('../models/StepUpCheckRequest.cjs');
|
|
205
|
+
var StepUpCheckResponse = require('../models/StepUpCheckResponse.cjs');
|
|
204
206
|
var SupportedOfframpsResponse = require('../models/SupportedOfframpsResponse.cjs');
|
|
205
207
|
var SupportedOnrampsResponse = require('../models/SupportedOnrampsResponse.cjs');
|
|
206
208
|
var SwapQuoteRequest = require('../models/SwapQuoteRequest.cjs');
|
|
@@ -8730,6 +8732,75 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8730
8732
|
yield this.sponsorSVMTransactionOptionsRaw(requestParameters, initOverrides);
|
|
8731
8733
|
});
|
|
8732
8734
|
}
|
|
8735
|
+
/**
|
|
8736
|
+
* Returns whether the current user needs to provide an elevated access token for the given scope. The client should default to requiring step-up if this endpoint fails.
|
|
8737
|
+
* Check if step-up authentication is required for a given scope
|
|
8738
|
+
*/
|
|
8739
|
+
stepUpCheckRaw(requestParameters, initOverrides) {
|
|
8740
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8741
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8742
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheck.');
|
|
8743
|
+
}
|
|
8744
|
+
if (requestParameters.stepUpCheckRequest === null || requestParameters.stepUpCheckRequest === undefined) {
|
|
8745
|
+
throw new runtime.RequiredError('stepUpCheckRequest', 'Required parameter requestParameters.stepUpCheckRequest was null or undefined when calling stepUpCheck.');
|
|
8746
|
+
}
|
|
8747
|
+
const queryParameters = {};
|
|
8748
|
+
const headerParameters = {};
|
|
8749
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8750
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8751
|
+
const token = this.configuration.accessToken;
|
|
8752
|
+
const tokenString = yield token("bearerAuth", []);
|
|
8753
|
+
if (tokenString) {
|
|
8754
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8755
|
+
}
|
|
8756
|
+
}
|
|
8757
|
+
const response = yield this.request({
|
|
8758
|
+
path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8759
|
+
method: 'POST',
|
|
8760
|
+
headers: headerParameters,
|
|
8761
|
+
query: queryParameters,
|
|
8762
|
+
body: StepUpCheckRequest.StepUpCheckRequestToJSON(requestParameters.stepUpCheckRequest),
|
|
8763
|
+
}, initOverrides);
|
|
8764
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StepUpCheckResponse.StepUpCheckResponseFromJSON(jsonValue));
|
|
8765
|
+
});
|
|
8766
|
+
}
|
|
8767
|
+
/**
|
|
8768
|
+
* Returns whether the current user needs to provide an elevated access token for the given scope. The client should default to requiring step-up if this endpoint fails.
|
|
8769
|
+
* Check if step-up authentication is required for a given scope
|
|
8770
|
+
*/
|
|
8771
|
+
stepUpCheck(requestParameters, initOverrides) {
|
|
8772
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8773
|
+
const response = yield this.stepUpCheckRaw(requestParameters, initOverrides);
|
|
8774
|
+
return yield response.value();
|
|
8775
|
+
});
|
|
8776
|
+
}
|
|
8777
|
+
/**
|
|
8778
|
+
* Options call for this endpoint
|
|
8779
|
+
*/
|
|
8780
|
+
stepUpCheckOptionsRaw(requestParameters, initOverrides) {
|
|
8781
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8782
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8783
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheckOptions.');
|
|
8784
|
+
}
|
|
8785
|
+
const queryParameters = {};
|
|
8786
|
+
const headerParameters = {};
|
|
8787
|
+
const response = yield this.request({
|
|
8788
|
+
path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8789
|
+
method: 'OPTIONS',
|
|
8790
|
+
headers: headerParameters,
|
|
8791
|
+
query: queryParameters,
|
|
8792
|
+
}, initOverrides);
|
|
8793
|
+
return new runtime.VoidApiResponse(response);
|
|
8794
|
+
});
|
|
8795
|
+
}
|
|
8796
|
+
/**
|
|
8797
|
+
* Options call for this endpoint
|
|
8798
|
+
*/
|
|
8799
|
+
stepUpCheckOptions(requestParameters, initOverrides) {
|
|
8800
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8801
|
+
yield this.stepUpCheckOptionsRaw(requestParameters, initOverrides);
|
|
8802
|
+
});
|
|
8803
|
+
}
|
|
8733
8804
|
/**
|
|
8734
8805
|
* Returns a swap/bridge quote for the given token pair without creating any transaction state. Supports both fromAmount and toAmount (mutually exclusive).
|
|
8735
8806
|
* Generate a swap quote
|
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, InlineObject, 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, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, 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, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, 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, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, 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, 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;
|
|
@@ -984,6 +984,13 @@ export interface SponsorSVMTransactionOperationRequest {
|
|
|
984
984
|
export interface SponsorSVMTransactionOptionsRequest {
|
|
985
985
|
environmentId: string;
|
|
986
986
|
}
|
|
987
|
+
export interface StepUpCheckOperationRequest {
|
|
988
|
+
environmentId: string;
|
|
989
|
+
stepUpCheckRequest: StepUpCheckRequest;
|
|
990
|
+
}
|
|
991
|
+
export interface StepUpCheckOptionsRequest {
|
|
992
|
+
environmentId: string;
|
|
993
|
+
}
|
|
987
994
|
export interface SwapQuoteOperationRequest {
|
|
988
995
|
environmentId: string;
|
|
989
996
|
swapQuoteRequest: SwapQuoteRequest;
|
|
@@ -3383,6 +3390,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3383
3390
|
* Options call for this endpoint
|
|
3384
3391
|
*/
|
|
3385
3392
|
sponsorSVMTransactionOptions(requestParameters: SponsorSVMTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3393
|
+
/**
|
|
3394
|
+
* Returns whether the current user needs to provide an elevated access token for the given scope. The client should default to requiring step-up if this endpoint fails.
|
|
3395
|
+
* Check if step-up authentication is required for a given scope
|
|
3396
|
+
*/
|
|
3397
|
+
stepUpCheckRaw(requestParameters: StepUpCheckOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<StepUpCheckResponse>>;
|
|
3398
|
+
/**
|
|
3399
|
+
* Returns whether the current user needs to provide an elevated access token for the given scope. The client should default to requiring step-up if this endpoint fails.
|
|
3400
|
+
* Check if step-up authentication is required for a given scope
|
|
3401
|
+
*/
|
|
3402
|
+
stepUpCheck(requestParameters: StepUpCheckOperationRequest, initOverrides?: RequestInit): Promise<StepUpCheckResponse>;
|
|
3403
|
+
/**
|
|
3404
|
+
* Options call for this endpoint
|
|
3405
|
+
*/
|
|
3406
|
+
stepUpCheckOptionsRaw(requestParameters: StepUpCheckOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3407
|
+
/**
|
|
3408
|
+
* Options call for this endpoint
|
|
3409
|
+
*/
|
|
3410
|
+
stepUpCheckOptions(requestParameters: StepUpCheckOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3386
3411
|
/**
|
|
3387
3412
|
* Returns a swap/bridge quote for the given token pair without creating any transaction state. Supports both fromAmount and toAmount (mutually exclusive).
|
|
3388
3413
|
* Generate a swap quote
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -197,6 +197,8 @@ import { SponsorSVMTransactionResponseFromJSON } from '../models/SponsorSVMTrans
|
|
|
197
197
|
import '../models/SsoProviderEnum.js';
|
|
198
198
|
import { SsoProviderCheckRequestToJSON } from '../models/SsoProviderCheckRequest.js';
|
|
199
199
|
import { SsoProviderCheckResponseFromJSON } from '../models/SsoProviderCheckResponse.js';
|
|
200
|
+
import { StepUpCheckRequestToJSON } from '../models/StepUpCheckRequest.js';
|
|
201
|
+
import { StepUpCheckResponseFromJSON } from '../models/StepUpCheckResponse.js';
|
|
200
202
|
import { SupportedOfframpsResponseFromJSON } from '../models/SupportedOfframpsResponse.js';
|
|
201
203
|
import { SupportedOnrampsResponseFromJSON } from '../models/SupportedOnrampsResponse.js';
|
|
202
204
|
import { SwapQuoteRequestToJSON } from '../models/SwapQuoteRequest.js';
|
|
@@ -8726,6 +8728,75 @@ class SDKApi extends BaseAPI {
|
|
|
8726
8728
|
yield this.sponsorSVMTransactionOptionsRaw(requestParameters, initOverrides);
|
|
8727
8729
|
});
|
|
8728
8730
|
}
|
|
8731
|
+
/**
|
|
8732
|
+
* Returns whether the current user needs to provide an elevated access token for the given scope. The client should default to requiring step-up if this endpoint fails.
|
|
8733
|
+
* Check if step-up authentication is required for a given scope
|
|
8734
|
+
*/
|
|
8735
|
+
stepUpCheckRaw(requestParameters, initOverrides) {
|
|
8736
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8737
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8738
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheck.');
|
|
8739
|
+
}
|
|
8740
|
+
if (requestParameters.stepUpCheckRequest === null || requestParameters.stepUpCheckRequest === undefined) {
|
|
8741
|
+
throw new RequiredError('stepUpCheckRequest', 'Required parameter requestParameters.stepUpCheckRequest was null or undefined when calling stepUpCheck.');
|
|
8742
|
+
}
|
|
8743
|
+
const queryParameters = {};
|
|
8744
|
+
const headerParameters = {};
|
|
8745
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8746
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8747
|
+
const token = this.configuration.accessToken;
|
|
8748
|
+
const tokenString = yield token("bearerAuth", []);
|
|
8749
|
+
if (tokenString) {
|
|
8750
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8751
|
+
}
|
|
8752
|
+
}
|
|
8753
|
+
const response = yield this.request({
|
|
8754
|
+
path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8755
|
+
method: 'POST',
|
|
8756
|
+
headers: headerParameters,
|
|
8757
|
+
query: queryParameters,
|
|
8758
|
+
body: StepUpCheckRequestToJSON(requestParameters.stepUpCheckRequest),
|
|
8759
|
+
}, initOverrides);
|
|
8760
|
+
return new JSONApiResponse(response, (jsonValue) => StepUpCheckResponseFromJSON(jsonValue));
|
|
8761
|
+
});
|
|
8762
|
+
}
|
|
8763
|
+
/**
|
|
8764
|
+
* Returns whether the current user needs to provide an elevated access token for the given scope. The client should default to requiring step-up if this endpoint fails.
|
|
8765
|
+
* Check if step-up authentication is required for a given scope
|
|
8766
|
+
*/
|
|
8767
|
+
stepUpCheck(requestParameters, initOverrides) {
|
|
8768
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8769
|
+
const response = yield this.stepUpCheckRaw(requestParameters, initOverrides);
|
|
8770
|
+
return yield response.value();
|
|
8771
|
+
});
|
|
8772
|
+
}
|
|
8773
|
+
/**
|
|
8774
|
+
* Options call for this endpoint
|
|
8775
|
+
*/
|
|
8776
|
+
stepUpCheckOptionsRaw(requestParameters, initOverrides) {
|
|
8777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8778
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8779
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheckOptions.');
|
|
8780
|
+
}
|
|
8781
|
+
const queryParameters = {};
|
|
8782
|
+
const headerParameters = {};
|
|
8783
|
+
const response = yield this.request({
|
|
8784
|
+
path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8785
|
+
method: 'OPTIONS',
|
|
8786
|
+
headers: headerParameters,
|
|
8787
|
+
query: queryParameters,
|
|
8788
|
+
}, initOverrides);
|
|
8789
|
+
return new VoidApiResponse(response);
|
|
8790
|
+
});
|
|
8791
|
+
}
|
|
8792
|
+
/**
|
|
8793
|
+
* Options call for this endpoint
|
|
8794
|
+
*/
|
|
8795
|
+
stepUpCheckOptions(requestParameters, initOverrides) {
|
|
8796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8797
|
+
yield this.stepUpCheckOptionsRaw(requestParameters, initOverrides);
|
|
8798
|
+
});
|
|
8799
|
+
}
|
|
8729
8800
|
/**
|
|
8730
8801
|
* Returns a swap/bridge quote for the given token pair without creating any transaction state. Supports both fromAmount and toAmount (mutually exclusive).
|
|
8731
8802
|
* Generate a swap quote
|
package/src/index.cjs
CHANGED
|
@@ -360,6 +360,9 @@ var SsoProvider = require('./models/SsoProvider.cjs');
|
|
|
360
360
|
var SsoProviderCheckRequest = require('./models/SsoProviderCheckRequest.cjs');
|
|
361
361
|
var SsoProviderCheckResponse = require('./models/SsoProviderCheckResponse.cjs');
|
|
362
362
|
var SsoProviderEnum = require('./models/SsoProviderEnum.cjs');
|
|
363
|
+
var StepUpCheckRequest = require('./models/StepUpCheckRequest.cjs');
|
|
364
|
+
var StepUpCheckResponse = require('./models/StepUpCheckResponse.cjs');
|
|
365
|
+
var StepUpCredential = require('./models/StepUpCredential.cjs');
|
|
363
366
|
var SupportedOfframpsResponse = require('./models/SupportedOfframpsResponse.cjs');
|
|
364
367
|
var SupportedOnrampsResponse = require('./models/SupportedOnrampsResponse.cjs');
|
|
365
368
|
var SupportedSecurityMethod = require('./models/SupportedSecurityMethod.cjs');
|
|
@@ -1804,6 +1807,15 @@ Object.defineProperty(exports, 'SsoProviderEnum', {
|
|
|
1804
1807
|
exports.SsoProviderEnumFromJSON = SsoProviderEnum.SsoProviderEnumFromJSON;
|
|
1805
1808
|
exports.SsoProviderEnumFromJSONTyped = SsoProviderEnum.SsoProviderEnumFromJSONTyped;
|
|
1806
1809
|
exports.SsoProviderEnumToJSON = SsoProviderEnum.SsoProviderEnumToJSON;
|
|
1810
|
+
exports.StepUpCheckRequestFromJSON = StepUpCheckRequest.StepUpCheckRequestFromJSON;
|
|
1811
|
+
exports.StepUpCheckRequestFromJSONTyped = StepUpCheckRequest.StepUpCheckRequestFromJSONTyped;
|
|
1812
|
+
exports.StepUpCheckRequestToJSON = StepUpCheckRequest.StepUpCheckRequestToJSON;
|
|
1813
|
+
exports.StepUpCheckResponseFromJSON = StepUpCheckResponse.StepUpCheckResponseFromJSON;
|
|
1814
|
+
exports.StepUpCheckResponseFromJSONTyped = StepUpCheckResponse.StepUpCheckResponseFromJSONTyped;
|
|
1815
|
+
exports.StepUpCheckResponseToJSON = StepUpCheckResponse.StepUpCheckResponseToJSON;
|
|
1816
|
+
exports.StepUpCredentialFromJSON = StepUpCredential.StepUpCredentialFromJSON;
|
|
1817
|
+
exports.StepUpCredentialFromJSONTyped = StepUpCredential.StepUpCredentialFromJSONTyped;
|
|
1818
|
+
exports.StepUpCredentialToJSON = StepUpCredential.StepUpCredentialToJSON;
|
|
1807
1819
|
exports.SupportedOfframpsResponseFromJSON = SupportedOfframpsResponse.SupportedOfframpsResponseFromJSON;
|
|
1808
1820
|
exports.SupportedOfframpsResponseFromJSONTyped = SupportedOfframpsResponse.SupportedOfframpsResponseFromJSONTyped;
|
|
1809
1821
|
exports.SupportedOfframpsResponseToJSON = SupportedOfframpsResponse.SupportedOfframpsResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -356,6 +356,9 @@ export { SsoProviderFromJSON, SsoProviderFromJSONTyped, SsoProviderToJSON } from
|
|
|
356
356
|
export { SsoProviderCheckRequestFromJSON, SsoProviderCheckRequestFromJSONTyped, SsoProviderCheckRequestToJSON } from './models/SsoProviderCheckRequest.js';
|
|
357
357
|
export { SsoProviderCheckResponseFromJSON, SsoProviderCheckResponseFromJSONTyped, SsoProviderCheckResponseToJSON, SsoProviderCheckResponseTypeEnum } from './models/SsoProviderCheckResponse.js';
|
|
358
358
|
export { SsoProviderEnum, SsoProviderEnumFromJSON, SsoProviderEnumFromJSONTyped, SsoProviderEnumToJSON } from './models/SsoProviderEnum.js';
|
|
359
|
+
export { StepUpCheckRequestFromJSON, StepUpCheckRequestFromJSONTyped, StepUpCheckRequestToJSON } from './models/StepUpCheckRequest.js';
|
|
360
|
+
export { StepUpCheckResponseFromJSON, StepUpCheckResponseFromJSONTyped, StepUpCheckResponseToJSON } from './models/StepUpCheckResponse.js';
|
|
361
|
+
export { StepUpCredentialFromJSON, StepUpCredentialFromJSONTyped, StepUpCredentialToJSON } from './models/StepUpCredential.js';
|
|
359
362
|
export { SupportedOfframpsResponseFromJSON, SupportedOfframpsResponseFromJSONTyped, SupportedOfframpsResponseToJSON } from './models/SupportedOfframpsResponse.js';
|
|
360
363
|
export { SupportedOnrampsResponseFromJSON, SupportedOnrampsResponseFromJSONTyped, SupportedOnrampsResponseToJSON } from './models/SupportedOnrampsResponse.js';
|
|
361
364
|
export { SupportedSecurityMethodFromJSON, SupportedSecurityMethodFromJSONTyped, SupportedSecurityMethodToJSON } from './models/SupportedSecurityMethod.js';
|
package/src/models/Checkout.cjs
CHANGED
|
@@ -23,7 +23,6 @@ function CheckoutFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
24
24
|
'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
25
25
|
'enableOrchestration': json['enableOrchestration'],
|
|
26
|
-
'integratorFeeBps': !runtime.exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
27
26
|
'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
28
27
|
'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
29
28
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -44,7 +43,6 @@ function CheckoutToJSON(value) {
|
|
|
44
43
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
45
44
|
'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
46
45
|
'enableOrchestration': value.enableOrchestration,
|
|
47
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
48
46
|
'geoRestrictions': value.geoRestrictions,
|
|
49
47
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
50
48
|
'createdAt': (value.createdAt.toISOString()),
|
package/src/models/Checkout.d.ts
CHANGED
package/src/models/Checkout.js
CHANGED
|
@@ -19,7 +19,6 @@ function CheckoutFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
20
20
|
'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
21
21
|
'enableOrchestration': json['enableOrchestration'],
|
|
22
|
-
'integratorFeeBps': !exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
23
22
|
'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
24
23
|
'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
25
24
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -40,7 +39,6 @@ function CheckoutToJSON(value) {
|
|
|
40
39
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
41
40
|
'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
42
41
|
'enableOrchestration': value.enableOrchestration,
|
|
43
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
44
42
|
'geoRestrictions': value.geoRestrictions,
|
|
45
43
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
46
44
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -22,7 +22,6 @@ function CheckoutCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
23
23
|
'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
24
24
|
'enableOrchestration': !runtime.exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
25
|
-
'integratorFeeBps': !runtime.exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
26
25
|
'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
27
26
|
'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
28
27
|
};
|
|
@@ -40,7 +39,6 @@ function CheckoutCreateRequestToJSON(value) {
|
|
|
40
39
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
41
40
|
'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
42
41
|
'enableOrchestration': value.enableOrchestration,
|
|
43
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
44
42
|
'geoRestrictions': value.geoRestrictions,
|
|
45
43
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
46
44
|
};
|
|
@@ -49,12 +49,6 @@ export interface CheckoutCreateRequest {
|
|
|
49
49
|
* @memberof CheckoutCreateRequest
|
|
50
50
|
*/
|
|
51
51
|
enableOrchestration?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof CheckoutCreateRequest
|
|
56
|
-
*/
|
|
57
|
-
integratorFeeBps?: number;
|
|
58
52
|
/**
|
|
59
53
|
*
|
|
60
54
|
* @type {Array<string>}
|
|
@@ -18,7 +18,6 @@ function CheckoutCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
19
19
|
'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
20
20
|
'enableOrchestration': !exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
21
|
-
'integratorFeeBps': !exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
22
21
|
'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
23
22
|
'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
24
23
|
};
|
|
@@ -36,7 +35,6 @@ function CheckoutCreateRequestToJSON(value) {
|
|
|
36
35
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
37
36
|
'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
38
37
|
'enableOrchestration': value.enableOrchestration,
|
|
39
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
40
38
|
'geoRestrictions': value.geoRestrictions,
|
|
41
39
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
42
40
|
};
|
|
@@ -20,7 +20,6 @@ function CheckoutUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
21
21
|
'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
22
22
|
'enableOrchestration': !runtime.exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
23
|
-
'integratorFeeBps': !runtime.exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
24
23
|
'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
25
24
|
'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
26
25
|
};
|
|
@@ -37,7 +36,6 @@ function CheckoutUpdateRequestToJSON(value) {
|
|
|
37
36
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
38
37
|
'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
39
38
|
'enableOrchestration': value.enableOrchestration,
|
|
40
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
41
39
|
'geoRestrictions': value.geoRestrictions,
|
|
42
40
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
43
41
|
};
|
|
@@ -42,12 +42,6 @@ export interface CheckoutUpdateRequest {
|
|
|
42
42
|
* @memberof CheckoutUpdateRequest
|
|
43
43
|
*/
|
|
44
44
|
enableOrchestration?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof CheckoutUpdateRequest
|
|
49
|
-
*/
|
|
50
|
-
integratorFeeBps?: number;
|
|
51
45
|
/**
|
|
52
46
|
*
|
|
53
47
|
* @type {Array<string>}
|
|
@@ -16,7 +16,6 @@ function CheckoutUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
17
17
|
'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
18
18
|
'enableOrchestration': !exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
19
|
-
'integratorFeeBps': !exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
20
19
|
'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
21
20
|
'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
22
21
|
};
|
|
@@ -33,7 +32,6 @@ function CheckoutUpdateRequestToJSON(value) {
|
|
|
33
32
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
34
33
|
'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
35
34
|
'enableOrchestration': value.enableOrchestration,
|
|
36
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
37
35
|
'geoRestrictions': value.geoRestrictions,
|
|
38
36
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
39
37
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function StepUpCheckRequestFromJSON(json) {
|
|
9
|
+
return StepUpCheckRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function StepUpCheckRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'scope': TokenScope.TokenScopeFromJSON(json['scope']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function StepUpCheckRequestToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'scope': TokenScope.TokenScopeToJSON(value.scope),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.StepUpCheckRequestFromJSON = StepUpCheckRequestFromJSON;
|
|
32
|
+
exports.StepUpCheckRequestFromJSONTyped = StepUpCheckRequestFromJSONTyped;
|
|
33
|
+
exports.StepUpCheckRequestToJSON = StepUpCheckRequestToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TokenScope } from './TokenScope';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StepUpCheckRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface StepUpCheckRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TokenScope}
|
|
22
|
+
* @memberof StepUpCheckRequest
|
|
23
|
+
*/
|
|
24
|
+
scope: TokenScope;
|
|
25
|
+
}
|
|
26
|
+
export declare function StepUpCheckRequestFromJSON(json: any): StepUpCheckRequest;
|
|
27
|
+
export declare function StepUpCheckRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepUpCheckRequest;
|
|
28
|
+
export declare function StepUpCheckRequestToJSON(value?: StepUpCheckRequest | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function StepUpCheckRequestFromJSON(json) {
|
|
5
|
+
return StepUpCheckRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function StepUpCheckRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'scope': TokenScopeFromJSON(json['scope']),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function StepUpCheckRequestToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'scope': TokenScopeToJSON(value.scope),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { StepUpCheckRequestFromJSON, StepUpCheckRequestFromJSONTyped, StepUpCheckRequestToJSON };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var StepUpCredential = require('./StepUpCredential.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function StepUpCheckResponseFromJSON(json) {
|
|
10
|
+
return StepUpCheckResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function StepUpCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'isRequired': json['isRequired'],
|
|
18
|
+
'credentials': (json['credentials'].map(StepUpCredential.StepUpCredentialFromJSON)),
|
|
19
|
+
'defaultCredentialId': !runtime.exists(json, 'defaultCredentialId') ? undefined : json['defaultCredentialId'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function StepUpCheckResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'isRequired': value.isRequired,
|
|
31
|
+
'credentials': (value.credentials.map(StepUpCredential.StepUpCredentialToJSON)),
|
|
32
|
+
'defaultCredentialId': value.defaultCredentialId,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.StepUpCheckResponseFromJSON = StepUpCheckResponseFromJSON;
|
|
37
|
+
exports.StepUpCheckResponseFromJSONTyped = StepUpCheckResponseFromJSONTyped;
|
|
38
|
+
exports.StepUpCheckResponseToJSON = StepUpCheckResponseToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { StepUpCredential } from './StepUpCredential';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StepUpCheckResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StepUpCheckResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Whether step-up authentication is required for the given scope
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof StepUpCheckResponse
|
|
23
|
+
*/
|
|
24
|
+
isRequired: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The credentials available for step-up authentication. Empty if isRequired is false.
|
|
27
|
+
* @type {Array<StepUpCredential>}
|
|
28
|
+
* @memberof StepUpCheckResponse
|
|
29
|
+
*/
|
|
30
|
+
credentials: Array<StepUpCredential>;
|
|
31
|
+
/**
|
|
32
|
+
* The recommended default credential to use for step-up. For reauth this is the sign-in credential; for MFA this is the default or most recently added device.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StepUpCheckResponse
|
|
35
|
+
*/
|
|
36
|
+
defaultCredentialId?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function StepUpCheckResponseFromJSON(json: any): StepUpCheckResponse;
|
|
39
|
+
export declare function StepUpCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepUpCheckResponse;
|
|
40
|
+
export declare function StepUpCheckResponseToJSON(value?: StepUpCheckResponse | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { StepUpCredentialFromJSON, StepUpCredentialToJSON } from './StepUpCredential.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function StepUpCheckResponseFromJSON(json) {
|
|
6
|
+
return StepUpCheckResponseFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function StepUpCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'isRequired': json['isRequired'],
|
|
14
|
+
'credentials': (json['credentials'].map(StepUpCredentialFromJSON)),
|
|
15
|
+
'defaultCredentialId': !exists(json, 'defaultCredentialId') ? undefined : json['defaultCredentialId'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function StepUpCheckResponseToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'isRequired': value.isRequired,
|
|
27
|
+
'credentials': (value.credentials.map(StepUpCredentialToJSON)),
|
|
28
|
+
'defaultCredentialId': value.defaultCredentialId,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { StepUpCheckResponseFromJSON, StepUpCheckResponseFromJSONTyped, StepUpCheckResponseToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var JwtVerifiedCredentialFormatEnum = require('./JwtVerifiedCredentialFormatEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function StepUpCredentialFromJSON(json) {
|
|
10
|
+
return StepUpCredentialFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function StepUpCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'id': json['id'],
|
|
18
|
+
'format': JwtVerifiedCredentialFormatEnum.JwtVerifiedCredentialFormatEnumFromJSON(json['format']),
|
|
19
|
+
'type': !runtime.exists(json, 'type') ? undefined : json['type'],
|
|
20
|
+
'alias': !runtime.exists(json, 'alias') ? undefined : json['alias'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function StepUpCredentialToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'id': value.id,
|
|
32
|
+
'format': JwtVerifiedCredentialFormatEnum.JwtVerifiedCredentialFormatEnumToJSON(value.format),
|
|
33
|
+
'type': value.type,
|
|
34
|
+
'alias': value.alias,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.StepUpCredentialFromJSON = StepUpCredentialFromJSON;
|
|
39
|
+
exports.StepUpCredentialFromJSONTyped = StepUpCredentialFromJSONTyped;
|
|
40
|
+
exports.StepUpCredentialToJSON = StepUpCredentialToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { JwtVerifiedCredentialFormatEnum } from './JwtVerifiedCredentialFormatEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StepUpCredential
|
|
17
|
+
*/
|
|
18
|
+
export interface StepUpCredential {
|
|
19
|
+
/**
|
|
20
|
+
* The unique identifier of the credential
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StepUpCredential
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {JwtVerifiedCredentialFormatEnum}
|
|
28
|
+
* @memberof StepUpCredential
|
|
29
|
+
*/
|
|
30
|
+
format: JwtVerifiedCredentialFormatEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The specific credential type (e.g. totp, passkey). Distinguishes MFA device types that share the same format.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StepUpCredential
|
|
35
|
+
*/
|
|
36
|
+
type?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The user-friendly name of the credential
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StepUpCredential
|
|
41
|
+
*/
|
|
42
|
+
alias?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function StepUpCredentialFromJSON(json: any): StepUpCredential;
|
|
45
|
+
export declare function StepUpCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepUpCredential;
|
|
46
|
+
export declare function StepUpCredentialToJSON(value?: StepUpCredential | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { JwtVerifiedCredentialFormatEnumFromJSON, JwtVerifiedCredentialFormatEnumToJSON } from './JwtVerifiedCredentialFormatEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function StepUpCredentialFromJSON(json) {
|
|
6
|
+
return StepUpCredentialFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function StepUpCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'id': json['id'],
|
|
14
|
+
'format': JwtVerifiedCredentialFormatEnumFromJSON(json['format']),
|
|
15
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
16
|
+
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function StepUpCredentialToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'id': value.id,
|
|
28
|
+
'format': JwtVerifiedCredentialFormatEnumToJSON(value.format),
|
|
29
|
+
'type': value.type,
|
|
30
|
+
'alias': value.alias,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { StepUpCredentialFromJSON, StepUpCredentialFromJSONTyped, StepUpCredentialToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -353,6 +353,9 @@ export * from './SsoProvider';
|
|
|
353
353
|
export * from './SsoProviderCheckRequest';
|
|
354
354
|
export * from './SsoProviderCheckResponse';
|
|
355
355
|
export * from './SsoProviderEnum';
|
|
356
|
+
export * from './StepUpCheckRequest';
|
|
357
|
+
export * from './StepUpCheckResponse';
|
|
358
|
+
export * from './StepUpCredential';
|
|
356
359
|
export * from './SupportedOfframpsResponse';
|
|
357
360
|
export * from './SupportedOnrampsResponse';
|
|
358
361
|
export * from './SupportedSecurityMethod';
|