@dynamic-labs/sdk-api 0.185.0 → 0.187.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.185.0",
3
+ "version": "0.187.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -305,6 +305,7 @@ var RefreshKeySharesResponse = require('../models/RefreshKeySharesResponse.cjs')
305
305
  var RegisterEmbeddedWalletSessionKeyResponse = require('../models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
306
306
  require('../models/RequestSigningRegistrationConsent.cjs');
307
307
  var RegisterSessionKeyRequest = require('../models/RegisterSessionKeyRequest.cjs');
308
+ var RegisteredRequestSigners = require('../models/RegisteredRequestSigners.cjs');
308
309
  var RemoveBusinessAccountMemberSdkRequest = require('../models/RemoveBusinessAccountMemberSdkRequest.cjs');
309
310
  var RemoveBusinessAccountSignerSdkRequest = require('../models/RemoveBusinessAccountSignerSdkRequest.cjs');
310
311
  var RemoveBusinessAccountWalletSdkRequest = require('../models/RemoveBusinessAccountWalletSdkRequest.cjs');
@@ -10191,6 +10192,32 @@ class SDKApi extends runtime.BaseAPI {
10191
10192
  async sdkBusinessAccountProposalsOptions(requestParameters, initOverrides) {
10192
10193
  await this.sdkBusinessAccountProposalsOptionsRaw(requestParameters, initOverrides);
10193
10194
  }
10195
+ /**
10196
+ * Options call for this endpoint
10197
+ */
10198
+ async sdkBusinessAccountRegisteredRequestSignersOptionsRaw(requestParameters, initOverrides) {
10199
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10200
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountRegisteredRequestSignersOptions.');
10201
+ }
10202
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
10203
+ throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountRegisteredRequestSignersOptions.');
10204
+ }
10205
+ const queryParameters = {};
10206
+ const headerParameters = {};
10207
+ const response = await this.request({
10208
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/registeredRequestSigners`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
10209
+ method: 'OPTIONS',
10210
+ headers: headerParameters,
10211
+ query: queryParameters,
10212
+ }, initOverrides);
10213
+ return new runtime.VoidApiResponse(response);
10214
+ }
10215
+ /**
10216
+ * Options call for this endpoint
10217
+ */
10218
+ async sdkBusinessAccountRegisteredRequestSignersOptions(requestParameters, initOverrides) {
10219
+ await this.sdkBusinessAccountRegisteredRequestSignersOptionsRaw(requestParameters, initOverrides);
10220
+ }
10194
10221
  /**
10195
10222
  * Options call for this endpoint
10196
10223
  */
@@ -11068,6 +11095,42 @@ class SDKApi extends runtime.BaseAPI {
11068
11095
  const response = await this.sdkListBusinessAccountProposalsAwaitingApprovalRaw(requestParameters, initOverrides);
11069
11096
  return await response.value();
11070
11097
  }
11098
+ /**
11099
+ * Owner only. Returns one entry per server identity in the environment that has an active signing key, labelled by its newest active key. Key material is never returned.
11100
+ * SDK — list the registered request signers that can be added as a signer
11101
+ */
11102
+ async sdkListBusinessAccountRegisteredRequestSignersRaw(requestParameters, initOverrides) {
11103
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11104
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountRegisteredRequestSigners.');
11105
+ }
11106
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
11107
+ throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountRegisteredRequestSigners.');
11108
+ }
11109
+ const queryParameters = {};
11110
+ const headerParameters = {};
11111
+ if (this.configuration && this.configuration.accessToken) {
11112
+ const token = this.configuration.accessToken;
11113
+ const tokenString = await token("bearerAuth", []);
11114
+ if (tokenString) {
11115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11116
+ }
11117
+ }
11118
+ const response = await this.request({
11119
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/registeredRequestSigners`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
11120
+ method: 'GET',
11121
+ headers: headerParameters,
11122
+ query: queryParameters,
11123
+ }, initOverrides);
11124
+ return new runtime.JSONApiResponse(response, (jsonValue) => RegisteredRequestSigners.RegisteredRequestSignersFromJSON(jsonValue));
11125
+ }
11126
+ /**
11127
+ * Owner only. Returns one entry per server identity in the environment that has an active signing key, labelled by its newest active key. Key material is never returned.
11128
+ * SDK — list the registered request signers that can be added as a signer
11129
+ */
11130
+ async sdkListBusinessAccountRegisteredRequestSigners(requestParameters, initOverrides) {
11131
+ const response = await this.sdkListBusinessAccountRegisteredRequestSignersRaw(requestParameters, initOverrides);
11132
+ return await response.value();
11133
+ }
11071
11134
  /**
11072
11135
  * Readable by any member. Names the roles the account has defined and the built-in each inherits, which is what a caller needs before referring to one in governance or when assigning a member. Returns an empty object when none are defined; that is an answer, not a missing resource.
11073
11136
  * SDK — list the customer-defined roles for a business account
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMemberInviteListResponse, BusinessAccountMemberInviteReceipt, BusinessAccountMutationVersion, BusinessAccountPolicyLayerResponse, BusinessAccountPolicyLayerUpdateRequest, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, CancelBusinessAccountMemberInviteSdkRequest, 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, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, 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, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WaasWalletSelfPolicyLayerUpdateRequest, 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, BusinessAccountMemberInviteListResponse, BusinessAccountMemberInviteReceipt, BusinessAccountMutationVersion, BusinessAccountPolicyLayerResponse, BusinessAccountPolicyLayerUpdateRequest, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, CancelBusinessAccountMemberInviteSdkRequest, 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, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, 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, RegisteredRequestSigners, 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, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WaasWalletSelfPolicyLayerUpdateRequest, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
14
14
  export interface AcceptBusinessAccountInviteRequest {
15
15
  environmentId: string;
16
16
  inviteId: string;
@@ -1297,6 +1297,10 @@ export interface SdkBusinessAccountProposalsOptionsRequest {
1297
1297
  environmentId: string;
1298
1298
  businessAccountId: string;
1299
1299
  }
1300
+ export interface SdkBusinessAccountRegisteredRequestSignersOptionsRequest {
1301
+ environmentId: string;
1302
+ businessAccountId: string;
1303
+ }
1300
1304
  export interface SdkBusinessAccountRoleOptionsRequest {
1301
1305
  environmentId: string;
1302
1306
  businessAccountId: string;
@@ -1416,6 +1420,10 @@ export interface SdkListBusinessAccountProposalsRequest {
1416
1420
  export interface SdkListBusinessAccountProposalsAwaitingApprovalRequest {
1417
1421
  environmentId: string;
1418
1422
  }
1423
+ export interface SdkListBusinessAccountRegisteredRequestSignersRequest {
1424
+ environmentId: string;
1425
+ businessAccountId: string;
1426
+ }
1419
1427
  export interface SdkListBusinessAccountRolesRequest {
1420
1428
  environmentId: string;
1421
1429
  businessAccountId: string;
@@ -4742,6 +4750,14 @@ export declare class SDKApi extends runtime.BaseAPI {
4742
4750
  * Options call for this endpoint
4743
4751
  */
