@dynamic-labs/sdk-api-core 0.153.0 → 0.155.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/SDKApi.cjs +197 -1
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +83 -1
- package/src/apis/SDKApi.js +197 -1
- package/src/apis/SDKApi.js.map +1 -1
- package/src/index.cjs +28 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +7 -0
- package/src/index.js.map +1 -1
- package/src/models/BusinessAccountMemberInviteListResponse.cjs +33 -0
- package/src/models/BusinessAccountMemberInviteListResponse.cjs.map +1 -0
- package/src/models/BusinessAccountMemberInviteListResponse.d.ts +28 -0
- package/src/models/BusinessAccountMemberInviteListResponse.js +27 -0
- package/src/models/BusinessAccountMemberInviteListResponse.js.map +1 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.cjs +37 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.cjs.map +1 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.d.ts +43 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.js +31 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.js.map +1 -0
- package/src/models/FlowSourceTokenOption.cjs +39 -0
- package/src/models/FlowSourceTokenOption.cjs.map +1 -0
- package/src/models/FlowSourceTokenOption.d.ts +42 -0
- package/src/models/FlowSourceTokenOption.js +33 -0
- package/src/models/FlowSourceTokenOption.js.map +1 -0
- package/src/models/FlowSourceTokenOptionChain.cjs +36 -0
- package/src/models/FlowSourceTokenOptionChain.cjs.map +1 -0
- package/src/models/FlowSourceTokenOptionChain.d.ts +34 -0
- package/src/models/FlowSourceTokenOptionChain.js +30 -0
- package/src/models/FlowSourceTokenOptionChain.js.map +1 -0
- package/src/models/FlowSourceTokenOptionNetwork.cjs +37 -0
- package/src/models/FlowSourceTokenOptionNetwork.cjs.map +1 -0
- package/src/models/FlowSourceTokenOptionNetwork.d.ts +39 -0
- package/src/models/FlowSourceTokenOptionNetwork.js +31 -0
- package/src/models/FlowSourceTokenOptionNetwork.js.map +1 -0
- package/src/models/FlowSourceTokenOptionToken.cjs +39 -0
- package/src/models/FlowSourceTokenOptionToken.cjs.map +1 -0
- package/src/models/FlowSourceTokenOptionToken.d.ts +45 -0
- package/src/models/FlowSourceTokenOptionToken.js +33 -0
- package/src/models/FlowSourceTokenOptionToken.js.map +1 -0
- package/src/models/FlowSourceTokenOptionsResponse.cjs +33 -0
- package/src/models/FlowSourceTokenOptionsResponse.cjs.map +1 -0
- package/src/models/FlowSourceTokenOptionsResponse.d.ts +28 -0
- package/src/models/FlowSourceTokenOptionsResponse.js +27 -0
- package/src/models/FlowSourceTokenOptionsResponse.js.map +1 -0
- package/src/models/index.d.ts +7 -0
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
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 { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, 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, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, 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, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, 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, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMemberInviteListResponse, BusinessAccountMemberInviteReceipt, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, CancelBusinessAccountMemberInviteSdkRequest, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, 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, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, 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, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, 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, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AcceptBusinessAccountInviteRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
inviteId: string;
|
|
@@ -591,6 +591,15 @@ export interface GetFlowQuoteOptionsRequest {
|
|
|
591
591
|
environmentId: string;
|
|
592
592
|
flowId: string;
|
|
593
593
|
}
|
|
594
|
+
export interface GetFlowSourceTokenOptionsRequest {
|
|
595
|
+
environmentId: string;
|
|
596
|
+
flowId: string;
|
|
597
|
+
sourceType: FlowSourceTypeEnum;
|
|
598
|
+
}
|
|
599
|
+
export interface GetFlowSourceTokenOptionsOptionsRequest {
|
|
600
|
+
environmentId: string;
|
|
601
|
+
flowId: string;
|
|
602
|
+
}
|
|
594
603
|
export interface GetGlobalWalletsSettingsRequest {
|
|
595
604
|
environmentId: string;
|
|
596
605
|
}
|
|
@@ -1253,6 +1262,15 @@ export interface SdkBusinessAccountMemberByUserOptionsRequest {
|
|
|
1253
1262
|
businessAccountId: string;
|
|
1254
1263
|
userId: string;
|
|
1255
1264
|
}
|
|
1265
|
+
export interface SdkBusinessAccountMemberInviteOptionsRequest {
|
|
1266
|
+
environmentId: string;
|
|
1267
|
+
businessAccountId: string;
|
|
1268
|
+
inviteId: string;
|
|
1269
|
+
}
|
|
1270
|
+
export interface SdkBusinessAccountMemberInvitesOptionsRequest {
|
|
1271
|
+
environmentId: string;
|
|
1272
|
+
businessAccountId: string;
|
|
1273
|
+
}
|
|
1256
1274
|
export interface SdkBusinessAccountMembersOptionsRequest {
|
|
1257
1275
|
environmentId: string;
|
|
1258
1276
|
businessAccountId: string;
|
|
@@ -1325,6 +1343,12 @@ export interface SdkBusinessAccountWalletSigningProposalsOptionsRequest {
|
|
|
1325
1343
|
export interface SdkBusinessAccountsOptionsRequest {
|
|
1326
1344
|
environmentId: string;
|
|
1327
1345
|
}
|
|
1346
|
+
export interface SdkCancelBusinessAccountMemberInviteRequest {
|
|
1347
|
+
environmentId: string;
|
|
1348
|
+
businessAccountId: string;
|
|
1349
|
+
inviteId: string;
|
|
1350
|
+
cancelBusinessAccountMemberInviteSdkRequest?: CancelBusinessAccountMemberInviteSdkRequest;
|
|
1351
|
+
}
|
|
1328
1352
|
export interface SdkCreateBusinessAccountRequest {
|
|
1329
1353
|
environmentId: string;
|
|
1330
1354
|
createBusinessAccountSdkRequest?: CreateBusinessAccountSdkRequest;
|
|
@@ -1389,6 +1413,10 @@ export interface SdkLinkBusinessAccountWalletRequest {
|
|
|
1389
1413
|
environmentId: string;
|
|
1390
1414
|
linkBusinessAccountWalletSdkRequest: LinkBusinessAccountWalletSdkRequest;
|
|
1391
1415
|
}
|
|
1416
|
+
export interface SdkListBusinessAccountMemberInvitesRequest {
|
|
1417
|
+
environmentId: string;
|
|
1418
|
+
businessAccountId: string;
|
|
1419
|
+
}
|
|
1392
1420
|
export interface SdkListBusinessAccountProposalsRequest {
|
|
1393
1421
|
environmentId: string;
|
|
1394
1422
|
businessAccountId: string;
|
|
@@ -3149,6 +3177,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3149
3177
|
* Options call for this endpoint
|
|
3150
3178
|
*/
|
|
3151
3179
|
getFlowQuoteOptions(requestParameters: GetFlowQuoteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3180
|
+
/**
|
|
3181
|
+
* Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
|
|
3182
|
+
* Get the supported tokens for a flow source
|
|
3183
|
+
*/
|
|
3184
|
+
getFlowSourceTokenOptionsRaw(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceTokenOptionsResponse>>;
|
|
3185
|
+
/**
|
|
3186
|
+
* Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
|
|
3187
|
+
* Get the supported tokens for a flow source
|
|
3188
|
+
*/
|
|
3189
|
+
getFlowSourceTokenOptions(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<FlowSourceTokenOptionsResponse>;
|
|
3190
|
+
/**
|
|
3191
|
+
* Options call for this endpoint
|
|
3192
|
+
*/
|
|
3193
|
+
getFlowSourceTokenOptionsOptionsRaw(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3194
|
+
/**
|
|
3195
|
+
* Options call for this endpoint
|
|
3196
|
+
*/
|
|
3197
|
+
getFlowSourceTokenOptionsOptions(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3152
3198
|
/**
|
|
3153
3199
|
* Returns the global wallet settings configured for the specified environment.
|
|
3154
3200
|
* Get the global wallet settings for the environment
|
|
@@ -4625,6 +4671,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4625
4671
|
* Options call for this endpoint
|
|
4626
4672
|
*/
|
|
4627
4673
|
sdkBusinessAccountMemberByUserOptions(requestParameters: SdkBusinessAccountMemberByUserOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4674
|
+
/**
|
|
4675
|
+
* Options call for this endpoint
|
|
4676
|
+
*/
|
|
4677
|
+
sdkBusinessAccountMemberInviteOptionsRaw(requestParameters: SdkBusinessAccountMemberInviteOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4678
|
+
/**
|
|
4679
|
+
* Options call for this endpoint
|
|
4680
|
+
*/
|
|
4681
|
+
sdkBusinessAccountMemberInviteOptions(requestParameters: SdkBusinessAccountMemberInviteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4682
|
+
/**
|
|
4683
|
+
* Options call for this endpoint
|
|
4684
|
+
*/
|
|
4685
|
+
sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters: SdkBusinessAccountMemberInvitesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4686
|
+
/**
|
|
4687
|
+
* Options call for this endpoint
|
|
4688
|
+
*/
|
|
4689
|
+
sdkBusinessAccountMemberInvitesOptions(requestParameters: SdkBusinessAccountMemberInvitesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4628
4690
|
/**
|
|
4629
4691
|
* Options call for this endpoint
|
|
4630
4692
|
*/
|
|
@@ -4753,6 +4815,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4753
4815
|
* Options call for this endpoint
|
|
4754
4816
|
*/
|
|
4755
4817
|
sdkBusinessAccountsOptions(requestParameters: SdkBusinessAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4818
|
+
/**
|
|
4819
|
+
* Cancels an unaccepted member invitation. The caller must be authorized to remove members. When member removal requires approvals, this endpoint returns the same intent and proposal workflow used by other governed business account mutations. Repeating a completed cancellation is safe.
|
|
4820
|
+
* SDK — cancel a pending business account member invite
|
|
4821
|
+
*/
|
|
4822
|
+
sdkCancelBusinessAccountMemberInviteRaw(requestParameters: SdkCancelBusinessAccountMemberInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberInviteReceipt>>;
|
|
4823
|
+
/**
|
|
4824
|
+
* Cancels an unaccepted member invitation. The caller must be authorized to remove members. When member removal requires approvals, this endpoint returns the same intent and proposal workflow used by other governed business account mutations. Repeating a completed cancellation is safe.
|
|
4825
|
+
* SDK — cancel a pending business account member invite
|
|
4826
|
+
*/
|
|
4827
|
+
sdkCancelBusinessAccountMemberInvite(requestParameters: SdkCancelBusinessAccountMemberInviteRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberInviteReceipt>;
|
|
4756
4828
|
/**
|
|
4757
4829
|
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
4758
4830
|
* SDK — create a business account
|
|
@@ -4881,6 +4953,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4881
4953
|
* SDK — add an existing wallet to a business account
|
|
4882
4954
|
*/
|
|
4883
4955
|
sdkLinkBusinessAccountWallet(requestParameters: SdkLinkBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
4956
|
+
/**
|
|
4957
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
4958
|
+
* SDK — list pending business account member invites
|
|
4959
|
+
*/
|
|
4960
|
+
sdkListBusinessAccountMemberInvitesRaw(requestParameters: SdkListBusinessAccountMemberInvitesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberInviteListResponse>>;
|
|
4961
|
+
/**
|
|
4962
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
4963
|
+
* SDK — list pending business account member invites
|
|
4964
|
+
*/
|
|
4965
|
+
sdkListBusinessAccountMemberInvites(requestParameters: SdkListBusinessAccountMemberInvitesRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberInviteListResponse>;
|
|
4884
4966
|
/**
|
|
4885
4967
|
* Every proposal for the account, newest first. Any member may read them: knowing what is pending is what lets an approver act, and the list carries no signing material — only who has already consented.
|
|
4886
4968
|
* SDK — list the governed mutations awaiting approval
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -58,7 +58,8 @@ import '../models/BusinessAccountInvite.js';
|
|
|
58
58
|
import { BusinessAccountInviteListResponseFromJSON } from '../models/BusinessAccountInviteListResponse.js';
|
|
59
59
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
60
60
|
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
61
|
-
import '../models/
|
|
61
|
+
import { BusinessAccountMemberInviteListResponseFromJSON } from '../models/BusinessAccountMemberInviteListResponse.js';
|
|
62
|
+
import { BusinessAccountMemberInviteReceiptFromJSON } from '../models/BusinessAccountMemberInviteReceipt.js';
|
|
62
63
|
import '../models/BusinessAccountMemberRole.js';
|
|
63
64
|
import { BusinessAccountMutationVersionFromJSON } from '../models/BusinessAccountMutationVersion.js';
|
|
64
65
|
import { BusinessAccountProposalFromJSON } from '../models/BusinessAccountProposal.js';
|
|
@@ -68,6 +69,7 @@ import '../models/BusinessAccountRoleDefinition.js';
|
|
|
68
69
|
import { BusinessAccountRolesResponseFromJSON } from '../models/BusinessAccountRolesResponse.js';
|
|
69
70
|
import { BusinessAccountSigningProposalFromJSON } from '../models/BusinessAccountSigningProposal.js';
|
|
70
71
|
import '../models/SignMessageApprovalQuorumIntent.js';
|
|
72
|
+
import { CancelBusinessAccountMemberInviteSdkRequestToJSON } from '../models/CancelBusinessAccountMemberInviteSdkRequest.js';
|
|
71
73
|
import '../models/CaptchaProviderEnum.js';
|
|
72
74
|
import '../models/DestinationTypeEnum.js';
|
|
73
75
|
import '../models/CheckoutModeEnum.js';
|
|
@@ -151,6 +153,7 @@ import { FlowRecordBroadcastRequestToJSON } from '../models/FlowRecordBroadcastR
|
|
|
151
153
|
import '../models/FlowRiskStateEnum.js';
|
|
152
154
|
import '../models/FlowSettlementStateEnum.js';
|
|
153
155
|
import { FlowSourceResponseFromJSON } from '../models/FlowSourceResponse.js';
|
|
156
|
+
import { FlowSourceTokenOptionsResponseFromJSON } from '../models/FlowSourceTokenOptionsResponse.js';
|
|
154
157
|
import '../models/OnrampProviders.js';
|
|
155
158
|
import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
|
|
156
159
|
import { GetAvailableEVMGaslessRelayerResponseFromJSON } from '../models/GetAvailableEVMGaslessRelayerResponse.js';
|
|
@@ -4834,6 +4837,67 @@ class SDKApi extends BaseAPI {
|
|
|
4834
4837
|
async getFlowQuoteOptions(requestParameters, initOverrides) {
|
|
4835
4838
|
await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
|
|
4836
4839
|
}
|
|
4840
|
+
/**
|
|
4841
|
+
* Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
|
|
4842
|
+
* Get the supported tokens for a flow source
|
|
4843
|
+
*/
|
|
4844
|
+
async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
|
|
4845
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4846
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptions.');
|
|
4847
|
+
}
|
|
4848
|
+
if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
|
|
4849
|
+
throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptions.');
|
|
4850
|
+
}
|
|
4851
|
+
if (requestParameters.sourceType === null || requestParameters.sourceType === undefined) {
|
|
4852
|
+
throw new RequiredError('sourceType', 'Required parameter requestParameters.sourceType was null or undefined when calling getFlowSourceTokenOptions.');
|
|
4853
|
+
}
|
|
4854
|
+
const queryParameters = {};
|
|
4855
|
+
if (requestParameters.sourceType !== undefined) {
|
|
4856
|
+
queryParameters['sourceType'] = requestParameters.sourceType;
|
|
4857
|
+
}
|
|
4858
|
+
const headerParameters = {};
|
|
4859
|
+
const response = await this.request({
|
|
4860
|
+
path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
|
|
4861
|
+
method: 'GET',
|
|
4862
|
+
headers: headerParameters,
|
|
4863
|
+
query: queryParameters,
|
|
4864
|
+
}, initOverrides);
|
|
4865
|
+
return new JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponseFromJSON(jsonValue));
|
|
4866
|
+
}
|
|
4867
|
+
/**
|
|
4868
|
+
* Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
|
|
4869
|
+
* Get the supported tokens for a flow source
|
|
4870
|
+
*/
|
|
4871
|
+
async getFlowSourceTokenOptions(requestParameters, initOverrides) {
|
|
4872
|
+
const response = await this.getFlowSourceTokenOptionsRaw(requestParameters, initOverrides);
|
|
4873
|
+
return await response.value();
|
|
4874
|
+
}
|
|
4875
|
+
/**
|
|
4876
|
+
* Options call for this endpoint
|
|
4877
|
+
*/
|
|
4878
|
+
async getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides) {
|
|
4879
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4880
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
|
|
4881
|
+
}
|
|
4882
|
+
if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
|
|
4883
|
+
throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
|
|
4884
|
+
}
|
|
4885
|
+
const queryParameters = {};
|
|
4886
|
+
const headerParameters = {};
|
|
4887
|
+
const response = await this.request({
|
|
4888
|
+
path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
|
|
4889
|
+
method: 'OPTIONS',
|
|
4890
|
+
headers: headerParameters,
|
|
4891
|
+
query: queryParameters,
|
|
4892
|
+
}, initOverrides);
|
|
4893
|
+
return new VoidApiResponse(response);
|
|
4894
|
+
}
|
|
4895
|
+
/**
|
|
4896
|
+
* Options call for this endpoint
|
|
4897
|
+
*/
|
|
4898
|
+
async getFlowSourceTokenOptionsOptions(requestParameters, initOverrides) {
|
|
4899
|
+
await this.getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides);
|
|
4900
|
+
}
|
|
4837
4901
|
/**
|
|
4838
4902
|
* Returns the global wallet settings configured for the specified environment.
|
|
4839
4903
|
* Get the global wallet settings for the environment
|
|
@@ -9807,6 +9871,61 @@ class SDKApi extends BaseAPI {
|
|
|
9807
9871
|
async sdkBusinessAccountMemberByUserOptions(requestParameters, initOverrides) {
|
|
9808
9872
|
await this.sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides);
|
|
9809
9873
|
}
|
|
9874
|
+
/**
|
|
9875
|
+
* Options call for this endpoint
|
|
9876
|
+
*/
|
|
9877
|
+
async sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides) {
|
|
9878
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9879
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
9880
|
+
}
|
|
9881
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9882
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
9883
|
+
}
|
|
9884
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
9885
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
9886
|
+
}
|
|
9887
|
+
const queryParameters = {};
|
|
9888
|
+
const headerParameters = {};
|
|
9889
|
+
const response = await this.request({
|
|
9890
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites/{inviteId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
9891
|
+
method: 'OPTIONS',
|
|
9892
|
+
headers: headerParameters,
|
|
9893
|
+
query: queryParameters,
|
|
9894
|
+
}, initOverrides);
|
|
9895
|
+
return new VoidApiResponse(response);
|
|
9896
|
+
}
|
|
9897
|
+
/**
|
|
9898
|
+
* Options call for this endpoint
|
|
9899
|
+
*/
|
|
9900
|
+
async sdkBusinessAccountMemberInviteOptions(requestParameters, initOverrides) {
|
|
9901
|
+
await this.sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides);
|
|
9902
|
+
}
|
|
9903
|
+
/**
|
|
9904
|
+
* Options call for this endpoint
|
|
9905
|
+
*/
|
|
9906
|
+
async sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
9907
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9908
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
9909
|
+
}
|
|
9910
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9911
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
9912
|
+
}
|
|
9913
|
+
const queryParameters = {};
|
|
9914
|
+
const headerParameters = {};
|
|
9915
|
+
const response = await this.request({
|
|
9916
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9917
|
+
method: 'OPTIONS',
|
|
9918
|
+
headers: headerParameters,
|
|
9919
|
+
query: queryParameters,
|
|
9920
|
+
}, initOverrides);
|
|
9921
|
+
return new VoidApiResponse(response);
|
|
9922
|
+
}
|
|
9923
|
+
/**
|
|
9924
|
+
* Options call for this endpoint
|
|
9925
|
+
*/
|
|
9926
|
+
async sdkBusinessAccountMemberInvitesOptions(requestParameters, initOverrides) {
|
|
9927
|
+
await this.sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides);
|
|
9928
|
+
}
|
|
9810
9929
|
/**
|
|
9811
9930
|
* Options call for this endpoint
|
|
9812
9931
|
*/
|
|
@@ -10247,6 +10366,47 @@ class SDKApi extends BaseAPI {
|
|
|
10247
10366
|
async sdkBusinessAccountsOptions(requestParameters, initOverrides) {
|
|
10248
10367
|
await this.sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides);
|
|
10249
10368
|
}
|
|
10369
|
+
/**
|
|
10370
|
+
* Cancels an unaccepted member invitation. The caller must be authorized to remove members. When member removal requires approvals, this endpoint returns the same intent and proposal workflow used by other governed business account mutations. Repeating a completed cancellation is safe.
|
|
10371
|
+
* SDK — cancel a pending business account member invite
|
|
10372
|
+
*/
|
|
10373
|
+
async sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides) {
|
|
10374
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10375
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10376
|
+
}
|
|
10377
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10378
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10379
|
+
}
|
|
10380
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
10381
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10382
|
+
}
|
|
10383
|
+
const queryParameters = {};
|
|
10384
|
+
const headerParameters = {};
|
|
10385
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10386
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10387
|
+
const token = this.configuration.accessToken;
|
|
10388
|
+
const tokenString = await token("bearerAuth", []);
|
|
10389
|
+
if (tokenString) {
|
|
10390
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10391
|
+
}
|
|
10392
|
+
}
|
|
10393
|
+
const response = await this.request({
|
|
10394
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites/{inviteId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
10395
|
+
method: 'DELETE',
|
|
10396
|
+
headers: headerParameters,
|
|
10397
|
+
query: queryParameters,
|
|
10398
|
+
body: CancelBusinessAccountMemberInviteSdkRequestToJSON(requestParameters.cancelBusinessAccountMemberInviteSdkRequest),
|
|
10399
|
+
}, initOverrides);
|
|
10400
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteReceiptFromJSON(jsonValue));
|
|
10401
|
+
}
|
|
10402
|
+
/**
|
|
10403
|
+
* Cancels an unaccepted member invitation. The caller must be authorized to remove members. When member removal requires approvals, this endpoint returns the same intent and proposal workflow used by other governed business account mutations. Repeating a completed cancellation is safe.
|
|
10404
|
+
* SDK — cancel a pending business account member invite
|
|
10405
|
+
*/
|
|
10406
|
+
async sdkCancelBusinessAccountMemberInvite(requestParameters, initOverrides) {
|
|
10407
|
+
const response = await this.sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides);
|
|
10408
|
+
return await response.value();
|
|
10409
|
+
}
|
|
10250
10410
|
/**
|
|
10251
10411
|
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
10252
10412
|
* SDK — create a business account
|
|
@@ -10752,6 +10912,42 @@ class SDKApi extends BaseAPI {
|
|
|
10752
10912
|
const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
|
|
10753
10913
|
return await response.value();
|
|
10754
10914
|
}
|
|
10915
|
+
/**
|
|
10916
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
10917
|
+
* SDK — list pending business account member invites
|
|
10918
|
+
*/
|
|
10919
|
+
async sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides) {
|
|
10920
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10921
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
10922
|
+
}
|
|
10923
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10924
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
10925
|
+
}
|
|
10926
|
+
const queryParameters = {};
|
|
10927
|
+
const headerParameters = {};
|
|
10928
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10929
|
+
const token = this.configuration.accessToken;
|
|
10930
|
+
const tokenString = await token("bearerAuth", []);
|
|
10931
|
+
if (tokenString) {
|
|
10932
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10933
|
+
}
|
|
10934
|
+
}
|
|
10935
|
+
const response = await this.request({
|
|
10936
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10937
|
+
method: 'GET',
|
|
10938
|
+
headers: headerParameters,
|
|
10939
|
+
query: queryParameters,
|
|
10940
|
+
}, initOverrides);
|
|
10941
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteListResponseFromJSON(jsonValue));
|
|
10942
|
+
}
|
|
10943
|
+
/**
|
|
10944
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
10945
|
+
* SDK — list pending business account member invites
|
|
10946
|
+
*/
|
|
10947
|
+
async sdkListBusinessAccountMemberInvites(requestParameters, initOverrides) {
|
|
10948
|
+
const response = await this.sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides);
|
|
10949
|
+
return await response.value();
|
|
10950
|
+
}
|
|
10755
10951
|
/**
|
|
10756
10952
|
* Every proposal for the account, newest first. Any member may read them: knowing what is pending is what lets an approver act, and the list carries no signing material — only who has already consented.
|
|
10757
10953
|
* SDK — list the governed mutations awaiting approval
|