@dynamic-labs/sdk-api 0.0.1069 → 0.0.1071
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 +75 -0
- package/src/apis/SDKApi.d.ts +31 -1
- package/src/apis/SDKApi.js +75 -0
- package/src/index.cjs +12 -0
- package/src/index.js +3 -0
- package/src/models/FlowFeeBalance.cjs +41 -0
- package/src/models/FlowFeeBalance.d.ts +51 -0
- package/src/models/FlowFeeBalance.js +35 -0
- package/src/models/FlowFeeBalancesResponse.cjs +35 -0
- package/src/models/FlowFeeBalancesResponse.d.ts +34 -0
- package/src/models/FlowFeeBalancesResponse.js +29 -0
- package/src/models/InlineResponse2008.cjs +33 -0
- package/src/models/InlineResponse2008.d.ts +28 -0
- package/src/models/InlineResponse2008.js +27 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -181,6 +181,7 @@ var InlineResponse2004 = require('../models/InlineResponse2004.cjs');
|
|
|
181
181
|
var InlineResponse2005 = require('../models/InlineResponse2005.cjs');
|
|
182
182
|
var InlineResponse2006 = require('../models/InlineResponse2006.cjs');
|
|
183
183
|
var InlineResponse2007 = require('../models/InlineResponse2007.cjs');
|
|
184
|
+
var InlineResponse2008 = require('../models/InlineResponse2008.cjs');
|
|
184
185
|
require('../models/InviteStatusEnum.cjs');
|
|
185
186
|
require('../models/RoleEnum.cjs');
|
|
186
187
|
var JwksResponse = require('../models/JwksResponse.cjs');
|
|
@@ -8542,6 +8543,38 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8542
8543
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8543
8544
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8544
8545
|
}
|
|
8546
|
+
/**
|
|
8547
|
+
* Options call for this endpoint
|
|
8548
|
+
*/
|
|
8549
|
+
async sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides) {
|
|
8550
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8551
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8552
|
+
}
|
|
8553
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8554
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8555
|
+
}
|
|
8556
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8557
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8558
|
+
}
|
|
8559
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8560
|
+
throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8561
|
+
}
|
|
8562
|
+
const queryParameters = {};
|
|
8563
|
+
const headerParameters = {};
|
|
8564
|
+
const response = await this.request({
|
|
8565
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
8566
|
+
method: 'OPTIONS',
|
|
8567
|
+
headers: headerParameters,
|
|
8568
|
+
query: queryParameters,
|
|
8569
|
+
}, initOverrides);
|
|
8570
|
+
return new runtime.VoidApiResponse(response);
|
|
8571
|
+
}
|
|
8572
|
+
/**
|
|
8573
|
+
* Options call for this endpoint
|
|
8574
|
+
*/
|
|
8575
|
+
async sdkBusinessAccountWalletSignerOptions(requestParameters, initOverrides) {
|
|
8576
|
+
await this.sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides);
|
|
8577
|
+
}
|
|
8545
8578
|
/**
|
|
8546
8579
|
* Options call for this endpoint
|
|
8547
8580
|
*/
|
|
@@ -8734,6 +8767,48 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8734
8767
|
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8735
8768
|
return await response.value();
|
|
8736
8769
|
}
|
|
8770
|
+
/**
|
|
8771
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
8772
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8773
|
+
*/
|
|
8774
|
+
async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8775
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8776
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8777
|
+
}
|
|
8778
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8779
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8780
|
+
}
|
|
8781
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8782
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8783
|
+
}
|
|
8784
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8785
|
+
throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8786
|
+
}
|
|
8787
|
+
const queryParameters = {};
|
|
8788
|
+
const headerParameters = {};
|
|
8789
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8790
|
+
const token = this.configuration.accessToken;
|
|
8791
|
+
const tokenString = await token("bearerAuth", []);
|
|
8792
|
+
if (tokenString) {
|
|
8793
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8794
|
+
}
|
|
8795
|
+
}
|
|
8796
|
+
const response = await this.request({
|
|
8797
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
8798
|
+
method: 'DELETE',
|
|
8799
|
+
headers: headerParameters,
|
|
8800
|
+
query: queryParameters,
|
|
8801
|
+
}, initOverrides);
|
|
8802
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InlineResponse2008.InlineResponse2008FromJSON(jsonValue));
|
|
8803
|
+
}
|
|
8804
|
+
/**
|
|
8805
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
8806
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8807
|
+
*/
|
|
8808
|
+
async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8809
|
+
const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8810
|
+
return await response.value();
|
|
8811
|
+
}
|
|
8737
8812
|
/**
|
|
8738
8813
|
*/
|
|
8739
8814
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|
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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineObject6, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, 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, 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, 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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineObject6, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, 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, 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 AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1085,6 +1085,12 @@ export interface SdkBusinessAccountMembersOptionsRequest {
|
|
|
1085
1085
|
environmentId: string;
|
|
1086
1086
|
businessAccountId: string;
|
|
1087
1087
|
}
|
|
1088
|
+
export interface SdkBusinessAccountWalletSignerOptionsRequest {
|
|
1089
|
+
environmentId: string;
|
|
1090
|
+
businessAccountId: string;
|
|
1091
|
+
walletId: string;
|
|
1092
|
+
signerId: string;
|
|
1093
|
+
}
|
|
1088
1094
|
export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
1089
1095
|
environmentId: string;
|
|
1090
1096
|
businessAccountId: string;
|
|
@@ -1108,6 +1114,12 @@ export interface SdkLinkBusinessAccountWalletRequest {
|
|
|
1108
1114
|
export interface SdkListBusinessAccountsRequest {
|
|
1109
1115
|
environmentId: string;
|
|
1110
1116
|
}
|
|
1117
|
+
export interface SdkRemoveBusinessAccountSignerRequest {
|
|
1118
|
+
environmentId: string;
|
|
1119
|
+
businessAccountId: string;
|
|
1120
|
+
walletId: string;
|
|
1121
|
+
signerId: string;
|
|
1122
|
+
}
|
|
1111
1123
|
export interface SdkSettingsOptionsRequest {
|
|
1112
1124
|
environmentId: string;
|
|
1113
1125
|
}
|
|
@@ -3827,6 +3839,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3827
3839
|
* Options call for this endpoint
|
|
3828
3840
|
*/
|
|
3829
3841
|
sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Options call for this endpoint
|
|
3844
|
+
*/
|
|
3845
|
+
sdkBusinessAccountWalletSignerOptionsRaw(requestParameters: SdkBusinessAccountWalletSignerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3846
|
+
/**
|
|
3847
|
+
* Options call for this endpoint
|
|
3848
|
+
*/
|
|
3849
|
+
sdkBusinessAccountWalletSignerOptions(requestParameters: SdkBusinessAccountWalletSignerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3830
3850
|
/**
|
|
3831
3851
|
* Options call for this endpoint
|
|
3832
3852
|
*/
|
|
@@ -3881,6 +3901,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3881
3901
|
* SDK — list business accounts the caller is a member of
|
|
3882
3902
|
*/
|
|
3883
3903
|
sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
3904
|
+
/**
|
|
3905
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
3906
|
+
* SDK — remove a signer from a wallet in a business account
|
|
3907
|
+
*/
|
|
3908
|
+
sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2008>>;
|
|
3909
|
+
/**
|
|
3910
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
3911
|
+
* SDK — remove a signer from a wallet in a business account
|
|
3912
|
+
*/
|
|
3913
|
+
sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2008>;
|
|
3884
3914
|
/**
|
|
3885
3915
|
*/
|
|
3886
3916
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -177,6 +177,7 @@ import { InlineResponse2004FromJSON } from '../models/InlineResponse2004.js';
|
|
|
177
177
|
import { InlineResponse2005FromJSON } from '../models/InlineResponse2005.js';
|
|
178
178
|
import { InlineResponse2006FromJSON } from '../models/InlineResponse2006.js';
|
|
179
179
|
import { InlineResponse2007FromJSON } from '../models/InlineResponse2007.js';
|
|
180
|
+
import { InlineResponse2008FromJSON } from '../models/InlineResponse2008.js';
|
|
180
181
|
import '../models/InviteStatusEnum.js';
|
|
181
182
|
import '../models/RoleEnum.js';
|
|
182
183
|
import { JwksResponseFromJSON } from '../models/JwksResponse.js';
|
|
@@ -8538,6 +8539,38 @@ class SDKApi extends BaseAPI {
|
|
|
8538
8539
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8539
8540
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8540
8541
|
}
|
|
8542
|
+
/**
|
|
8543
|
+
* Options call for this endpoint
|
|
8544
|
+
*/
|
|
8545
|
+
async sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides) {
|
|
8546
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8547
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8548
|
+
}
|
|
8549
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8550
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8551
|
+
}
|
|
8552
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8553
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8554
|
+
}
|
|
8555
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8556
|
+
throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8557
|
+
}
|
|
8558
|
+
const queryParameters = {};
|
|
8559
|
+
const headerParameters = {};
|
|
8560
|
+
const response = await this.request({
|
|
8561
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
8562
|
+
method: 'OPTIONS',
|
|
8563
|
+
headers: headerParameters,
|
|
8564
|
+
query: queryParameters,
|
|
8565
|
+
}, initOverrides);
|
|
8566
|
+
return new VoidApiResponse(response);
|
|
8567
|
+
}
|
|
8568
|
+
/**
|
|
8569
|
+
* Options call for this endpoint
|
|
8570
|
+
*/
|
|
8571
|
+
async sdkBusinessAccountWalletSignerOptions(requestParameters, initOverrides) {
|
|
8572
|
+
await this.sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides);
|
|
8573
|
+
}
|
|
8541
8574
|
/**
|
|
8542
8575
|
* Options call for this endpoint
|
|
8543
8576
|
*/
|
|
@@ -8730,6 +8763,48 @@ class SDKApi extends BaseAPI {
|
|
|
8730
8763
|
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8731
8764
|
return await response.value();
|
|
8732
8765
|
}
|
|
8766
|
+
/**
|
|
8767
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
8768
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8769
|
+
*/
|
|
8770
|
+
async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8771
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8772
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8773
|
+
}
|
|
8774
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8775
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8776
|
+
}
|
|
8777
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8778
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8779
|
+
}
|
|
8780
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8781
|
+
throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8782
|
+
}
|
|
8783
|
+
const queryParameters = {};
|
|
8784
|
+
const headerParameters = {};
|
|
8785
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8786
|
+
const token = this.configuration.accessToken;
|
|
8787
|
+
const tokenString = await token("bearerAuth", []);
|
|
8788
|
+
if (tokenString) {
|
|
8789
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8790
|
+
}
|
|
8791
|
+
}
|
|
8792
|
+
const response = await this.request({
|
|
8793
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
8794
|
+
method: 'DELETE',
|
|
8795
|
+
headers: headerParameters,
|
|
8796
|
+
query: queryParameters,
|
|
8797
|
+
}, initOverrides);
|
|
8798
|
+
return new JSONApiResponse(response, (jsonValue) => InlineResponse2008FromJSON(jsonValue));
|
|
8799
|
+
}
|
|
8800
|
+
/**
|
|
8801
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
8802
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8803
|
+
*/
|
|
8804
|
+
async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8805
|
+
const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8806
|
+
return await response.value();
|
|
8807
|
+
}
|
|
8733
8808
|
/**
|
|
8734
8809
|
*/
|
|
8735
8810
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|
package/src/index.cjs
CHANGED
|
@@ -321,6 +321,8 @@ var FlowCreateResponse = require('./models/FlowCreateResponse.cjs');
|
|
|
321
321
|
var FlowExchangeSource = require('./models/FlowExchangeSource.cjs');
|
|
322
322
|
var FlowExecutionStateEnum = require('./models/FlowExecutionStateEnum.cjs');
|
|
323
323
|
var FlowFailure = require('./models/FlowFailure.cjs');
|
|
324
|
+
var FlowFeeBalance = require('./models/FlowFeeBalance.cjs');
|
|
325
|
+
var FlowFeeBalancesResponse = require('./models/FlowFeeBalancesResponse.cjs');
|
|
324
326
|
var FlowFeeBreakdown = require('./models/FlowFeeBreakdown.cjs');
|
|
325
327
|
var FlowFeeClaimRequest = require('./models/FlowFeeClaimRequest.cjs');
|
|
326
328
|
var FlowFeeClaimResponse = require('./models/FlowFeeClaimResponse.cjs');
|
|
@@ -410,6 +412,7 @@ var InlineResponse2004 = require('./models/InlineResponse2004.cjs');
|
|
|
410
412
|
var InlineResponse2005 = require('./models/InlineResponse2005.cjs');
|
|
411
413
|
var InlineResponse2006 = require('./models/InlineResponse2006.cjs');
|
|
412
414
|
var InlineResponse2007 = require('./models/InlineResponse2007.cjs');
|
|
415
|
+
var InlineResponse2008 = require('./models/InlineResponse2008.cjs');
|
|
413
416
|
var InlineResponse201 = require('./models/InlineResponse201.cjs');
|
|
414
417
|
var InlineResponse400 = require('./models/InlineResponse400.cjs');
|
|
415
418
|
var IntegrationSetting = require('./models/IntegrationSetting.cjs');
|
|
@@ -1945,6 +1948,12 @@ exports.FlowExecutionStateEnumToJSON = FlowExecutionStateEnum.FlowExecutionState
|
|
|
1945
1948
|
exports.FlowFailureFromJSON = FlowFailure.FlowFailureFromJSON;
|
|
1946
1949
|
exports.FlowFailureFromJSONTyped = FlowFailure.FlowFailureFromJSONTyped;
|
|
1947
1950
|
exports.FlowFailureToJSON = FlowFailure.FlowFailureToJSON;
|
|
1951
|
+
exports.FlowFeeBalanceFromJSON = FlowFeeBalance.FlowFeeBalanceFromJSON;
|
|
1952
|
+
exports.FlowFeeBalanceFromJSONTyped = FlowFeeBalance.FlowFeeBalanceFromJSONTyped;
|
|
1953
|
+
exports.FlowFeeBalanceToJSON = FlowFeeBalance.FlowFeeBalanceToJSON;
|
|
1954
|
+
exports.FlowFeeBalancesResponseFromJSON = FlowFeeBalancesResponse.FlowFeeBalancesResponseFromJSON;
|
|
1955
|
+
exports.FlowFeeBalancesResponseFromJSONTyped = FlowFeeBalancesResponse.FlowFeeBalancesResponseFromJSONTyped;
|
|
1956
|
+
exports.FlowFeeBalancesResponseToJSON = FlowFeeBalancesResponse.FlowFeeBalancesResponseToJSON;
|
|
1948
1957
|
exports.FlowFeeBreakdownFromJSON = FlowFeeBreakdown.FlowFeeBreakdownFromJSON;
|
|
1949
1958
|
exports.FlowFeeBreakdownFromJSONTyped = FlowFeeBreakdown.FlowFeeBreakdownFromJSONTyped;
|
|
1950
1959
|
exports.FlowFeeBreakdownToJSON = FlowFeeBreakdown.FlowFeeBreakdownToJSON;
|
|
@@ -2280,6 +2289,9 @@ exports.InlineResponse2006ToJSON = InlineResponse2006.InlineResponse2006ToJSON;
|
|
|
2280
2289
|
exports.InlineResponse2007FromJSON = InlineResponse2007.InlineResponse2007FromJSON;
|
|
2281
2290
|
exports.InlineResponse2007FromJSONTyped = InlineResponse2007.InlineResponse2007FromJSONTyped;
|
|
2282
2291
|
exports.InlineResponse2007ToJSON = InlineResponse2007.InlineResponse2007ToJSON;
|
|
2292
|
+
exports.InlineResponse2008FromJSON = InlineResponse2008.InlineResponse2008FromJSON;
|
|
2293
|
+
exports.InlineResponse2008FromJSONTyped = InlineResponse2008.InlineResponse2008FromJSONTyped;
|
|
2294
|
+
exports.InlineResponse2008ToJSON = InlineResponse2008.InlineResponse2008ToJSON;
|
|
2283
2295
|
exports.InlineResponse201FromJSON = InlineResponse201.InlineResponse201FromJSON;
|
|
2284
2296
|
exports.InlineResponse201FromJSONTyped = InlineResponse201.InlineResponse201FromJSONTyped;
|
|
2285
2297
|
exports.InlineResponse201ToJSON = InlineResponse201.InlineResponse201ToJSON;
|
package/src/index.js
CHANGED
|
@@ -317,6 +317,8 @@ export { FlowCreateResponseFromJSON, FlowCreateResponseFromJSONTyped, FlowCreate
|
|
|
317
317
|
export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchangeSourceToJSON } from './models/FlowExchangeSource.js';
|
|
318
318
|
export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
|
|
319
319
|
export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON } from './models/FlowFailure.js';
|
|
320
|
+
export { FlowFeeBalanceFromJSON, FlowFeeBalanceFromJSONTyped, FlowFeeBalanceToJSON } from './models/FlowFeeBalance.js';
|
|
321
|
+
export { FlowFeeBalancesResponseFromJSON, FlowFeeBalancesResponseFromJSONTyped, FlowFeeBalancesResponseToJSON } from './models/FlowFeeBalancesResponse.js';
|
|
320
322
|
export { FlowFeeBreakdownFromJSON, FlowFeeBreakdownFromJSONTyped, FlowFeeBreakdownToJSON } from './models/FlowFeeBreakdown.js';
|
|
321
323
|
export { FlowFeeClaimRequestFromJSON, FlowFeeClaimRequestFromJSONTyped, FlowFeeClaimRequestToJSON } from './models/FlowFeeClaimRequest.js';
|
|
322
324
|
export { FlowFeeClaimResponseFromJSON, FlowFeeClaimResponseFromJSONTyped, FlowFeeClaimResponseToJSON } from './models/FlowFeeClaimResponse.js';
|
|
@@ -406,6 +408,7 @@ export { InlineResponse2004FromJSON, InlineResponse2004FromJSONTyped, InlineResp
|
|
|
406
408
|
export { InlineResponse2005FromJSON, InlineResponse2005FromJSONTyped, InlineResponse2005ToJSON } from './models/InlineResponse2005.js';
|
|
407
409
|
export { InlineResponse2006FromJSON, InlineResponse2006FromJSONTyped, InlineResponse2006ToJSON } from './models/InlineResponse2006.js';
|
|
408
410
|
export { InlineResponse2007FromJSON, InlineResponse2007FromJSONTyped, InlineResponse2007ToJSON } from './models/InlineResponse2007.js';
|
|
411
|
+
export { InlineResponse2008FromJSON, InlineResponse2008FromJSONTyped, InlineResponse2008ToJSON } from './models/InlineResponse2008.js';
|
|
409
412
|
export { InlineResponse201FromJSON, InlineResponse201FromJSONTyped, InlineResponse201ToJSON } from './models/InlineResponse201.js';
|
|
410
413
|
export { InlineResponse400FromJSON, InlineResponse400FromJSONTyped, InlineResponse400ToJSON } from './models/InlineResponse400.js';
|
|
411
414
|
export { IntegrationSettingFromJSON, IntegrationSettingFromJSONTyped, IntegrationSettingToJSON } from './models/IntegrationSetting.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeBalanceFromJSON(json) {
|
|
9
|
+
return FlowFeeBalanceFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'amount': json['amount'],
|
|
17
|
+
'amountUSD': !runtime.exists(json, 'amountUSD') ? undefined : json['amountUSD'],
|
|
18
|
+
'chainId': json['chainId'],
|
|
19
|
+
'tokenAddress': json['tokenAddress'],
|
|
20
|
+
'tokenSymbol': !runtime.exists(json, 'tokenSymbol') ? undefined : json['tokenSymbol'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function FlowFeeBalanceToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'amount': value.amount,
|
|
32
|
+
'amountUSD': value.amountUSD,
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
'tokenAddress': value.tokenAddress,
|
|
35
|
+
'tokenSymbol': value.tokenSymbol,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.FlowFeeBalanceFromJSON = FlowFeeBalanceFromJSON;
|
|
40
|
+
exports.FlowFeeBalanceFromJSONTyped = FlowFeeBalanceFromJSONTyped;
|
|
41
|
+
exports.FlowFeeBalanceToJSON = FlowFeeBalanceToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A single claimable fee balance accrued for a recipient, broken down by token and chain. Provider-agnostic: which provider accrued the balance is an internal detail and is not surfaced to the caller.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowFeeBalance
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowFeeBalance {
|
|
18
|
+
/**
|
|
19
|
+
* The claimable amount, as a string in the token's smallest unit
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowFeeBalance
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
* Approximate value of the claimable amount in USD, when available
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FlowFeeBalance
|
|
28
|
+
*/
|
|
29
|
+
amountUSD?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The chain the balance can be claimed and settled on
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FlowFeeBalance
|
|
34
|
+
*/
|
|
35
|
+
chainId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The token contract address the balance is denominated in
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FlowFeeBalance
|
|
40
|
+
*/
|
|
41
|
+
tokenAddress: string;
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable token symbol, when available
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FlowFeeBalance
|
|
46
|
+
*/
|
|
47
|
+
tokenSymbol?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function FlowFeeBalanceFromJSON(json: any): FlowFeeBalance;
|
|
50
|
+
export declare function FlowFeeBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeBalance;
|
|
51
|
+
export declare function FlowFeeBalanceToJSON(value?: FlowFeeBalance | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeBalanceFromJSON(json) {
|
|
5
|
+
return FlowFeeBalanceFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'amount': json['amount'],
|
|
13
|
+
'amountUSD': !exists(json, 'amountUSD') ? undefined : json['amountUSD'],
|
|
14
|
+
'chainId': json['chainId'],
|
|
15
|
+
'tokenAddress': json['tokenAddress'],
|
|
16
|
+
'tokenSymbol': !exists(json, 'tokenSymbol') ? undefined : json['tokenSymbol'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function FlowFeeBalanceToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'amount': value.amount,
|
|
28
|
+
'amountUSD': value.amountUSD,
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
'tokenAddress': value.tokenAddress,
|
|
31
|
+
'tokenSymbol': value.tokenSymbol,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { FlowFeeBalanceFromJSON, FlowFeeBalanceFromJSONTyped, FlowFeeBalanceToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var FlowFeeBalance = require('./FlowFeeBalance.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeBalancesResponseFromJSON(json) {
|
|
9
|
+
return FlowFeeBalancesResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeBalancesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'balances': (json['balances'].map(FlowFeeBalance.FlowFeeBalanceFromJSON)),
|
|
17
|
+
'hasClaimableFees': json['hasClaimableFees'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function FlowFeeBalancesResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'balances': (value.balances.map(FlowFeeBalance.FlowFeeBalanceToJSON)),
|
|
29
|
+
'hasClaimableFees': value.hasClaimableFees,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.FlowFeeBalancesResponseFromJSON = FlowFeeBalancesResponseFromJSON;
|
|
34
|
+
exports.FlowFeeBalancesResponseFromJSONTyped = FlowFeeBalancesResponseFromJSONTyped;
|
|
35
|
+
exports.FlowFeeBalancesResponseToJSON = FlowFeeBalancesResponseToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { FlowFeeBalance } from './FlowFeeBalance';
|
|
13
|
+
/**
|
|
14
|
+
* The recipient's claimable fee balances aggregated across every provider. An empty balances list means there is nothing to claim; hasClaimableFees is a convenience flag that is true when balances is non-empty.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowFeeBalancesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowFeeBalancesResponse {
|
|
19
|
+
/**
|
|
20
|
+
* One entry per claimable token and chain balance; empty when there is nothing to claim
|
|
21
|
+
* @type {Array<FlowFeeBalance>}
|
|
22
|
+
* @memberof FlowFeeBalancesResponse
|
|
23
|
+
*/
|
|
24
|
+
balances: Array<FlowFeeBalance>;
|
|
25
|
+
/**
|
|
26
|
+
* True when the recipient has at least one claimable balance
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof FlowFeeBalancesResponse
|
|
29
|
+
*/
|
|
30
|
+
hasClaimableFees: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function FlowFeeBalancesResponseFromJSON(json: any): FlowFeeBalancesResponse;
|
|
33
|
+
export declare function FlowFeeBalancesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeBalancesResponse;
|
|
34
|
+
export declare function FlowFeeBalancesResponseToJSON(value?: FlowFeeBalancesResponse | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FlowFeeBalanceFromJSON, FlowFeeBalanceToJSON } from './FlowFeeBalance.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeBalancesResponseFromJSON(json) {
|
|
5
|
+
return FlowFeeBalancesResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeBalancesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'balances': (json['balances'].map(FlowFeeBalanceFromJSON)),
|
|
13
|
+
'hasClaimableFees': json['hasClaimableFees'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function FlowFeeBalancesResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'balances': (value.balances.map(FlowFeeBalanceToJSON)),
|
|
25
|
+
'hasClaimableFees': value.hasClaimableFees,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FlowFeeBalancesResponseFromJSON, FlowFeeBalancesResponseFromJSONTyped, FlowFeeBalancesResponseToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BusinessAccountSigner = require('./BusinessAccountSigner.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function InlineResponse2008FromJSON(json) {
|
|
9
|
+
return InlineResponse2008FromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function InlineResponse2008FromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'signer': BusinessAccountSigner.BusinessAccountSignerFromJSON(json['signer']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function InlineResponse2008ToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'signer': BusinessAccountSigner.BusinessAccountSignerToJSON(value.signer),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.InlineResponse2008FromJSON = InlineResponse2008FromJSON;
|
|
32
|
+
exports.InlineResponse2008FromJSONTyped = InlineResponse2008FromJSONTyped;
|
|
33
|
+
exports.InlineResponse2008ToJSON = InlineResponse2008ToJSON;
|
|
@@ -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 { BusinessAccountSigner } from './BusinessAccountSigner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InlineResponse2008
|
|
17
|
+
*/
|
|
18
|
+
export interface InlineResponse2008 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {BusinessAccountSigner}
|
|
22
|
+
* @memberof InlineResponse2008
|
|
23
|
+
*/
|
|
24
|
+
signer: BusinessAccountSigner;
|
|
25
|
+
}
|
|
26
|
+
export declare function InlineResponse2008FromJSON(json: any): InlineResponse2008;
|
|
27
|
+
export declare function InlineResponse2008FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse2008;
|
|
28
|
+
export declare function InlineResponse2008ToJSON(value?: InlineResponse2008 | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BusinessAccountSignerFromJSON, BusinessAccountSignerToJSON } from './BusinessAccountSigner.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function InlineResponse2008FromJSON(json) {
|
|
5
|
+
return InlineResponse2008FromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function InlineResponse2008FromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'signer': BusinessAccountSignerFromJSON(json['signer']),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function InlineResponse2008ToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'signer': BusinessAccountSignerToJSON(value.signer),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { InlineResponse2008FromJSON, InlineResponse2008FromJSONTyped, InlineResponse2008ToJSON };
|
|
@@ -149,6 +149,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
149
149
|
UnprocessableEntityErrorCode["AddressScreeningByokQuota"] = "address_screening_byok_quota";
|
|
150
150
|
UnprocessableEntityErrorCode["AddressScreeningByokShape"] = "address_screening_byok_shape";
|
|
151
151
|
UnprocessableEntityErrorCode["AddressScreeningByokUpstream"] = "address_screening_byok_upstream";
|
|
152
|
+
UnprocessableEntityErrorCode["CaptchaSettingsIncompleteKeyPair"] = "captcha_settings_incomplete_key_pair";
|
|
152
153
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
153
154
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
154
155
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -141,7 +141,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
141
141
|
AddressScreeningByokAuth = "address_screening_byok_auth",
|
|
142
142
|
AddressScreeningByokQuota = "address_screening_byok_quota",
|
|
143
143
|
AddressScreeningByokShape = "address_screening_byok_shape",
|
|
144
|
-
AddressScreeningByokUpstream = "address_screening_byok_upstream"
|
|
144
|
+
AddressScreeningByokUpstream = "address_screening_byok_upstream",
|
|
145
|
+
CaptchaSettingsIncompleteKeyPair = "captcha_settings_incomplete_key_pair"
|
|
145
146
|
}
|
|
146
147
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
147
148
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -145,6 +145,7 @@ var UnprocessableEntityErrorCode;
|
|
|
145
145
|
UnprocessableEntityErrorCode["AddressScreeningByokQuota"] = "address_screening_byok_quota";
|
|
146
146
|
UnprocessableEntityErrorCode["AddressScreeningByokShape"] = "address_screening_byok_shape";
|
|
147
147
|
UnprocessableEntityErrorCode["AddressScreeningByokUpstream"] = "address_screening_byok_upstream";
|
|
148
|
+
UnprocessableEntityErrorCode["CaptchaSettingsIncompleteKeyPair"] = "captcha_settings_incomplete_key_pair";
|
|
148
149
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
149
150
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
150
151
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -271,6 +271,8 @@ export * from './FlowCreateResponse';
|
|
|
271
271
|
export * from './FlowExchangeSource';
|
|
272
272
|
export * from './FlowExecutionStateEnum';
|
|
273
273
|
export * from './FlowFailure';
|
|
274
|
+
export * from './FlowFeeBalance';
|
|
275
|
+
export * from './FlowFeeBalancesResponse';
|
|
274
276
|
export * from './FlowFeeBreakdown';
|
|
275
277
|
export * from './FlowFeeClaimRequest';
|
|
276
278
|
export * from './FlowFeeClaimResponse';
|
|
@@ -360,6 +362,7 @@ export * from './InlineResponse2004';
|
|
|
360
362
|
export * from './InlineResponse2005';
|
|
361
363
|
export * from './InlineResponse2006';
|
|
362
364
|
export * from './InlineResponse2007';
|
|
365
|
+
export * from './InlineResponse2008';
|
|
363
366
|
export * from './InlineResponse201';
|
|
364
367
|
export * from './InlineResponse400';
|
|
365
368
|
export * from './IntegrationSetting';
|