@dynamic-labs/sdk-api 0.0.1100 → 0.0.1102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +105 -1
  3. package/src/apis/SDKApi.d.ts +42 -1
  4. package/src/apis/SDKApi.js +105 -1
  5. package/src/apis/ServerApi.cjs +387 -0
  6. package/src/apis/ServerApi.d.ts +117 -0
  7. package/src/apis/ServerApi.js +383 -0
  8. package/src/apis/index.d.ts +1 -0
  9. package/src/index.cjs +26 -0
  10. package/src/index.js +7 -0
  11. package/src/models/FlowPaymentLinkCreateRequest.cjs +52 -0
  12. package/src/models/FlowPaymentLinkCreateRequest.d.ts +78 -0
  13. package/src/models/FlowPaymentLinkCreateRequest.js +46 -0
  14. package/src/models/FlowPaymentLinkCreateRequestBaseFields.cjs +43 -0
  15. package/src/models/FlowPaymentLinkCreateRequestBaseFields.d.ts +27 -0
  16. package/src/models/FlowPaymentLinkCreateRequestBaseFields.js +37 -0
  17. package/src/models/FlowPaymentLinkCreateResponse.cjs +35 -0
  18. package/src/models/FlowPaymentLinkCreateResponse.d.ts +34 -0
  19. package/src/models/FlowPaymentLinkCreateResponse.js +29 -0
  20. package/src/models/FlowPaymentLinkCreateResponseExtraFields.cjs +43 -0
  21. package/src/models/FlowPaymentLinkCreateResponseExtraFields.d.ts +27 -0
  22. package/src/models/FlowPaymentLinkCreateResponseExtraFields.js +37 -0
  23. package/src/models/SoftDeleteWaasWalletsRequest.cjs +43 -0
  24. package/src/models/SoftDeleteWaasWalletsRequest.d.ts +27 -0
  25. package/src/models/SoftDeleteWaasWalletsRequest.js +37 -0
  26. package/src/models/SoftDeleteWaasWalletsResponse.cjs +35 -0
  27. package/src/models/SoftDeleteWaasWalletsResponse.d.ts +33 -0
  28. package/src/models/SoftDeleteWaasWalletsResponse.js +29 -0
  29. package/src/models/WaasPolicyRule.cjs +2 -0
  30. package/src/models/WaasPolicyRule.d.ts +6 -0
  31. package/src/models/WaasPolicyRule.js +2 -0
  32. package/src/models/index.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1100",
3
+ "version": "0.0.1102",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -315,7 +315,8 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
315
315
  require('../models/WaasDelegationCredentialsResponse.cjs');
316
316
  require('../models/WaasPolicyConstraintCondition.cjs');
317
317
  require('../models/WaasPolicyRuleType.cjs');
318
- require('../models/WaasPolicyLayerUpdateRequest.cjs');
318
+ var WaasPolicyLayerResponse = require('../models/WaasPolicyLayerResponse.cjs');
319
+ var WaasPolicyLayerUpdateRequest = require('../models/WaasPolicyLayerUpdateRequest.cjs');
319
320
  require('../models/WaasTransactionReviewFailurePolicy.cjs');
320
321
  require('../models/WaasTransactionReviewTestScenario.cjs');
321
322
  require('../models/WaasTransactionReviewTestResponseResponseSignature.cjs');
@@ -5340,6 +5341,42 @@ class SDKApi extends runtime.BaseAPI {
5340
5341
  const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
5341
5342
  return await response.value();
5342
5343
  }
