@dynamic-labs/sdk-api-core 0.151.0 → 0.152.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 +121 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +51 -1
- package/src/apis/SDKApi.js +121 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +20 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/src/models/AcceptBusinessAccountInviteResponse.cjs +36 -0
- package/src/models/AcceptBusinessAccountInviteResponse.cjs.map +1 -0
- package/src/models/AcceptBusinessAccountInviteResponse.d.ts +35 -0
- package/src/models/AcceptBusinessAccountInviteResponse.js +30 -0
- package/src/models/AcceptBusinessAccountInviteResponse.js.map +1 -0
- package/src/models/BusinessAccountInvite.cjs +70 -0
- package/src/models/BusinessAccountInvite.cjs.map +1 -0
- package/src/models/BusinessAccountInvite.d.ts +103 -0
- package/src/models/BusinessAccountInvite.js +64 -0
- package/src/models/BusinessAccountInvite.js.map +1 -0
- package/src/models/BusinessAccountInviteListResponse.cjs +33 -0
- package/src/models/BusinessAccountInviteListResponse.cjs.map +1 -0
- package/src/models/BusinessAccountInviteListResponse.d.ts +28 -0
- package/src/models/BusinessAccountInviteListResponse.js +27 -0
- package/src/models/BusinessAccountInviteListResponse.js.map +1 -0
- package/src/models/index.d.ts +3 -0
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
|
+
export interface AcceptBusinessAccountInviteRequest {
|
|
15
|
+
environmentId: string;
|
|
16
|
+
inviteId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AcceptBusinessAccountInviteOptionsRequest {
|
|
19
|
+
environmentId: string;
|
|
20
|
+
inviteId: string;
|
|
21
|
+
}
|
|
14
22
|
export interface AttachFlowSourceRequest {
|
|
15
23
|
environmentId: string;
|
|
16
24
|
flowId: string;
|
|
@@ -459,6 +467,12 @@ export interface GetBackupTokenRequest {
|
|
|
459
467
|
export interface GetBackupTokenOptionsRequest {
|
|
460
468
|
environmentId: string;
|
|
461
469
|
}
|
|
470
|
+
export interface GetBusinessAccountInvitesRequest {
|
|
471
|
+
environmentId: string;
|
|
472
|
+
}
|
|
473
|
+
export interface GetBusinessAccountInvitesOptionsRequest {
|
|
474
|
+
environmentId: string;
|
|
475
|
+
}
|
|
462
476
|
export interface GetBusinessAccountPolicyLayerRequest {
|
|
463
477
|
environmentId: string;
|
|
464
478
|
businessAccountId: string;
|
|
@@ -1815,6 +1829,24 @@ export interface YieldVaultWithdrawOptionsRequest {
|
|
|
1815
1829
|
*
|
|
1816
1830
|
*/
|
|
1817
1831
|
export declare class SDKApi extends runtime.BaseAPI {
|
|
1832
|
+
/**
|
|
1833
|
+
* Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
|
|
1834
|
+
* Accept a pending business account invitation
|
|
1835
|
+
*/
|
|
1836
|
+
acceptBusinessAccountInviteRaw(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AcceptBusinessAccountInviteResponse>>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
|
|
1839
|
+
* Accept a pending business account invitation
|
|
1840
|
+
*/
|
|
1841
|
+
acceptBusinessAccountInvite(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<AcceptBusinessAccountInviteResponse>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Options call for this endpoint
|
|
1844
|
+
*/
|
|
1845
|
+
acceptBusinessAccountInviteOptionsRaw(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Options call for this endpoint
|
|
1848
|
+
*/
|
|
1849
|
+
acceptBusinessAccountInviteOptions(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1818
1850
|
/**
|
|
1819
1851
|
* Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
|
|
1820
1852
|
* Attach a source to a flow and mint a session token
|
|
@@ -2807,6 +2839,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2807
2839
|
* Options call for this endpoint
|
|
2808
2840
|
*/
|
|
2809
2841
|
getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2842
|
+
/**
|
|
2843
|
+
* Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
|
|
2844
|
+
* List the authenticated user\'s pending business account invitations
|
|
2845
|
+
*/
|
|
2846
|
+
getBusinessAccountInvitesRaw(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountInviteListResponse>>;
|
|
2847
|
+
/**
|
|
2848
|
+
* Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
|
|
2849
|
+
* List the authenticated user\'s pending business account invitations
|
|
2850
|
+
*/
|
|
2851
|
+
getBusinessAccountInvites(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<BusinessAccountInviteListResponse>;
|
|
2852
|
+
/**
|
|
2853
|
+
* Options call for this endpoint
|
|
2854
|
+
*/
|
|
2855
|
+
getBusinessAccountInvitesOptionsRaw(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2856
|
+
/**
|
|
2857
|
+
* Options call for this endpoint
|
|
2858
|
+
*/
|
|
2859
|
+
getBusinessAccountInvitesOptions(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2810
2860
|
/**
|
|
2811
2861
|
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
2812
2862
|
* Get the business account\'s account-Layer Rules
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
|
|
2
|
+
import { AcceptBusinessAccountInviteResponseFromJSON } from '../models/AcceptBusinessAccountInviteResponse.js';
|
|
2
3
|
import { AccountFromJSON } from '../models/Account.js';
|
|
3
4
|
import '../models/ProviderEnum.js';
|
|
4
5
|
import '../models/UserIdentifierTypeEnum.js';
|
|
@@ -53,6 +54,8 @@ import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.j
|
|
|
53
54
|
import '../models/ChainEnum.js';
|
|
54
55
|
import { BusinessAccountGovernanceResponseFromJSON } from '../models/BusinessAccountGovernanceResponse.js';
|
|
55
56
|
import '../models/BusinessAccountGovernedAction.js';
|
|
57
|
+
import '../models/BusinessAccountInvite.js';
|
|
58
|
+
import { BusinessAccountInviteListResponseFromJSON } from '../models/BusinessAccountInviteListResponse.js';
|
|
56
59
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
57
60
|
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
58
61
|
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
@@ -372,6 +375,68 @@ import { YieldVaultRewardsResponseFromJSON } from '../models/YieldVaultRewardsRe
|
|
|
372
375
|
*
|
|
373
376
|
*/
|
|
374
377
|
class SDKApi extends BaseAPI {
|
|
378
|
+
/**
|
|
379
|
+
* Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
|
|
380
|
+
* Accept a pending business account invitation
|
|
381
|
+
*/
|
|
382
|
+
async acceptBusinessAccountInviteRaw(requestParameters, initOverrides) {
|
|
383
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
384
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
385
|
+
}
|
|
386
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
387
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
388
|
+
}
|
|
389
|
+
const queryParameters = {};
|
|
390
|
+
const headerParameters = {};
|
|
391
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
392
|
+
const token = this.configuration.accessToken;
|
|
393
|
+
const tokenString = await token("bearerAuth", []);
|
|
394
|
+
if (tokenString) {
|
|
395
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
const response = await this.request({
|
|
399
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
400
|
+
method: 'POST',
|
|
401
|
+
headers: headerParameters,
|
|
402
|
+
query: queryParameters,
|
|
403
|
+
}, initOverrides);
|
|
404
|
+
return new JSONApiResponse(response, (jsonValue) => AcceptBusinessAccountInviteResponseFromJSON(jsonValue));
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
|
|
408
|
+
* Accept a pending business account invitation
|
|
409
|
+
*/
|
|
410
|
+
async acceptBusinessAccountInvite(requestParameters, initOverrides) {
|
|
411
|
+
const response = await this.acceptBusinessAccountInviteRaw(requestParameters, initOverrides);
|
|
412
|
+
return await response.value();
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Options call for this endpoint
|
|
416
|
+
*/
|
|
417
|
+
async acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides) {
|
|
418
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
419
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
420
|
+
}
|
|
421
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
422
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
423
|
+
}
|
|
424
|
+
const queryParameters = {};
|
|
425
|
+
const headerParameters = {};
|
|
426
|
+
const response = await this.request({
|
|
427
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
428
|
+
method: 'OPTIONS',
|
|
429
|
+
headers: headerParameters,
|
|
430
|
+
query: queryParameters,
|
|
431
|
+
}, initOverrides);
|
|
432
|
+
return new VoidApiResponse(response);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Options call for this endpoint
|
|
436
|
+
*/
|
|
437
|
+
async acceptBusinessAccountInviteOptions(requestParameters, initOverrides) {
|
|
438
|
+
await this.acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides);
|
|
439
|
+
}
|
|
375
440
|
/**
|
|
376
441
|
* Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
|
|
377
442
|
* Attach a source to a flow and mint a session token
|
|
@@ -3818,6 +3883,62 @@ class SDKApi extends BaseAPI {
|
|
|
3818
3883
|
async getBackupTokenOptions(requestParameters, initOverrides) {
|
|
3819
3884
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3820
3885
|
}
|
|
3886
|
+
/**
|
|
3887
|
+
* Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
|
|
3888
|
+
* List the authenticated user\'s pending business account invitations
|
|
3889
|
+
*/
|
|
3890
|
+
async getBusinessAccountInvitesRaw(requestParameters, initOverrides) {
|
|
3891
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3892
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvites.');
|
|
3893
|
+
}
|
|
3894
|
+
const queryParameters = {};
|
|
3895
|
+
const headerParameters = {};
|
|
3896
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3897
|
+
const token = this.configuration.accessToken;
|
|
3898
|
+
const tokenString = await token("bearerAuth", []);
|
|
3899
|
+
if (tokenString) {
|
|
3900
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3901
|
+
}
|
|
3902
|
+
}
|
|
3903
|
+
const response = await this.request({
|
|
3904
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3905
|
+
method: 'GET',
|
|
3906
|
+
headers: headerParameters,
|
|
3907
|
+
query: queryParameters,
|
|
3908
|
+
}, initOverrides);
|
|
3909
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountInviteListResponseFromJSON(jsonValue));
|
|
3910
|
+
}
|
|
3911
|
+
/**
|
|
3912
|
+
* Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
|
|
3913
|
+
* List the authenticated user\'s pending business account invitations
|
|
3914
|
+
*/
|
|
3915
|
+
async getBusinessAccountInvites(requestParameters, initOverrides) {
|
|
3916
|
+
const response = await this.getBusinessAccountInvitesRaw(requestParameters, initOverrides);
|
|
3917
|
+
return await response.value();
|
|
3918
|
+
}
|
|
3919
|
+
/**
|
|
3920
|
+
* Options call for this endpoint
|
|
3921
|
+
*/
|
|
3922
|
+
async getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
3923
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3924
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvitesOptions.');
|
|
3925
|
+
}
|
|
3926
|
+
const queryParameters = {};
|
|
3927
|
+
const headerParameters = {};
|
|
3928
|
+
const response = await this.request({
|
|
3929
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3930
|
+
method: 'OPTIONS',
|
|
3931
|
+
headers: headerParameters,
|
|
3932
|
+
query: queryParameters,
|
|
3933
|
+
}, initOverrides);
|
|
3934
|
+
return new VoidApiResponse(response);
|
|
3935
|
+
}
|
|
3936
|
+
/**
|
|
3937
|
+
* Options call for this endpoint
|
|
3938
|
+
*/
|
|
3939
|
+
async getBusinessAccountInvitesOptions(requestParameters, initOverrides) {
|
|
3940
|
+
await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
|
|
3941
|
+
}
|
|
3821
3942
|
/**
|
|
3822
3943
|
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3823
3944
|
* Get the business account\'s account-Layer Rules
|