@dynamic-labs/sdk-api-core 0.0.1107 → 0.0.1109
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.cjs +118 -11
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +51 -9
- package/src/apis/SDKApi.js +118 -11
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +12 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/models/SponsorSVMTransactionResponse.cjs +15 -3
- package/src/models/SponsorSVMTransactionResponse.cjs.map +1 -1
- package/src/models/SponsorSVMTransactionResponse.d.ts +8 -2
- package/src/models/SponsorSVMTransactionResponse.js +15 -3
- package/src/models/SponsorSVMTransactionResponse.js.map +1 -1
- package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +49 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs.map +1 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +54 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.js +43 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.js.map +1 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.cjs +33 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.cjs.map +1 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.d.ts +27 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.js +27 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.js.map +1 -0
- package/src/models/index.d.ts +2 -0
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, 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, 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, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultListResponse } from '../models';
|
|
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, 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, YieldVaultListResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -662,6 +662,11 @@ export interface GetUserPasskeysRequest {
|
|
|
662
662
|
export interface GetWaasSignerSelfPolicyLayerRequest {
|
|
663
663
|
environmentId: string;
|
|
664
664
|
walletId: string;
|
|
665
|
+
signerId?: string;
|
|
666
|
+
}
|
|
667
|
+
export interface GetWaasWalletSelfPolicyLayerRequest {
|
|
668
|
+
environmentId: string;
|
|
669
|
+
walletId: string;
|
|
665
670
|
}
|
|
666
671
|
export interface GetWaasWalletWithVerifiedCredentialsRequest {
|
|
667
672
|
environmentId: string;
|
|
@@ -1357,6 +1362,11 @@ export interface UpdateUserMfaDeviceRequest {
|
|
|
1357
1362
|
mFAUpdateDeviceRequest?: MFAUpdateDeviceRequest;
|
|
1358
1363
|
}
|
|
1359
1364
|
export interface UpdateWaasSignerSelfPolicyLayerRequest {
|
|
1365
|
+
environmentId: string;
|
|
1366
|
+
walletId: string;
|
|
1367
|
+
waasSignerPolicyLayerUpdateRequest: WaasSignerPolicyLayerUpdateRequest;
|
|
1368
|
+
}
|
|
1369
|
+
export interface UpdateWaasWalletSelfPolicyLayerRequest {
|
|
1360
1370
|
environmentId: string;
|
|
1361
1371
|
walletId: string;
|
|
1362
1372
|
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
@@ -1435,6 +1445,10 @@ export interface WaasSignerSelfPolicyLayerOptionsRequest {
|
|
|
1435
1445
|
environmentId: string;
|
|
1436
1446
|
walletId: string;
|
|
1437
1447
|
}
|
|
1448
|
+
export interface WaasWalletSelfPolicyLayerOptionsRequest {
|
|
1449
|
+
environmentId: string;
|
|
1450
|
+
walletId: string;
|
|
1451
|
+
}
|
|
1438
1452
|
export interface WaasWalletSettingsOptionsRequest {
|
|
1439
1453
|
environmentId: string;
|
|
1440
1454
|
walletId: string;
|
|
@@ -2942,15 +2956,25 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2942
2956
|
*/
|
|
2943
2957
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
2944
2958
|
/**
|
|
2945
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
2946
|
-
* Get
|
|
2959
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given signerId) 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\'s signerId.
|
|
2960
|
+
* Get a signer-Layer\'s Rules
|
|
2947
2961
|
*/
|
|
2948
2962
|
getWaasSignerSelfPolicyLayerRaw(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
2949
2963
|
/**
|
|
2950
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
2951
|
-
* Get
|
|
2964
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given signerId) 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\'s signerId.
|
|
2965
|
+
* Get a signer-Layer\'s Rules
|
|
2952
2966
|
*/
|
|
2953
2967
|
getWaasSignerSelfPolicyLayer(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
2968
|
+
/**
|
|
2969
|
+
* Returns the Composition Layer content for the calling wallet\'s own wallet-Layer, without mutating it. Only the wallet\'s own owner may call this.
|
|
2970
|
+
* Get a wallet-Layer\'s Rules
|
|
2971
|
+
*/
|
|
2972
|
+
getWaasWalletSelfPolicyLayerRaw(requestParameters: GetWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
2973
|
+
/**
|
|
2974
|
+
* Returns the Composition Layer content for the calling wallet\'s own wallet-Layer, without mutating it. Only the wallet\'s own owner may call this.
|
|
2975
|
+
* Get a wallet-Layer\'s Rules
|
|
2976
|
+
*/
|
|
2977
|
+
getWaasWalletSelfPolicyLayer(requestParameters: GetWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
2954
2978
|
/**
|
|
2955
2979
|
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
2956
2980
|
* Get a WAAS wallet by address
|
|
@@ -4510,15 +4534,25 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4510
4534
|
*/
|
|
4511
4535
|
updateUserMfaDevice(requestParameters: UpdateUserMfaDeviceRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4512
4536
|
/**
|
|
4513
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
4514
|
-
*
|
|
4537
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own signer-Layer, or (given signerId in the request body) another share set of the same wallet — e.g. a delegated share set. Only the wallet\'s own owner may target another share set\'s signerId. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
4538
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
4515
4539
|
*/
|
|
4516
4540
|
updateWaasSignerSelfPolicyLayerRaw(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4517
4541
|
/**
|
|
4518
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
4519
|
-
*
|
|
4542
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own signer-Layer, or (given signerId in the request body) another share set of the same wallet — e.g. a delegated share set. Only the wallet\'s own owner may target another share set\'s signerId. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
4543
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
4520
4544
|
*/
|
|
4521
4545
|
updateWaasSignerSelfPolicyLayer(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4546
|
+
/**
|
|
4547
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own wallet-Layer. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
4548
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
4549
|
+
*/
|
|
4550
|
+
updateWaasWalletSelfPolicyLayerRaw(requestParameters: UpdateWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4551
|
+
/**
|
|
4552
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own wallet-Layer. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
4553
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
4554
|
+
*/
|
|
4555
|
+
updateWaasWalletSelfPolicyLayer(requestParameters: UpdateWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4522
4556
|
/**
|
|
4523
4557
|
* Updates the settings for a WAAS wallet
|
|
4524
4558
|
* Update WAAS wallet settings
|
|
@@ -4705,6 +4739,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4705
4739
|
* Options call for this endpoint
|
|
4706
4740
|
*/
|
|
4707
4741
|
waasSignerSelfPolicyLayerOptions(requestParameters: WaasSignerSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4742
|
+
/**
|
|
4743
|
+
* Options call for this endpoint
|
|
4744
|
+
*/
|
|
4745
|
+
waasWalletSelfPolicyLayerOptionsRaw(requestParameters: WaasWalletSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4746
|
+
/**
|
|
4747
|
+
* Options call for this endpoint
|
|
4748
|
+
*/
|
|
4749
|
+
waasWalletSelfPolicyLayerOptions(requestParameters: WaasWalletSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4708
4750
|
/**
|
|
4709
4751
|
* Options call for this endpoint
|
|
4710
4752
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -285,6 +285,7 @@ import '../models/WaasPolicyConstraintCondition.js';
|
|
|
285
285
|
import { WaasPolicyLayerResponseFromJSON } from '../models/WaasPolicyLayerResponse.js';
|
|
286
286
|
import '../models/WaasPolicyRuleType.js';
|
|
287
287
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
288
|
+
import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
288
289
|
import '../models/WaasTransactionBroadcastSubmissionState.js';
|
|
289
290
|
import { WaasTransactionBroadcastRequestToJSON } from '../models/WaasTransactionBroadcastRequest.js';
|
|
290
291
|
import { WaasTransactionBroadcastResponseFromJSON } from '../models/WaasTransactionBroadcastResponse.js';
|
|
@@ -5309,8 +5310,8 @@ class SDKApi extends BaseAPI {
|
|
|
5309
5310
|
return await response.value();
|
|
5310
5311
|
}
|
|
5311
5312
|
/**
|
|
5312
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5313
|
-
* Get
|
|
5313
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given signerId) 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\'s signerId.
|
|
5314
|
+
* Get a signer-Layer\'s Rules
|
|
5314
5315
|
*/
|
|
5315
5316
|
async getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5316
5317
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -5320,6 +5321,9 @@ class SDKApi extends BaseAPI {
|
|
|
5320
5321
|
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
|
|
5321
5322
|
}
|
|
5322
5323
|
const queryParameters = {};
|
|
5324
|
+
if (requestParameters.signerId !== undefined) {
|
|
5325
|
+
queryParameters['signerId'] = requestParameters.signerId;
|
|
5326
|
+
}
|
|
5323
5327
|
const headerParameters = {};
|
|
5324
5328
|
if (this.configuration && this.configuration.accessToken) {
|
|
5325
5329
|
const token = this.configuration.accessToken;
|
|
@@ -5337,13 +5341,49 @@ class SDKApi extends BaseAPI {
|
|
|
5337
5341
|
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5338
5342
|
}
|
|
5339
5343
|
/**
|
|
5340
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5341
|
-
* Get
|
|
5344
|
+
* Returns the Composition Layer content for the calling wallet\'s own active Signer, or (given signerId) 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\'s signerId.
|
|
5345
|
+
* Get a signer-Layer\'s Rules
|
|
5342
5346
|
*/
|
|
5343
5347
|
async getWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5344
5348
|
const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5345
5349
|
return await response.value();
|
|
5346
5350
|
}
|
|
5351
|
+
/**
|
|
5352
|
+
* Returns the Composition Layer content for the calling wallet\'s own wallet-Layer, without mutating it. Only the wallet\'s own owner may call this.
|
|
5353
|
+
* Get a wallet-Layer\'s Rules
|
|
5354
|
+
*/
|
|
5355
|
+
async getWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5356
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5357
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletSelfPolicyLayer.');
|
|
5358
|
+
}
|
|
5359
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
5360
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasWalletSelfPolicyLayer.');
|
|
5361
|
+
}
|
|
5362
|
+
const queryParameters = {};
|
|
5363
|
+
const headerParameters = {};
|
|
5364
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5365
|
+
const token = this.configuration.accessToken;
|
|
5366
|
+
const tokenString = await token("bearerAuth", []);
|
|
5367
|
+
if (tokenString) {
|
|
5368
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5369
|
+
}
|
|
5370
|
+
}
|
|
5371
|
+
const response = await this.request({
|
|
5372
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
5373
|
+
method: 'GET',
|
|
5374
|
+
headers: headerParameters,
|
|
5375
|
+
query: queryParameters,
|
|
5376
|
+
}, initOverrides);
|
|
5377
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5378
|
+
}
|
|
5379
|
+
/**
|
|
5380
|
+
* Returns the Composition Layer content for the calling wallet\'s own wallet-Layer, without mutating it. Only the wallet\'s own owner may call this.
|
|
5381
|
+
* Get a wallet-Layer\'s Rules
|
|
5382
|
+
*/
|
|
5383
|
+
async getWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5384
|
+
const response = await this.getWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5385
|
+
return await response.value();
|
|
5386
|
+
}
|
|
5347
5387
|
/**
|
|
5348
5388
|
* Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
|
|
5349
5389
|
* Get a WAAS wallet by address
|
|
@@ -10582,8 +10622,8 @@ class SDKApi extends BaseAPI {
|
|
|
10582
10622
|
await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
|
|
10583
10623
|
}
|
|
10584
10624
|
/**
|
|
10585
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
10586
|
-
*
|
|
10625
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own signer-Layer, or (given signerId in the request body) another share set of the same wallet — e.g. a delegated share set. Only the wallet\'s own owner may target another share set\'s signerId. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
10626
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
10587
10627
|
*/
|
|
10588
10628
|
async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10589
10629
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -10592,8 +10632,8 @@ class SDKApi extends BaseAPI {
|
|
|
10592
10632
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10593
10633
|
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10594
10634
|
}
|
|
10595
|
-
if (requestParameters.
|
|
10596
|
-
throw new RequiredError('
|
|
10635
|
+
if (requestParameters.waasSignerPolicyLayerUpdateRequest === null || requestParameters.waasSignerPolicyLayerUpdateRequest === undefined) {
|
|
10636
|
+
throw new RequiredError('waasSignerPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasSignerPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10597
10637
|
}
|
|
10598
10638
|
const queryParameters = {};
|
|
10599
10639
|
const headerParameters = {};
|
|
@@ -10610,18 +10650,59 @@ class SDKApi extends BaseAPI {
|
|
|
10610
10650
|
method: 'PATCH',
|
|
10611
10651
|
headers: headerParameters,
|
|
10612
10652
|
query: queryParameters,
|
|
10613
|
-
body:
|
|
10653
|
+
body: WaasSignerPolicyLayerUpdateRequestToJSON(requestParameters.waasSignerPolicyLayerUpdateRequest),
|
|
10614
10654
|
}, initOverrides);
|
|
10615
10655
|
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10616
10656
|
}
|
|
10617
10657
|
/**
|
|
10618
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
10619
|
-
*
|
|
10658
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own signer-Layer, or (given signerId in the request body) another share set of the same wallet — e.g. a delegated share set. Only the wallet\'s own owner may target another share set\'s signerId. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
10659
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
10620
10660
|
*/
|
|
10621
10661
|
async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10622
10662
|
const response = await this.updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10623
10663
|
return await response.value();
|
|
10624
10664
|
}
|
|
10665
|
+
/**
|
|
10666
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own wallet-Layer. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
10667
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
10668
|
+
*/
|
|
10669
|
+
async updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10670
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10671
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10672
|
+
}
|
|
10673
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10674
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10675
|
+
}
|
|
10676
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10677
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10678
|
+
}
|
|
10679
|
+
const queryParameters = {};
|
|
10680
|
+
const headerParameters = {};
|
|
10681
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10682
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10683
|
+
const token = this.configuration.accessToken;
|
|
10684
|
+
const tokenString = await token("bearerAuth", []);
|
|
10685
|
+
if (tokenString) {
|
|
10686
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10687
|
+
}
|
|
10688
|
+
}
|
|
10689
|
+
const response = await this.request({
|
|
10690
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
10691
|
+
method: 'PATCH',
|
|
10692
|
+
headers: headerParameters,
|
|
10693
|
+
query: queryParameters,
|
|
10694
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10695
|
+
}, initOverrides);
|
|
10696
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10697
|
+
}
|
|
10698
|
+
/**
|
|
10699
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the calling wallet\'s own wallet-Layer. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
10700
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
10701
|
+
*/
|
|
10702
|
+
async updateWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10703
|
+
const response = await this.updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10704
|
+
return await response.value();
|
|
10705
|
+
}
|
|
10625
10706
|
/**
|
|
10626
10707
|
* Updates the settings for a WAAS wallet
|
|
10627
10708
|
* Update WAAS wallet settings
|
|
@@ -11232,6 +11313,32 @@ class SDKApi extends BaseAPI {
|
|
|
11232
11313
|
async waasSignerSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11233
11314
|
await this.waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11234
11315
|
}
|
|
11316
|
+
/**
|
|
11317
|
+
* Options call for this endpoint
|
|
11318
|
+
*/
|
|
11319
|
+
async waasWalletSelfPolicyLayerOptionsRaw(requestParameters, initOverrides) {
|
|
11320
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11321
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasWalletSelfPolicyLayerOptions.');
|
|
11322
|
+
}
|
|
11323
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11324
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling waasWalletSelfPolicyLayerOptions.');
|
|
11325
|
+
}
|
|
11326
|
+
const queryParameters = {};
|
|
11327
|
+
const headerParameters = {};
|
|
11328
|
+
const response = await this.request({
|
|
11329
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11330
|
+
method: 'OPTIONS',
|
|
11331
|
+
headers: headerParameters,
|
|
11332
|
+
query: queryParameters,
|
|
11333
|
+
}, initOverrides);
|
|
11334
|
+
return new VoidApiResponse(response);
|
|
11335
|
+
}
|
|
11336
|
+
/**
|
|
11337
|
+
* Options call for this endpoint
|
|
11338
|
+
*/
|
|
11339
|
+
async waasWalletSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11340
|
+
await this.waasWalletSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11341
|
+
}
|
|
11235
11342
|
/**
|
|
11236
11343
|
* Options call for this endpoint
|
|
11237
11344
|
*/
|