@dynamic-labs/sdk-api 0.0.913 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.913",
3
+ "version": "0.0.914",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -217,6 +217,8 @@ var SponsorSVMTransactionResponse = require('../models/SponsorSVMTransactionResp
217
217
  require('../models/SsoProviderEnum.cjs');
218
218
  var SsoProviderCheckRequest = require('../models/SsoProviderCheckRequest.cjs');
219
219
  var SsoProviderCheckResponse = require('../models/SsoProviderCheckResponse.cjs');
220
+ var StepUpCheckRequest = require('../models/StepUpCheckRequest.cjs');
221
+ var StepUpCheckResponse = require('../models/StepUpCheckResponse.cjs');
220
222
  require('../models/SubscriptionAdvancedScopeEnum.cjs');
221
223
  require('../models/SubscriptionFreeScopeEnum.cjs');
222
224
  var SupportedOfframpsResponse = require('../models/SupportedOfframpsResponse.cjs');
@@ -8841,6 +8843,75 @@ class SDKApi extends runtime.BaseAPI {
8841
8843
  yield this.sponsorSVMTransactionOptionsRaw(requestParameters, initOverrides);
8842
8844
  });
8843
8845
  }
8846
+ /**
8847
+ * 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.
8848
+ * Check if step-up authentication is required for a given scope
8849
+ */
8850
+ stepUpCheckRaw(requestParameters, initOverrides) {
8851
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
8852
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8853
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheck.');
8854
+ }
8855
+ if (requestParameters.stepUpCheckRequest === null || requestParameters.stepUpCheckRequest === undefined) {
8856
+ throw new runtime.RequiredError('stepUpCheckRequest', 'Required parameter requestParameters.stepUpCheckRequest was null or undefined when calling stepUpCheck.');
8857
+ }
8858
+ const queryParameters = {};
8859
+ const headerParameters = {};
8860
+ headerParameters['Content-Type'] = 'application/json';
8861
+ if (this.configuration && this.configuration.accessToken) {
8862
+ const token = this.configuration.accessToken;
8863
+ const tokenString = yield token("bearerAuth", []);
8864
+ if (tokenString) {
8865
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8866
+ }
8867
+ }
8868
+ const response = yield this.request({
8869
+ path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8870
+ method: 'POST',
8871
+ headers: headerParameters,
8872
+ query: queryParameters,
8873
+ body: StepUpCheckRequest.StepUpCheckRequestToJSON(requestParameters.stepUpCheckRequest),
8874
+ }, initOverrides);
8875
+ return new runtime.JSONApiResponse(response, (jsonValue) => StepUpCheckResponse.StepUpCheckResponseFromJSON(jsonValue));
8876
+ });
8877
+ }
8878
+ /**
8879
+ * 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.
8880
+ * Check if step-up authentication is required for a given scope
8881
+ */
8882
+ stepUpCheck(requestParameters, initOverrides) {
8883
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
8884
+ const response = yield this.stepUpCheckRaw(requestParameters, initOverrides);
8885
+ return yield response.value();
8886
+ });
8887
+ }
8888
+ /**
8889
+ * Options call for this endpoint
8890
+ */
8891
+ stepUpCheckOptionsRaw(requestParameters, initOverrides) {
8892
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
8893
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8894
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheckOptions.');
8895
+ }
8896
+ const queryParameters = {};
8897
+ const headerParameters = {};
8898
+ const response = yield this.request({
8899
+ path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8900
+ method: 'OPTIONS',
8901
+ headers: headerParameters,
8902
+ query: queryParameters,
8903
+ }, initOverrides);
8904
+ return new runtime.VoidApiResponse(response);
8905
+ });
8906
+ }
8907
+ /**
8908
+ * Options call for this endpoint
8909
+ */
8910
+ stepUpCheckOptions(requestParameters, initOverrides) {
8911
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
8912
+ yield this.stepUpCheckOptionsRaw(requestParameters, initOverrides);
8913
+ });
8914
+ }
8844
8915
  /**
8845
8916
  * Returns a swap/bridge quote for the given token pair without creating any transaction state. Supports both fromAmount and toAmount (mutually exclusive).
8846
8917
  * Generate a swap quote
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, 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, InlineObject1, 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;
@@ -989,6 +989,13 @@ export interface SponsorSVMTransactionOperationRequest {
989
989
  export interface SponsorSVMTransactionOptionsRequest {
990
990
  environmentId: string;
991
991
  }
992
+ export interface StepUpCheckOperationRequest {
993
+ environmentId: string;
994
+ stepUpCheckRequest: StepUpCheckRequest;
995
+ }
996
+ export interface StepUpCheckOptionsRequest {
997
+ environmentId: string;
998
+ }
992
999
  export interface SwapQuoteOperationRequest {
993
1000
  environmentId: string;
994
1001
  swapQuoteRequest: SwapQuoteRequest;
@@ -3416,6 +3423,24 @@ export declare class SDKApi extends runtime.BaseAPI {
3416
3423
  * Options call for this endpoint
3417
3424
  */
