@dynamic-labs/sdk-api-core 0.0.1060 → 0.0.1061
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 +301 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +119 -1
- package/src/apis/SDKApi.js +301 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +3 -1
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +3 -1
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +52 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +11 -0
- package/src/index.js.map +1 -1
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs.map +1 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js +35 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js.map +1 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs.map +1 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +35 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js.map +1 -0
- package/src/models/BusinessAccount.cjs +45 -0
- package/src/models/BusinessAccount.cjs.map +1 -0
- package/src/models/BusinessAccount.d.ts +63 -0
- package/src/models/BusinessAccount.js +39 -0
- package/src/models/BusinessAccount.js.map +1 -0
- package/src/models/BusinessAccountDetail.cjs +51 -0
- package/src/models/BusinessAccountDetail.cjs.map +1 -0
- package/src/models/BusinessAccountDetail.d.ts +77 -0
- package/src/models/BusinessAccountDetail.js +45 -0
- package/src/models/BusinessAccountDetail.js.map +1 -0
- package/src/models/BusinessAccountDetailAllOf.cjs +36 -0
- package/src/models/BusinessAccountDetailAllOf.cjs.map +1 -0
- package/src/models/BusinessAccountDetailAllOf.d.ts +35 -0
- package/src/models/BusinessAccountDetailAllOf.js +30 -0
- package/src/models/BusinessAccountDetailAllOf.js.map +1 -0
- package/src/models/BusinessAccountList.cjs +36 -0
- package/src/models/BusinessAccountList.cjs.map +1 -0
- package/src/models/BusinessAccountList.d.ts +34 -0
- package/src/models/BusinessAccountList.js +30 -0
- package/src/models/BusinessAccountList.js.map +1 -0
- package/src/models/BusinessAccountMember.cjs +44 -0
- package/src/models/BusinessAccountMember.cjs.map +1 -0
- package/src/models/BusinessAccountMember.d.ts +58 -0
- package/src/models/BusinessAccountMember.js +38 -0
- package/src/models/BusinessAccountMember.js.map +1 -0
- package/src/models/BusinessAccountMemberRole.cjs +41 -0
- package/src/models/BusinessAccountMemberRole.cjs.map +1 -0
- package/src/models/BusinessAccountMemberRole.d.ts +24 -0
- package/src/models/BusinessAccountMemberRole.js +35 -0
- package/src/models/BusinessAccountMemberRole.js.map +1 -0
- package/src/models/BusinessAccountSigner.cjs +54 -0
- package/src/models/BusinessAccountSigner.cjs.map +1 -0
- package/src/models/BusinessAccountSigner.d.ts +88 -0
- package/src/models/BusinessAccountSigner.js +48 -0
- package/src/models/BusinessAccountSigner.js.map +1 -0
- package/src/models/BusinessAccountSignerType.cjs +40 -0
- package/src/models/BusinessAccountSignerType.cjs.map +1 -0
- package/src/models/BusinessAccountSignerType.d.ts +23 -0
- package/src/models/BusinessAccountSignerType.js +34 -0
- package/src/models/BusinessAccountSignerType.js.map +1 -0
- package/src/models/CreateBusinessAccountSdkRequest.cjs +37 -0
- package/src/models/CreateBusinessAccountSdkRequest.cjs.map +1 -0
- package/src/models/CreateBusinessAccountSdkRequest.d.ts +39 -0
- package/src/models/CreateBusinessAccountSdkRequest.js +31 -0
- package/src/models/CreateBusinessAccountSdkRequest.js.map +1 -0
- package/src/models/index.d.ts +11 -0
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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;
|
|
@@ -1057,6 +1057,44 @@ export interface ScanUrlRequest {
|
|
|
1057
1057
|
export interface ScanUrlOptionsRequest {
|
|
1058
1058
|
environmentId: string;
|
|
1059
1059
|
}
|
|
1060
|
+
export interface SdkAddBusinessAccountMemberRequest {
|
|
1061
|
+
environmentId: string;
|
|
1062
|
+
businessAccountId: string;
|
|
1063
|
+
addBusinessAccountMemberSdkRequest: AddBusinessAccountMemberSdkRequest;
|
|
1064
|
+
}
|
|
1065
|
+
export interface SdkAddBusinessAccountSignerRequest {
|
|
1066
|
+
environmentId: string;
|
|
1067
|
+
businessAccountId: string;
|
|
1068
|
+
walletId: string;
|
|
1069
|
+
addBusinessAccountSignerSdkRequest: AddBusinessAccountSignerSdkRequest;
|
|
1070
|
+
}
|
|
1071
|
+
export interface SdkBusinessAccountByIdOptionsRequest {
|
|
1072
|
+
environmentId: string;
|
|
1073
|
+
businessAccountId: string;
|
|
1074
|
+
}
|
|
1075
|
+
export interface SdkBusinessAccountMembersOptionsRequest {
|
|
1076
|
+
environmentId: string;
|
|
1077
|
+
businessAccountId: string;
|
|
1078
|
+
}
|
|
1079
|
+
export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
1080
|
+
environmentId: string;
|
|
1081
|
+
businessAccountId: string;
|
|
1082
|
+
walletId: string;
|
|
1083
|
+
}
|
|
1084
|
+
export interface SdkBusinessAccountsOptionsRequest {
|
|
1085
|
+
environmentId: string;
|
|
1086
|
+
}
|
|
1087
|
+
export interface SdkCreateBusinessAccountRequest {
|
|
1088
|
+
environmentId: string;
|
|
1089
|
+
createBusinessAccountSdkRequest?: CreateBusinessAccountSdkRequest;
|
|
1090
|
+
}
|
|
1091
|
+
export interface SdkGetBusinessAccountByIdRequest {
|
|
1092
|
+
environmentId: string;
|
|
1093
|
+
businessAccountId: string;
|
|
1094
|
+
}
|
|
1095
|
+
export interface SdkListBusinessAccountsRequest {
|
|
1096
|
+
environmentId: string;
|
|
1097
|
+
}
|
|
1060
1098
|
export interface SdkSettingsOptionsRequest {
|
|
1061
1099
|
environmentId: string;
|
|
1062
1100
|
}
|
|
@@ -3704,6 +3742,86 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3704
3742
|
* Options call for this endpoint
|
|
3705
3743
|
*/
|
|
3706
3744
|
scanUrlOptions(requestParameters: ScanUrlOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3745
|
+
/**
|
|
3746
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
3747
|
+
* SDK — add a member to a business account
|
|
3748
|
+
*/
|
|
3749
|
+
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
|
|
3750
|
+
/**
|
|
3751
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
3752
|
+
* SDK — add a member to a business account
|
|
3753
|
+
*/
|
|
3754
|
+
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
|
|
3755
|
+
/**
|
|
3756
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
3757
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
3758
|
+
*/
|
|
3759
|
+
sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountSigner>>;
|
|
3760
|
+
/**
|
|
3761
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
3762
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
3763
|
+
*/
|
|
3764
|
+
sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<BusinessAccountSigner>;
|
|
3765
|
+
/**
|
|
3766
|
+
* Options call for this endpoint
|
|
3767
|
+
*/
|
|
3768
|
+
sdkBusinessAccountByIdOptionsRaw(requestParameters: SdkBusinessAccountByIdOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3769
|
+
/**
|
|
3770
|
+
* Options call for this endpoint
|
|
3771
|
+
*/
|
|
3772
|
+
sdkBusinessAccountByIdOptions(requestParameters: SdkBusinessAccountByIdOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3773
|
+
/**
|
|
3774
|
+
* Options call for this endpoint
|
|
3775
|
+
*/
|
|
3776
|
+
sdkBusinessAccountMembersOptionsRaw(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3777
|
+
/**
|
|
3778
|
+
* Options call for this endpoint
|
|
3779
|
+
*/
|
|
3780
|
+
sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3781
|
+
/**
|
|
3782
|
+
* Options call for this endpoint
|
|
3783
|
+
*/
|
|
3784
|
+
sdkBusinessAccountWalletSignersOptionsRaw(requestParameters: SdkBusinessAccountWalletSignersOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3785
|
+
/**
|
|
3786
|
+
* Options call for this endpoint
|
|
3787
|
+
*/
|
|
3788
|
+
sdkBusinessAccountWalletSignersOptions(requestParameters: SdkBusinessAccountWalletSignersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3789
|
+
/**
|
|
3790
|
+
* Options call for this endpoint
|
|
3791
|
+
*/
|
|
3792
|
+
sdkBusinessAccountsOptionsRaw(requestParameters: SdkBusinessAccountsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3793
|
+
/**
|
|
3794
|
+
* Options call for this endpoint
|
|
3795
|
+
*/
|
|
3796
|
+
sdkBusinessAccountsOptions(requestParameters: SdkBusinessAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3797
|
+
/**
|
|
3798
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
3799
|
+
* SDK — create a business account
|
|
3800
|
+
*/
|
|
3801
|
+
sdkCreateBusinessAccountRaw(requestParameters: SdkCreateBusinessAccountRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccount>>;
|
|
3802
|
+
/**
|
|
3803
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
3804
|
+
* SDK — create a business account
|
|
3805
|
+
*/
|
|
3806
|
+
sdkCreateBusinessAccount(requestParameters: SdkCreateBusinessAccountRequest, initOverrides?: RequestInit): Promise<BusinessAccount>;
|
|
3807
|
+
/**
|
|
3808
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
3809
|
+
* SDK — get a business account with embedded members and signers
|
|
3810
|
+
*/
|
|
3811
|
+
sdkGetBusinessAccountByIdRaw(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
|
|
3812
|
+
/**
|
|
3813
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
3814
|
+
* SDK — get a business account with embedded members and signers
|
|
3815
|
+
*/
|
|
3816
|
+
sdkGetBusinessAccountById(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
3817
|
+
/**
|
|
3818
|
+
* SDK — list business accounts the caller is a member of
|
|
3819
|
+
*/
|
|
3820
|
+
sdkListBusinessAccountsRaw(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountList>>;
|
|
3821
|
+
/**
|
|
3822
|
+
* SDK — list business accounts the caller is a member of
|
|
3823
|
+
*/
|
|
3824
|
+
sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
3707
3825
|
/**
|
|
3708
3826
|
*/
|
|
3709
3827
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
|
|
2
2
|
import { AccountFromJSON } from '../models/Account.js';
|
|
3
|
+
import { AddBusinessAccountMemberSdkRequestToJSON } from '../models/AddBusinessAccountMemberSdkRequest.js';
|
|
4
|
+
import { AddBusinessAccountSignerSdkRequestToJSON } from '../models/AddBusinessAccountSignerSdkRequest.js';
|
|
3
5
|
import { AleoCuratedPricesResponseFromJSON } from '../models/AleoCuratedPricesResponse.js';
|
|
4
6
|
import { AleoProverEncryptedRequestToJSON } from '../models/AleoProverEncryptedRequest.js';
|
|
5
7
|
import { AleoProverPubkeyResponseFromJSON } from '../models/AleoProverPubkeyResponse.js';
|
|
@@ -31,6 +33,13 @@ import '../models/WalletProviderEnum.js';
|
|
|
31
33
|
import '../models/MfaBackupCodeAcknowledgement.js';
|
|
32
34
|
import '../models/CustomFieldType.js';
|
|
33
35
|
import '../models/KycFieldType.js';
|
|
36
|
+
import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
|
|
37
|
+
import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
|
|
38
|
+
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
39
|
+
import { BusinessAccountSignerFromJSON } from '../models/BusinessAccountSigner.js';
|
|
40
|
+
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
41
|
+
import '../models/BusinessAccountMemberRole.js';
|
|
42
|
+
import '../models/BusinessAccountSignerType.js';
|
|
34
43
|
import '../models/ChainEnum.js';
|
|
35
44
|
import '../models/DestinationTypeEnum.js';
|
|
36
45
|
import '../models/CheckoutModeEnum.js';
|
|
@@ -49,6 +58,7 @@ import '../models/CoinbaseOnrampOrderPaymentLinkType.js';
|
|
|
49
58
|
import { CoinbaseOnrampOrderResponseFromJSON } from '../models/CoinbaseOnrampOrderResponse.js';
|
|
50
59
|
import { CompletePasskeyRecoveryRequestToJSON } from '../models/CompletePasskeyRecoveryRequest.js';
|
|
51
60
|
import { ConnectRequestToJSON } from '../models/ConnectRequest.js';
|
|
61
|
+
import { CreateBusinessAccountSdkRequestToJSON } from '../models/CreateBusinessAccountSdkRequest.js';
|
|
52
62
|
import '../models/EmbeddedWalletChainEnum.js';
|
|
53
63
|
import '../models/EmbeddedWalletProviderEnum.js';
|
|
54
64
|
import { CreateEmbeddedWalletsRequestToJSON } from '../models/CreateEmbeddedWalletsRequest.js';
|
|
@@ -8255,6 +8265,297 @@ class SDKApi extends BaseAPI {
|
|
|
8255
8265
|
async scanUrlOptions(requestParameters, initOverrides) {
|
|
8256
8266
|
await this.scanUrlOptionsRaw(requestParameters, initOverrides);
|
|
8257
8267
|
}
|
|
8268
|
+
/**
|
|
8269
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8270
|
+
* SDK — add a member to a business account
|
|
8271
|
+
*/
|
|
8272
|
+
async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
8273
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8274
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkAddBusinessAccountMember.');
|
|
8275
|
+
}
|
|
8276
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8277
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkAddBusinessAccountMember.');
|
|
8278
|
+
}
|
|
8279
|
+
if (requestParameters.addBusinessAccountMemberSdkRequest === null || requestParameters.addBusinessAccountMemberSdkRequest === undefined) {
|
|
8280
|
+
throw new RequiredError('addBusinessAccountMemberSdkRequest', 'Required parameter requestParameters.addBusinessAccountMemberSdkRequest was null or undefined when calling sdkAddBusinessAccountMember.');
|
|
8281
|
+
}
|
|
8282
|
+
const queryParameters = {};
|
|
8283
|
+
const headerParameters = {};
|
|
8284
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8285
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8286
|
+
const token = this.configuration.accessToken;
|
|
8287
|
+
const tokenString = await token("bearerAuth", []);
|
|
8288
|
+
if (tokenString) {
|
|
8289
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8290
|
+
}
|
|
8291
|
+
}
|
|
8292
|
+
const response = await this.request({
|
|
8293
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8294
|
+
method: 'POST',
|
|
8295
|
+
headers: headerParameters,
|
|
8296
|
+
query: queryParameters,
|
|
8297
|
+
body: AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
8298
|
+
}, initOverrides);
|
|
8299
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberFromJSON(jsonValue));
|
|
8300
|
+
}
|
|
8301
|
+
/**
|
|
8302
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8303
|
+
* SDK — add a member to a business account
|
|
8304
|
+
*/
|
|
8305
|
+
async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
|
|
8306
|
+
const response = await this.sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides);
|
|
8307
|
+
return await response.value();
|
|
8308
|
+
}
|
|
8309
|
+
/**
|
|
8310
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8311
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
8312
|
+
*/
|
|
8313
|
+
async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8314
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8315
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8316
|
+
}
|
|
8317
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8318
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8319
|
+
}
|
|
8320
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8321
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8322
|
+
}
|
|
8323
|
+
if (requestParameters.addBusinessAccountSignerSdkRequest === null || requestParameters.addBusinessAccountSignerSdkRequest === undefined) {
|
|
8324
|
+
throw new RequiredError('addBusinessAccountSignerSdkRequest', 'Required parameter requestParameters.addBusinessAccountSignerSdkRequest was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8325
|
+
}
|
|
8326
|
+
const queryParameters = {};
|
|
8327
|
+
const headerParameters = {};
|
|
8328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8329
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8330
|
+
const token = this.configuration.accessToken;
|
|
8331
|
+
const tokenString = await token("bearerAuth", []);
|
|
8332
|
+
if (tokenString) {
|
|
8333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8334
|
+
}
|
|
8335
|
+
}
|
|
8336
|
+
const response = await this.request({
|
|
8337
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8338
|
+
method: 'POST',
|
|
8339
|
+
headers: headerParameters,
|
|
8340
|
+
query: queryParameters,
|
|
8341
|
+
body: AddBusinessAccountSignerSdkRequestToJSON(requestParameters.addBusinessAccountSignerSdkRequest),
|
|
8342
|
+
}, initOverrides);
|
|
8343
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountSignerFromJSON(jsonValue));
|
|
8344
|
+
}
|
|
8345
|
+
/**
|
|
8346
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8347
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
8348
|
+
*/
|
|
8349
|
+
async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8350
|
+
const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8351
|
+
return await response.value();
|
|
8352
|
+
}
|
|
8353
|
+
/**
|
|
8354
|
+
* Options call for this endpoint
|
|
8355
|
+
*/
|
|
8356
|
+
async sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides) {
|
|
8357
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8358
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountByIdOptions.');
|
|
8359
|
+
}
|
|
8360
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8361
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountByIdOptions.');
|
|
8362
|
+
}
|
|
8363
|
+
const queryParameters = {};
|
|
8364
|
+
const headerParameters = {};
|
|
8365
|
+
const response = await this.request({
|
|
8366
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8367
|
+
method: 'OPTIONS',
|
|
8368
|
+
headers: headerParameters,
|
|
8369
|
+
query: queryParameters,
|
|
8370
|
+
}, initOverrides);
|
|
8371
|
+
return new VoidApiResponse(response);
|
|
8372
|
+
}
|
|
8373
|
+
/**
|
|
8374
|
+
* Options call for this endpoint
|
|
8375
|
+
*/
|
|
8376
|
+
async sdkBusinessAccountByIdOptions(requestParameters, initOverrides) {
|
|
8377
|
+
await this.sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides);
|
|
8378
|
+
}
|
|
8379
|
+
/**
|
|
8380
|
+
* Options call for this endpoint
|
|
8381
|
+
*/
|
|
8382
|
+
async sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides) {
|
|
8383
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8384
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMembersOptions.');
|
|
8385
|
+
}
|
|
8386
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8387
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMembersOptions.');
|
|
8388
|
+
}
|
|
8389
|
+
const queryParameters = {};
|
|
8390
|
+
const headerParameters = {};
|
|
8391
|
+
const response = await this.request({
|
|
8392
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8393
|
+
method: 'OPTIONS',
|
|
8394
|
+
headers: headerParameters,
|
|
8395
|
+
query: queryParameters,
|
|
8396
|
+
}, initOverrides);
|
|
8397
|
+
return new VoidApiResponse(response);
|
|
8398
|
+
}
|
|
8399
|
+
/**
|
|
8400
|
+
* Options call for this endpoint
|
|
8401
|
+
*/
|
|
8402
|
+
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8403
|
+
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8404
|
+
}
|
|
8405
|
+
/**
|
|
8406
|
+
* Options call for this endpoint
|
|
8407
|
+
*/
|
|
8408
|
+
async sdkBusinessAccountWalletSignersOptionsRaw(requestParameters, initOverrides) {
|
|
8409
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8410
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignersOptions.');
|
|
8411
|
+
}
|
|
8412
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8413
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignersOptions.');
|
|
8414
|
+
}
|
|
8415
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8416
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignersOptions.');
|
|
8417
|
+
}
|
|
8418
|
+
const queryParameters = {};
|
|
8419
|
+
const headerParameters = {};
|
|
8420
|
+
const response = await this.request({
|
|
8421
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8422
|
+
method: 'OPTIONS',
|
|
8423
|
+
headers: headerParameters,
|
|
8424
|
+
query: queryParameters,
|
|
8425
|
+
}, initOverrides);
|
|
8426
|
+
return new VoidApiResponse(response);
|
|
8427
|
+
}
|
|
8428
|
+
/**
|
|
8429
|
+
* Options call for this endpoint
|
|
8430
|
+
*/
|
|
8431
|
+
async sdkBusinessAccountWalletSignersOptions(requestParameters, initOverrides) {
|
|
8432
|
+
await this.sdkBusinessAccountWalletSignersOptionsRaw(requestParameters, initOverrides);
|
|
8433
|
+
}
|
|
8434
|
+
/**
|
|
8435
|
+
* Options call for this endpoint
|
|
8436
|
+
*/
|
|
8437
|
+
async sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides) {
|
|
8438
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8439
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountsOptions.');
|
|
8440
|
+
}
|
|
8441
|
+
const queryParameters = {};
|
|
8442
|
+
const headerParameters = {};
|
|
8443
|
+
const response = await this.request({
|
|
8444
|
+
path: `/sdk/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8445
|
+
method: 'OPTIONS',
|
|
8446
|
+
headers: headerParameters,
|
|
8447
|
+
query: queryParameters,
|
|
8448
|
+
}, initOverrides);
|
|
8449
|
+
return new VoidApiResponse(response);
|
|
8450
|
+
}
|
|
8451
|
+
/**
|
|
8452
|
+
* Options call for this endpoint
|
|
8453
|
+
*/
|
|
8454
|
+
async sdkBusinessAccountsOptions(requestParameters, initOverrides) {
|
|
8455
|
+
await this.sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides);
|
|
8456
|
+
}
|
|
8457
|
+
/**
|
|
8458
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
8459
|
+
* SDK — create a business account
|
|
8460
|
+
*/
|
|
8461
|
+
async sdkCreateBusinessAccountRaw(requestParameters, initOverrides) {
|
|
8462
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8463
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCreateBusinessAccount.');
|
|
8464
|
+
}
|
|
8465
|
+
const queryParameters = {};
|
|
8466
|
+
const headerParameters = {};
|
|
8467
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8468
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8469
|
+
const token = this.configuration.accessToken;
|
|
8470
|
+
const tokenString = await token("bearerAuth", []);
|
|
8471
|
+
if (tokenString) {
|
|
8472
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8475
|
+
const response = await this.request({
|
|
8476
|
+
path: `/sdk/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8477
|
+
method: 'POST',
|
|
8478
|
+
headers: headerParameters,
|
|
8479
|
+
query: queryParameters,
|
|
8480
|
+
body: CreateBusinessAccountSdkRequestToJSON(requestParameters.createBusinessAccountSdkRequest),
|
|
8481
|
+
}, initOverrides);
|
|
8482
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountFromJSON(jsonValue));
|
|
8483
|
+
}
|
|
8484
|
+
/**
|
|
8485
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
8486
|
+
* SDK — create a business account
|
|
8487
|
+
*/
|
|
8488
|
+
async sdkCreateBusinessAccount(requestParameters, initOverrides) {
|
|
8489
|
+
const response = await this.sdkCreateBusinessAccountRaw(requestParameters, initOverrides);
|
|
8490
|
+
return await response.value();
|
|
8491
|
+
}
|
|
8492
|
+
/**
|
|
8493
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
8494
|
+
* SDK — get a business account with embedded members and signers
|
|
8495
|
+
*/
|
|
8496
|
+
async sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides) {
|
|
8497
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8498
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountById.');
|
|
8499
|
+
}
|
|
8500
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8501
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountById.');
|
|
8502
|
+
}
|
|
8503
|
+
const queryParameters = {};
|
|
8504
|
+
const headerParameters = {};
|
|
8505
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8506
|
+
const token = this.configuration.accessToken;
|
|
8507
|
+
const tokenString = await token("bearerAuth", []);
|
|
8508
|
+
if (tokenString) {
|
|
8509
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8510
|
+
}
|
|
8511
|
+
}
|
|
8512
|
+
const response = await this.request({
|
|
8513
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8514
|
+
method: 'GET',
|
|
8515
|
+
headers: headerParameters,
|
|
8516
|
+
query: queryParameters,
|
|
8517
|
+
}, initOverrides);
|
|
8518
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
|
|
8519
|
+
}
|
|
8520
|
+
/**
|
|
8521
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
8522
|
+
* SDK — get a business account with embedded members and signers
|
|
8523
|
+
*/
|
|
8524
|
+
async sdkGetBusinessAccountById(requestParameters, initOverrides) {
|
|
8525
|
+
const response = await this.sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides);
|
|
8526
|
+
return await response.value();
|
|
8527
|
+
}
|
|
8528
|
+
/**
|
|
8529
|
+
* SDK — list business accounts the caller is a member of
|
|
8530
|
+
*/
|
|
8531
|
+
async sdkListBusinessAccountsRaw(requestParameters, initOverrides) {
|
|
8532
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8533
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccounts.');
|
|
8534
|
+
}
|
|
8535
|
+
const queryParameters = {};
|
|
8536
|
+
const headerParameters = {};
|
|
8537
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8538
|
+
const token = this.configuration.accessToken;
|
|
8539
|
+
const tokenString = await token("bearerAuth", []);
|
|
8540
|
+
if (tokenString) {
|
|
8541
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8542
|
+
}
|
|
8543
|
+
}
|
|
8544
|
+
const response = await this.request({
|
|
8545
|
+
path: `/sdk/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8546
|
+
method: 'GET',
|
|
8547
|
+
headers: headerParameters,
|
|
8548
|
+
query: queryParameters,
|
|
8549
|
+
}, initOverrides);
|
|
8550
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountListFromJSON(jsonValue));
|
|
8551
|
+
}
|
|
8552
|
+
/**
|
|
8553
|
+
* SDK — list business accounts the caller is a member of
|
|
8554
|
+
*/
|
|
8555
|
+
async sdkListBusinessAccounts(requestParameters, initOverrides) {
|
|
8556
|
+
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8557
|
+
return await response.value();
|
|
8558
|
+
}
|
|
8258
8559
|
/**
|
|
8259
8560
|
*/
|
|
8260
8561
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|