@dynamic-labs/sdk-api 0.154.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 +135 -1
- package/src/apis/SDKApi.d.ts +56 -1
- package/src/apis/SDKApi.js +135 -1
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/BusinessAccountMemberInviteListResponse.cjs +33 -0
- package/src/models/BusinessAccountMemberInviteListResponse.d.ts +28 -0
- package/src/models/BusinessAccountMemberInviteListResponse.js +27 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.cjs +37 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.d.ts +43 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.js +31 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -76,7 +76,8 @@ require('../models/BusinessAccountInvite.cjs');
|
|
|
76
76
|
var BusinessAccountInviteListResponse = require('../models/BusinessAccountInviteListResponse.cjs');
|
|
77
77
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
78
78
|
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
79
|
-
require('../models/
|
|
79
|
+
var BusinessAccountMemberInviteListResponse = require('../models/BusinessAccountMemberInviteListResponse.cjs');
|
|
80
|
+
var BusinessAccountMemberInviteReceipt = require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
80
81
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
81
82
|
var BusinessAccountMutationVersion = require('../models/BusinessAccountMutationVersion.cjs');
|
|
82
83
|
var BusinessAccountProposal = require('../models/BusinessAccountProposal.cjs');
|
|
@@ -88,6 +89,7 @@ require('../models/BusinessAccountRolesAdminResponseAllOf.cjs');
|
|
|
88
89
|
var BusinessAccountRolesResponse = require('../models/BusinessAccountRolesResponse.cjs');
|
|
89
90
|
var BusinessAccountSigningProposal = require('../models/BusinessAccountSigningProposal.cjs');
|
|
90
91
|
require('../models/SignMessageApprovalQuorumIntent.cjs');
|
|
92
|
+
var CancelBusinessAccountMemberInviteSdkRequest = require('../models/CancelBusinessAccountMemberInviteSdkRequest.cjs');
|
|
91
93
|
require('../models/CaptchaProviderEnum.cjs');
|
|
92
94
|
require('../models/DestinationTypeEnum.cjs');
|
|
93
95
|
require('../models/ChainalysisExists.cjs');
|
|
@@ -10015,6 +10017,61 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10015
10017
|
async sdkBusinessAccountMemberByUserOptions(requestParameters, initOverrides) {
|
|
10016
10018
|
await this.sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides);
|
|
10017
10019
|
}
|
|
10020
|
+
/**
|
|
10021
|
+
* Options call for this endpoint
|
|
10022
|
+
*/
|
|
10023
|
+
async sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides) {
|
|
10024
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10025
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
10026
|
+
}
|
|
10027
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10028
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
10029
|
+
}
|
|
10030
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
10031
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
10032
|
+
}
|
|
10033
|
+
const queryParameters = {};
|
|
10034
|
+
const headerParameters = {};
|
|
10035
|
+
const response = await this.request({
|
|
10036
|
+
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))),
|
|
10037
|
+
method: 'OPTIONS',
|
|
10038
|
+
headers: headerParameters,
|
|
10039
|
+
query: queryParameters,
|
|
10040
|
+
}, initOverrides);
|
|
10041
|
+
return new runtime.VoidApiResponse(response);
|
|
10042
|
+
}
|
|
10043
|
+
/**
|
|
10044
|
+
* Options call for this endpoint
|
|
10045
|
+
*/
|
|
10046
|
+
async sdkBusinessAccountMemberInviteOptions(requestParameters, initOverrides) {
|
|
10047
|
+
await this.sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides);
|
|
10048
|
+
}
|
|
10049
|
+
/**
|
|
10050
|
+
* Options call for this endpoint
|
|
10051
|
+
*/
|
|
10052
|
+
async sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
10053
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10054
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
10055
|
+
}
|
|
10056
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10057
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
10058
|
+
}
|
|
10059
|
+
const queryParameters = {};
|
|
10060
|
+
const headerParameters = {};
|
|
10061
|
+
const response = await this.request({
|
|
10062
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10063
|
+
method: 'OPTIONS',
|
|
10064
|
+
headers: headerParameters,
|
|
10065
|
+
query: queryParameters,
|
|
10066
|
+
}, initOverrides);
|
|
10067
|
+
return new runtime.VoidApiResponse(response);
|
|
10068
|
+
}
|
|
10069
|
+
/**
|
|
10070
|
+
* Options call for this endpoint
|
|
10071
|
+
*/
|
|
10072
|
+
async sdkBusinessAccountMemberInvitesOptions(requestParameters, initOverrides) {
|
|
10073
|
+
await this.sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides);
|
|
10074
|
+
}
|
|
10018
10075
|
/**
|
|
10019
10076
|
* Options call for this endpoint
|
|
10020
10077
|
*/
|
|
@@ -10455,6 +10512,47 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10455
10512
|
async sdkBusinessAccountsOptions(requestParameters, initOverrides) {
|
|
10456
10513
|
await this.sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides);
|
|
10457
10514
|
}
|
|
10515
|
+
/**
|
|
10516
|
+
* 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.
|
|
10517
|
+
* SDK — cancel a pending business account member invite
|
|
10518
|
+
*/
|
|
10519
|
+
async sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides) {
|
|
10520
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10521
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10522
|
+
}
|
|
10523
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10524
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10525
|
+
}
|
|
10526
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
10527
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10528
|
+
}
|
|
10529
|
+
const queryParameters = {};
|
|
10530
|
+
const headerParameters = {};
|
|
10531
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10532
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10533
|
+
const token = this.configuration.accessToken;
|
|
10534
|
+
const tokenString = await token("bearerAuth", []);
|
|
10535
|
+
if (tokenString) {
|
|
10536
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10537
|
+
}
|
|
10538
|
+
}
|
|
10539
|
+
const response = await this.request({
|
|
10540
|
+
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))),
|
|
10541
|
+
method: 'DELETE',
|
|
10542
|
+
headers: headerParameters,
|
|
10543
|
+
query: queryParameters,
|
|
10544
|
+
body: CancelBusinessAccountMemberInviteSdkRequest.CancelBusinessAccountMemberInviteSdkRequestToJSON(requestParameters.cancelBusinessAccountMemberInviteSdkRequest),
|
|
10545
|
+
}, initOverrides);
|
|
10546
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteReceipt.BusinessAccountMemberInviteReceiptFromJSON(jsonValue));
|
|
10547
|
+
}
|
|
10548
|
+
/**
|
|
10549
|
+
* 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.
|
|
10550
|
+
* SDK — cancel a pending business account member invite
|
|
10551
|
+
*/
|
|
10552
|
+
async sdkCancelBusinessAccountMemberInvite(requestParameters, initOverrides) {
|
|
10553
|
+
const response = await this.sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides);
|
|
10554
|
+
return await response.value();
|
|
10555
|
+
}
|
|
10458
10556
|
/**
|
|
10459
10557
|
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
10460
10558
|
* SDK — create a business account
|
|
@@ -10960,6 +11058,42 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10960
11058
|
const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
|
|
10961
11059
|
return await response.value();
|
|
10962
11060
|
}
|
|
11061
|
+
/**
|
|
11062
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
11063
|
+
* SDK — list pending business account member invites
|
|
11064
|
+
*/
|
|
11065
|
+
async sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides) {
|
|
11066
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11067
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
11068
|
+
}
|
|
11069
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
11070
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
11071
|
+
}
|
|
11072
|
+
const queryParameters = {};
|
|
11073
|
+
const headerParameters = {};
|
|
11074
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11075
|
+
const token = this.configuration.accessToken;
|
|
11076
|
+
const tokenString = await token("bearerAuth", []);
|
|
11077
|
+
if (tokenString) {
|
|
11078
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11079
|
+
}
|
|
11080
|
+
}
|
|
11081
|
+
const response = await this.request({
|
|
11082
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
11083
|
+
method: 'GET',
|
|
11084
|
+
headers: headerParameters,
|
|
11085
|
+
query: queryParameters,
|
|
11086
|
+
}, initOverrides);
|
|
11087
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteListResponse.BusinessAccountMemberInviteListResponseFromJSON(jsonValue));
|
|
11088
|
+
}
|
|
11089
|
+
/**
|
|
11090
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
11091
|
+
* SDK — list pending business account member invites
|
|
11092
|
+
*/
|
|
11093
|
+
async sdkListBusinessAccountMemberInvites(requestParameters, initOverrides) {
|
|
11094
|
+
const response = await this.sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides);
|
|
11095
|
+
return await response.value();
|
|
11096
|
+
}
|
|
10963
11097
|
/**
|
|
10964
11098
|
* 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.
|
|
10965
11099
|
* SDK — list the governed mutations awaiting approval
|
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, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, 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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, 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;
|
|
@@ -1267,6 +1267,15 @@ export interface SdkBusinessAccountMemberByUserOptionsRequest {
|
|
|
1267
1267
|
businessAccountId: string;
|
|
1268
1268
|
userId: string;
|
|
1269
1269
|
}
|
|
1270
|
+
export interface SdkBusinessAccountMemberInviteOptionsRequest {
|
|
1271
|
+
environmentId: string;
|
|
1272
|
+
businessAccountId: string;
|
|
1273
|
+
inviteId: string;
|
|
1274
|
+
}
|
|
1275
|
+
export interface SdkBusinessAccountMemberInvitesOptionsRequest {
|
|
1276
|
+
environmentId: string;
|
|
1277
|
+
businessAccountId: string;
|
|
1278
|
+
}
|
|
1270
1279
|
export interface SdkBusinessAccountMembersOptionsRequest {
|
|
1271
1280
|
environmentId: string;
|
|
1272
1281
|
businessAccountId: string;
|
|
@@ -1339,6 +1348,12 @@ export interface SdkBusinessAccountWalletSigningProposalsOptionsRequest {
|
|
|
1339
1348
|
export interface SdkBusinessAccountsOptionsRequest {
|
|
1340
1349
|
environmentId: string;
|
|
1341
1350
|
}
|
|
1351
|
+
export interface SdkCancelBusinessAccountMemberInviteRequest {
|
|
1352
|
+
environmentId: string;
|
|
1353
|
+
businessAccountId: string;
|
|
1354
|
+
inviteId: string;
|
|
1355
|
+
cancelBusinessAccountMemberInviteSdkRequest?: CancelBusinessAccountMemberInviteSdkRequest;
|
|
1356
|
+
}
|
|
1342
1357
|
export interface SdkCreateBusinessAccountRequest {
|
|
1343
1358
|
environmentId: string;
|
|
1344
1359
|
createBusinessAccountSdkRequest?: CreateBusinessAccountSdkRequest;
|
|
@@ -1403,6 +1418,10 @@ export interface SdkLinkBusinessAccountWalletRequest {
|
|
|
1403
1418
|
environmentId: string;
|
|
1404
1419
|
linkBusinessAccountWalletSdkRequest: LinkBusinessAccountWalletSdkRequest;
|
|
1405
1420
|
}
|
|
1421
|
+
export interface SdkListBusinessAccountMemberInvitesRequest {
|
|
1422
|
+
environmentId: string;
|
|
1423
|
+
businessAccountId: string;
|
|
1424
|
+
}
|
|
1406
1425
|
export interface SdkListBusinessAccountProposalsRequest {
|
|
1407
1426
|
environmentId: string;
|
|
1408
1427
|
businessAccountId: string;
|
|
@@ -4685,6 +4704,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4685
4704
|
* Options call for this endpoint
|
|
4686
4705
|
*/
|
|
4687
4706
|
sdkBusinessAccountMemberByUserOptions(requestParameters: SdkBusinessAccountMemberByUserOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4707
|
+
/**
|
|
4708
|
+
* Options call for this endpoint
|
|
4709
|
+
*/
|
|
4710
|
+
sdkBusinessAccountMemberInviteOptionsRaw(requestParameters: SdkBusinessAccountMemberInviteOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4711
|
+
/**
|
|
4712
|
+
* Options call for this endpoint
|
|
4713
|
+
*/
|
|
4714
|
+
sdkBusinessAccountMemberInviteOptions(requestParameters: SdkBusinessAccountMemberInviteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4715
|
+
/**
|
|
4716
|
+
* Options call for this endpoint
|
|
4717
|
+
*/
|
|
4718
|
+
sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters: SdkBusinessAccountMemberInvitesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4719
|
+
/**
|
|
4720
|
+
* Options call for this endpoint
|
|
4721
|
+
*/
|
|
4722
|
+
sdkBusinessAccountMemberInvitesOptions(requestParameters: SdkBusinessAccountMemberInvitesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4688
4723
|
/**
|
|
4689
4724
|
* Options call for this endpoint
|
|
4690
4725
|
*/
|
|
@@ -4813,6 +4848,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4813
4848
|
* Options call for this endpoint
|
|
4814
4849
|
*/
|
|
4815
4850
|
sdkBusinessAccountsOptions(requestParameters: SdkBusinessAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4851
|
+
/**
|
|
4852
|
+
* 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.
|
|
4853
|
+
* SDK — cancel a pending business account member invite
|
|
4854
|
+
*/
|
|
4855
|
+
sdkCancelBusinessAccountMemberInviteRaw(requestParameters: SdkCancelBusinessAccountMemberInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberInviteReceipt>>;
|
|
4856
|
+
/**
|
|
4857
|
+
* 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.
|
|
4858
|
+
* SDK — cancel a pending business account member invite
|
|
4859
|
+
*/
|
|
4860
|
+
sdkCancelBusinessAccountMemberInvite(requestParameters: SdkCancelBusinessAccountMemberInviteRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberInviteReceipt>;
|
|
4816
4861
|
/**
|
|
4817
4862
|
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
4818
4863
|
* SDK — create a business account
|
|
@@ -4941,6 +4986,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4941
4986
|
* SDK — add an existing wallet to a business account
|
|
4942
4987
|
*/
|
|
4943
4988
|
sdkLinkBusinessAccountWallet(requestParameters: SdkLinkBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
4989
|
+
/**
|
|
4990
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
4991
|
+
* SDK — list pending business account member invites
|
|
4992
|
+
*/
|
|
4993
|
+
sdkListBusinessAccountMemberInvitesRaw(requestParameters: SdkListBusinessAccountMemberInvitesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberInviteListResponse>>;
|
|
4994
|
+
/**
|
|
4995
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
4996
|
+
* SDK — list pending business account member invites
|
|
4997
|
+
*/
|
|
4998
|
+
sdkListBusinessAccountMemberInvites(requestParameters: SdkListBusinessAccountMemberInvitesRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberInviteListResponse>;
|
|
4944
4999
|
/**
|
|
4945
5000
|
* 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.
|
|
4946
5001
|
* SDK — list the governed mutations awaiting approval
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -72,7 +72,8 @@ import '../models/BusinessAccountInvite.js';
|
|
|
72
72
|
import { BusinessAccountInviteListResponseFromJSON } from '../models/BusinessAccountInviteListResponse.js';
|
|
73
73
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
74
74
|
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
75
|
-
import '../models/
|
|
75
|
+
import { BusinessAccountMemberInviteListResponseFromJSON } from '../models/BusinessAccountMemberInviteListResponse.js';
|
|
76
|
+
import { BusinessAccountMemberInviteReceiptFromJSON } from '../models/BusinessAccountMemberInviteReceipt.js';
|
|
76
77
|
import '../models/BusinessAccountMemberRole.js';
|
|
77
78
|
import { BusinessAccountMutationVersionFromJSON } from '../models/BusinessAccountMutationVersion.js';
|
|
78
79
|
import { BusinessAccountProposalFromJSON } from '../models/BusinessAccountProposal.js';
|
|
@@ -84,6 +85,7 @@ import '../models/BusinessAccountRolesAdminResponseAllOf.js';
|
|
|
84
85
|
import { BusinessAccountRolesResponseFromJSON } from '../models/BusinessAccountRolesResponse.js';
|
|
85
86
|
import { BusinessAccountSigningProposalFromJSON } from '../models/BusinessAccountSigningProposal.js';
|
|
86
87
|
import '../models/SignMessageApprovalQuorumIntent.js';
|
|
88
|
+
import { CancelBusinessAccountMemberInviteSdkRequestToJSON } from '../models/CancelBusinessAccountMemberInviteSdkRequest.js';
|
|
87
89
|
import '../models/CaptchaProviderEnum.js';
|
|
88
90
|
import '../models/DestinationTypeEnum.js';
|
|
89
91
|
import '../models/ChainalysisExists.js';
|
|
@@ -10011,6 +10013,61 @@ class SDKApi extends BaseAPI {
|
|
|
10011
10013
|
async sdkBusinessAccountMemberByUserOptions(requestParameters, initOverrides) {
|
|
10012
10014
|
await this.sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides);
|
|
10013
10015
|
}
|
|
10016
|
+
/**
|
|
10017
|
+
* Options call for this endpoint
|
|
10018
|
+
*/
|
|
10019
|
+
async sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides) {
|
|
10020
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10021
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
10022
|
+
}
|
|
10023
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10024
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
10025
|
+
}
|
|
10026
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
10027
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
10028
|
+
}
|
|
10029
|
+
const queryParameters = {};
|
|
10030
|
+
const headerParameters = {};
|
|
10031
|
+
const response = await this.request({
|
|
10032
|
+
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))),
|
|
10033
|
+
method: 'OPTIONS',
|
|
10034
|
+
headers: headerParameters,
|
|
10035
|
+
query: queryParameters,
|
|
10036
|
+
}, initOverrides);
|
|
10037
|
+
return new VoidApiResponse(response);
|
|
10038
|
+
}
|
|
10039
|
+
/**
|
|
10040
|
+
* Options call for this endpoint
|
|
10041
|
+
*/
|
|
10042
|
+
async sdkBusinessAccountMemberInviteOptions(requestParameters, initOverrides) {
|
|
10043
|
+
await this.sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides);
|
|
10044
|
+
}
|
|
10045
|
+
/**
|
|
10046
|
+
* Options call for this endpoint
|
|
10047
|
+
*/
|
|
10048
|
+
async sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
10049
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10050
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
10051
|
+
}
|
|
10052
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10053
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
10054
|
+
}
|
|
10055
|
+
const queryParameters = {};
|
|
10056
|
+
const headerParameters = {};
|
|
10057
|
+
const response = await this.request({
|
|
10058
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10059
|
+
method: 'OPTIONS',
|
|
10060
|
+
headers: headerParameters,
|
|
10061
|
+
query: queryParameters,
|
|
10062
|
+
}, initOverrides);
|
|
10063
|
+
return new VoidApiResponse(response);
|
|
10064
|
+
}
|
|
10065
|
+
/**
|
|
10066
|
+
* Options call for this endpoint
|
|
10067
|
+
*/
|
|
10068
|
+
async sdkBusinessAccountMemberInvitesOptions(requestParameters, initOverrides) {
|
|
10069
|
+
await this.sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides);
|
|
10070
|
+
}
|
|
10014
10071
|
/**
|
|
10015
10072
|
* Options call for this endpoint
|
|
10016
10073
|
*/
|
|
@@ -10451,6 +10508,47 @@ class SDKApi extends BaseAPI {
|
|
|
10451
10508
|
async sdkBusinessAccountsOptions(requestParameters, initOverrides) {
|
|
10452
10509
|
await this.sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides);
|
|
10453
10510
|
}
|
|
10511
|
+
/**
|
|
10512
|
+
* 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.
|
|
10513
|
+
* SDK — cancel a pending business account member invite
|
|
10514
|
+
*/
|
|
10515
|
+
async sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides) {
|
|
10516
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10517
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10518
|
+
}
|
|
10519
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10520
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10521
|
+
}
|
|
10522
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
10523
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10524
|
+
}
|
|
10525
|
+
const queryParameters = {};
|
|
10526
|
+
const headerParameters = {};
|
|
10527
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10528
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10529
|
+
const token = this.configuration.accessToken;
|
|
10530
|
+
const tokenString = await token("bearerAuth", []);
|
|
10531
|
+
if (tokenString) {
|
|
10532
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10533
|
+
}
|
|
10534
|
+
}
|
|
10535
|
+
const response = await this.request({
|
|
10536
|
+
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))),
|
|
10537
|
+
method: 'DELETE',
|
|
10538
|
+
headers: headerParameters,
|
|
10539
|
+
query: queryParameters,
|
|
10540
|
+
body: CancelBusinessAccountMemberInviteSdkRequestToJSON(requestParameters.cancelBusinessAccountMemberInviteSdkRequest),
|
|
10541
|
+
}, initOverrides);
|
|
10542
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteReceiptFromJSON(jsonValue));
|
|
10543
|
+
}
|
|
10544
|
+
/**
|
|
10545
|
+
* 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.
|
|
10546
|
+
* SDK — cancel a pending business account member invite
|
|
10547
|
+
*/
|
|
10548
|
+
async sdkCancelBusinessAccountMemberInvite(requestParameters, initOverrides) {
|
|
10549
|
+
const response = await this.sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides);
|
|
10550
|
+
return await response.value();
|
|
10551
|
+
}
|
|
10454
10552
|
/**
|
|
10455
10553
|
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
10456
10554
|
* SDK — create a business account
|
|
@@ -10956,6 +11054,42 @@ class SDKApi extends BaseAPI {
|
|
|
10956
11054
|
const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
|
|
10957
11055
|
return await response.value();
|
|
10958
11056
|
}
|
|
11057
|
+
/**
|
|
11058
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
11059
|
+
* SDK — list pending business account member invites
|
|
11060
|
+
*/
|
|
11061
|
+
async sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides) {
|
|
11062
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11063
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
11064
|
+
}
|
|
11065
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
11066
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
11067
|
+
}
|
|
11068
|
+
const queryParameters = {};
|
|
11069
|
+
const headerParameters = {};
|
|
11070
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11071
|
+
const token = this.configuration.accessToken;
|
|
11072
|
+
const tokenString = await token("bearerAuth", []);
|
|
11073
|
+
if (tokenString) {
|
|
11074
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11075
|
+
}
|
|
11076
|
+
}
|
|
11077
|
+
const response = await this.request({
|
|
11078
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
11079
|
+
method: 'GET',
|
|
11080
|
+
headers: headerParameters,
|
|
11081
|
+
query: queryParameters,
|
|
11082
|
+
}, initOverrides);
|
|
11083
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteListResponseFromJSON(jsonValue));
|
|
11084
|
+
}
|
|
11085
|
+
/**
|
|
11086
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
11087
|
+
* SDK — list pending business account member invites
|
|
11088
|
+
*/
|
|
11089
|
+
async sdkListBusinessAccountMemberInvites(requestParameters, initOverrides) {
|
|
11090
|
+
const response = await this.sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides);
|
|
11091
|
+
return await response.value();
|
|
11092
|
+
}
|
|
10959
11093
|
/**
|
|
10960
11094
|
* 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.
|
|
10961
11095
|
* SDK — list the governed mutations awaiting approval
|
package/src/index.cjs
CHANGED
|
@@ -172,6 +172,7 @@ var BusinessAccountList = require('./models/BusinessAccountList.cjs');
|
|
|
172
172
|
var BusinessAccountMember = require('./models/BusinessAccountMember.cjs');
|
|
173
173
|
var BusinessAccountMemberCreationResult = require('./models/BusinessAccountMemberCreationResult.cjs');
|
|
174
174
|
var BusinessAccountMemberCustomRole = require('./models/BusinessAccountMemberCustomRole.cjs');
|
|
175
|
+
var BusinessAccountMemberInviteListResponse = require('./models/BusinessAccountMemberInviteListResponse.cjs');
|
|
175
176
|
var BusinessAccountMemberInviteReceipt = require('./models/BusinessAccountMemberInviteReceipt.cjs');
|
|
176
177
|
var BusinessAccountMemberPreview = require('./models/BusinessAccountMemberPreview.cjs');
|
|
177
178
|
var BusinessAccountMemberRole = require('./models/BusinessAccountMemberRole.cjs');
|
|
@@ -196,6 +197,7 @@ var BusinessAccountSummary = require('./models/BusinessAccountSummary.cjs');
|
|
|
196
197
|
var BusinessAccountSummaryAllOf = require('./models/BusinessAccountSummaryAllOf.cjs');
|
|
197
198
|
var BusinessAccountWallet = require('./models/BusinessAccountWallet.cjs');
|
|
198
199
|
var BusinessAccountsResponse = require('./models/BusinessAccountsResponse.cjs');
|
|
200
|
+
var CancelBusinessAccountMemberInviteSdkRequest = require('./models/CancelBusinessAccountMemberInviteSdkRequest.cjs');
|
|
199
201
|
var CaptchaProviderEnum = require('./models/CaptchaProviderEnum.cjs');
|
|
200
202
|
var CaptchaSettings = require('./models/CaptchaSettings.cjs');
|
|
201
203
|
var CaptchaSettingsCreateRequest = require('./models/CaptchaSettingsCreateRequest.cjs');
|
|
@@ -1686,6 +1688,9 @@ exports.BusinessAccountMemberCreationResultToJSON = BusinessAccountMemberCreatio
|
|
|
1686
1688
|
exports.BusinessAccountMemberCustomRoleFromJSON = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSON;
|
|
1687
1689
|
exports.BusinessAccountMemberCustomRoleFromJSONTyped = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSONTyped;
|
|
1688
1690
|
exports.BusinessAccountMemberCustomRoleToJSON = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleToJSON;
|
|
1691
|
+
exports.BusinessAccountMemberInviteListResponseFromJSON = BusinessAccountMemberInviteListResponse.BusinessAccountMemberInviteListResponseFromJSON;
|
|
1692
|
+
exports.BusinessAccountMemberInviteListResponseFromJSONTyped = BusinessAccountMemberInviteListResponse.BusinessAccountMemberInviteListResponseFromJSONTyped;
|
|
1693
|
+
exports.BusinessAccountMemberInviteListResponseToJSON = BusinessAccountMemberInviteListResponse.BusinessAccountMemberInviteListResponseToJSON;
|
|
1689
1694
|
exports.BusinessAccountMemberInviteReceiptFromJSON = BusinessAccountMemberInviteReceipt.BusinessAccountMemberInviteReceiptFromJSON;
|
|
1690
1695
|
exports.BusinessAccountMemberInviteReceiptFromJSONTyped = BusinessAccountMemberInviteReceipt.BusinessAccountMemberInviteReceiptFromJSONTyped;
|
|
1691
1696
|
Object.defineProperty(exports, 'BusinessAccountMemberInviteReceiptKindEnum', {
|
|
@@ -1794,6 +1799,9 @@ exports.BusinessAccountWalletToJSON = BusinessAccountWallet.BusinessAccountWalle
|
|
|
1794
1799
|
exports.BusinessAccountsResponseFromJSON = BusinessAccountsResponse.BusinessAccountsResponseFromJSON;
|
|
1795
1800
|
exports.BusinessAccountsResponseFromJSONTyped = BusinessAccountsResponse.BusinessAccountsResponseFromJSONTyped;
|
|
1796
1801
|
exports.BusinessAccountsResponseToJSON = BusinessAccountsResponse.BusinessAccountsResponseToJSON;
|
|
1802
|
+
exports.CancelBusinessAccountMemberInviteSdkRequestFromJSON = CancelBusinessAccountMemberInviteSdkRequest.CancelBusinessAccountMemberInviteSdkRequestFromJSON;
|
|
1803
|
+
exports.CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped = CancelBusinessAccountMemberInviteSdkRequest.CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped;
|
|
1804
|
+
exports.CancelBusinessAccountMemberInviteSdkRequestToJSON = CancelBusinessAccountMemberInviteSdkRequest.CancelBusinessAccountMemberInviteSdkRequestToJSON;
|
|
1797
1805
|
Object.defineProperty(exports, 'CaptchaProviderEnum', {
|
|
1798
1806
|
enumerable: true,
|
|
1799
1807
|
get: function () { return CaptchaProviderEnum.CaptchaProviderEnum; }
|
package/src/index.js
CHANGED
|
@@ -168,6 +168,7 @@ export { BusinessAccountListFromJSON, BusinessAccountListFromJSONTyped, Business
|
|
|
168
168
|
export { BusinessAccountMemberFromJSON, BusinessAccountMemberFromJSONTyped, BusinessAccountMemberToJSON } from './models/BusinessAccountMember.js';
|
|
169
169
|
export { BusinessAccountMemberCreationResultFromJSON, BusinessAccountMemberCreationResultFromJSONTyped, BusinessAccountMemberCreationResultToJSON } from './models/BusinessAccountMemberCreationResult.js';
|
|
170
170
|
export { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleFromJSONTyped, BusinessAccountMemberCustomRoleToJSON } from './models/BusinessAccountMemberCustomRole.js';
|
|
171
|
+
export { BusinessAccountMemberInviteListResponseFromJSON, BusinessAccountMemberInviteListResponseFromJSONTyped, BusinessAccountMemberInviteListResponseToJSON } from './models/BusinessAccountMemberInviteListResponse.js';
|
|
171
172
|
export { BusinessAccountMemberInviteReceiptFromJSON, BusinessAccountMemberInviteReceiptFromJSONTyped, BusinessAccountMemberInviteReceiptKindEnum, BusinessAccountMemberInviteReceiptStatusEnum, BusinessAccountMemberInviteReceiptToJSON } from './models/BusinessAccountMemberInviteReceipt.js';
|
|
172
173
|
export { BusinessAccountMemberPreviewFromJSON, BusinessAccountMemberPreviewFromJSONTyped, BusinessAccountMemberPreviewToJSON } from './models/BusinessAccountMemberPreview.js';
|
|
173
174
|
export { BusinessAccountMemberRole, BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleFromJSONTyped, BusinessAccountMemberRoleToJSON } from './models/BusinessAccountMemberRole.js';
|
|
@@ -192,6 +193,7 @@ export { BusinessAccountSummaryFromJSON, BusinessAccountSummaryFromJSONTyped, Bu
|
|
|
192
193
|
export { BusinessAccountSummaryAllOfFromJSON, BusinessAccountSummaryAllOfFromJSONTyped, BusinessAccountSummaryAllOfToJSON } from './models/BusinessAccountSummaryAllOf.js';
|
|
193
194
|
export { BusinessAccountWalletFromJSON, BusinessAccountWalletFromJSONTyped, BusinessAccountWalletToJSON } from './models/BusinessAccountWallet.js';
|
|
194
195
|
export { BusinessAccountsResponseFromJSON, BusinessAccountsResponseFromJSONTyped, BusinessAccountsResponseToJSON } from './models/BusinessAccountsResponse.js';
|
|
196
|
+
export { CancelBusinessAccountMemberInviteSdkRequestFromJSON, CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped, CancelBusinessAccountMemberInviteSdkRequestToJSON } from './models/CancelBusinessAccountMemberInviteSdkRequest.js';
|
|
195
197
|
export { CaptchaProviderEnum, CaptchaProviderEnumFromJSON, CaptchaProviderEnumFromJSONTyped, CaptchaProviderEnumToJSON } from './models/CaptchaProviderEnum.js';
|
|
196
198
|
export { CaptchaSettingsFromJSON, CaptchaSettingsFromJSONTyped, CaptchaSettingsToJSON } from './models/CaptchaSettings.js';
|
|
197
199
|
export { CaptchaSettingsCreateRequestFromJSON, CaptchaSettingsCreateRequestFromJSONTyped, CaptchaSettingsCreateRequestToJSON } from './models/CaptchaSettingsCreateRequest.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BusinessAccountMemberInviteReceipt = require('./BusinessAccountMemberInviteReceipt.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BusinessAccountMemberInviteListResponseFromJSON(json) {
|
|
9
|
+
return BusinessAccountMemberInviteListResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BusinessAccountMemberInviteListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'invites': (json['invites'].map(BusinessAccountMemberInviteReceipt.BusinessAccountMemberInviteReceiptFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function BusinessAccountMemberInviteListResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'invites': (value.invites.map(BusinessAccountMemberInviteReceipt.BusinessAccountMemberInviteReceiptToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.BusinessAccountMemberInviteListResponseFromJSON = BusinessAccountMemberInviteListResponseFromJSON;
|
|
32
|
+
exports.BusinessAccountMemberInviteListResponseFromJSONTyped = BusinessAccountMemberInviteListResponseFromJSONTyped;
|
|
33
|
+
exports.BusinessAccountMemberInviteListResponseToJSON = BusinessAccountMemberInviteListResponseToJSON;
|
|
@@ -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 { BusinessAccountMemberInviteReceipt } from './BusinessAccountMemberInviteReceipt';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BusinessAccountMemberInviteListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface BusinessAccountMemberInviteListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<BusinessAccountMemberInviteReceipt>}
|
|
22
|
+
* @memberof BusinessAccountMemberInviteListResponse
|
|
23
|
+
*/
|
|
24
|
+
invites: Array<BusinessAccountMemberInviteReceipt>;
|
|
25
|
+
}
|
|
26
|
+
export declare function BusinessAccountMemberInviteListResponseFromJSON(json: any): BusinessAccountMemberInviteListResponse;
|
|
27
|
+
export declare function BusinessAccountMemberInviteListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountMemberInviteListResponse;
|
|
28
|
+
export declare function BusinessAccountMemberInviteListResponseToJSON(value?: BusinessAccountMemberInviteListResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BusinessAccountMemberInviteReceiptFromJSON, BusinessAccountMemberInviteReceiptToJSON } from './BusinessAccountMemberInviteReceipt.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BusinessAccountMemberInviteListResponseFromJSON(json) {
|
|
5
|
+
return BusinessAccountMemberInviteListResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BusinessAccountMemberInviteListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'invites': (json['invites'].map(BusinessAccountMemberInviteReceiptFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function BusinessAccountMemberInviteListResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'invites': (value.invites.map(BusinessAccountMemberInviteReceiptToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { BusinessAccountMemberInviteListResponseFromJSON, BusinessAccountMemberInviteListResponseFromJSONTyped, BusinessAccountMemberInviteListResponseToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CancelBusinessAccountMemberInviteSdkRequestFromJSON(json) {
|
|
9
|
+
return CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'autoExecute': !runtime.exists(json, 'autoExecute') ? undefined : json['autoExecute'],
|
|
17
|
+
'intent': !runtime.exists(json, 'intent') ? undefined : json['intent'],
|
|
18
|
+
'intentSignature': !runtime.exists(json, 'intentSignature') ? undefined : json['intentSignature'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function CancelBusinessAccountMemberInviteSdkRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'autoExecute': value.autoExecute,
|
|
30
|
+
'intent': value.intent,
|
|
31
|
+
'intentSignature': value.intentSignature,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.CancelBusinessAccountMemberInviteSdkRequestFromJSON = CancelBusinessAccountMemberInviteSdkRequestFromJSON;
|
|
36
|
+
exports.CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped = CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped;
|
|
37
|
+
exports.CancelBusinessAccountMemberInviteSdkRequestToJSON = CancelBusinessAccountMemberInviteSdkRequestToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Approval artifacts for canceling a pending business account member invite. Send nothing when the account does not govern member removal.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CancelBusinessAccountMemberInviteSdkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CancelBusinessAccountMemberInviteSdkRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the change applies the moment its quorum is met, or waits for an explicit execute. Read only on the first call, where it is stamped into the intent you sign; after that the signed intent is the authority. Defaults to true, because a change holding all its consent while waiting for a button press tends to be forgotten, and the deadline covers execution too.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof CancelBusinessAccountMemberInviteSdkRequest
|
|
22
|
+
*/
|
|
23
|
+
autoExecute?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The initiator's proposal, signed with their session key. Built by the API, not the client — sign these exact bytes verbatim, because re-serializing can change them and invalidate the signature.
|
|
26
|
+
* `autoExecute` is inside the signed bytes, so an approver consents to it and nothing can flip it afterwards.
|
|
27
|
+
* @type {{ [key: string]: object; }}
|
|
28
|
+
* @memberof CancelBusinessAccountMemberInviteSdkRequest
|
|
29
|
+
*/
|
|
30
|
+
intent?: {
|
|
31
|
+
[key: string]: object;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Hex-encoded ECDSA P-256 signature over the canonicalized payload, produced by the signer's session key — which never leaves their device, so consent cannot be given on their behalf.
|
|
35
|
+
* Exactly 128 hex characters. WebCrypto emits the raw r‖s form with both halves padded to 32 bytes, so unlike DER the length never varies. Constrained here so a malformed value is a 400 at the edge rather than an enclave round trip that returns INTENT_SIGNATURE_INVALID, and so an unbounded string cannot be persisted against a proposal.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CancelBusinessAccountMemberInviteSdkRequest
|
|
38
|
+
*/
|
|
39
|
+
intentSignature?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function CancelBusinessAccountMemberInviteSdkRequestFromJSON(json: any): CancelBusinessAccountMemberInviteSdkRequest;
|
|
42
|
+
export declare function CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelBusinessAccountMemberInviteSdkRequest;
|
|
43
|
+
export declare function CancelBusinessAccountMemberInviteSdkRequestToJSON(value?: CancelBusinessAccountMemberInviteSdkRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function CancelBusinessAccountMemberInviteSdkRequestFromJSON(json) {
|
|
5
|
+
return CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'autoExecute': !exists(json, 'autoExecute') ? undefined : json['autoExecute'],
|
|
13
|
+
'intent': !exists(json, 'intent') ? undefined : json['intent'],
|
|
14
|
+
'intentSignature': !exists(json, 'intentSignature') ? undefined : json['intentSignature'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function CancelBusinessAccountMemberInviteSdkRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'autoExecute': value.autoExecute,
|
|
26
|
+
'intent': value.intent,
|
|
27
|
+
'intentSignature': value.intentSignature,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { CancelBusinessAccountMemberInviteSdkRequestFromJSON, CancelBusinessAccountMemberInviteSdkRequestFromJSONTyped, CancelBusinessAccountMemberInviteSdkRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export * from './BusinessAccountList';
|
|
|
115
115
|
export * from './BusinessAccountMember';
|
|
116
116
|
export * from './BusinessAccountMemberCreationResult';
|
|
117
117
|
export * from './BusinessAccountMemberCustomRole';
|
|
118
|
+
export * from './BusinessAccountMemberInviteListResponse';
|
|
118
119
|
export * from './BusinessAccountMemberInviteReceipt';
|
|
119
120
|
export * from './BusinessAccountMemberPreview';
|
|
120
121
|
export * from './BusinessAccountMemberRole';
|
|
@@ -139,6 +140,7 @@ export * from './BusinessAccountSummary';
|
|
|
139
140
|
export * from './BusinessAccountSummaryAllOf';
|
|
140
141
|
export * from './BusinessAccountWallet';
|
|
141
142
|
export * from './BusinessAccountsResponse';
|
|
143
|
+
export * from './CancelBusinessAccountMemberInviteSdkRequest';
|
|
142
144
|
export * from './CaptchaProviderEnum';
|
|
143
145
|
export * from './CaptchaSettings';
|
|
144
146
|
export * from './CaptchaSettingsCreateRequest';
|