3418
3425
  sponsorSVMTransactionOptions(requestParameters: SponsorSVMTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3426
+ /**
3427
+ * 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.
3428
+ * Check if step-up authentication is required for a given scope
3429
+ */
3430
+ stepUpCheckRaw(requestParameters: StepUpCheckOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<StepUpCheckResponse>>;
3431
+ /**
3432
+ * 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.
3433
+ * Check if step-up authentication is required for a given scope
3434
+ */
3435
+ stepUpCheck(requestParameters: StepUpCheckOperationRequest, initOverrides?: RequestInit): Promise<StepUpCheckResponse>;
3436
+ /**
3437
+ * Options call for this endpoint
3438
+ */
3439
+ stepUpCheckOptionsRaw(requestParameters: StepUpCheckOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3440
+ /**
3441
+ * Options call for this endpoint
3442
+ */
3443
+ stepUpCheckOptions(requestParameters: StepUpCheckOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3419
3444
  /**
3420
3445
  * Returns a swap/bridge quote for the given token pair without creating any transaction state. Supports both fromAmount and toAmount (mutually exclusive).
3421
3446
  * Generate a swap quote
@@ -213,6 +213,8 @@ import { SponsorSVMTransactionResponseFromJSON } from '../models/SponsorSVMTrans
213
213
  import '../models/SsoProviderEnum.js';
214
214
  import { SsoProviderCheckRequestToJSON } from '../models/SsoProviderCheckRequest.js';
215
215
  import { SsoProviderCheckResponseFromJSON } from '../models/SsoProviderCheckResponse.js';
216
+ import { StepUpCheckRequestToJSON } from '../models/StepUpCheckRequest.js';
217
+ import { StepUpCheckResponseFromJSON } from '../models/StepUpCheckResponse.js';
216
218
  import '../models/SubscriptionAdvancedScopeEnum.js';
217
219
  import '../models/SubscriptionFreeScopeEnum.js';
218
220
  import { SupportedOfframpsResponseFromJSON } from '../models/SupportedOfframpsResponse.js';
@@ -8837,6 +8839,75 @@ class SDKApi extends BaseAPI {
8837
8839
  yield this.sponsorSVMTransactionOptionsRaw(requestParameters, initOverrides);
8838
8840
  });
8839
8841
  }
8842
+ /**
8843
+ * 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.
8844
+ * Check if step-up authentication is required for a given scope
8845
+ */
8846
+ stepUpCheckRaw(requestParameters, initOverrides) {
8847
+ return __awaiter(this, void 0, void 0, function* () {
8848
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8849
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheck.');
8850
+ }
8851
+ if (requestParameters.stepUpCheckRequest === null || requestParameters.stepUpCheckRequest === undefined) {
8852
+ throw new RequiredError('stepUpCheckRequest', 'Required parameter requestParameters.stepUpCheckRequest was null or undefined when calling stepUpCheck.');
8853
+ }
8854
+ const queryParameters = {};
8855
+ const headerParameters = {};
8856
+ headerParameters['Content-Type'] = 'application/json';
8857
+ if (this.configuration && this.configuration.accessToken) {
8858
+ const token = this.configuration.accessToken;
8859
+ const tokenString = yield token("bearerAuth", []);
8860
+ if (tokenString) {
8861
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8862
+ }
8863
+ }
8864
+ const response = yield this.request({
8865
+ path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8866
+ method: 'POST',
8867
+ headers: headerParameters,
8868
+ query: queryParameters,
8869
+ body: StepUpCheckRequestToJSON(requestParameters.stepUpCheckRequest),
8870
+ }, initOverrides);
8871
+ return new JSONApiResponse(response, (jsonValue) => StepUpCheckResponseFromJSON(jsonValue));
8872
+ });
8873
+ }
8874
+ /**
8875
+ * 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.
8876
+ * Check if step-up authentication is required for a given scope
8877
+ */
8878
+ stepUpCheck(requestParameters, initOverrides) {
8879
+ return __awaiter(this, void 0, void 0, function* () {
8880
+ const response = yield this.stepUpCheckRaw(requestParameters, initOverrides);
8881
+ return yield response.value();
8882
+ });
8883
+ }
8884
+ /**
8885
+ * Options call for this endpoint
8886
+ */
8887
+ stepUpCheckOptionsRaw(requestParameters, initOverrides) {
8888
+ return __awaiter(this, void 0, void 0, function* () {
8889
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8890
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheckOptions.');
8891
+ }
8892
+ const queryParameters = {};
8893
+ const headerParameters = {};
8894
+ const response = yield this.request({
8895
+ path: `/sdk/{environmentId}/stepUp/check`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8896
+ method: 'OPTIONS',
8897
+ headers: headerParameters,
8898
+ query: queryParameters,
8899
+ }, initOverrides);
8900
+ return new VoidApiResponse(response);
8901
+ });
8902
+ }
8903
+ /**
8904
+ * Options call for this endpoint
8905
+ */
8906
+ stepUpCheckOptions(requestParameters, initOverrides) {
8907
+ return __awaiter(this, void 0, void 0, function* () {
8908
+ yield this.stepUpCheckOptionsRaw(requestParameters, initOverrides);
8909
+ });
8910
+ }
8840
8911
  /**
8841
8912
  * Returns a swap/bridge quote for the given token pair without creating any transaction state. Supports both fromAmount and toAmount (mutually exclusive).
8842
8913
  * Generate a swap quote
package/src/index.cjs CHANGED
@@ -553,6 +553,9 @@ var SsoProviderCheckResponse = require('./models/SsoProviderCheckResponse.cjs');
553
553
  var SsoProviderCreateRequest = require('./models/SsoProviderCreateRequest.cjs');
554
554
  var SsoProviderEnum = require('./models/SsoProviderEnum.cjs');
555
555
  var SsoProviderUpdateRequest = require('./models/SsoProviderUpdateRequest.cjs');
556
+ var StepUpCheckRequest = require('./models/StepUpCheckRequest.cjs');
557
+ var StepUpCheckResponse = require('./models/StepUpCheckResponse.cjs');
558
+ var StepUpCredential = require('./models/StepUpCredential.cjs');
556
559
  var SubscriptionAdvancedScopeEnum = require('./models/SubscriptionAdvancedScopeEnum.cjs');
557
560
  var SubscriptionFreeScopeEnum = require('./models/SubscriptionFreeScopeEnum.cjs');
558
561
  var SupportedOfframpsResponse = require('./models/SupportedOfframpsResponse.cjs');
@@ -2626,6 +2629,15 @@ exports.SsoProviderEnumToJSON = SsoProviderEnum.SsoProviderEnumToJSON;
2626
2629
  exports.SsoProviderUpdateRequestFromJSON = SsoProviderUpdateRequest.SsoProviderUpdateRequestFromJSON;
2627
2630
  exports.SsoProviderUpdateRequestFromJSONTyped = SsoProviderUpdateRequest.SsoProviderUpdateRequestFromJSONTyped;
2628
2631
  exports.SsoProviderUpdateRequestToJSON = SsoProviderUpdateRequest.SsoProviderUpdateRequestToJSON;
2632
+ exports.StepUpCheckRequestFromJSON = StepUpCheckRequest.StepUpCheckRequestFromJSON;
2633
+ exports.StepUpCheckRequestFromJSONTyped = StepUpCheckRequest.StepUpCheckRequestFromJSONTyped;
2634
+ exports.StepUpCheckRequestToJSON = StepUpCheckRequest.StepUpCheckRequestToJSON;
2635
+ exports.StepUpCheckResponseFromJSON = StepUpCheckResponse.StepUpCheckResponseFromJSON;
2636
+ exports.StepUpCheckResponseFromJSONTyped = StepUpCheckResponse.StepUpCheckResponseFromJSONTyped;
2637
+ exports.StepUpCheckResponseToJSON = StepUpCheckResponse.StepUpCheckResponseToJSON;
2638
+ exports.StepUpCredentialFromJSON = StepUpCredential.StepUpCredentialFromJSON;
2639
+ exports.StepUpCredentialFromJSONTyped = StepUpCredential.StepUpCredentialFromJSONTyped;
2640
+ exports.StepUpCredentialToJSON = StepUpCredential.StepUpCredentialToJSON;
2629
2641
  Object.defineProperty(exports, 'SubscriptionAdvancedScopeEnum', {
2630
2642
  enumerable: true,
2631
2643
  get: function () { return SubscriptionAdvancedScopeEnum.SubscriptionAdvancedScopeEnum; }
package/src/index.js CHANGED
@@ -549,6 +549,9 @@ export { SsoProviderCheckResponseFromJSON, SsoProviderCheckResponseFromJSONTyped
549
549
  export { SsoProviderCreateRequestFromJSON, SsoProviderCreateRequestFromJSONTyped, SsoProviderCreateRequestToJSON } from './models/SsoProviderCreateRequest.js';
550
550
  export { SsoProviderEnum, SsoProviderEnumFromJSON, SsoProviderEnumFromJSONTyped, SsoProviderEnumToJSON } from './models/SsoProviderEnum.js';
551
551
  export { SsoProviderUpdateRequestFromJSON, SsoProviderUpdateRequestFromJSONTyped, SsoProviderUpdateRequestToJSON } from './models/SsoProviderUpdateRequest.js';
552
+ export { StepUpCheckRequestFromJSON, StepUpCheckRequestFromJSONTyped, StepUpCheckRequestToJSON } from './models/StepUpCheckRequest.js';
553
+ export { StepUpCheckResponseFromJSON, StepUpCheckResponseFromJSONTyped, StepUpCheckResponseToJSON } from './models/StepUpCheckResponse.js';
554
+ export { StepUpCredentialFromJSON, StepUpCredentialFromJSONTyped, StepUpCredentialToJSON } from './models/StepUpCredential.js';
552
555
  export { SubscriptionAdvancedScopeEnum, SubscriptionAdvancedScopeEnumFromJSON, SubscriptionAdvancedScopeEnumFromJSONTyped, SubscriptionAdvancedScopeEnumToJSON } from './models/SubscriptionAdvancedScopeEnum.js';
553
556
  export { SubscriptionFreeScopeEnum, SubscriptionFreeScopeEnumFromJSON, SubscriptionFreeScopeEnumFromJSONTyped, SubscriptionFreeScopeEnumToJSON } from './models/SubscriptionFreeScopeEnum.js';
554
557
  export { SupportedOfframpsResponseFromJSON, SupportedOfframpsResponseFromJSONTyped, SupportedOfframpsResponseToJSON } from './models/SupportedOfframpsResponse.js';
@@ -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 };
@@ -510,6 +510,9 @@ export * from './SsoProviderCheckResponse';
510
510
  export * from './SsoProviderCreateRequest';
511
511
  export * from './SsoProviderEnum';
512
512
  export * from './SsoProviderUpdateRequest';
513
+ export * from './StepUpCheckRequest';
514
+ export * from './StepUpCheckResponse';
515
+ export * from './StepUpCredential';
513
516
  export * from './SubscriptionAdvancedScopeEnum';
514
517
  export * from './SubscriptionFreeScopeEnum';
515
518
  export * from './SupportedOfframpsResponse';