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