@dynamic-labs/sdk-api 0.150.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 +2 -0
- package/src/apis/AdminActionsApi.js +2 -0
- package/src/apis/AllowlistsApi.cjs +2 -0
- package/src/apis/AllowlistsApi.js +2 -0
- package/src/apis/AnalyticsApi.cjs +2 -0
- package/src/apis/AnalyticsApi.js +2 -0
- package/src/apis/AuthorizedClientsApi.cjs +2 -0
- package/src/apis/AuthorizedClientsApi.js +2 -0
- package/src/apis/BusinessAccountsApi.cjs +5 -2
- package/src/apis/BusinessAccountsApi.d.ts +3 -3
- package/src/apis/BusinessAccountsApi.js +5 -2
- package/src/apis/CaptchaApi.cjs +2 -0
- package/src/apis/CaptchaApi.js +2 -0
- package/src/apis/ChainalysisApi.cjs +2 -0
- package/src/apis/ChainalysisApi.js +2 -0
- package/src/apis/ChainsApi.cjs +2 -0
- package/src/apis/ChainsApi.js +2 -0
- package/src/apis/CheckoutApi.cjs +2 -0
- package/src/apis/CheckoutApi.js +2 -0
- package/src/apis/ClientGrantApi.cjs +2 -0
- package/src/apis/ClientGrantApi.js +2 -0
- package/src/apis/CustomFieldsApi.cjs +2 -0
- package/src/apis/CustomFieldsApi.js +2 -0
- package/src/apis/CustomHostnamesApi.cjs +2 -0
- package/src/apis/CustomHostnamesApi.js +2 -0
- package/src/apis/CustomNetworksApi.cjs +2 -0
- package/src/apis/CustomNetworksApi.js +2 -0
- package/src/apis/DeeplinkUrlsApi.cjs +2 -0
- package/src/apis/DeeplinkUrlsApi.js +2 -0
- package/src/apis/EnvironmentsApi.cjs +2 -0
- package/src/apis/EnvironmentsApi.js +2 -0
- package/src/apis/EventsApi.cjs +2 -0
- package/src/apis/EventsApi.js +2 -0
- package/src/apis/ExchangesApi.cjs +2 -0
- package/src/apis/ExchangesApi.js +2 -0
- package/src/apis/ExportsApi.cjs +2 -0
- package/src/apis/ExportsApi.js +2 -0
- package/src/apis/ExternalJwtApi.cjs +2 -0
- package/src/apis/ExternalJwtApi.js +2 -0
- package/src/apis/FlowAnalyticsApi.cjs +2 -0
- package/src/apis/FlowAnalyticsApi.js +2 -0
- package/src/apis/GaslessApi.cjs +2 -0
- package/src/apis/GaslessApi.js +2 -0
- package/src/apis/GatesApi.cjs +2 -0
- package/src/apis/GatesApi.js +2 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +2 -0
- package/src/apis/GlobalWalletAccessControlApi.js +2 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +2 -0
- package/src/apis/GlobalWalletConnectionsApi.js +2 -0
- package/src/apis/GlobalWalletsApi.cjs +2 -0
- package/src/apis/GlobalWalletsApi.js +2 -0
- package/src/apis/InvitesApi.cjs +2 -0
- package/src/apis/InvitesApi.js +2 -0
- package/src/apis/KybApi.cjs +2 -0
- package/src/apis/KybApi.js +2 -0
- package/src/apis/MembersApi.cjs +2 -0
- package/src/apis/MembersApi.js +2 -0
- package/src/apis/MfaSettingsApi.cjs +2 -0
- package/src/apis/MfaSettingsApi.js +2 -0
- package/src/apis/NameServicesApi.cjs +2 -0
- package/src/apis/NameServicesApi.js +2 -0
- package/src/apis/OrganizationSettingsApi.cjs +2 -0
- package/src/apis/OrganizationSettingsApi.js +2 -0
- package/src/apis/OrganizationsApi.cjs +2 -0
- package/src/apis/OrganizationsApi.js +2 -0
- package/src/apis/OriginsApi.cjs +2 -0
- package/src/apis/OriginsApi.js +2 -0
- package/src/apis/ProjectsApi.cjs +2 -0
- package/src/apis/ProjectsApi.js +2 -0
- package/src/apis/ProvidersApi.cjs +2 -0
- package/src/apis/ProvidersApi.js +2 -0
- package/src/apis/SDKApi.cjs +124 -1
- package/src/apis/SDKApi.d.ts +53 -3
- package/src/apis/SDKApi.js +124 -1
- package/src/apis/SDKViewsApi.cjs +2 -0
- package/src/apis/SDKViewsApi.js +2 -0
- package/src/apis/ScreeningPoliciesApi.cjs +2 -0
- package/src/apis/ScreeningPoliciesApi.js +2 -0
- package/src/apis/ServerApi.cjs +5 -2
- package/src/apis/ServerApi.d.ts +3 -3
- package/src/apis/ServerApi.js +5 -2
- package/src/apis/SessionsApi.cjs +2 -0
- package/src/apis/SessionsApi.js +2 -0
- package/src/apis/TestAccountApi.cjs +2 -0
- package/src/apis/TestAccountApi.js +2 -0
- package/src/apis/TokensApi.cjs +2 -0
- package/src/apis/TokensApi.js +2 -0
- package/src/apis/UserApiTokensApi.cjs +2 -0
- package/src/apis/UserApiTokensApi.js +2 -0
- package/src/apis/UsersApi.cjs +2 -0
- package/src/apis/UsersApi.js +2 -0
- package/src/apis/VisitsApi.cjs +2 -0
- package/src/apis/VisitsApi.js +2 -0
- package/src/apis/WaasApi.cjs +2 -0
- package/src/apis/WaasApi.js +2 -0
- package/src/apis/WalletConnectApi.cjs +2 -0
- package/src/apis/WalletConnectApi.js +2 -0
- package/src/apis/WalletsApi.cjs +2 -0
- package/src/apis/WalletsApi.js +2 -0
- package/src/apis/WebhooksApi.cjs +2 -0
- package/src/apis/WebhooksApi.js +2 -0
- package/src/apis/YieldApi.cjs +2 -0
- package/src/apis/YieldApi.js +2 -0
- package/src/apis/ZendeskApi.cjs +2 -0
- package/src/apis/ZendeskApi.js +2 -0
- package/src/index.cjs +36 -0
- package/src/index.js +5 -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/BusinessAccountMemberCreationResult.cjs +36 -0
- package/src/models/BusinessAccountMemberCreationResult.d.ts +22 -0
- package/src/models/BusinessAccountMemberCreationResult.js +30 -0
- package/src/models/BusinessAccountMemberInviteReceipt.cjs +78 -0
- package/src/models/BusinessAccountMemberInviteReceipt.d.ts +117 -0
- package/src/models/BusinessAccountMemberInviteReceipt.js +72 -0
- package/src/models/index.d.ts +5 -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,7 +72,11 @@ 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');
|
|
78
|
+
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
79
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
75
80
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
76
81
|
var BusinessAccountMutationVersion = require('../models/BusinessAccountMutationVersion.cjs');
|
|
77
82
|
var BusinessAccountProposal = require('../models/BusinessAccountProposal.cjs');
|
|
@@ -439,6 +444,68 @@ var YieldVaultRewardsResponse = require('../models/YieldVaultRewardsResponse.cjs
|
|
|
439
444
|
*
|
|
440
445
|
*/
|
|
441
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
|
+
}
|
|
442
509
|
/**
|
|
443
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.
|
|
444
511
|
* Attach a source to a flow and mint a session token
|
|
@@ -3885,6 +3952,62 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3885
3952
|
async getBackupTokenOptions(requestParameters, initOverrides) {
|
|
3886
3953
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3887
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
|
+
}
|
|
3888
4011
|
/**
|
|
3889
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).
|
|
3890
4013
|
* Get the business account\'s account-Layer Rules
|
|
@@ -9443,7 +9566,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9443
9566
|
query: queryParameters,
|
|
9444
9567
|
body: AddBusinessAccountMemberSdkRequest.AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
9445
9568
|
}, initOverrides);
|
|
9446
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
9569
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResult.BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
9447
9570
|
}
|
|
9448
9571
|
/**
|
|
9449
9572
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
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, 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
|
|
@@ -4474,12 +4524,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4474
4524
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
4475
4525
|
* SDK — add a member to a business account
|
|
4476
4526
|
*/
|
|
4477
|
-
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
4527
|
+
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberCreationResult>>;
|
|
4478
4528
|
/**
|
|
4479
4529
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
4480
4530
|
* SDK — add a member to a business account
|
|
4481
4531
|
*/
|
|
4482
|
-
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<
|
|
4532
|
+
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberCreationResult>;
|
|
4483
4533
|
/**
|
|
4484
4534
|
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
4485
4535
|
* SDK — add a signer to a wallet in a business account
|
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,7 +68,11 @@ 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';
|
|
74
|
+
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
75
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
71
76
|
import '../models/BusinessAccountMemberRole.js';
|
|
72
77
|
import { BusinessAccountMutationVersionFromJSON } from '../models/BusinessAccountMutationVersion.js';
|
|
73
78
|
import { BusinessAccountProposalFromJSON } from '../models/BusinessAccountProposal.js';
|
|
@@ -435,6 +440,68 @@ import { YieldVaultRewardsResponseFromJSON } from '../models/YieldVaultRewardsRe
|
|
|
435
440
|
*
|
|
436
441
|
*/
|
|
437
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
|
+
}
|
|
438
505
|
/**
|
|
439
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.
|
|
440
507
|
* Attach a source to a flow and mint a session token
|
|
@@ -3881,6 +3948,62 @@ class SDKApi extends BaseAPI {
|
|
|
3881
3948
|
async getBackupTokenOptions(requestParameters, initOverrides) {
|
|
3882
3949
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3883
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
|
+
}
|
|
3884
4007
|
/**
|
|
3885
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).
|
|
3886
4009
|
* Get the business account\'s account-Layer Rules
|
|
@@ -9439,7 +9562,7 @@ class SDKApi extends BaseAPI {
|
|
|
9439
9562
|
query: queryParameters,
|
|
9440
9563
|
body: AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
9441
9564
|
}, initOverrides);
|
|
9442
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
9565
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
9443
9566
|
}
|
|
9444
9567
|
/**
|
|
9445
9568
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
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');
|
|
@@ -57,6 +58,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
58
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
59
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
60
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
61
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
62
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
63
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
64
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
package/src/apis/SDKViewsApi.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
2
|
+
import '../models/BusinessAccountInvite.js';
|
|
2
3
|
import '../models/AccessOutcomeEnum.js';
|
|
3
4
|
import '../models/ExchangeKeyEnum.js';
|
|
4
5
|
import '../models/ProviderEnum.js';
|
|
@@ -53,6 +54,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
54
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
55
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
56
|
import '../models/BusinessAccountGovernedAction.js';
|
|
57
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
58
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
59
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
60
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
@@ -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');
|
|
@@ -57,6 +58,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
58
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
59
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
60
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
61
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
62
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
63
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
64
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse } from '../runtime.js';
|
|
2
|
+
import '../models/BusinessAccountInvite.js';
|
|
2
3
|
import '../models/AccessOutcomeEnum.js';
|
|
3
4
|
import '../models/ExchangeKeyEnum.js';
|
|
4
5
|
import '../models/ProviderEnum.js';
|
|
@@ -53,6 +54,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
54
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
55
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
56
|
import '../models/BusinessAccountGovernedAction.js';
|
|
57
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
58
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
59
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
60
|
import '../models/BusinessAccountRequirementCondition.js';
|
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,12 +59,13 @@ 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');
|
|
64
65
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
65
66
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
67
|
+
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
68
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
66
69
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
67
70
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
68
71
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -302,7 +305,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
302
305
|
query: queryParameters,
|
|
303
306
|
body: AddBusinessAccountMemberSdkRequest.AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
304
307
|
}, initOverrides);
|
|
305
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
308
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResult.BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
306
309
|
}
|
|
307
310
|
/**
|
|
308
311
|
* Owner or admin only. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
|
package/src/apis/ServerApi.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 { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
|
|
13
|
+
import { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
|
|
14
14
|
export interface AddBusinessAccountMemberServerRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
businessAccountId: string;
|
|
@@ -244,12 +244,12 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
244
244
|
* Owner or admin only. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
|
|
245
245
|
* Server — add a member to a business account
|
|
246
246
|
*/
|
|
247
|
-
addBusinessAccountMemberServerRaw(requestParameters: AddBusinessAccountMemberServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
247
|
+
addBusinessAccountMemberServerRaw(requestParameters: AddBusinessAccountMemberServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberCreationResult>>;
|
|
248
248
|
/**
|
|
249
249
|
* Owner or admin only. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
|
|
250
250
|
* Server — add a member to a business account
|
|
251
251
|
*/
|
|
252
|
-
addBusinessAccountMemberServer(requestParameters: AddBusinessAccountMemberServerRequest, initOverrides?: RequestInit): Promise<
|
|
252
|
+
addBusinessAccountMemberServer(requestParameters: AddBusinessAccountMemberServerRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberCreationResult>;
|
|
253
253
|
/**
|
|
254
254
|
* Records backup actions and events for multiple locations without performing the actual backups.
|
|
255
255
|
* Server — create backup action and event for multiple locations without performing actual backup
|
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,12 +55,13 @@ 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';
|
|
60
61
|
import '../models/BusinessAccountGovernedAction.js';
|
|
61
62
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
63
|
+
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
64
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
62
65
|
import '../models/BusinessAccountMemberRole.js';
|
|
63
66
|
import '../models/BusinessAccountProposalStatus.js';
|
|
64
67
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
@@ -298,7 +301,7 @@ class ServerApi extends BaseAPI {
|
|
|
298
301
|
query: queryParameters,
|
|
299
302
|
body: AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
300
303
|
}, initOverrides);
|
|
301
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
304
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
302
305
|
}
|
|
303
306
|
/**
|
|
304
307
|
* Owner or admin only. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
|
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');
|
|
@@ -58,6 +59,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
58
59
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
59
60
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
60
61
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
62
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
61
63
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
62
64
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
63
65
|
require('../models/BusinessAccountRequirementCondition.cjs');
|