5344
+ /**
5345
+ * Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
5346
+ * Get the caller\'s own signer-Layer Rules
5347
+ */
5348
+ async getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
5349
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5350
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
5351
+ }
5352
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5353
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
5354
+ }
5355
+ const queryParameters = {};
5356
+ const headerParameters = {};
5357
+ if (this.configuration && this.configuration.accessToken) {
5358
+ const token = this.configuration.accessToken;
5359
+ const tokenString = await token("bearerAuth", []);
5360
+ if (tokenString) {
5361
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5362
+ }
5363
+ }
5364
+ const response = await this.request({
5365
+ path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5366
+ method: 'GET',
5367
+ headers: headerParameters,
5368
+ query: queryParameters,
5369
+ }, initOverrides);
5370
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
5371
+ }
5372
+ /**
5373
+ * Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
5374
+ * Get the caller\'s own signer-Layer Rules
5375
+ */
5376
+ async getWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
5377
+ const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
5378
+ return await response.value();
5379
+ }
5343
5380
  /**
5344
5381
  * 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.
5345
5382
  * Get a WAAS wallet by address
@@ -10528,6 +10565,47 @@ class SDKApi extends runtime.BaseAPI {
10528
10565
  async updateUserMfaDevice(requestParameters, initOverrides) {
10529
10566
  await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
10530
10567
  }
10568
+ /**
10569
+ * Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
10570
+ * Loosen or remove a signer-managed default on the caller\'s own signer-Layer
10571
+ */
10572
+ async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
10573
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10574
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
10575
+ }
10576
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
10577
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
10578
+ }
10579
+ if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
10580
+ throw new runtime.RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
10581
+ }
10582
+ const queryParameters = {};
10583
+ const headerParameters = {};
10584
+ headerParameters['Content-Type'] = 'application/json';
10585
+ if (this.configuration && this.configuration.accessToken) {
10586
+ const token = this.configuration.accessToken;
10587
+ const tokenString = await token("bearerAuth", []);
10588
+ if (tokenString) {
10589
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
10590
+ }
10591
+ }
10592
+ const response = await this.request({
10593
+ path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
10594
+ method: 'PATCH',
10595
+ headers: headerParameters,
10596
+ query: queryParameters,
10597
+ body: WaasPolicyLayerUpdateRequest.WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
10598
+ }, initOverrides);
10599
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
10600
+ }
10601
+ /**
10602
+ * Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
10603
+ * Loosen or remove a signer-managed default on the caller\'s own signer-Layer
10604
+ */
10605
+ async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
10606
+ const response = await this.updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
10607
+ return await response.value();
10608
+ }
10531
10609
  /**
10532
10610
  * Updates the settings for a WAAS wallet
10533
10611
  * Update WAAS wallet settings
@@ -11112,6 +11190,32 @@ class SDKApi extends runtime.BaseAPI {
11112
11190
  async verifyUnlinkOptions(requestParameters, initOverrides) {
11113
11191
  await this.verifyUnlinkOptionsRaw(requestParameters, initOverrides);
11114
11192
  }
11193
+ /**
11194
+ * Options call for this endpoint
11195
+ */
11196
+ async waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides) {
11197
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11198
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasSignerSelfPolicyLayerOptions.');
11199
+ }
11200
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11201
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling waasSignerSelfPolicyLayerOptions.');
11202
+ }
11203
+ const queryParameters = {};
11204
+ const headerParameters = {};
11205
+ const response = await this.request({
11206
+ path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11207
+ method: 'OPTIONS',
11208
+ headers: headerParameters,
11209
+ query: queryParameters,
11210
+ }, initOverrides);
11211
+ return new runtime.VoidApiResponse(response);
11212
+ }
11213
+ /**
11214
+ * Options call for this endpoint
11215
+ */
11216
+ async waasSignerSelfPolicyLayerOptions(requestParameters, initOverrides) {
11217
+ await this.waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
11218
+ }
11115
11219
  /**
11116
11220
  * Options call for this endpoint
11117
11221
  */
