@dynamic-labs/sdk-api-core 0.133.0 → 0.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apis/SDKApi.d.ts +30 -1
- package/src/apis/SDKApi.js +76 -1
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.js +2 -2
- package/src/index.js +8 -1
- package/src/index.js.map +1 -1
- package/src/models/ApprovalRequirementCounts.d.ts +51 -0
- package/src/models/ApprovalRequirementCounts.js +35 -0
- package/src/models/ApprovalRequirementCounts.js.map +1 -0
- package/src/models/BusinessAccountApprovalRequirementStatus.d.ts +7 -7
- package/src/models/BusinessAccountApprovalRequirementStatus.js +2 -2
- package/src/models/BusinessAccountApprovalRequirementStatus.js.map +1 -1
- package/src/models/BusinessAccountApprovalRequirementStatusAllOf.d.ts +39 -0
- package/src/models/BusinessAccountApprovalRequirementStatusAllOf.js +31 -0
- package/src/models/BusinessAccountApprovalRequirementStatusAllOf.js.map +1 -0
- package/src/models/BusinessAccountSigningProposal.d.ts +41 -0
- package/src/models/BusinessAccountSigningProposal.js +32 -0
- package/src/models/BusinessAccountSigningProposal.js.map +1 -0
- package/src/models/BusinessAccountSigningProposalQuorum.d.ts +41 -0
- package/src/models/BusinessAccountSigningProposalQuorum.js +32 -0
- package/src/models/BusinessAccountSigningProposalQuorum.js.map +1 -0
- package/src/models/CreateBusinessAccountSigningProposalSdkRequest.d.ts +48 -0
- package/src/models/CreateBusinessAccountSigningProposalSdkRequest.js +36 -0
- package/src/models/CreateBusinessAccountSigningProposalSdkRequest.js.map +1 -0
- package/src/models/FlowConflict.d.ts +33 -0
- package/src/models/{NotFoundWithoutCode.js → FlowConflict.js} +7 -5
- package/src/models/FlowConflict.js.map +1 -0
- package/src/models/NotFound.d.ts +1 -1
- package/src/models/SigningQuorumApprovalRequirement.d.ts +63 -0
- package/src/models/SigningQuorumApprovalRequirement.js +39 -0
- package/src/models/SigningQuorumApprovalRequirement.js.map +1 -0
- package/src/models/SigningQuorumApprovalRequirementAllOf.d.ts +33 -0
- package/src/models/SigningQuorumApprovalRequirementAllOf.js +29 -0
- package/src/models/SigningQuorumApprovalRequirementAllOf.js.map +1 -0
- package/src/models/index.d.ts +8 -1
- package/src/version.js +1 -1
- package/src/models/NotFoundWithoutCode.d.ts +0 -27
- package/src/models/NotFoundWithoutCode.js.map +0 -1
package/package.json
CHANGED
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, 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, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
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, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1274,6 +1274,11 @@ export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
|
1274
1274
|
businessAccountId: string;
|
|
1275
1275
|
walletId: string;
|
|
1276
1276
|
}
|
|
1277
|
+
export interface SdkBusinessAccountWalletSigningProposalsOptionsRequest {
|
|
1278
|
+
environmentId: string;
|
|
1279
|
+
businessAccountId: string;
|
|
1280
|
+
walletId: string;
|
|
1281
|
+
}
|
|
1277
1282
|
export interface SdkBusinessAccountsOptionsRequest {
|
|
1278
1283
|
environmentId: string;
|
|
1279
1284
|
}
|
|
@@ -1286,6 +1291,12 @@ export interface SdkCreateBusinessAccountActivityExportRequest {
|
|
|
1286
1291
|
businessAccountId: string;
|
|
1287
1292
|
businessAccountActivityExportRequest?: BusinessAccountActivityExportRequest;
|
|
1288
1293
|
}
|
|
1294
|
+
export interface SdkCreateBusinessAccountSigningProposalRequest {
|
|
1295
|
+
environmentId: string;
|
|
1296
|
+
businessAccountId: string;
|
|
1297
|
+
walletId: string;
|
|
1298
|
+
createBusinessAccountSigningProposalSdkRequest: CreateBusinessAccountSigningProposalSdkRequest;
|
|
1299
|
+
}
|
|
1289
1300
|
export interface SdkDefineBusinessAccountRoleRequest {
|
|
1290
1301
|
environmentId: string;
|
|
1291
1302
|
businessAccountId: string;
|
|
@@ -4560,6 +4571,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4560
4571
|
* Options call for this endpoint
|
|
4561
4572
|
*/
|
|
4562
4573
|
sdkBusinessAccountWalletSignersOptions(requestParameters: SdkBusinessAccountWalletSignersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4574
|
+
/**
|
|
4575
|
+
* Options call for this endpoint
|
|
4576
|
+
*/
|
|
4577
|
+
sdkBusinessAccountWalletSigningProposalsOptionsRaw(requestParameters: SdkBusinessAccountWalletSigningProposalsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4578
|
+
/**
|
|
4579
|
+
* Options call for this endpoint
|
|
4580
|
+
*/
|
|
4581
|
+
sdkBusinessAccountWalletSigningProposalsOptions(requestParameters: SdkBusinessAccountWalletSigningProposalsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4563
4582
|
/**
|
|
4564
4583
|
* Options call for this endpoint
|
|
4565
4584
|
*/
|
|
@@ -4588,6 +4607,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4588
4607
|
* SDK — create a CSV export of the business account\'s audit trail
|
|
4589
4608
|
*/
|
|
4590
4609
|
sdkCreateBusinessAccountActivityExport(requestParameters: SdkCreateBusinessAccountActivityExportRequest, initOverrides?: RequestInit): Promise<BusinessAccountActivityExport>;
|
|
4610
|
+
/**
|
|
4611
|
+
* Opens a `signMessage` proposal for the wallet\'s caller-signed intent without running the sign.
|
|
4612
|
+
* SDK — propose a signing-quorum transaction for a business-account wallet
|
|
4613
|
+
*/
|
|
4614
|
+
sdkCreateBusinessAccountSigningProposalRaw(requestParameters: SdkCreateBusinessAccountSigningProposalRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountSigningProposal>>;
|
|
4615
|
+
/**
|
|
4616
|
+
* Opens a `signMessage` proposal for the wallet\'s caller-signed intent without running the sign.
|
|
4617
|
+
* SDK — propose a signing-quorum transaction for a business-account wallet
|
|
4618
|
+
*/
|
|
4619
|
+
sdkCreateBusinessAccountSigningProposal(requestParameters: SdkCreateBusinessAccountSigningProposalRequest, initOverrides?: RequestInit): Promise<BusinessAccountSigningProposal>;
|
|
4591
4620
|
/**
|
|
4592
4621
|
* Defines a role that inherits a built-in one. The role lives only in the signed authorization document, so there is no separate role resource. Requires step-up authentication.
|
|
4593
4622
|
* SDK — define a customer role for a business account
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -61,6 +61,8 @@ import '../models/BusinessAccountProposalStatus.js';
|
|
|
61
61
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
62
62
|
import '../models/BusinessAccountRoleDefinition.js';
|
|
63
63
|
import { BusinessAccountRolesResponseFromJSON } from '../models/BusinessAccountRolesResponse.js';
|
|
64
|
+
import { BusinessAccountSigningProposalFromJSON } from '../models/BusinessAccountSigningProposal.js';
|
|
65
|
+
import '../models/SignMessageApprovalQuorumIntent.js';
|
|
64
66
|
import '../models/CaptchaProviderEnum.js';
|
|
65
67
|
import '../models/DestinationTypeEnum.js';
|
|
66
68
|
import '../models/CheckoutModeEnum.js';
|
|
@@ -80,6 +82,7 @@ import { CoinbaseOnrampOrderResponseFromJSON } from '../models/CoinbaseOnrampOrd
|
|
|
80
82
|
import { CompletePasskeyRecoveryRequestToJSON } from '../models/CompletePasskeyRecoveryRequest.js';
|
|
81
83
|
import { ConnectRequestToJSON } from '../models/ConnectRequest.js';
|
|
82
84
|
import { CreateBusinessAccountSdkRequestToJSON } from '../models/CreateBusinessAccountSdkRequest.js';
|
|
85
|
+
import { CreateBusinessAccountSigningProposalSdkRequestToJSON } from '../models/CreateBusinessAccountSigningProposalSdkRequest.js';
|
|
83
86
|
import '../models/EmbeddedWalletChainEnum.js';
|
|
84
87
|
import '../models/EmbeddedWalletProviderEnum.js';
|
|
85
88
|
import { CreateEmbeddedWalletsRequestToJSON } from '../models/CreateEmbeddedWalletsRequest.js';
|
|
@@ -259,7 +262,6 @@ import '../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddre
|
|
|
259
262
|
import { SdkSettingsRequestToJSON } from '../models/SdkSettingsRequest.js';
|
|
260
263
|
import { SetBusinessAccountGovernanceSdkRequestToJSON } from '../models/SetBusinessAccountGovernanceSdkRequest.js';
|
|
261
264
|
import { SignAleoRequestWithWaasRequestToJSON } from '../models/SignAleoRequestWithWaasRequest.js';
|
|
262
|
-
import '../models/SignMessageApprovalQuorumIntent.js';
|
|
263
265
|
import '../models/SignMessageApprovalQuorumIntentLifetime.js';
|
|
264
266
|
import '../models/SignMessageApprovalQuorumRawSign.js';
|
|
265
267
|
import '../models/SignMessageApprovalQuorumSvmTransactionOperation.js';
|
|
@@ -9841,6 +9843,35 @@ class SDKApi extends BaseAPI {
|
|
|
9841
9843
|
async sdkBusinessAccountWalletSignersOptions(requestParameters, initOverrides) {
|
|
9842
9844
|
await this.sdkBusinessAccountWalletSignersOptionsRaw(requestParameters, initOverrides);
|
|
9843
9845
|
}
|
|
9846
|
+
/**
|
|
9847
|
+
* Options call for this endpoint
|
|
9848
|
+
*/
|
|
9849
|
+
async sdkBusinessAccountWalletSigningProposalsOptionsRaw(requestParameters, initOverrides) {
|
|
9850
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9851
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSigningProposalsOptions.');
|
|
9852
|
+
}
|
|
9853
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9854
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSigningProposalsOptions.');
|
|
9855
|
+
}
|
|
9856
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
9857
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSigningProposalsOptions.');
|
|
9858
|
+
}
|
|
9859
|
+
const queryParameters = {};
|
|
9860
|
+
const headerParameters = {};
|
|
9861
|
+
const response = await this.request({
|
|
9862
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signingProposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
9863
|
+
method: 'OPTIONS',
|
|
9864
|
+
headers: headerParameters,
|
|
9865
|
+
query: queryParameters,
|
|
9866
|
+
}, initOverrides);
|
|
9867
|
+
return new VoidApiResponse(response);
|
|
9868
|
+
}
|
|
9869
|
+
/**
|
|
9870
|
+
* Options call for this endpoint
|
|
9871
|
+
*/
|
|
9872
|
+
async sdkBusinessAccountWalletSigningProposalsOptions(requestParameters, initOverrides) {
|
|
9873
|
+
await this.sdkBusinessAccountWalletSigningProposalsOptionsRaw(requestParameters, initOverrides);
|
|
9874
|
+
}
|
|
9844
9875
|
/**
|
|
9845
9876
|
* Options call for this endpoint
|
|
9846
9877
|
*/
|
|
@@ -9937,6 +9968,50 @@ class SDKApi extends BaseAPI {
|
|
|
9937
9968
|
const response = await this.sdkCreateBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
9938
9969
|
return await response.value();
|
|
9939
9970
|
}
|
|
9971
|
+
/**
|
|
9972
|
+
* Opens a `signMessage` proposal for the wallet\'s caller-signed intent without running the sign.
|
|
9973
|
+
* SDK — propose a signing-quorum transaction for a business-account wallet
|
|
9974
|
+
*/
|
|
9975
|
+
async sdkCreateBusinessAccountSigningProposalRaw(requestParameters, initOverrides) {
|
|
9976
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9977
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCreateBusinessAccountSigningProposal.');
|
|
9978
|
+
}
|
|
9979
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9980
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCreateBusinessAccountSigningProposal.');
|
|
9981
|
+
}
|
|
9982
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
9983
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkCreateBusinessAccountSigningProposal.');
|
|
9984
|
+
}
|
|
9985
|
+
if (requestParameters.createBusinessAccountSigningProposalSdkRequest === null || requestParameters.createBusinessAccountSigningProposalSdkRequest === undefined) {
|
|
9986
|
+
throw new RequiredError('createBusinessAccountSigningProposalSdkRequest', 'Required parameter requestParameters.createBusinessAccountSigningProposalSdkRequest was null or undefined when calling sdkCreateBusinessAccountSigningProposal.');
|
|
9987
|
+
}
|
|
9988
|
+
const queryParameters = {};
|
|
9989
|
+
const headerParameters = {};
|
|
9990
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9991
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
9992
|
+
const token = this.configuration.accessToken;
|
|
9993
|
+
const tokenString = await token("bearerAuth", []);
|
|
9994
|
+
if (tokenString) {
|
|
9995
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
9996
|
+
}
|
|
9997
|
+
}
|
|
9998
|
+
const response = await this.request({
|
|
9999
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signingProposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
10000
|
+
method: 'POST',
|
|
10001
|
+
headers: headerParameters,
|
|
10002
|
+
query: queryParameters,
|
|
10003
|
+
body: CreateBusinessAccountSigningProposalSdkRequestToJSON(requestParameters.createBusinessAccountSigningProposalSdkRequest),
|
|
10004
|
+
}, initOverrides);
|
|
10005
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountSigningProposalFromJSON(jsonValue));
|
|
10006
|
+
}
|
|
10007
|
+
/**
|
|
10008
|
+
* Opens a `signMessage` proposal for the wallet\'s caller-signed intent without running the sign.
|
|
10009
|
+
* SDK — propose a signing-quorum transaction for a business-account wallet
|
|
10010
|
+
*/
|
|
10011
|
+
async sdkCreateBusinessAccountSigningProposal(requestParameters, initOverrides) {
|
|
10012
|
+
const response = await this.sdkCreateBusinessAccountSigningProposalRaw(requestParameters, initOverrides);
|
|
10013
|
+
return await response.value();
|
|
10014
|
+
}
|
|
9940
10015
|
/**
|
|
9941
10016
|
* Defines a role that inherits a built-in one. The role lives only in the signed authorization document, so there is no separate role resource. Requires step-up authentication.
|
|
9942
10017
|
* SDK — define a customer role for a business account
|