@dynamic-labs/sdk-api 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/AdminActionsApi.cjs +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/BusinessAccountsApi.cjs +2 -1
- package/src/apis/BusinessAccountsApi.js +2 -1
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GaslessApi.cjs +1 -0
- package/src/apis/GaslessApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/KybApi.cjs +1 -0
- package/src/apis/KybApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +121 -0
- package/src/apis/SDKApi.d.ts +51 -1
- package/src/apis/SDKApi.js +121 -0
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/ScreeningPoliciesApi.cjs +1 -0
- package/src/apis/ScreeningPoliciesApi.js +1 -0
- package/src/apis/ServerApi.cjs +2 -1
- package/src/apis/ServerApi.js +2 -1
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/apis/YieldApi.cjs +1 -0
- package/src/apis/YieldApi.js +1 -0
- package/src/apis/ZendeskApi.cjs +1 -0
- package/src/apis/ZendeskApi.js +1 -0
- package/src/index.cjs +20 -0
- package/src/index.js +3 -0
- package/src/models/AcceptBusinessAccountInviteResponse.cjs +36 -0
- package/src/models/AcceptBusinessAccountInviteResponse.d.ts +35 -0
- package/src/models/AcceptBusinessAccountInviteResponse.js +30 -0
- package/src/models/BusinessAccountInvite.cjs +70 -0
- package/src/models/BusinessAccountInvite.d.ts +103 -0
- package/src/models/BusinessAccountInvite.js +64 -0
- package/src/models/BusinessAccountInviteListResponse.cjs +33 -0
- package/src/models/BusinessAccountInviteListResponse.d.ts +28 -0
- package/src/models/BusinessAccountInviteListResponse.js +27 -0
- package/src/models/index.d.ts +3 -0
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AcceptBusinessAccountInviteResponse = require('../models/AcceptBusinessAccountInviteResponse.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
var Account = require('../models/Account.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
|
@@ -71,6 +72,8 @@ require('../models/BusinessAccountApprovalsPending.cjs');
|
|
|
71
72
|
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
72
73
|
var BusinessAccountGovernanceResponse = require('../models/BusinessAccountGovernanceResponse.cjs');
|
|
73
74
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
75
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
76
|
+
var BusinessAccountInviteListResponse = require('../models/BusinessAccountInviteListResponse.cjs');
|
|
74
77
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
75
78
|
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
76
79
|
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
@@ -441,6 +444,68 @@ var YieldVaultRewardsResponse = require('../models/YieldVaultRewardsResponse.cjs
|
|
|
441
444
|
*
|
|
442
445
|
*/
|
|
443
446
|
class SDKApi extends runtime.BaseAPI {
|
|
447
|
+
/**
|
|
448
|
+
* 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.
|
|
449
|
+
* Accept a pending business account invitation
|
|
450
|
+
*/
|
|
451
|
+
async acceptBusinessAccountInviteRaw(requestParameters, initOverrides) {
|
|
452
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
453
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
454
|
+
}
|
|
455
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
456
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
457
|
+
}
|
|
458
|
+
const queryParameters = {};
|
|
459
|
+
const headerParameters = {};
|
|
460
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
461
|
+
const token = this.configuration.accessToken;
|
|
462
|
+
const tokenString = await token("bearerAuth", []);
|
|
463
|
+
if (tokenString) {
|
|
464
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
const response = await this.request({
|
|
468
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
469
|
+
method: 'POST',
|
|
470
|
+
headers: headerParameters,
|
|
471
|
+
query: queryParameters,
|
|
472
|
+
}, initOverrides);
|
|
473
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AcceptBusinessAccountInviteResponse.AcceptBusinessAccountInviteResponseFromJSON(jsonValue));
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* 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.
|
|
477
|
+
* Accept a pending business account invitation
|
|
478
|
+
*/
|
|
479
|
+
async acceptBusinessAccountInvite(requestParameters, initOverrides) {
|
|
480
|
+
const response = await this.acceptBusinessAccountInviteRaw(requestParameters, initOverrides);
|
|
481
|
+
return await response.value();
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Options call for this endpoint
|
|
485
|
+
*/
|
|
486
|
+
async acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides) {
|
|
487
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
488
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
489
|
+
}
|
|
490
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
491
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
492
|
+
}
|
|
493
|
+
const queryParameters = {};
|
|
494
|
+
const headerParameters = {};
|
|
495
|
+
const response = await this.request({
|
|
496
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
497
|
+
method: 'OPTIONS',
|
|
498
|
+
headers: headerParameters,
|
|
499
|
+
query: queryParameters,
|
|
500
|
+
}, initOverrides);
|
|
501
|
+
return new runtime.VoidApiResponse(response);
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Options call for this endpoint
|
|
505
|
+
*/
|
|
506
|
+
async acceptBusinessAccountInviteOptions(requestParameters, initOverrides) {
|
|
507
|
+
await this.acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides);
|
|
508
|
+
}
|
|
444
509
|
/**
|
|
445
510
|
* 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.
|
|
446
511
|
* Attach a source to a flow and mint a session token
|
|
@@ -3887,6 +3952,62 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3887
3952
|
async getBackupTokenOptions(requestParameters, initOverrides) {
|
|
3888
3953
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3889
3954
|
}
|
|
3955
|
+
/**
|
|
3956
|
+
* 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.
|
|
3957
|
+
* List the authenticated user\'s pending business account invitations
|
|
3958
|
+
*/
|
|
3959
|
+
async getBusinessAccountInvitesRaw(requestParameters, initOverrides) {
|
|
3960
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3961
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvites.');
|
|
3962
|
+
}
|
|
3963
|
+
const queryParameters = {};
|
|
3964
|
+
const headerParameters = {};
|
|
3965
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3966
|
+
const token = this.configuration.accessToken;
|
|
3967
|
+
const tokenString = await token("bearerAuth", []);
|
|
3968
|
+
if (tokenString) {
|
|
3969
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3970
|
+
}
|
|
3971
|
+
}
|
|
3972
|
+
const response = await this.request({
|
|
3973
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3974
|
+
method: 'GET',
|
|
3975
|
+
headers: headerParameters,
|
|
3976
|
+
query: queryParameters,
|
|
3977
|
+
}, initOverrides);
|
|
3978
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountInviteListResponse.BusinessAccountInviteListResponseFromJSON(jsonValue));
|
|
3979
|
+
}
|
|
3980
|
+
/**
|
|
3981
|
+
* 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.
|
|
3982
|
+
* List the authenticated user\'s pending business account invitations
|
|
3983
|
+
*/
|
|
3984
|
+
async getBusinessAccountInvites(requestParameters, initOverrides) {
|
|
3985
|
+
const response = await this.getBusinessAccountInvitesRaw(requestParameters, initOverrides);
|
|
3986
|
+
return await response.value();
|
|
3987
|
+
}
|
|
3988
|
+
/**
|
|
3989
|
+
* Options call for this endpoint
|
|
3990
|
+
*/
|
|
3991
|
+
async getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
3992
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3993
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvitesOptions.');
|
|
3994
|
+
}
|
|
3995
|
+
const queryParameters = {};
|
|
3996
|
+
const headerParameters = {};
|
|
3997
|
+
const response = await this.request({
|
|
3998
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3999
|
+
method: 'OPTIONS',
|
|
4000
|
+
headers: headerParameters,
|
|
4001
|
+
query: queryParameters,
|
|
4002
|
+
}, initOverrides);
|
|
4003
|
+
return new runtime.VoidApiResponse(response);
|
|
4004
|
+
}
|
|
4005
|
+
/**
|
|
4006
|
+
* Options call for this endpoint
|
|
4007
|
+
*/
|
|
4008
|
+
async getBusinessAccountInvitesOptions(requestParameters, initOverrides) {
|
|
4009
|
+
await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
|
|
4010
|
+
}
|
|
3890
4011
|
/**
|
|
3891
4012
|
* 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).
|
|
3892
4013
|
* Get the business account\'s account-Layer Rules
|
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, 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, 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, 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
|
+
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;
|
|
@@ -1820,6 +1834,24 @@ export interface YieldVaultWithdrawOptionsRequest {
|
|
|
1820
1834
|
*
|
|
1821
1835
|
*/
|
|
1822
1836
|
export declare class SDKApi extends runtime.BaseAPI {
|
|
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
|
+
acceptBusinessAccountInviteRaw(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AcceptBusinessAccountInviteResponse>>;
|
|
1842
|
+
/**
|
|
1843
|
+
* 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.
|
|
1844
|
+
* Accept a pending business account invitation
|
|
1845
|
+
*/
|
|
1846
|
+
acceptBusinessAccountInvite(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<AcceptBusinessAccountInviteResponse>;
|
|
1847
|
+
/**
|
|
1848
|
+
* Options call for this endpoint
|
|
1849
|
+
*/
|
|
1850
|
+
acceptBusinessAccountInviteOptionsRaw(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1851
|
+
/**
|
|
1852
|
+
* Options call for this endpoint
|
|
1853
|
+
*/
|
|
1854
|
+
acceptBusinessAccountInviteOptions(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1823
1855
|
/**
|
|
1824
1856
|
* 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.
|
|
1825
1857
|
* Attach a source to a flow and mint a session token
|
|
@@ -2812,6 +2844,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2812
2844
|
* Options call for this endpoint
|
|
2813
2845
|
*/
|
|
2814
2846
|
getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
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
|
+
getBusinessAccountInvitesRaw(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountInviteListResponse>>;
|
|
2852
|
+
/**
|
|
2853
|
+
* 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.
|
|
2854
|
+
* List the authenticated user\'s pending business account invitations
|
|
2855
|
+
*/
|
|
2856
|
+
getBusinessAccountInvites(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<BusinessAccountInviteListResponse>;
|
|
2857
|
+
/**
|
|
2858
|
+
* Options call for this endpoint
|
|
2859
|
+
*/
|
|
2860
|
+
getBusinessAccountInvitesOptionsRaw(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2861
|
+
/**
|
|
2862
|
+
* Options call for this endpoint
|
|
2863
|
+
*/
|
|
2864
|
+
getBusinessAccountInvitesOptions(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2815
2865
|
/**
|
|
2816
2866
|
* 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).
|
|
2817
2867
|
* 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 '../models/AccessOutcomeEnum.js';
|
|
3
4
|
import { AccountFromJSON } from '../models/Account.js';
|
|
4
5
|
import '../models/ProviderEnum.js';
|
|
@@ -67,6 +68,8 @@ import '../models/BusinessAccountApprovalsPending.js';
|
|
|
67
68
|
import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
|
|
68
69
|
import { BusinessAccountGovernanceResponseFromJSON } from '../models/BusinessAccountGovernanceResponse.js';
|
|
69
70
|
import '../models/BusinessAccountGovernedAction.js';
|
|
71
|
+
import '../models/BusinessAccountInvite.js';
|
|
72
|
+
import { BusinessAccountInviteListResponseFromJSON } from '../models/BusinessAccountInviteListResponse.js';
|
|
70
73
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
71
74
|
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
72
75
|
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
@@ -437,6 +440,68 @@ import { YieldVaultRewardsResponseFromJSON } from '../models/YieldVaultRewardsRe
|
|
|
437
440
|
*
|
|
438
441
|
*/
|
|
439
442
|
class SDKApi extends BaseAPI {
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
* Accept a pending business account invitation
|
|
446
|
+
*/
|
|
447
|
+
async acceptBusinessAccountInviteRaw(requestParameters, initOverrides) {
|
|
448
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
449
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
450
|
+
}
|
|
451
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
452
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
453
|
+
}
|
|
454
|
+
const queryParameters = {};
|
|
455
|
+
const headerParameters = {};
|
|
456
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
457
|
+
const token = this.configuration.accessToken;
|
|
458
|
+
const tokenString = await token("bearerAuth", []);
|
|
459
|
+
if (tokenString) {
|
|
460
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
const response = await this.request({
|
|
464
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
465
|
+
method: 'POST',
|
|
466
|
+
headers: headerParameters,
|
|
467
|
+
query: queryParameters,
|
|
468
|
+
}, initOverrides);
|
|
469
|
+
return new JSONApiResponse(response, (jsonValue) => AcceptBusinessAccountInviteResponseFromJSON(jsonValue));
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* 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.
|
|
473
|
+
* Accept a pending business account invitation
|
|
474
|
+
*/
|
|
475
|
+
async acceptBusinessAccountInvite(requestParameters, initOverrides) {
|
|
476
|
+
const response = await this.acceptBusinessAccountInviteRaw(requestParameters, initOverrides);
|
|
477
|
+
return await response.value();
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Options call for this endpoint
|
|
481
|
+
*/
|
|
482
|
+
async acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides) {
|
|
483
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
484
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
485
|
+
}
|
|
486
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
487
|
+
throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
488
|
+
}
|
|
489
|
+
const queryParameters = {};
|
|
490
|
+
const headerParameters = {};
|
|
491
|
+
const response = await this.request({
|
|
492
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
493
|
+
method: 'OPTIONS',
|
|
494
|
+
headers: headerParameters,
|
|
495
|
+
query: queryParameters,
|
|
496
|
+
}, initOverrides);
|
|
497
|
+
return new VoidApiResponse(response);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Options call for this endpoint
|
|
501
|
+
*/
|
|
502
|
+
async acceptBusinessAccountInviteOptions(requestParameters, initOverrides) {
|
|
503
|
+
await this.acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides);
|
|
504
|
+
}
|
|
440
505
|
/**
|
|
441
506
|
* 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.
|
|
442
507
|
* Attach a source to a flow and mint a session token
|
|
@@ -3883,6 +3948,62 @@ class SDKApi extends BaseAPI {
|
|
|
3883
3948
|
async getBackupTokenOptions(requestParameters, initOverrides) {
|
|
3884
3949
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3885
3950
|
}
|
|
3951
|
+
/**
|
|
3952
|
+
* 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.
|
|
3953
|
+
* List the authenticated user\'s pending business account invitations
|
|
3954
|
+
*/
|
|
3955
|
+
async getBusinessAccountInvitesRaw(requestParameters, initOverrides) {
|
|
3956
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3957
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvites.');
|
|
3958
|
+
}
|
|
3959
|
+
const queryParameters = {};
|
|
3960
|
+
const headerParameters = {};
|
|
3961
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3962
|
+
const token = this.configuration.accessToken;
|
|
3963
|
+
const tokenString = await token("bearerAuth", []);
|
|
3964
|
+
if (tokenString) {
|
|
3965
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
const response = await this.request({
|
|
3969
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3970
|
+
method: 'GET',
|
|
3971
|
+
headers: headerParameters,
|
|
3972
|
+
query: queryParameters,
|
|
3973
|
+
}, initOverrides);
|
|
3974
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountInviteListResponseFromJSON(jsonValue));
|
|
3975
|
+
}
|
|
3976
|
+
/**
|
|
3977
|
+
* 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.
|
|
3978
|
+
* List the authenticated user\'s pending business account invitations
|
|
3979
|
+
*/
|
|
3980
|
+
async getBusinessAccountInvites(requestParameters, initOverrides) {
|
|
3981
|
+
const response = await this.getBusinessAccountInvitesRaw(requestParameters, initOverrides);
|
|
3982
|
+
return await response.value();
|
|
3983
|
+
}
|
|
3984
|
+
/**
|
|
3985
|
+
* Options call for this endpoint
|
|
3986
|
+
*/
|
|
3987
|
+
async getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
3988
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3989
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvitesOptions.');
|
|
3990
|
+
}
|
|
3991
|
+
const queryParameters = {};
|
|
3992
|
+
const headerParameters = {};
|
|
3993
|
+
const response = await this.request({
|
|
3994
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3995
|
+
method: 'OPTIONS',
|
|
3996
|
+
headers: headerParameters,
|
|
3997
|
+
query: queryParameters,
|
|
3998
|
+
}, initOverrides);
|
|
3999
|
+
return new VoidApiResponse(response);
|
|
4000
|
+
}
|
|
4001
|
+
/**
|
|
4002
|
+
* Options call for this endpoint
|
|
4003
|
+
*/
|
|
4004
|
+
async getBusinessAccountInvitesOptions(requestParameters, initOverrides) {
|
|
4005
|
+
await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
|
|
4006
|
+
}
|
|
3886
4007
|
/**
|
|
3887
4008
|
* 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).
|
|
3888
4009
|
* Get the business account\'s account-Layer Rules
|
package/src/apis/SDKViewsApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/SDKViewsApi.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
7
|
+
var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
|
|
6
8
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
9
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
10
|
require('../models/ProviderEnum.cjs');
|
|
@@ -57,7 +59,6 @@ require('../models/ChainalysisCheckResultEnum.cjs');
|
|
|
57
59
|
var BusinessAccount = require('../models/BusinessAccount.cjs');
|
|
58
60
|
require('../models/BusinessAccountActionEnum.cjs');
|
|
59
61
|
require('../models/BusinessAccountActivityExport.cjs');
|
|
60
|
-
var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
|
|
61
62
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
62
63
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
63
64
|
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BaseAPI, RequiredError, JSONApiResponse, TextApiResponse, VoidApiResponse } from '../runtime.js';
|
|
2
|
+
import '../models/BusinessAccountInvite.js';
|
|
3
|
+
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
2
4
|
import '../models/AccessOutcomeEnum.js';
|
|
3
5
|
import '../models/ExchangeKeyEnum.js';
|
|
4
6
|
import '../models/ProviderEnum.js';
|
|
@@ -53,7 +55,6 @@ import '../models/ChainalysisCheckResultEnum.js';
|
|
|
53
55
|
import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
|
|
54
56
|
import '../models/BusinessAccountActionEnum.js';
|
|
55
57
|
import '../models/BusinessAccountActivityExport.js';
|
|
56
|
-
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
57
58
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
58
59
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
59
60
|
import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
|
package/src/apis/SessionsApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/SessionsApi.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/TokensApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/TokensApi.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/UsersApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/UsersApi.js
CHANGED
package/src/apis/VisitsApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/VisitsApi.js
CHANGED
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/WalletsApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
package/src/apis/WalletsApi.js
CHANGED
package/src/apis/WebhooksApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|