@dynamic-labs/sdk-api 0.29.0 → 0.31.0
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/EnvironmentsApi.cjs +12 -0
- package/src/apis/EnvironmentsApi.d.ts +5 -1
- package/src/apis/EnvironmentsApi.js +12 -0
- package/src/apis/KybApi.cjs +28 -0
- package/src/apis/KybApi.d.ts +13 -0
- package/src/apis/KybApi.js +29 -1
- package/src/apis/SDKApi.cjs +12 -0
- package/src/apis/SDKApi.d.ts +5 -1
- package/src/apis/SDKApi.js +12 -0
- package/src/models/WalletSanctionsResponse.cjs +3 -0
- package/src/models/WalletSanctionsResponse.d.ts +7 -0
- package/src/models/WalletSanctionsResponse.js +3 -0
package/package.json
CHANGED
|
@@ -208,6 +208,18 @@ class EnvironmentsApi extends runtime.BaseAPI {
|
|
|
208
208
|
if (requestParameters.chain !== undefined) {
|
|
209
209
|
queryParameters['chain'] = requestParameters.chain;
|
|
210
210
|
}
|
|
211
|
+
if (requestParameters.scope !== undefined) {
|
|
212
|
+
queryParameters['scope'] = requestParameters.scope;
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters.applyPolicies !== undefined) {
|
|
215
|
+
queryParameters['applyPolicies'] = requestParameters.applyPolicies;
|
|
216
|
+
}
|
|
217
|
+
if (requestParameters.amountUsd !== undefined) {
|
|
218
|
+
queryParameters['amountUsd'] = requestParameters.amountUsd;
|
|
219
|
+
}
|
|
220
|
+
if (requestParameters.asset !== undefined) {
|
|
221
|
+
queryParameters['asset'] = requestParameters.asset;
|
|
222
|
+
}
|
|
211
223
|
const headerParameters = {};
|
|
212
224
|
if (this.configuration && this.configuration.accessToken) {
|
|
213
225
|
const token = this.configuration.accessToken;
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ChainEnum, EnvironmentVisitorsResponse, EnvironmentsResponse, KeyResponse, ProjectEnvironment, ProjectSettings, WaasVerifyApiKeyResponse, WalletSanctionsResponse } from '../models';
|
|
13
|
+
import { ChainEnum, EnvironmentVisitorsResponse, EnvironmentsResponse, KeyResponse, ProjectEnvironment, ProjectSettings, ScreeningPolicyScopeEnum, WaasVerifyApiKeyResponse, WalletSanctionsResponse } from '../models';
|
|
14
14
|
export interface CheckWalletSanctionsByEnvironmentIdRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
walletAddress: string;
|
|
17
17
|
chain: ChainEnum;
|
|
18
|
+
scope?: ScreeningPolicyScopeEnum;
|
|
19
|
+
applyPolicies?: boolean;
|
|
20
|
+
amountUsd?: number;
|
|
21
|
+
asset?: string;
|
|
18
22
|
}
|
|
19
23
|
export interface GetEnvironmentByIdRequest {
|
|
20
24
|
environmentId: string;
|
|
@@ -204,6 +204,18 @@ class EnvironmentsApi extends BaseAPI {
|
|
|
204
204
|
if (requestParameters.chain !== undefined) {
|
|
205
205
|
queryParameters['chain'] = requestParameters.chain;
|
|
206
206
|
}
|
|
207
|
+
if (requestParameters.scope !== undefined) {
|
|
208
|
+
queryParameters['scope'] = requestParameters.scope;
|
|
209
|
+
}
|
|
210
|
+
if (requestParameters.applyPolicies !== undefined) {
|
|
211
|
+
queryParameters['applyPolicies'] = requestParameters.applyPolicies;
|
|
212
|
+
}
|
|
213
|
+
if (requestParameters.amountUsd !== undefined) {
|
|
214
|
+
queryParameters['amountUsd'] = requestParameters.amountUsd;
|
|
215
|
+
}
|
|
216
|
+
if (requestParameters.asset !== undefined) {
|
|
217
|
+
queryParameters['asset'] = requestParameters.asset;
|
|
218
|
+
}
|
|
207
219
|
const headerParameters = {};
|
|
208
220
|
if (this.configuration && this.configuration.accessToken) {
|
|
209
221
|
const token = this.configuration.accessToken;
|
package/src/apis/KybApi.cjs
CHANGED
|
@@ -516,6 +516,34 @@ class KybApi extends runtime.BaseAPI {
|
|
|
516
516
|
const response = await this.uploadKybDocumentRaw(requestParameters, initOverrides);
|
|
517
517
|
return await response.value();
|
|
518
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* Consumes the one-time token from an officer\'s invitation email and redirects to the vendor-hosted verification session. Deliberately unauthenticated: the officer is not a Dynamic user, so the signed token in the link is the credential. It is single-use, expires with the vendor session, and its redirect target is restricted to the vendor\'s own hosts.
|
|
521
|
+
* Redirect a business officer to their identity verification session
|
|
522
|
+
*/
|
|
523
|
+
async verifyKybOfficerConsentRaw(requestParameters, initOverrides) {
|
|
524
|
+
if (requestParameters.token === null || requestParameters.token === undefined) {
|
|
525
|
+
throw new runtime.RequiredError('token', 'Required parameter requestParameters.token was null or undefined when calling verifyKybOfficerConsent.');
|
|
526
|
+
}
|
|
527
|
+
const queryParameters = {};
|
|
528
|
+
if (requestParameters.token !== undefined) {
|
|
529
|
+
queryParameters['token'] = requestParameters.token;
|
|
530
|
+
}
|
|
531
|
+
const headerParameters = {};
|
|
532
|
+
const response = await this.request({
|
|
533
|
+
path: `/kyb/officers/verify`,
|
|
534
|
+
method: 'GET',
|
|
535
|
+
headers: headerParameters,
|
|
536
|
+
query: queryParameters,
|
|
537
|
+
}, initOverrides);
|
|
538
|
+
return new runtime.VoidApiResponse(response);
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Consumes the one-time token from an officer\'s invitation email and redirects to the vendor-hosted verification session. Deliberately unauthenticated: the officer is not a Dynamic user, so the signed token in the link is the credential. It is single-use, expires with the vendor session, and its redirect target is restricted to the vendor\'s own hosts.
|
|
542
|
+
* Redirect a business officer to their identity verification session
|
|
543
|
+
*/
|
|
544
|
+
async verifyKybOfficerConsent(requestParameters, initOverrides) {
|
|
545
|
+
await this.verifyKybOfficerConsentRaw(requestParameters, initOverrides);
|
|
546
|
+
}
|
|
519
547
|
}
|
|
520
548
|
|
|
521
549
|
exports.KybApi = KybApi;
|
package/src/apis/KybApi.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export interface UploadKybDocumentRequest {
|
|
|
47
47
|
file: Blob;
|
|
48
48
|
fileType?: string;
|
|
49
49
|
}
|
|
50
|
+
export interface VerifyKybOfficerConsentRequest {
|
|
51
|
+
token: string;
|
|
52
|
+
}
|
|
50
53
|
/**
|
|
51
54
|
*
|
|
52
55
|
*/
|
|
@@ -125,4 +128,14 @@ export declare class KybApi extends runtime.BaseAPI {
|
|
|
125
128
|
* Upload a single KYB business document
|
|
126
129
|
*/
|
|
127
130
|
uploadKybDocument(requestParameters: UploadKybDocumentRequest, initOverrides?: RequestInit): Promise<KybDocumentUploadResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Consumes the one-time token from an officer\'s invitation email and redirects to the vendor-hosted verification session. Deliberately unauthenticated: the officer is not a Dynamic user, so the signed token in the link is the credential. It is single-use, expires with the vendor session, and its redirect target is restricted to the vendor\'s own hosts.
|
|
133
|
+
* Redirect a business officer to their identity verification session
|
|
134
|
+
*/
|
|
135
|
+
verifyKybOfficerConsentRaw(requestParameters: VerifyKybOfficerConsentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
136
|
+
/**
|
|
137
|
+
* Consumes the one-time token from an officer\'s invitation email and redirects to the vendor-hosted verification session. Deliberately unauthenticated: the officer is not a Dynamic user, so the signed token in the link is the credential. It is single-use, expires with the vendor session, and its redirect target is restricted to the vendor\'s own hosts.
|
|
138
|
+
* Redirect a business officer to their identity verification session
|
|
139
|
+
*/
|
|
140
|
+
verifyKybOfficerConsent(requestParameters: VerifyKybOfficerConsentRequest, initOverrides?: RequestInit): Promise<void>;
|
|
128
141
|
}
|
package/src/apis/KybApi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAPI, RequiredError, JSONApiResponse, canConsumeForm } from '../runtime.js';
|
|
1
|
+
import { BaseAPI, RequiredError, JSONApiResponse, canConsumeForm, VoidApiResponse } from '../runtime.js';
|
|
2
2
|
import '../models/AccessOutcomeEnum.js';
|
|
3
3
|
import '../models/ExchangeKeyEnum.js';
|
|
4
4
|
import '../models/AssignableBusinessAccountMemberRole.js';
|
|
@@ -512,6 +512,34 @@ class KybApi extends BaseAPI {
|
|
|
512
512
|
const response = await this.uploadKybDocumentRaw(requestParameters, initOverrides);
|
|
513
513
|
return await response.value();
|
|
514
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* Consumes the one-time token from an officer\'s invitation email and redirects to the vendor-hosted verification session. Deliberately unauthenticated: the officer is not a Dynamic user, so the signed token in the link is the credential. It is single-use, expires with the vendor session, and its redirect target is restricted to the vendor\'s own hosts.
|
|
517
|
+
* Redirect a business officer to their identity verification session
|
|
518
|
+
*/
|
|
519
|
+
async verifyKybOfficerConsentRaw(requestParameters, initOverrides) {
|
|
520
|
+
if (requestParameters.token === null || requestParameters.token === undefined) {
|
|
521
|
+
throw new RequiredError('token', 'Required parameter requestParameters.token was null or undefined when calling verifyKybOfficerConsent.');
|
|
522
|
+
}
|
|
523
|
+
const queryParameters = {};
|
|
524
|
+
if (requestParameters.token !== undefined) {
|
|
525
|
+
queryParameters['token'] = requestParameters.token;
|
|
526
|
+
}
|
|
527
|
+
const headerParameters = {};
|
|
528
|
+
const response = await this.request({
|
|
529
|
+
path: `/kyb/officers/verify`,
|
|
530
|
+
method: 'GET',
|
|
531
|
+
headers: headerParameters,
|
|
532
|
+
query: queryParameters,
|
|
533
|
+
}, initOverrides);
|
|
534
|
+
return new VoidApiResponse(response);
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Consumes the one-time token from an officer\'s invitation email and redirects to the vendor-hosted verification session. Deliberately unauthenticated: the officer is not a Dynamic user, so the signed token in the link is the credential. It is single-use, expires with the vendor session, and its redirect target is restricted to the vendor\'s own hosts.
|
|
538
|
+
* Redirect a business officer to their identity verification session
|
|
539
|
+
*/
|
|
540
|
+
async verifyKybOfficerConsent(requestParameters, initOverrides) {
|
|
541
|
+
await this.verifyKybOfficerConsentRaw(requestParameters, initOverrides);
|
|
542
|
+
}
|
|
515
543
|
}
|
|
516
544
|
|
|
517
545
|
export { KybApi };
|
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -1243,6 +1243,18 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1243
1243
|
if (requestParameters.chain !== undefined) {
|
|
1244
1244
|
queryParameters['chain'] = requestParameters.chain;
|
|
1245
1245
|
}
|
|
1246
|
+
if (requestParameters.scope !== undefined) {
|
|
1247
|
+
queryParameters['scope'] = requestParameters.scope;
|
|
1248
|
+
}
|
|
1249
|
+
if (requestParameters.applyPolicies !== undefined) {
|
|
1250
|
+
queryParameters['applyPolicies'] = requestParameters.applyPolicies;
|
|
1251
|
+
}
|
|
1252
|
+
if (requestParameters.amountUsd !== undefined) {
|
|
1253
|
+
queryParameters['amountUsd'] = requestParameters.amountUsd;
|
|
1254
|
+
}
|
|
1255
|
+
if (requestParameters.asset !== undefined) {
|
|
1256
|
+
queryParameters['asset'] = requestParameters.asset;
|
|
1257
|
+
}
|
|
1246
1258
|
const headerParameters = {};
|
|
1247
1259
|
if (this.configuration && this.configuration.accessToken) {
|
|
1248
1260
|
const token = this.configuration.accessToken;
|
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, 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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, 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, ScreenTransactionRequest, ScreenTransactionResponse, 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, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, 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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, 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, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, 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, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -134,6 +134,10 @@ export interface CheckWalletSanctionsRequest {
|
|
|
134
134
|
environmentId: string;
|
|
135
135
|
walletAddress: string;
|
|
136
136
|
chain: ChainEnum;
|
|
137
|
+
scope?: ScreeningPolicyScopeEnum;
|
|
138
|
+
applyPolicies?: boolean;
|
|
139
|
+
amountUsd?: number;
|
|
140
|
+
asset?: string;
|
|
137
141
|
}
|
|
138
142
|
export interface CheckWalletSanctionsOptionsRequest {
|
|
139
143
|
environmentId: string;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -1239,6 +1239,18 @@ class SDKApi extends BaseAPI {
|
|
|
1239
1239
|
if (requestParameters.chain !== undefined) {
|
|
1240
1240
|
queryParameters['chain'] = requestParameters.chain;
|
|
1241
1241
|
}
|
|
1242
|
+
if (requestParameters.scope !== undefined) {
|
|
1243
|
+
queryParameters['scope'] = requestParameters.scope;
|
|
1244
|
+
}
|
|
1245
|
+
if (requestParameters.applyPolicies !== undefined) {
|
|
1246
|
+
queryParameters['applyPolicies'] = requestParameters.applyPolicies;
|
|
1247
|
+
}
|
|
1248
|
+
if (requestParameters.amountUsd !== undefined) {
|
|
1249
|
+
queryParameters['amountUsd'] = requestParameters.amountUsd;
|
|
1250
|
+
}
|
|
1251
|
+
if (requestParameters.asset !== undefined) {
|
|
1252
|
+
queryParameters['asset'] = requestParameters.asset;
|
|
1253
|
+
}
|
|
1242
1254
|
const headerParameters = {};
|
|
1243
1255
|
if (this.configuration && this.configuration.accessToken) {
|
|
1244
1256
|
const token = this.configuration.accessToken;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
var ScreeningActionEnum = require('./ScreeningActionEnum.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function WalletSanctionsResponseFromJSON(json) {
|
|
@@ -16,6 +17,7 @@ function WalletSanctionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
17
|
'walletAddress': json['walletAddress'],
|
|
17
18
|
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
18
19
|
'isBlocked': json['isBlocked'],
|
|
20
|
+
'action': ScreeningActionEnum.ScreeningActionEnumFromJSON(json['action']),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function WalletSanctionsResponseToJSON(value) {
|
|
@@ -29,6 +31,7 @@ function WalletSanctionsResponseToJSON(value) {
|
|
|
29
31
|
'walletAddress': value.walletAddress,
|
|
30
32
|
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
31
33
|
'isBlocked': value.isBlocked,
|
|
34
|
+
'action': ScreeningActionEnum.ScreeningActionEnumToJSON(value.action),
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { ScreeningActionEnum } from './ScreeningActionEnum';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface WalletSanctionsResponse {
|
|
|
34
35
|
* @memberof WalletSanctionsResponse
|
|
35
36
|
*/
|
|
36
37
|
isBlocked: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ScreeningActionEnum}
|
|
41
|
+
* @memberof WalletSanctionsResponse
|
|
42
|
+
*/
|
|
43
|
+
action: ScreeningActionEnum;
|
|
37
44
|
}
|
|
38
45
|
export declare function WalletSanctionsResponseFromJSON(json: any): WalletSanctionsResponse;
|
|
39
46
|
export declare function WalletSanctionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletSanctionsResponse;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
import { ScreeningActionEnumFromJSON, ScreeningActionEnumToJSON } from './ScreeningActionEnum.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function WalletSanctionsResponseFromJSON(json) {
|
|
@@ -12,6 +13,7 @@ function WalletSanctionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
12
13
|
'walletAddress': json['walletAddress'],
|
|
13
14
|
'chain': ChainEnumFromJSON(json['chain']),
|
|
14
15
|
'isBlocked': json['isBlocked'],
|
|
16
|
+
'action': ScreeningActionEnumFromJSON(json['action']),
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
function WalletSanctionsResponseToJSON(value) {
|
|
@@ -25,6 +27,7 @@ function WalletSanctionsResponseToJSON(value) {
|
|
|
25
27
|
'walletAddress': value.walletAddress,
|
|
26
28
|
'chain': ChainEnumToJSON(value.chain),
|
|
27
29
|
'isBlocked': value.isBlocked,
|
|
30
|
+
'action': ScreeningActionEnumToJSON(value.action),
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
|