@@ -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, 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, 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, WalletSanctionsResponse, WalletTransactionsResponse } 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, 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, 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, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
@@ -654,6 +654,10 @@ export interface GetUserMfaMethodsRequest {
654
654
  export interface GetUserPasskeysRequest {
655
655
  environmentId: string;
656
656
  }
657
+ export interface GetWaasSignerSelfPolicyLayerRequest {
658
+ environmentId: string;
659
+ walletId: string;
660
+ }
657
661
  export interface GetWaasWalletWithVerifiedCredentialsRequest {
658
662
  environmentId: string;
659
663
  walletAddress: string;
@@ -1341,6 +1345,11 @@ export interface UpdateUserMfaDeviceRequest {
1341
1345
  mfaDeviceId: string;
1342
1346
  mFAUpdateDeviceRequest?: MFAUpdateDeviceRequest;
1343
1347
  }
1348
+ export interface UpdateWaasSignerSelfPolicyLayerRequest {
1349
+ environmentId: string;
1350
+ walletId: string;
1351
+ waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
1352
+ }
1344
1353
  export interface UpdateWaasWalletSettingsOperationRequest {
1345
1354
  environmentId: string;
1346
1355
  walletId: string;
@@ -1411,6 +1420,10 @@ export interface VerifyUnlinkOperationRequest {
1411
1420
  export interface VerifyUnlinkOptionsRequest {
1412
1421
  environmentId: string;
1413
1422
  }
1423
+ export interface WaasSignerSelfPolicyLayerOptionsRequest {
1424
+ environmentId: string;
1425
+ walletId: string;
1426
+ }
1414
1427
  export interface WaasWalletSettingsOptionsRequest {
1415
1428
  environmentId: string;
1416
1429
  walletId: string;
@@ -2927,6 +2940,16 @@ export declare class SDKApi extends runtime.BaseAPI {
2927
2940
  * Get user passkeys
2928
2941
  */
2929
2942
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
2943
+ /**
2944
+ * Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
2945
+ * Get the caller\'s own signer-Layer Rules
2946
+ */
2947
+ getWaasSignerSelfPolicyLayerRaw(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
2948
+ /**
2949
+ * Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
2950
+ * Get the caller\'s own signer-Layer Rules
2951
+ */
2952
+ getWaasSignerSelfPolicyLayer(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
2930
2953
  /**
2931
2954
  * 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.
2932
2955
  * Get a WAAS wallet by address
@@ -4467,6 +4490,16 @@ export declare class SDKApi extends runtime.BaseAPI {
4467
4490
  * Update an MFA device
4468
4491
  */
4469
4492
  updateUserMfaDevice(requestParameters: UpdateUserMfaDeviceRequest, initOverrides?: RequestInit): Promise<void>;
4493
+ /**
4494
+ * Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
4495
+ * Loosen or remove a signer-managed default on the caller\'s own signer-Layer
4496
+ */
4497
+ updateWaasSignerSelfPolicyLayerRaw(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
4498
+ /**
4499
+ * Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
4500
+ * Loosen or remove a signer-managed default on the caller\'s own signer-Layer
4501
+ */
4502
+ updateWaasSignerSelfPolicyLayer(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
4470
4503
  /**
4471
4504
  * Updates the settings for a WAAS wallet
4472
4505
  * Update WAAS wallet settings
@@ -4645,6 +4678,14 @@ export declare class SDKApi extends runtime.BaseAPI {
4645
4678
  * Options call for this endpoint
4646
4679
  */
4647
4680
  verifyUnlinkOptions(requestParameters: VerifyUnlinkOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4681
+ /**
4682
+ * Options call for this endpoint
4683
+ */
4684
+ waasSignerSelfPolicyLayerOptionsRaw(requestParameters: WaasSignerSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
4685
+ /**
4686
+ * Options call for this endpoint
4687
+ */
4688
+ waasSignerSelfPolicyLayerOptions(requestParameters: WaasSignerSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4648
4689
  /**
4649
4690
  * Options call for this endpoint
4650
4691
  */
@@ -311,7 +311,8 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
311
311
  import '../models/WaasDelegationCredentialsResponse.js';
312
312
  import '../models/WaasPolicyConstraintCondition.js';
313
313
  import '../models/WaasPolicyRuleType.js';
314
- import '../models/WaasPolicyLayerUpdateRequest.js';
314
+ import { WaasPolicyLayerResponseFromJSON } from '../models/WaasPolicyLayerResponse.js';
315
+ import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
315
316
  import '../models/WaasTransactionReviewFailurePolicy.js';
316
317
  import '../models/WaasTransactionReviewTestScenario.js';
317
318
  import '../models/WaasTransactionReviewTestResponseResponseSignature.js';
@@ -5336,6 +5337,42 @@ class SDKApi extends BaseAPI {
5336
5337
  const response = await this.getUserPasskeysRaw(requestParameters, initOverrides);
5337
5338
  return await response.value();
5338
5339
  }
5340
+ /**
5341
+ * Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
5342
+ * Get the caller\'s own signer-Layer Rules
5343
+ */
5344
+ async getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
5345
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5346
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
5347
+ }
5348
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
5349
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
5350
+ }
5351
+ const queryParameters = {};
5352
+ const headerParameters = {};
5353
+ if (this.configuration && this.configuration.accessToken) {
5354
+ const token = this.configuration.accessToken;
5355
+ const tokenString = await token("bearerAuth", []);
5356
+ if (tokenString) {
5357
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5358
+ }
5359
+ }
5360
+ const response = await this.request({
5361
+ path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
5362
+ method: 'GET',
5363
+ headers: headerParameters,
5364
+ query: queryParameters,
5365
+ }, initOverrides);
5366
+ return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
5367
+ }
5368
+ /**
5369
+ * Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
5370
+ * Get the caller\'s own signer-Layer Rules
5371
+ */
5372
+ async getWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
5373
+ const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
5374
+ return await response.value();
5375
+ }
5339
5376
  /**
5340
5377
  * 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.
5341
5378
  * Get a WAAS wallet by address
@@ -10524,6 +10561,47 @@ class SDKApi extends BaseAPI {
10524
10561
  async updateUserMfaDevice(requestParameters, initOverrides) {
10525
10562
  await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
10526
10563
  }
10564
+ /**
10565
+ * Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
10566
+ * Loosen or remove a signer-managed default on the caller\'s own signer-Layer
10567
+ */
10568
+ async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
10569
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10570
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
10571
+ }
10572
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
10573
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
10574
+ }
10575
+ if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
10576
+ throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
10577
+ }
10578
+ const queryParameters = {};
10579
+ const headerParameters = {};
10580
+ headerParameters['Content-Type'] = 'application/json';
10581
+ if (this.configuration && this.configuration.accessToken) {
10582
+ const token = this.configuration.accessToken;
10583
+ const tokenString = await token("bearerAuth", []);
10584
+ if (tokenString) {
10585
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
10586
+ }
10587
+ }
10588
+ const response = await this.request({
10589
+ path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
10590
+ method: 'PATCH',
10591
+ headers: headerParameters,
10592
+ query: queryParameters,
10593
+ body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
10594
+ }, initOverrides);
10595
+ return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
10596
+ }
10597
+ /**
10598
+ * Applies a single per-Rule upsert or remove operation, restricted to Rules a dashboardAdmin granted to the calling wallet\'s own Signer.
10599
+ * Loosen or remove a signer-managed default on the caller\'s own signer-Layer
10600
+ */
10601
+ async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
10602
+ const response = await this.updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
10603
+ return await response.value();
10604
+ }
10527
10605
  /**
10528
10606
  * Updates the settings for a WAAS wallet
10529
10607
  * Update WAAS wallet settings
@@ -11108,6 +11186,32 @@ class SDKApi extends BaseAPI {
11108
11186
  async verifyUnlinkOptions(requestParameters, initOverrides) {
11109
11187
  await this.verifyUnlinkOptionsRaw(requestParameters, initOverrides);
11110
11188
  }
11189
+ /**
11190
+ * Options call for this endpoint
11191
+ */
11192
+ async waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides) {
11193
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11194
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasSignerSelfPolicyLayerOptions.');
11195
+ }
11196
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11197
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling waasSignerSelfPolicyLayerOptions.');
11198
+ }
11199
+ const queryParameters = {};
11200
+ const headerParameters = {};
11201
+ const response = await this.request({
11202
+ path: `/sdk/{environmentId}/waas/{walletId}/signers/self/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11203
+ method: 'OPTIONS',
11204
+ headers: headerParameters,
11205
+ query: queryParameters,
11206
+ }, initOverrides);
11207
+ return new VoidApiResponse(response);
11208
+ }
11209
+ /**
11210
+ * Options call for this endpoint
11211
+ */
11212
+ async waasSignerSelfPolicyLayerOptions(requestParameters, initOverrides) {
11213
+ await this.waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
11214
+ }
11111
11215
  /**
11112
11216
  * Options call for this endpoint
11113
11217
  */