@dynamic-labs/sdk-api-core 0.0.1101 → 0.0.1102
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 +105 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +42 -1
- package/src/apis/SDKApi.js +105 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +16 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/src/models/WaasPolicyLayerResponse.cjs +40 -0
- package/src/models/WaasPolicyLayerResponse.cjs.map +1 -0
- package/src/models/WaasPolicyLayerResponse.d.ts +46 -0
- package/src/models/WaasPolicyLayerResponse.js +34 -0
- package/src/models/WaasPolicyLayerResponse.js.map +1 -0
- package/src/models/WaasPolicyLayerResponseLayerContent.cjs +34 -0
- package/src/models/WaasPolicyLayerResponseLayerContent.cjs.map +1 -0
- package/src/models/WaasPolicyLayerResponseLayerContent.d.ts +28 -0
- package/src/models/WaasPolicyLayerResponseLayerContent.js +28 -0
- package/src/models/WaasPolicyLayerResponseLayerContent.js.map +1 -0
- package/src/models/WaasPolicyLayerUpdateRequest.cjs +47 -0
- package/src/models/WaasPolicyLayerUpdateRequest.cjs.map +1 -0
- package/src/models/WaasPolicyLayerUpdateRequest.d.ts +48 -0
- package/src/models/WaasPolicyLayerUpdateRequest.js +41 -0
- package/src/models/WaasPolicyLayerUpdateRequest.js.map +1 -0
- package/src/models/WaasPolicyRule.cjs +2 -0
- package/src/models/WaasPolicyRule.cjs.map +1 -1
- package/src/models/WaasPolicyRule.d.ts +6 -0
- package/src/models/WaasPolicyRule.js +2 -0
- package/src/models/WaasPolicyRule.js.map +1 -1
- package/src/models/index.d.ts +3 -0
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, 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, Flow, FlowAttachSourceRequest, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, 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, Flow, FlowAttachSourceRequest, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -649,6 +649,10 @@ export interface GetUserMfaMethodsRequest {
|
|
|
649
649
|
export interface GetUserPasskeysRequest {
|
|
650
650
|
environmentId: string;
|
|
651
651
|
}
|
|
652
|
+
export interface GetWaasSignerSelfPolicyLayerRequest {
|
|
653
|
+
environmentId: string;
|
|
654
|
+
walletId: string;
|
|
655
|
+
}
|
|
652
656
|
export interface GetWaasWalletWithVerifiedCredentialsRequest {
|
|
653
657
|
environmentId: string;
|
|
654
658
|
walletAddress: string;
|
|
@@ -1336,6 +1340,11 @@ export interface UpdateUserMfaDeviceRequest {
|
|
|
1336
1340
|
mfaDeviceId: string;
|
|
1337
1341
|
mFAUpdateDeviceRequest?: MFAUpdateDeviceRequest;
|
|
1338
1342
|
}
|
|
1343
|
+
export interface UpdateWaasSignerSelfPolicyLayerRequest {
|
|
1344
|
+
environmentId: string;
|
|
1345
|
+
walletId: string;
|
|
1346
|
+
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
1347
|
+
}
|
|
1339
1348
|
export interface UpdateWaasWalletSettingsOperationRequest {
|
|
1340
1349
|
environmentId: string;
|
|
1341
1350
|
walletId: string;
|
|
@@ -1406,6 +1415,10 @@ export interface VerifyUnlinkOperationRequest {
|
|
|
1406
1415
|
export interface VerifyUnlinkOptionsRequest {
|
|
1407
1416
|
environmentId: string;
|
|
1408
1417
|
}
|
|
1418
|
+
export interface WaasSignerSelfPolicyLayerOptionsRequest {
|
|
1419
|
+
environmentId: string;
|
|
1420
|
+
walletId: string;
|
|
1421
|
+
}
|
|
1409
1422
|
export interface WaasWalletSettingsOptionsRequest {
|
|
1410
1423
|
environmentId: string;
|
|
1411
1424
|
walletId: string;
|
|
@@ -2894,6 +2907,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2894
2907
|
* Get user passkeys
|
|
2895
2908
|
*/
|
|
2896
2909
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
2910
|
+
/**
|
|
2911
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
2912
|
+
* Get the caller\'s own signer-Layer Rules
|
|
2913
|
+
*/
|
|
2914
|
+
getWaasSignerSelfPolicyLayerRaw(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
2915
|
+
/**
|
|
2916
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
2917
|
+
* Get the caller\'s own signer-Layer Rules
|
|
2918
|
+
*/
|
|
2919
|
+
getWaasSignerSelfPolicyLayer(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
2897
2920
|
/**
|
|
2898
2921
|
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
2899
2922
|
* Get a WAAS wallet by address
|
|
@@ -4434,6 +4457,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4434
4457
|
* Update an MFA device
|
|
4435
4458
|
*/
|
|
4436
4459
|
updateUserMfaDevice(requestParameters: UpdateUserMfaDeviceRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4460
|
+
/**
|
|
4461
|
+
* Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
|
|
4462
|
+
* Loosen or remove a signer-managed default on the caller\'s own signer-Layer
|
|
4463
|
+
*/
|
|
4464
|
+
updateWaasSignerSelfPolicyLayerRaw(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4465
|
+
/**
|
|
4466
|
+
* Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
|
|
4467
|
+
* Loosen or remove a signer-managed default on the caller\'s own signer-Layer
|
|
4468
|
+
*/
|
|
4469
|
+
updateWaasSignerSelfPolicyLayer(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4437
4470
|
/**
|
|
4438
4471
|
* Updates the settings for a WAAS wallet
|
|
4439
4472
|
* Update WAAS wallet settings
|
|
@@ -4612,6 +4645,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4612
4645
|
* Options call for this endpoint
|
|
4613
4646
|
*/
|
|
4614
4647
|
verifyUnlinkOptions(requestParameters: VerifyUnlinkOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4648
|
+
/**
|
|
4649
|
+
* Options call for this endpoint
|
|
4650
|
+
*/
|
|
4651
|
+
waasSignerSelfPolicyLayerOptionsRaw(requestParameters: WaasSignerSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4652
|
+
/**
|
|
4653
|
+
* Options call for this endpoint
|
|
4654
|
+
*/
|
|
4655
|
+
waasSignerSelfPolicyLayerOptions(requestParameters: WaasSignerSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4615
4656
|
/**
|
|
4616
4657
|
* Options call for this endpoint
|
|
4617
4658
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -281,7 +281,9 @@ import { VerifyResponseFromJSON } from '../models/VerifyResponse.js';
|
|
|
281
281
|
import { VerifyUnlinkRequestToJSON } from '../models/VerifyUnlinkRequest.js';
|
|
282
282
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
283
283
|
import '../models/WaasPolicyConstraintCondition.js';
|
|
284
|
+
import { WaasPolicyLayerResponseFromJSON } from '../models/WaasPolicyLayerResponse.js';
|
|
284
285
|
import '../models/WaasPolicyRuleType.js';
|
|
286
|
+
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
285
287
|
import { WalletSanctionsResponseFromJSON } from '../models/WalletSanctionsResponse.js';
|
|
286
288
|
import '../models/WalletTransactionType.js';
|
|
287
289
|
import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactionsResponse.js';
|
|
@@ -5226,6 +5228,42 @@ class SDKApi extends BaseAPI {
|
|
|
5226
5228
|
const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
|
|
5227
5229
|
return await response.value();
|
|
5228
5230
|
}
|
|
5231
|
+
/**
|
|
5232
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5233
|
+
* Get the caller\'s own signer-Layer Rules
|
|
5234
|
+
*/
|
|
5235
|
+
async getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5236
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5237
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
|
|
5238
|
+
}
|
|
5239
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
5240
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
|
|
5241
|
+
}
|
|
5242
|
+
const queryParameters = {};
|
|
5243
|
+
const headerParameters = {};
|
|
5244
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5245
|
+
const token = this.configuration.accessToken;
|
|
5246
|
+
const tokenString = await token("bearerAuth", []);
|
|
5247
|
+
if (tokenString) {
|
|
5248
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
5251
|
+
const response = await this.request({
|
|
5252
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
5253
|
+
method: 'GET',
|
|
5254
|
+
headers: headerParameters,
|
|
5255
|
+
query: queryParameters,
|
|
5256
|
+
}, initOverrides);
|
|
5257
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5258
|
+
}
|
|
5259
|
+
/**
|
|
5260
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5261
|
+
* Get the caller\'s own signer-Layer Rules
|
|
5262
|
+
*/
|
|
5263
|
+
async getWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5264
|
+
const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5265
|
+
return await response.value();
|
|
5266
|
+
}
|
|
5229
5267
|
/**
|
|
5230
5268
|
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
5231
5269
|
* Get a WAAS wallet by address
|
|
@@ -10414,6 +10452,47 @@ class SDKApi extends BaseAPI {
|
|
|
10414
10452
|
async updateUserMfaDevice(requestParameters, initOverrides) {
|
|
10415
10453
|
await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
|
|
10416
10454
|
}
|
|
10455
|
+
/**
|
|
10456
|
+
* Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
|
|
10457
|
+
* Loosen or remove a signer-managed default on the caller\'s own signer-Layer
|
|
10458
|
+
*/
|
|
10459
|
+
async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10460
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10461
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10462
|
+
}
|
|
10463
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10464
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10465
|
+
}
|
|
10466
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10467
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10468
|
+
}
|
|
10469
|
+
const queryParameters = {};
|
|
10470
|
+
const headerParameters = {};
|
|
10471
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10472
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10473
|
+
const token = this.configuration.accessToken;
|
|
10474
|
+
const tokenString = await token("bearerAuth", []);
|
|
10475
|
+
if (tokenString) {
|
|
10476
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10477
|
+
}
|
|
10478
|
+
}
|
|
10479
|
+
const response = await this.request({
|
|
10480
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
10481
|
+
method: 'PATCH',
|
|
10482
|
+
headers: headerParameters,
|
|
10483
|
+
query: queryParameters,
|
|
10484
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10485
|
+
}, initOverrides);
|
|
10486
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10487
|
+
}
|
|
10488
|
+
/**
|
|
10489
|
+
* Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
|
|
10490
|
+
* Loosen or remove a signer-managed default on the caller\'s own signer-Layer
|
|
10491
|
+
*/
|
|
10492
|
+
async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10493
|
+
const response = await this.updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10494
|
+
return await response.value();
|
|
10495
|
+
}
|
|
10417
10496
|
/**
|
|
10418
10497
|
* Updates the settings for a WAAS wallet
|
|
10419
10498
|
* Update WAAS wallet settings
|
|
@@ -10998,6 +11077,32 @@ class SDKApi extends BaseAPI {
|
|
|
10998
11077
|
async verifyUnlinkOptions(requestParameters, initOverrides) {
|
|
10999
11078
|
await this.verifyUnlinkOptionsRaw(requestParameters, initOverrides);
|
|
11000
11079
|
}
|
|
11080
|
+
/**
|
|
11081
|
+
* Options call for this endpoint
|
|
11082
|
+
*/
|
|
11083
|
+
async waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides) {
|
|
11084
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11085
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasSignerSelfPolicyLayerOptions.');
|
|
11086
|
+
}
|
|
11087
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11088
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling waasSignerSelfPolicyLayerOptions.');
|
|
11089
|
+
}
|
|
11090
|
+
const queryParameters = {};
|
|
11091
|
+
const headerParameters = {};
|
|
11092
|
+
const response = await this.request({
|
|
11093
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11094
|
+
method: 'OPTIONS',
|
|
11095
|
+
headers: headerParameters,
|
|
11096
|
+
query: queryParameters,
|
|
11097
|
+
}, initOverrides);
|
|
11098
|
+
return new VoidApiResponse(response);
|
|
11099
|
+
}
|
|
11100
|
+
/**
|
|
11101
|
+
* Options call for this endpoint
|
|
11102
|
+
*/
|
|
11103
|
+
async waasSignerSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11104
|
+
await this.waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11105
|
+
}
|
|
11001
11106
|
/**
|
|
11002
11107
|
* Options call for this endpoint
|
|
11003
11108
|
*/
|