4744
4752
  sdkBusinessAccountProposalsOptions(requestParameters: SdkBusinessAccountProposalsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4753
+ /**
4754
+ * Options call for this endpoint
4755
+ */
4756
+ sdkBusinessAccountRegisteredRequestSignersOptionsRaw(requestParameters: SdkBusinessAccountRegisteredRequestSignersOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
4757
+ /**
4758
+ * Options call for this endpoint
4759
+ */
4760
+ sdkBusinessAccountRegisteredRequestSignersOptions(requestParameters: SdkBusinessAccountRegisteredRequestSignersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4745
4761
  /**
4746
4762
  * Options call for this endpoint
4747
4763
  */
@@ -4974,6 +4990,16 @@ export declare class SDKApi extends runtime.BaseAPI {
4974
4990
  * SDK — list proposals awaiting the caller\'s approval, across accounts
4975
4991
  */
4976
4992
  sdkListBusinessAccountProposalsAwaitingApproval(requestParameters: SdkListBusinessAccountProposalsAwaitingApprovalRequest, initOverrides?: RequestInit): Promise<Array<BusinessAccountProposal>>;
4993
+ /**
4994
+ * Owner only. Returns one entry per server identity in the environment that has an active signing key, labelled by its newest active key. Key material is never returned.
4995
+ * SDK — list the registered request signers that can be added as a signer
4996
+ */
4997
+ sdkListBusinessAccountRegisteredRequestSignersRaw(requestParameters: SdkListBusinessAccountRegisteredRequestSignersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RegisteredRequestSigners>>;
4998
+ /**
4999
+ * Owner only. Returns one entry per server identity in the environment that has an active signing key, labelled by its newest active key. Key material is never returned.
5000
+ * SDK — list the registered request signers that can be added as a signer
5001
+ */
5002
+ sdkListBusinessAccountRegisteredRequestSigners(requestParameters: SdkListBusinessAccountRegisteredRequestSignersRequest, initOverrides?: RequestInit): Promise<RegisteredRequestSigners>;
4977
5003
  /**
4978
5004
  * Readable by any member. Names the roles the account has defined and the built-in each inherits, which is what a caller needs before referring to one in governance or when assigning a member. Returns an empty object when none are defined; that is an answer, not a missing resource.
4979
5005
  * SDK — list the customer-defined roles for a business account
@@ -301,6 +301,7 @@ import { RefreshKeySharesResponseFromJSON } from '../models/RefreshKeySharesResp
301
301
  import { RegisterEmbeddedWalletSessionKeyResponseFromJSON } from '../models/RegisterEmbeddedWalletSessionKeyResponse.js';
302
302
  import '../models/RequestSigningRegistrationConsent.js';
303
303
  import { RegisterSessionKeyRequestToJSON } from '../models/RegisterSessionKeyRequest.js';
304
+ import { RegisteredRequestSignersFromJSON } from '../models/RegisteredRequestSigners.js';
304
305
  import { RemoveBusinessAccountMemberSdkRequestToJSON } from '../models/RemoveBusinessAccountMemberSdkRequest.js';
305
306
  import { RemoveBusinessAccountSignerSdkRequestToJSON } from '../models/RemoveBusinessAccountSignerSdkRequest.js';
306
307
  import { RemoveBusinessAccountWalletSdkRequestToJSON } from '../models/RemoveBusinessAccountWalletSdkRequest.js';
@@ -10187,6 +10188,32 @@ class SDKApi extends BaseAPI {
10187
10188
  async sdkBusinessAccountProposalsOptions(requestParameters, initOverrides) {
10188
10189
  await this.sdkBusinessAccountProposalsOptionsRaw(requestParameters, initOverrides);
10189
10190
  }
10191
+ /**
10192
+ * Options call for this endpoint
10193
+ */
10194
+ async sdkBusinessAccountRegisteredRequestSignersOptionsRaw(requestParameters, initOverrides) {
10195
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10196
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountRegisteredRequestSignersOptions.');
10197
+ }
10198
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
10199
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountRegisteredRequestSignersOptions.');
10200
+ }
10201
+ const queryParameters = {};
10202
+ const headerParameters = {};
10203
+ const response = await this.request({
10204
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/registeredRequestSigners`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
10205
+ method: 'OPTIONS',
10206
+ headers: headerParameters,
10207
+ query: queryParameters,
10208
+ }, initOverrides);
10209
+ return new VoidApiResponse(response);
10210
+ }
10211
+ /**
10212
+ * Options call for this endpoint
10213
+ */
10214
+ async sdkBusinessAccountRegisteredRequestSignersOptions(requestParameters, initOverrides) {
10215
+ await this.sdkBusinessAccountRegisteredRequestSignersOptionsRaw(requestParameters, initOverrides);
10216
+ }
10190
10217
  /**
10191
10218
  * Options call for this endpoint
10192
10219
  */
@@ -11064,6 +11091,42 @@ class SDKApi extends BaseAPI {
11064
11091
  const response = await this.sdkListBusinessAccountProposalsAwaitingApprovalRaw(requestParameters, initOverrides);
11065
11092
  return await response.value();
11066
11093
  }
11094
+ /**
11095
+ * Owner only. Returns one entry per server identity in the environment that has an active signing key, labelled by its newest active key. Key material is never returned.
11096
+ * SDK — list the registered request signers that can be added as a signer
11097
+ */
11098
+ async sdkListBusinessAccountRegisteredRequestSignersRaw(requestParameters, initOverrides) {
11099
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11100
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountRegisteredRequestSigners.');
11101
+ }
11102
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
11103
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountRegisteredRequestSigners.');
11104
+ }
11105
+ const queryParameters = {};
11106
+ const headerParameters = {};
11107
+ if (this.configuration && this.configuration.accessToken) {
11108
+ const token = this.configuration.accessToken;
11109
+ const tokenString = await token("bearerAuth", []);
11110
+ if (tokenString) {
11111
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11112
+ }
11113
+ }
11114
+ const response = await this.request({
11115
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/registeredRequestSigners`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
11116
+ method: 'GET',
11117
+ headers: headerParameters,
11118
+ query: queryParameters,
11119
+ }, initOverrides);
11120
+ return new JSONApiResponse(response, (jsonValue) => RegisteredRequestSignersFromJSON(jsonValue));
11121
+ }
11122
+ /**
11123
+ * Owner only. Returns one entry per server identity in the environment that has an active signing key, labelled by its newest active key. Key material is never returned.
11124
+ * SDK — list the registered request signers that can be added as a signer
11125
+ */
11126
+ async sdkListBusinessAccountRegisteredRequestSigners(requestParameters, initOverrides) {
11127
+ const response = await this.sdkListBusinessAccountRegisteredRequestSignersRaw(requestParameters, initOverrides);
11128
+ return await response.value();
11129
+ }
11067
11130
  /**
11068
11131
  * Readable by any member. Names the roles the account has defined and the built-in each inherits, which is what a caller needs before referring to one in governance or when assigning a member. Returns an empty object when none are defined; that is an answer, not a missing resource.
11069
11132
  * SDK — list the customer-defined roles for a business account
package/src/index.cjs CHANGED
@@ -746,6 +746,8 @@ var RefreshKeySharesResponse = require('./models/RefreshKeySharesResponse.cjs');
746
746
  var RegisterEmbeddedWalletSessionKeyResponse = require('./models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
747
747
  var RegisterRequestSigningKeyRequest = require('./models/RegisterRequestSigningKeyRequest.cjs');
748
748
  var RegisterSessionKeyRequest = require('./models/RegisterSessionKeyRequest.cjs');
749
+ var RegisteredRequestSigner = require('./models/RegisteredRequestSigner.cjs');
750
+ var RegisteredRequestSigners = require('./models/RegisteredRequestSigners.cjs');
749
751
  var RemoveBusinessAccountMemberResponse = require('./models/RemoveBusinessAccountMemberResponse.cjs');
750
752
  var RemoveBusinessAccountMemberSdkRequest = require('./models/RemoveBusinessAccountMemberSdkRequest.cjs');
751
753
  var RemoveBusinessAccountSignerResponse = require('./models/RemoveBusinessAccountSignerResponse.cjs');
@@ -3859,6 +3861,12 @@ exports.RegisterRequestSigningKeyRequestToJSON = RegisterRequestSigningKeyReques
3859
3861
  exports.RegisterSessionKeyRequestFromJSON = RegisterSessionKeyRequest.RegisterSessionKeyRequestFromJSON;
3860
3862
  exports.RegisterSessionKeyRequestFromJSONTyped = RegisterSessionKeyRequest.RegisterSessionKeyRequestFromJSONTyped;
3861
3863
  exports.RegisterSessionKeyRequestToJSON = RegisterSessionKeyRequest.RegisterSessionKeyRequestToJSON;
3864
+ exports.RegisteredRequestSignerFromJSON = RegisteredRequestSigner.RegisteredRequestSignerFromJSON;
3865
+ exports.RegisteredRequestSignerFromJSONTyped = RegisteredRequestSigner.RegisteredRequestSignerFromJSONTyped;
3866
+ exports.RegisteredRequestSignerToJSON = RegisteredRequestSigner.RegisteredRequestSignerToJSON;
3867
+ exports.RegisteredRequestSignersFromJSON = RegisteredRequestSigners.RegisteredRequestSignersFromJSON;
3868
+ exports.RegisteredRequestSignersFromJSONTyped = RegisteredRequestSigners.RegisteredRequestSignersFromJSONTyped;
3869
+ exports.RegisteredRequestSignersToJSON = RegisteredRequestSigners.RegisteredRequestSignersToJSON;
3862
3870
  exports.RemoveBusinessAccountMemberResponseFromJSON = RemoveBusinessAccountMemberResponse.RemoveBusinessAccountMemberResponseFromJSON;
3863
3871
  exports.RemoveBusinessAccountMemberResponseFromJSONTyped = RemoveBusinessAccountMemberResponse.RemoveBusinessAccountMemberResponseFromJSONTyped;
3864
3872
  exports.RemoveBusinessAccountMemberResponseToJSON = RemoveBusinessAccountMemberResponse.RemoveBusinessAccountMemberResponseToJSON;
package/src/index.js CHANGED
@@ -742,6 +742,8 @@ export { RefreshKeySharesResponseFromJSON, RefreshKeySharesResponseFromJSONTyped
742
742
  export { RegisterEmbeddedWalletSessionKeyResponseFromJSON, RegisterEmbeddedWalletSessionKeyResponseFromJSONTyped, RegisterEmbeddedWalletSessionKeyResponseToJSON } from './models/RegisterEmbeddedWalletSessionKeyResponse.js';
743
743
  export { RegisterRequestSigningKeyRequestFromJSON, RegisterRequestSigningKeyRequestFromJSONTyped, RegisterRequestSigningKeyRequestToJSON } from './models/RegisterRequestSigningKeyRequest.js';
744
744
  export { RegisterSessionKeyRequestFromJSON, RegisterSessionKeyRequestFromJSONTyped, RegisterSessionKeyRequestToJSON } from './models/RegisterSessionKeyRequest.js';
745
+ export { RegisteredRequestSignerFromJSON, RegisteredRequestSignerFromJSONTyped, RegisteredRequestSignerToJSON } from './models/RegisteredRequestSigner.js';
746
+ export { RegisteredRequestSignersFromJSON, RegisteredRequestSignersFromJSONTyped, RegisteredRequestSignersToJSON } from './models/RegisteredRequestSigners.js';
745
747
  export { RemoveBusinessAccountMemberResponseFromJSON, RemoveBusinessAccountMemberResponseFromJSONTyped, RemoveBusinessAccountMemberResponseToJSON } from './models/RemoveBusinessAccountMemberResponse.js';
746
748
  export { RemoveBusinessAccountMemberSdkRequestFromJSON, RemoveBusinessAccountMemberSdkRequestFromJSONTyped, RemoveBusinessAccountMemberSdkRequestToJSON } from './models/RemoveBusinessAccountMemberSdkRequest.js';
747
749
  export { RemoveBusinessAccountSignerResponseFromJSON, RemoveBusinessAccountSignerResponseFromJSONTyped, RemoveBusinessAccountSignerResponseToJSON } from './models/RemoveBusinessAccountSignerResponse.js';
@@ -25,6 +25,7 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
25
25
  'smsCountryCode': !runtime.exists(json, 'smsCountryCode') ? undefined : SmsCountryCode.SmsCountryCodeFromJSON(json['smsCountryCode']),
26
26
  'socialProvider': !runtime.exists(json, 'socialProvider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['socialProvider']),
27
27
  'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['signerType']),
28
+ 'serverIdentifier': !runtime.exists(json, 'serverIdentifier') ? undefined : json['serverIdentifier'],
28
29
  'clientKeygenIds': json['clientKeygenIds'],
29
30
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
30
31
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
@@ -45,6 +46,7 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
45
46
  'smsCountryCode': SmsCountryCode.SmsCountryCodeToJSON(value.smsCountryCode),
46
47
  'socialProvider': ProviderEnum.ProviderEnumToJSON(value.socialProvider),
47
48
  'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.signerType),
49
+ 'serverIdentifier': value.serverIdentifier,
48
50
  'clientKeygenIds': value.clientKeygenIds,
49
51
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
50
52
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
@@ -16,7 +16,7 @@ import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
16
16
  import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
17
17
  import { WaasPolicyRule } from './WaasPolicyRule';
18
18
  /**
19
- * SDK addSigner body. Same user resolution shape as addMember (userId OR identifier + type), plus `signerType` for the signer-role enum (endUser/server). `type` here is the user-resolution type, NOT the signer type — `signerType` lives on a dedicated field. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
19
+ * SDK addSigner body. Same user resolution shape as addMember (userId OR identifier + type), plus `signerType` for the signer-role enum (endUser/server). `type` here is the user-resolution type, NOT the signer type — `signerType` lives on a dedicated field. A `server` signer is named by `serverIdentifier` alone, which is required with it, refused without it, and cannot be combined with `userId` or `identifier` + `type`. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
20
20
  * The remaining fields parameterise the MPC reshare ceremony that runs during the SSE response. `clientKeygenIds` come from the caller's local MPC state (the JS SDK obtains them internally by calling `exportID()` on the existing client share); the threshold scheme fields describe the source share set (old) and the destination share set (new) that the ceremony produces.
21
21
  * @export
22
22
  * @interface AddBusinessAccountSignerSdkRequest
@@ -58,6 +58,12 @@ export interface AddBusinessAccountSignerSdkRequest {
58
58
  * @memberof AddBusinessAccountSignerSdkRequest
59
59
  */
60
60
  signerType: BusinessAccountSignerType;
61
+ /**
62
+ * Server signer to add, from the registered request signers list.
63
+ * @type {string}
64
+ * @memberof AddBusinessAccountSignerSdkRequest
65
+ */
66
+ serverIdentifier?: string;
61
67
  /**
62
68
  * Caller's MPC keygen IDs participating in the reshare.
63
69
  * @type {Array<string>}
@@ -21,6 +21,7 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
21
21
  'smsCountryCode': !exists(json, 'smsCountryCode') ? undefined : SmsCountryCodeFromJSON(json['smsCountryCode']),
22
22
  'socialProvider': !exists(json, 'socialProvider') ? undefined : ProviderEnumFromJSON(json['socialProvider']),
23
23
  'signerType': BusinessAccountSignerTypeFromJSON(json['signerType']),
24
+ 'serverIdentifier': !exists(json, 'serverIdentifier') ? undefined : json['serverIdentifier'],
24
25
  'clientKeygenIds': json['clientKeygenIds'],
25
26
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
26
27
  'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
@@ -41,6 +42,7 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
41
42
  'smsCountryCode': SmsCountryCodeToJSON(value.smsCountryCode),
42
43
  'socialProvider': ProviderEnumToJSON(value.socialProvider),
43
44
  'signerType': BusinessAccountSignerTypeToJSON(value.signerType),
45
+ 'serverIdentifier': value.serverIdentifier,
44
46
  'clientKeygenIds': value.clientKeygenIds,
45
47
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
46
48
  'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
@@ -17,6 +17,7 @@ function AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json, ignoreDiscri
17
17
  }
18
18
  return {
19
19
  'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['signerType']),
20
+ 'serverIdentifier': !runtime.exists(json, 'serverIdentifier') ? undefined : json['serverIdentifier'],
20
21
  'clientKeygenIds': json['clientKeygenIds'],
21
22
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
22
23
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
@@ -32,6 +33,7 @@ function AddBusinessAccountSignerSdkRequestAllOfToJSON(value) {
32
33
  }
33
34
  return {
34
35
  'signerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.signerType),
36
+ 'serverIdentifier': value.serverIdentifier,
35
37
  'clientKeygenIds': value.clientKeygenIds,
36
38
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
37
39
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
@@ -24,6 +24,12 @@ export interface AddBusinessAccountSignerSdkRequestAllOf {
24
24
  * @memberof AddBusinessAccountSignerSdkRequestAllOf
25
25
  */
26
26
  signerType: BusinessAccountSignerType;
27
+ /**
28
+ * Server signer to add, from the registered request signers list.
29
+ * @type {string}
30
+ * @memberof AddBusinessAccountSignerSdkRequestAllOf
31
+ */
32
+ serverIdentifier?: string;
27
33
  /**
28
34
  * Caller's MPC keygen IDs participating in the reshare.
29
35
  * @type {Array<string>}
@@ -13,6 +13,7 @@ function AddBusinessAccountSignerSdkRequestAllOfFromJSONTyped(json, ignoreDiscri
13
13
  }
14
14
  return {
15
15
  'signerType': BusinessAccountSignerTypeFromJSON(json['signerType']),
16
+ 'serverIdentifier': !exists(json, 'serverIdentifier') ? undefined : json['serverIdentifier'],
16
17
  'clientKeygenIds': json['clientKeygenIds'],
17
18
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
18
19
  'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
@@ -28,6 +29,7 @@ function AddBusinessAccountSignerSdkRequestAllOfToJSON(value) {
28
29
  }
29
30
  return {
30
31
  'signerType': BusinessAccountSignerTypeToJSON(value.signerType),
32
+ 'serverIdentifier': value.serverIdentifier,
31
33
  'clientKeygenIds': value.clientKeygenIds,
32
34
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
33
35
  'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
@@ -20,6 +20,7 @@ function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
21
21
  'businessAccountSignerId': json['businessAccountSignerId'],
22
22
  'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
23
+ 'businessAccountSignerAddedByUserId': !runtime.exists(json, 'businessAccountSignerAddedByUserId') ? undefined : json['businessAccountSignerAddedByUserId'],
23
24
  'businessAccountMemberRole': json['businessAccountMemberRole'],
24
25
  };
25
26
  }
@@ -37,6 +38,7 @@ function BusinessAccountPropertiesToJSON(value) {
37
38
  'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
38
39
  'businessAccountSignerId': value.businessAccountSignerId,
39
40
  'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
41
+ 'businessAccountSignerAddedByUserId': value.businessAccountSignerAddedByUserId,
40
42
  'businessAccountMemberRole': value.businessAccountMemberRole,
41
43
  };
42
44
  }
@@ -52,6 +52,12 @@ export interface BusinessAccountProperties {
52
52
  * @memberof BusinessAccountProperties
53
53
  */
54
54
  businessAccountSignerType: BusinessAccountSignerType;
55
+ /**
56
+ * `BusinessAccountSigner.addedByUserId` — the user who added this signer to the wallet. When it differs from the credential owner, the share set was provisioned on their behalf (e.g. another member's ceremony), so its encrypted blob was sealed with the adder's credential, not theirs. Nullable for rows created before the field was tracked.
57
+ * @type {string}
58
+ * @memberof BusinessAccountProperties
59
+ */
60
+ businessAccountSignerAddedByUserId?: string | null;
55
61
  /**
56
62
  * The role a member actually holds: a built-in (`owner`, `admin`, `viewer`) or a customer-defined role the account has defined. Wider than AssignableBusinessAccountRoleName because a held role can be `owner`, which cannot be assigned directly.
57
63
  * @type {string}
@@ -16,6 +16,7 @@ function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
17
17
  'businessAccountSignerId': json['businessAccountSignerId'],
18
18
  'businessAccountSignerType': BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
19
+ 'businessAccountSignerAddedByUserId': !exists(json, 'businessAccountSignerAddedByUserId') ? undefined : json['businessAccountSignerAddedByUserId'],
19
20
  'businessAccountMemberRole': json['businessAccountMemberRole'],
20
21
  };
21
22
  }
@@ -33,6 +34,7 @@ function BusinessAccountPropertiesToJSON(value) {
33
34
  'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
34
35
  'businessAccountSignerId': value.businessAccountSignerId,
35
36
  'businessAccountSignerType': BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
37
+ 'businessAccountSignerAddedByUserId': value.businessAccountSignerAddedByUserId,
36
38
  'businessAccountMemberRole': value.businessAccountMemberRole,
37
39
  };
38
40
  }
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function RegisteredRequestSignerFromJSON(json) {
19
+ return RegisteredRequestSignerFromJSONTyped(json);
20
+ }
21
+ function RegisteredRequestSignerFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'serverIdentifier': json['serverIdentifier'],
27
+ 'label': json['label'],
28
+ };
29
+ }
30
+ function RegisteredRequestSignerToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'serverIdentifier': value.serverIdentifier,
39
+ 'label': value.label,
40
+ };
41
+ }
42
+
43
+ exports.RegisteredRequestSignerFromJSON = RegisteredRequestSignerFromJSON;
44
+ exports.RegisteredRequestSignerFromJSONTyped = RegisteredRequestSignerFromJSONTyped;
45
+ exports.RegisteredRequestSignerToJSON = RegisteredRequestSignerToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A server identity with an active signing key.
14
+ * @export
15
+ * @interface RegisteredRequestSigner
16
+ */
17
+ export interface RegisteredRequestSigner {
18
+ /**
19
+ * Identifies the server signer.
20
+ * @type {string}
21
+ * @memberof RegisteredRequestSigner
22
+ */
23
+ serverIdentifier: string;
24
+ /**
25
+ * Label of the identity's newest active key.
26
+ * @type {string}
27
+ * @memberof RegisteredRequestSigner
28
+ */
29
+ label: string | null;
30
+ }
31
+ export declare function RegisteredRequestSignerFromJSON(json: any): RegisteredRequestSigner;
32
+ export declare function RegisteredRequestSignerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisteredRequestSigner;
33
+ export declare function RegisteredRequestSignerToJSON(value?: RegisteredRequestSigner | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function RegisteredRequestSignerFromJSON(json) {
15
+ return RegisteredRequestSignerFromJSONTyped(json);
16
+ }
17
+ function RegisteredRequestSignerFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'serverIdentifier': json['serverIdentifier'],
23
+ 'label': json['label'],
24
+ };
25
+ }
26
+ function RegisteredRequestSignerToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'serverIdentifier': value.serverIdentifier,
35
+ 'label': value.label,
36
+ };
37
+ }
38
+
39
+ export { RegisteredRequestSignerFromJSON, RegisteredRequestSignerFromJSONTyped, RegisteredRequestSignerToJSON };
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var RegisteredRequestSigner = require('./RegisteredRequestSigner.cjs');
6
+
7
+ /* tslint:disable */
8
+ function RegisteredRequestSignersFromJSON(json) {
9
+ return RegisteredRequestSignersFromJSONTyped(json);
10
+ }
11
+ function RegisteredRequestSignersFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'items': (json['items'].map(RegisteredRequestSigner.RegisteredRequestSignerFromJSON)),
17
+ };
18
+ }
19
+ function RegisteredRequestSignersToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'items': (value.items.map(RegisteredRequestSigner.RegisteredRequestSignerToJSON)),
28
+ };
29
+ }
30
+
31
+ exports.RegisteredRequestSignersFromJSON = RegisteredRequestSignersFromJSON;
32
+ exports.RegisteredRequestSignersFromJSONTyped = RegisteredRequestSignersFromJSONTyped;
33
+ exports.RegisteredRequestSignersToJSON = RegisteredRequestSignersToJSON;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { RegisteredRequestSigner } from './RegisteredRequestSigner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RegisteredRequestSigners
17
+ */
18
+ export interface RegisteredRequestSigners {
19
+ /**
20
+ *
21
+ * @type {Array<RegisteredRequestSigner>}
22
+ * @memberof RegisteredRequestSigners
23
+ */
24
+ items: Array<RegisteredRequestSigner>;
25
+ }
26
+ export declare function RegisteredRequestSignersFromJSON(json: any): RegisteredRequestSigners;
27
+ export declare function RegisteredRequestSignersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisteredRequestSigners;
28
+ export declare function RegisteredRequestSignersToJSON(value?: RegisteredRequestSigners | null): any;
@@ -0,0 +1,27 @@
1
+ import { RegisteredRequestSignerFromJSON, RegisteredRequestSignerToJSON } from './RegisteredRequestSigner.js';
2
+
3
+ /* tslint:disable */
4
+ function RegisteredRequestSignersFromJSON(json) {
5
+ return RegisteredRequestSignersFromJSONTyped(json);
6
+ }
7
+ function RegisteredRequestSignersFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'items': (json['items'].map(RegisteredRequestSignerFromJSON)),
13
+ };
14
+ }
15
+ function RegisteredRequestSignersToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'items': (value.items.map(RegisteredRequestSignerToJSON)),
24
+ };
25
+ }
26
+
27
+ export { RegisteredRequestSignersFromJSON, RegisteredRequestSignersFromJSONTyped, RegisteredRequestSignersToJSON };
@@ -32,6 +32,7 @@ function SignMessageApprovalQuorumIntentFromJSONTyped(json, ignoreDiscriminator)
32
32
  'initiatorUserId': json['initiatorUserId'],
