@dynamic-labs/sdk-api-core 0.0.1125 → 0.1.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.
@@ -10,7 +10,7 @@
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, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, 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, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, SdkSettingsRequest, SdkUser, 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, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
13
+ import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, 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, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, SdkSettingsRequest, SdkUser, 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, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
@@ -659,6 +659,9 @@ export interface GetUserMfaMethodsRequest {
659
659
  export interface GetUserPasskeysRequest {
660
660
  environmentId: string;
661
661
  }
662
+ export interface GetWaasEnvPolicyLayerRequest {
663
+ environmentId: string;
664
+ }
662
665
  export interface GetWaasSignerSelfPolicyLayerRequest {
663
666
  environmentId: string;
664
667
  walletId: string;
@@ -1463,6 +1466,9 @@ export interface VerifyUnlinkOperationRequest {
1463
1466
  export interface VerifyUnlinkOptionsRequest {
1464
1467
  environmentId: string;
1465
1468
  }
1469
+ export interface WaasEnvPolicyLayerOptionsRequest {
1470
+ environmentId: string;
1471
+ }
1466
1472
  export interface WaasSignerSelfPolicyLayerOptionsRequest {
1467
1473
  environmentId: string;
1468
1474
  walletId: string;
@@ -2989,6 +2995,16 @@ export declare class SDKApi extends runtime.BaseAPI {
2989
2995
  * Get user passkeys
2990
2996
  */
2991
2997
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
2998
+ /**
2999
+ * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
3000
+ * Get the environment-Layer\'s Rules
3001
+ */
3002
+ getWaasEnvPolicyLayerRaw(requestParameters: GetWaasEnvPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
3003
+ /**
3004
+ * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
3005
+ * Get the environment-Layer\'s Rules
3006
+ */
3007
+ getWaasEnvPolicyLayer(requestParameters: GetWaasEnvPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
2992
3008
  /**
2993
3009
  * Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given shareSetId) another share set of the same wallet — e.g. a delegated share set — without mutating it. Only the wallet\'s own owner may target another share set.
2994
3010
  * Get a signer-Layer\'s Rules
@@ -3994,15 +4010,15 @@ export declare class SDKApi extends runtime.BaseAPI {
3994
4010
  */
3995
4011
  sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
3996
4012
  /**
3997
- * **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
3998
- * SDK — add a signer to a wallet in a business account (stubbed)
4013
+ * 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.
4014
+ * SDK — add a signer to a wallet in a business account
3999
4015
  */
4000
- sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountSigner>>;
4016
+ sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<string>>;
4001
4017
  /**
4002
- * **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
4003
- * SDK — add a signer to a wallet in a business account (stubbed)
4018
+ * 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.
4019
+ * SDK — add a signer to a wallet in a business account
4004
4020
  */
4005
- sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<BusinessAccountSigner>;
4021
+ sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<string>;
4006
4022
  /**
4007
4023
  * Options call for this endpoint
4008
4024
  */
@@ -4813,6 +4829,14 @@ export declare class SDKApi extends runtime.BaseAPI {
4813
4829
  * Options call for this endpoint
4814
4830
  */
4815
4831
  verifyUnlinkOptions(requestParameters: VerifyUnlinkOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4832
+ /**
4833
+ * Options call for this endpoint
4834
+ */
4835
+ waasEnvPolicyLayerOptionsRaw(requestParameters: WaasEnvPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
4836
+ /**
4837
+ * Options call for this endpoint
4838
+ */
4839
+ waasEnvPolicyLayerOptions(requestParameters: WaasEnvPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4816
4840
  /**
4817
4841
  * Options call for this endpoint
4818
4842
  */
@@ -40,7 +40,6 @@ import '../models/KycFieldType.js';
40
40
  import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
41
41
  import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
42
42
  import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
43
- import { BusinessAccountSignerFromJSON } from '../models/BusinessAccountSigner.js';
44
43
  import '../models/ChainEnum.js';
45
44
  import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
46
45
  import '../models/CaptchaProviderEnum.js';
@@ -5316,6 +5315,39 @@ class SDKApi extends BaseAPI {
5316
5315
  const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
5317
5316
  return await response.value();
5318
5317
  }
5318
+ /**
5319
+ * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
5320
+ * Get the environment-Layer\'s Rules
5321
+ */
5322
+ async getWaasEnvPolicyLayerRaw(requestParameters, initOverrides) {
5323
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5324
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasEnvPolicyLayer.');
5325
+ }
5326
+ const queryParameters = {};
5327
+ const headerParameters = {};
5328
+ if (this.configuration && this.configuration.accessToken) {
5329
+ const token = this.configuration.accessToken;
5330
+ const tokenString = await token("bearerAuth", []);
5331
+ if (tokenString) {
5332
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5333
+ }
5334
+ }
5335
+ const response = await this.request({
5336
+ path: `/sdk/{environmentId}/waas/env-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
5337
+ method: 'GET',
5338
+ headers: headerParameters,
5339
+ query: queryParameters,
5340
+ }, initOverrides);
5341
+ return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
5342
+ }
5343
+ /**
5344
+ * Returns the Composition environment-Layer content for the environment, read-only, for any signed-in user in the environment.
5345
+ * Get the environment-Layer\'s Rules
5346
+ */
5347
+ async getWaasEnvPolicyLayer(requestParameters, initOverrides) {
5348
+ const response = await this.getWaasEnvPolicyLayerRaw(requestParameters, initOverrides);
5349
+ return await response.value();
5350
+ }
5319
5351
  /**
5320
5352
  * Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given shareSetId) another share set of the same wallet — e.g. a delegated share set — without mutating it. Only the wallet\'s own owner may target another share set.
5321
5353
  * Get a signer-Layer\'s Rules
@@ -8696,8 +8728,8 @@ class SDKApi extends BaseAPI {
8696
8728
  return await response.value();
8697
8729
  }
8698
8730
  /**
8699
- * **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
8700
- * SDK — add a signer to a wallet in a business account (stubbed)
8731
+ * 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.
8732
+ * SDK — add a signer to a wallet in a business account
8701
8733
  */
8702
8734
  async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
8703
8735
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
@@ -8729,11 +8761,11 @@ class SDKApi extends BaseAPI {
8729
8761
  query: queryParameters,
8730
8762
  body: AddBusinessAccountSignerSdkRequestToJSON(requestParameters.addBusinessAccountSignerSdkRequest),
8731
8763
  }, initOverrides);
8732
- return new JSONApiResponse(response, (jsonValue) => BusinessAccountSignerFromJSON(jsonValue));
8764
+ return new TextApiResponse(response);
8733
8765
  }
8734
8766
  /**
8735
- * **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
8736
- * SDK — add a signer to a wallet in a business account (stubbed)
8767
+ * 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.
8768
+ * SDK — add a signer to a wallet in a business account
8737
8769
  */
8738
8770
  async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
8739
8771
  const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
@@ -11457,6 +11489,29 @@ class SDKApi extends BaseAPI {
11457
11489
  async verifyUnlinkOptions(requestParameters, initOverrides) {
11458
11490
  await this.verifyUnlinkOptionsRaw(requestParameters, initOverrides);
11459
11491
  }
11492
+ /**
11493
+ * Options call for this endpoint
11494
+ */
11495
+ async waasEnvPolicyLayerOptionsRaw(requestParameters, initOverrides) {
11496
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11497
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasEnvPolicyLayerOptions.');
11498
+ }
11499
+ const queryParameters = {};
11500
+ const headerParameters = {};
11501
+ const response = await this.request({
11502
+ path: `/sdk/{environmentId}/waas/env-policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
11503
+ method: 'OPTIONS',
11504
+ headers: headerParameters,
11505
+ query: queryParameters,
11506
+ }, initOverrides);
11507
+ return new VoidApiResponse(response);
11508
+ }
11509
+ /**
11510
+ * Options call for this endpoint
11511
+ */
11512
+ async waasEnvPolicyLayerOptions(requestParameters, initOverrides) {
11513
+ await this.waasEnvPolicyLayerOptionsRaw(requestParameters, initOverrides);
11514
+ }
11460
11515
  /**
11461
11516
  * Options call for this endpoint
11462
11517
  */