33
33
  'createdAt': json['createdAt'],
34
34
  'completeBy': !runtime.exists(json, 'completeBy') ? undefined : json['completeBy'],
35
+ 'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
35
36
  'operation': SignMessageApprovalQuorumIntentOperation.SignMessageApprovalQuorumIntentOperationFromJSON(json['operation']),
36
37
  'limits': !runtime.exists(json, 'limits') ? undefined : SignMessageApprovalQuorumIntentLimits.SignMessageApprovalQuorumIntentLimitsFromJSON(json['limits']),
37
38
  'lifetime': !runtime.exists(json, 'lifetime') ? undefined : SignMessageApprovalQuorumIntentLifetime.SignMessageApprovalQuorumIntentLifetimeFromJSON(json['lifetime']),
@@ -53,6 +54,7 @@ function SignMessageApprovalQuorumIntentToJSON(value) {
53
54
  'initiatorUserId': value.initiatorUserId,
54
55
  'createdAt': value.createdAt,
55
56
  'completeBy': value.completeBy,
57
+ 'walletId': value.walletId,
56
58
  'operation': SignMessageApprovalQuorumIntentOperation.SignMessageApprovalQuorumIntentOperationToJSON(value.operation),
57
59
  'limits': SignMessageApprovalQuorumIntentLimits.SignMessageApprovalQuorumIntentLimitsToJSON(value.limits),
58
60
  'lifetime': SignMessageApprovalQuorumIntentLifetime.SignMessageApprovalQuorumIntentLifetimeToJSON(value.lifetime),
@@ -61,6 +61,12 @@ export interface SignMessageApprovalQuorumIntent {
61
61
  * @memberof SignMessageApprovalQuorumIntent
62
62
  */
63
63
  completeBy?: string;
64
+ /**
65
+ * The wallet the Intent is for. Omitted by older clients; when present it must match the wallet of the request.
66
+ * @type {string}
67
+ * @memberof SignMessageApprovalQuorumIntent
68
+ */
69
+ walletId?: string | null;
64
70
  /**
65
71
  *
66
72
  * @type {SignMessageApprovalQuorumIntentOperation}
@@ -28,6 +28,7 @@ function SignMessageApprovalQuorumIntentFromJSONTyped(json, ignoreDiscriminator)
28
28
  'initiatorUserId': json['initiatorUserId'],
29
29
  'createdAt': json['createdAt'],
30
30
  'completeBy': !exists(json, 'completeBy') ? undefined : json['completeBy'],
31
+ 'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
31
32
  'operation': SignMessageApprovalQuorumIntentOperationFromJSON(json['operation']),
32
33
  'limits': !exists(json, 'limits') ? undefined : SignMessageApprovalQuorumIntentLimitsFromJSON(json['limits']),
33
34
  'lifetime': !exists(json, 'lifetime') ? undefined : SignMessageApprovalQuorumIntentLifetimeFromJSON(json['lifetime']),
@@ -49,6 +50,7 @@ function SignMessageApprovalQuorumIntentToJSON(value) {
49
50
  'initiatorUserId': value.initiatorUserId,
50
51
  'createdAt': value.createdAt,
51
52
  'completeBy': value.completeBy,
53
+ 'walletId': value.walletId,
52
54
  'operation': SignMessageApprovalQuorumIntentOperationToJSON(value.operation),
53
55
  'limits': SignMessageApprovalQuorumIntentLimitsToJSON(value.limits),
54
56
  'lifetime': SignMessageApprovalQuorumIntentLifetimeToJSON(value.lifetime),
@@ -689,6 +689,8 @@ export * from './RefreshKeySharesResponse';
689
689
  export * from './RegisterEmbeddedWalletSessionKeyResponse';
690
690
  export * from './RegisterRequestSigningKeyRequest';
691
691
  export * from './RegisterSessionKeyRequest';
692
+ export * from './RegisteredRequestSigner';
693
+ export * from './RegisteredRequestSigners';
692
694
  export * from './RemoveBusinessAccountMemberResponse';
693
695
  export * from './RemoveBusinessAccountMemberSdkRequest';
694
696
  export * from './RemoveBusinessAccountSignerResponse';