@dynamic-labs/sdk-api 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/AdminActionsApi.cjs +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GaslessApi.cjs +1 -0
- package/src/apis/GaslessApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +118 -11
- package/src/apis/SDKApi.d.ts +51 -9
- package/src/apis/SDKApi.js +118 -11
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/ServerApi.cjs +1 -0
- package/src/apis/ServerApi.js +1 -0
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/apis/ZendeskApi.cjs +1 -0
- package/src/apis/ZendeskApi.js +1 -0
- package/src/index.cjs +12 -0
- package/src/index.js +2 -0
- package/src/models/SponsorSVMTransactionResponse.cjs +15 -3
- package/src/models/SponsorSVMTransactionResponse.d.ts +8 -2
- package/src/models/SponsorSVMTransactionResponse.js +15 -3
- package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +49 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +54 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.js +43 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.cjs +33 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.d.ts +27 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequestAllOf.js +27 -0
- package/src/models/index.d.ts +2 -0
package/src/apis/ProjectsApi.cjs
CHANGED
|
@@ -144,6 +144,7 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
|
144
144
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
145
145
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
146
146
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
147
|
+
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
147
148
|
require('../models/WaasTransactionBroadcastSubmissionState.cjs');
|
|
148
149
|
require('../models/WaasTransactionEncoding.cjs');
|
|
149
150
|
require('../models/WaasTransactionBroadcastStatus.cjs');
|
package/src/apis/ProjectsApi.js
CHANGED
|
@@ -140,6 +140,7 @@ import '../models/VisitorFilterableFieldsEnum.js';
|
|
|
140
140
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
141
141
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
142
142
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
143
|
+
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
143
144
|
import '../models/WaasTransactionBroadcastSubmissionState.js';
|
|
144
145
|
import '../models/WaasTransactionEncoding.js';
|
|
145
146
|
import '../models/WaasTransactionBroadcastStatus.js';
|
|
@@ -142,6 +142,7 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
|
142
142
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
143
143
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
144
144
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
145
|
+
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
145
146
|
require('../models/WaasTransactionBroadcastSubmissionState.cjs');
|
|
146
147
|
require('../models/WaasTransactionEncoding.cjs');
|
|
147
148
|
require('../models/WaasTransactionBroadcastStatus.cjs');
|
package/src/apis/ProvidersApi.js
CHANGED
|
@@ -138,6 +138,7 @@ import '../models/VisitorFilterableFieldsEnum.js';
|
|
|
138
138
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
139
139
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
140
140
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
141
|
+
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
141
142
|
import '../models/WaasTransactionBroadcastSubmissionState.js';
|
|
142
143
|
import '../models/WaasTransactionEncoding.js';
|
|
143
144
|
import '../models/WaasTransactionBroadcastStatus.js';
|
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -318,6 +318,7 @@ require('../models/WaasPolicyConstraintCondition.cjs');
|
|
|
318
318
|
require('../models/WaasPolicyRuleType.cjs');
|
|
319
319
|
var WaasPolicyLayerResponse = require('../models/WaasPolicyLayerResponse.cjs');
|
|
320
320
|
var WaasPolicyLayerUpdateRequest = require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
321
|
+
var WaasSignerPolicyLayerUpdateRequest = require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
321
322
|
require('../models/WaasTransactionBroadcastSubmissionState.cjs');
|
|
322
323
|
var WaasTransactionBroadcastRequest = require('../models/WaasTransactionBroadcastRequest.cjs');
|
|
323
324
|
var WaasTransactionBroadcastResponse = require('../models/WaasTransactionBroadcastResponse.cjs');
|
|
@@ -5422,8 +5423,8 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5422
5423
|
return await response.value();
|
|
5423
5424
|
}
|
|
5424
5425
|
/**
|
|
5425
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5426
|
-
* Get
|
|
5426
|
+
* 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.
|
|
5427
|
+
* Get a signer-Layer\'s Rules
|
|
5427
5428
|
*/
|
|
5428
5429
|
async getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5429
5430
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -5433,6 +5434,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5433
5434
|
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
|
|
5434
5435
|
}
|
|
5435
5436
|
const queryParameters = {};
|
|
5437
|
+
if (requestParameters.signerId !== undefined) {
|
|
5438
|
+
queryParameters['signerId'] = requestParameters.signerId;
|
|
5439
|
+
}
|
|
5436
5440
|
const headerParameters = {};
|
|
5437
5441
|
if (this.configuration && this.configuration.accessToken) {
|
|
5438
5442
|
const token = this.configuration.accessToken;
|
|
@@ -5450,13 +5454,49 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5450
5454
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5451
5455
|
}
|
|
5452
5456
|
/**
|
|
5453
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5454
|
-
* Get
|
|
5457
|
+
* 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.
|
|
5458
|
+
* Get a signer-Layer\'s Rules
|
|
5455
5459
|
*/
|
|
5456
5460
|
async getWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5457
5461
|
const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5458
5462
|
return await response.value();
|
|
5459
5463
|
}
|
|
5464
|
+
/**
|
|
5465
|
+
* 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.
|
|
5466
|
+
* Get a wallet-Layer\'s Rules
|
|
5467
|
+
*/
|
|
5468
|
+
async getWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5469
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5470
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletSelfPolicyLayer.');
|
|
5471
|
+
}
|
|
5472
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
5473
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasWalletSelfPolicyLayer.');
|
|
5474
|
+
}
|
|
5475
|
+
const queryParameters = {};
|
|
5476
|
+
const headerParameters = {};
|
|
5477
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5478
|
+
const token = this.configuration.accessToken;
|
|
5479
|
+
const tokenString = await token("bearerAuth", []);
|
|
5480
|
+
if (tokenString) {
|
|
5481
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5482
|
+
}
|
|
5483
|
+
}
|
|
5484
|
+
const response = await this.request({
|
|
5485
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
5486
|
+
method: 'GET',
|
|
5487
|
+
headers: headerParameters,
|
|
5488
|
+
query: queryParameters,
|
|
5489
|
+
}, initOverrides);
|
|
5490
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5491
|
+
}
|
|
5492
|
+
/**
|
|
5493
|
+
* 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.
|
|
5494
|
+
* Get a wallet-Layer\'s Rules
|
|
5495
|
+
*/
|
|
5496
|
+
async getWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5497
|
+
const response = await this.getWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5498
|
+
return await response.value();
|
|
5499
|
+
}
|
|
5460
5500
|
/**
|
|
5461
5501
|
* 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.
|
|
5462
5502
|
* Get a WAAS wallet by address
|
|
@@ -10695,8 +10735,8 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10695
10735
|
await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
|
|
10696
10736
|
}
|
|
10697
10737
|
/**
|
|
10698
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
10699
|
-
*
|
|
10738
|
+
* 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.
|
|
10739
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
10700
10740
|
*/
|
|
10701
10741
|
async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10702
10742
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -10705,8 +10745,8 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10705
10745
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10706
10746
|
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10707
10747
|
}
|
|
10708
|
-
if (requestParameters.
|
|
10709
|
-
throw new runtime.RequiredError('
|
|
10748
|
+
if (requestParameters.waasSignerPolicyLayerUpdateRequest === null || requestParameters.waasSignerPolicyLayerUpdateRequest === undefined) {
|
|
10749
|
+
throw new runtime.RequiredError('waasSignerPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasSignerPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10710
10750
|
}
|
|
10711
10751
|
const queryParameters = {};
|
|
10712
10752
|
const headerParameters = {};
|
|
@@ -10723,18 +10763,59 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10723
10763
|
method: 'PATCH',
|
|
10724
10764
|
headers: headerParameters,
|
|
10725
10765
|
query: queryParameters,
|
|
10726
|
-
body:
|
|
10766
|
+
body: WaasSignerPolicyLayerUpdateRequest.WaasSignerPolicyLayerUpdateRequestToJSON(requestParameters.waasSignerPolicyLayerUpdateRequest),
|
|
10727
10767
|
}, initOverrides);
|
|
10728
10768
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10729
10769
|
}
|
|
10730
10770
|
/**
|
|
10731
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
10732
|
-
*
|
|
10771
|
+
* 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.
|
|
10772
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
10733
10773
|
*/
|
|
10734
10774
|
async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10735
10775
|
const response = await this.updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10736
10776
|
return await response.value();
|
|
10737
10777
|
}
|
|
10778
|
+
/**
|
|
10779
|
+
* 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.
|
|
10780
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
10781
|
+
*/
|
|
10782
|
+
async updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10783
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10784
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10785
|
+
}
|
|
10786
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10787
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10788
|
+
}
|
|
10789
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10790
|
+
throw new runtime.RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10791
|
+
}
|
|
10792
|
+
const queryParameters = {};
|
|
10793
|
+
const headerParameters = {};
|
|
10794
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10795
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10796
|
+
const token = this.configuration.accessToken;
|
|
10797
|
+
const tokenString = await token("bearerAuth", []);
|
|
10798
|
+
if (tokenString) {
|
|
10799
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10800
|
+
}
|
|
10801
|
+
}
|
|
10802
|
+
const response = await this.request({
|
|
10803
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
10804
|
+
method: 'PATCH',
|
|
10805
|
+
headers: headerParameters,
|
|
10806
|
+
query: queryParameters,
|
|
10807
|
+
body: WaasPolicyLayerUpdateRequest.WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10808
|
+
}, initOverrides);
|
|
10809
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10810
|
+
}
|
|
10811
|
+
/**
|
|
10812
|
+
* 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.
|
|
10813
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
10814
|
+
*/
|
|
10815
|
+
async updateWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10816
|
+
const response = await this.updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10817
|
+
return await response.value();
|
|
10818
|
+
}
|
|
10738
10819
|
/**
|
|
10739
10820
|
* Updates the settings for a WAAS wallet
|
|
10740
10821
|
* Update WAAS wallet settings
|
|
@@ -11345,6 +11426,32 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11345
11426
|
async waasSignerSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11346
11427
|
await this.waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11347
11428
|
}
|
|
11429
|
+
/**
|
|
11430
|
+
* Options call for this endpoint
|
|
11431
|
+
*/
|
|
11432
|
+
async waasWalletSelfPolicyLayerOptionsRaw(requestParameters, initOverrides) {
|
|
11433
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11434
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasWalletSelfPolicyLayerOptions.');
|
|
11435
|
+
}
|
|
11436
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11437
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling waasWalletSelfPolicyLayerOptions.');
|
|
11438
|
+
}
|
|
11439
|
+
const queryParameters = {};
|
|
11440
|
+
const headerParameters = {};
|
|
11441
|
+
const response = await this.request({
|
|
11442
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11443
|
+
method: 'OPTIONS',
|
|
11444
|
+
headers: headerParameters,
|
|
11445
|
+
query: queryParameters,
|
|
11446
|
+
}, initOverrides);
|
|
11447
|
+
return new runtime.VoidApiResponse(response);
|
|
11448
|
+
}
|
|
11449
|
+
/**
|
|
11450
|
+
* Options call for this endpoint
|
|
11451
|
+
*/
|
|
11452
|
+
async waasWalletSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11453
|
+
await this.waasWalletSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11454
|
+
}
|
|
11348
11455
|
/**
|
|
11349
11456
|
* Options call for this endpoint
|
|
11350
11457
|
*/
|
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, 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, 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, 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, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultListResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -667,6 +667,11 @@ export interface GetUserPasskeysRequest {
|
|
|
667
667
|
export interface GetWaasSignerSelfPolicyLayerRequest {
|
|
668
668
|
environmentId: string;
|
|
669
669
|
walletId: string;
|
|
670
|
+
signerId?: string;
|
|
671
|
+
}
|
|
672
|
+
export interface GetWaasWalletSelfPolicyLayerRequest {
|
|
673
|
+
environmentId: string;
|
|
674
|
+
walletId: string;
|
|
670
675
|
}
|
|
671
676
|
export interface GetWaasWalletWithVerifiedCredentialsRequest {
|
|
672
677
|
environmentId: string;
|
|
@@ -1362,6 +1367,11 @@ export interface UpdateUserMfaDeviceRequest {
|
|
|
1362
1367
|
mFAUpdateDeviceRequest?: MFAUpdateDeviceRequest;
|
|
1363
1368
|
}
|
|
1364
1369
|
export interface UpdateWaasSignerSelfPolicyLayerRequest {
|
|
1370
|
+
environmentId: string;
|
|
1371
|
+
walletId: string;
|
|
1372
|
+
waasSignerPolicyLayerUpdateRequest: WaasSignerPolicyLayerUpdateRequest;
|
|
1373
|
+
}
|
|
1374
|
+
export interface UpdateWaasWalletSelfPolicyLayerRequest {
|
|
1365
1375
|
environmentId: string;
|
|
1366
1376
|
walletId: string;
|
|
1367
1377
|
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
@@ -1440,6 +1450,10 @@ export interface WaasSignerSelfPolicyLayerOptionsRequest {
|
|
|
1440
1450
|
environmentId: string;
|
|
1441
1451
|
walletId: string;
|
|
1442
1452
|
}
|
|
1453
|
+
export interface WaasWalletSelfPolicyLayerOptionsRequest {
|
|
1454
|
+
environmentId: string;
|
|
1455
|
+
walletId: string;
|
|
1456
|
+
}
|
|
1443
1457
|
export interface WaasWalletSettingsOptionsRequest {
|
|
1444
1458
|
environmentId: string;
|
|
1445
1459
|
walletId: string;
|
|
@@ -2975,15 +2989,25 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2975
2989
|
*/
|
|
2976
2990
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
2977
2991
|
/**
|
|
2978
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
2979
|
-
* Get
|
|
2992
|
+
* 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.
|
|
2993
|
+
* Get a signer-Layer\'s Rules
|
|
2980
2994
|
*/
|
|
2981
2995
|
getWaasSignerSelfPolicyLayerRaw(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
2982
2996
|
/**
|
|
2983
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
2984
|
-
* Get
|
|
2997
|
+
* 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.
|
|
2998
|
+
* Get a signer-Layer\'s Rules
|
|
2985
2999
|
*/
|
|
2986
3000
|
getWaasSignerSelfPolicyLayer(requestParameters: GetWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
3001
|
+
/**
|
|
3002
|
+
* 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.
|
|
3003
|
+
* Get a wallet-Layer\'s Rules
|
|
3004
|
+
*/
|
|
3005
|
+
getWaasWalletSelfPolicyLayerRaw(requestParameters: GetWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
3006
|
+
/**
|
|
3007
|
+
* 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.
|
|
3008
|
+
* Get a wallet-Layer\'s Rules
|
|
3009
|
+
*/
|
|
3010
|
+
getWaasWalletSelfPolicyLayer(requestParameters: GetWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
2987
3011
|
/**
|
|
2988
3012
|
* 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.
|
|
2989
3013
|
* Get a WAAS wallet by address
|
|
@@ -4543,15 +4567,25 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4543
4567
|
*/
|
|
4544
4568
|
updateUserMfaDevice(requestParameters: UpdateUserMfaDeviceRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4545
4569
|
/**
|
|
4546
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
4547
|
-
*
|
|
4570
|
+
* 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.
|
|
4571
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
4548
4572
|
*/
|
|
4549
4573
|
updateWaasSignerSelfPolicyLayerRaw(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4550
4574
|
/**
|
|
4551
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
4552
|
-
*
|
|
4575
|
+
* 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.
|
|
4576
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
4553
4577
|
*/
|
|
4554
4578
|
updateWaasSignerSelfPolicyLayer(requestParameters: UpdateWaasSignerSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4579
|
+
/**
|
|
4580
|
+
* 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.
|
|
4581
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
4582
|
+
*/
|
|
4583
|
+
updateWaasWalletSelfPolicyLayerRaw(requestParameters: UpdateWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4584
|
+
/**
|
|
4585
|
+
* 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.
|
|
4586
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
4587
|
+
*/
|
|
4588
|
+
updateWaasWalletSelfPolicyLayer(requestParameters: UpdateWaasWalletSelfPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4555
4589
|
/**
|
|
4556
4590
|
* Updates the settings for a WAAS wallet
|
|
4557
4591
|
* Update WAAS wallet settings
|
|
@@ -4738,6 +4772,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4738
4772
|
* Options call for this endpoint
|
|
4739
4773
|
*/
|
|
4740
4774
|
waasSignerSelfPolicyLayerOptions(requestParameters: WaasSignerSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4775
|
+
/**
|
|
4776
|
+
* Options call for this endpoint
|
|
4777
|
+
*/
|
|
4778
|
+
waasWalletSelfPolicyLayerOptionsRaw(requestParameters: WaasWalletSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
4779
|
+
/**
|
|
4780
|
+
* Options call for this endpoint
|
|
4781
|
+
*/
|
|
4782
|
+
waasWalletSelfPolicyLayerOptions(requestParameters: WaasWalletSelfPolicyLayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4741
4783
|
/**
|
|
4742
4784
|
* Options call for this endpoint
|
|
4743
4785
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -314,6 +314,7 @@ import '../models/WaasPolicyConstraintCondition.js';
|
|
|
314
314
|
import '../models/WaasPolicyRuleType.js';
|
|
315
315
|
import { WaasPolicyLayerResponseFromJSON } from '../models/WaasPolicyLayerResponse.js';
|
|
316
316
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
317
|
+
import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
317
318
|
import '../models/WaasTransactionBroadcastSubmissionState.js';
|
|
318
319
|
import { WaasTransactionBroadcastRequestToJSON } from '../models/WaasTransactionBroadcastRequest.js';
|
|
319
320
|
import { WaasTransactionBroadcastResponseFromJSON } from '../models/WaasTransactionBroadcastResponse.js';
|
|
@@ -5418,8 +5419,8 @@ class SDKApi extends BaseAPI {
|
|
|
5418
5419
|
return await response.value();
|
|
5419
5420
|
}
|
|
5420
5421
|
/**
|
|
5421
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5422
|
-
* Get
|
|
5422
|
+
* 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.
|
|
5423
|
+
* Get a signer-Layer\'s Rules
|
|
5423
5424
|
*/
|
|
5424
5425
|
async getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5425
5426
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -5429,6 +5430,9 @@ class SDKApi extends BaseAPI {
|
|
|
5429
5430
|
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignerSelfPolicyLayer.');
|
|
5430
5431
|
}
|
|
5431
5432
|
const queryParameters = {};
|
|
5433
|
+
if (requestParameters.signerId !== undefined) {
|
|
5434
|
+
queryParameters['signerId'] = requestParameters.signerId;
|
|
5435
|
+
}
|
|
5432
5436
|
const headerParameters = {};
|
|
5433
5437
|
if (this.configuration && this.configuration.accessToken) {
|
|
5434
5438
|
const token = this.configuration.accessToken;
|
|
@@ -5446,13 +5450,49 @@ class SDKApi extends BaseAPI {
|
|
|
5446
5450
|
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5447
5451
|
}
|
|
5448
5452
|
/**
|
|
5449
|
-
* Returns the Composition Layer content for the calling wallet\'s own active Signer without mutating it.
|
|
5450
|
-
* Get
|
|
5453
|
+
* 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.
|
|
5454
|
+
* Get a signer-Layer\'s Rules
|
|
5451
5455
|
*/
|
|
5452
5456
|
async getWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5453
5457
|
const response = await this.getWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5454
5458
|
return await response.value();
|
|
5455
5459
|
}
|
|
5460
|
+
/**
|
|
5461
|
+
* 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.
|
|
5462
|
+
* Get a wallet-Layer\'s Rules
|
|
5463
|
+
*/
|
|
5464
|
+
async getWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
5465
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5466
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletSelfPolicyLayer.');
|
|
5467
|
+
}
|
|
5468
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
5469
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasWalletSelfPolicyLayer.');
|
|
5470
|
+
}
|
|
5471
|
+
const queryParameters = {};
|
|
5472
|
+
const headerParameters = {};
|
|
5473
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5474
|
+
const token = this.configuration.accessToken;
|
|
5475
|
+
const tokenString = await token("bearerAuth", []);
|
|
5476
|
+
if (tokenString) {
|
|
5477
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5478
|
+
}
|
|
5479
|
+
}
|
|
5480
|
+
const response = await this.request({
|
|
5481
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
5482
|
+
method: 'GET',
|
|
5483
|
+
headers: headerParameters,
|
|
5484
|
+
query: queryParameters,
|
|
5485
|
+
}, initOverrides);
|
|
5486
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
5487
|
+
}
|
|
5488
|
+
/**
|
|
5489
|
+
* 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.
|
|
5490
|
+
* Get a wallet-Layer\'s Rules
|
|
5491
|
+
*/
|
|
5492
|
+
async getWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|
|
5493
|
+
const response = await this.getWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
5494
|
+
return await response.value();
|
|
5495
|
+
}
|
|
5456
5496
|
/**
|
|
5457
5497
|
* 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.
|
|
5458
5498
|
* Get a WAAS wallet by address
|
|
@@ -10691,8 +10731,8 @@ class SDKApi extends BaseAPI {
|
|
|
10691
10731
|
await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
|
|
10692
10732
|
}
|
|
10693
10733
|
/**
|
|
10694
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
10695
|
-
*
|
|
10734
|
+
* 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.
|
|
10735
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
10696
10736
|
*/
|
|
10697
10737
|
async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10698
10738
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -10701,8 +10741,8 @@ class SDKApi extends BaseAPI {
|
|
|
10701
10741
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10702
10742
|
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10703
10743
|
}
|
|
10704
|
-
if (requestParameters.
|
|
10705
|
-
throw new RequiredError('
|
|
10744
|
+
if (requestParameters.waasSignerPolicyLayerUpdateRequest === null || requestParameters.waasSignerPolicyLayerUpdateRequest === undefined) {
|
|
10745
|
+
throw new RequiredError('waasSignerPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasSignerPolicyLayerUpdateRequest was null or undefined when calling updateWaasSignerSelfPolicyLayer.');
|
|
10706
10746
|
}
|
|
10707
10747
|
const queryParameters = {};
|
|
10708
10748
|
const headerParameters = {};
|
|
@@ -10719,18 +10759,59 @@ class SDKApi extends BaseAPI {
|
|
|
10719
10759
|
method: 'PATCH',
|
|
10720
10760
|
headers: headerParameters,
|
|
10721
10761
|
query: queryParameters,
|
|
10722
|
-
body:
|
|
10762
|
+
body: WaasSignerPolicyLayerUpdateRequestToJSON(requestParameters.waasSignerPolicyLayerUpdateRequest),
|
|
10723
10763
|
}, initOverrides);
|
|
10724
10764
|
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10725
10765
|
}
|
|
10726
10766
|
/**
|
|
10727
|
-
* Applies a single per-Rule upsert or remove operation,
|
|
10728
|
-
*
|
|
10767
|
+
* 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.
|
|
10768
|
+
* Create, update, or remove a Rule on a signer-Layer
|
|
10729
10769
|
*/
|
|
10730
10770
|
async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10731
10771
|
const response = await this.updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10732
10772
|
return await response.value();
|
|
10733
10773
|
}
|
|
10774
|
+
/**
|
|
10775
|
+
* 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.
|
|
10776
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
10777
|
+
*/
|
|
10778
|
+
async updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10779
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10780
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10781
|
+
}
|
|
10782
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
10783
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10784
|
+
}
|
|
10785
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10786
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasWalletSelfPolicyLayer.');
|
|
10787
|
+
}
|
|
10788
|
+
const queryParameters = {};
|
|
10789
|
+
const headerParameters = {};
|
|
10790
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10791
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10792
|
+
const token = this.configuration.accessToken;
|
|
10793
|
+
const tokenString = await token("bearerAuth", []);
|
|
10794
|
+
if (tokenString) {
|
|
10795
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10796
|
+
}
|
|
10797
|
+
}
|
|
10798
|
+
const response = await this.request({
|
|
10799
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
10800
|
+
method: 'PATCH',
|
|
10801
|
+
headers: headerParameters,
|
|
10802
|
+
query: queryParameters,
|
|
10803
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10804
|
+
}, initOverrides);
|
|
10805
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10806
|
+
}
|
|
10807
|
+
/**
|
|
10808
|
+
* 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.
|
|
10809
|
+
* Create, update, or remove a Rule on a wallet-Layer
|
|
10810
|
+
*/
|
|
10811
|
+
async updateWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|
|
10812
|
+
const response = await this.updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides);
|
|
10813
|
+
return await response.value();
|
|
10814
|
+
}
|
|
10734
10815
|
/**
|
|
10735
10816
|
* Updates the settings for a WAAS wallet
|
|
10736
10817
|
* Update WAAS wallet settings
|
|
@@ -11341,6 +11422,32 @@ class SDKApi extends BaseAPI {
|
|
|
11341
11422
|
async waasSignerSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11342
11423
|
await this.waasSignerSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11343
11424
|
}
|
|
11425
|
+
/**
|
|
11426
|
+
* Options call for this endpoint
|
|
11427
|
+
*/
|
|
11428
|
+
async waasWalletSelfPolicyLayerOptionsRaw(requestParameters, initOverrides) {
|
|
11429
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11430
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling waasWalletSelfPolicyLayerOptions.');
|
|
11431
|
+
}
|
|
11432
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11433
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling waasWalletSelfPolicyLayerOptions.');
|
|
11434
|
+
}
|
|
11435
|
+
const queryParameters = {};
|
|
11436
|
+
const headerParameters = {};
|
|
11437
|
+
const response = await this.request({
|
|
11438
|
+
path: `/sdk/{environmentId}/waas/{walletId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11439
|
+
method: 'OPTIONS',
|
|
11440
|
+
headers: headerParameters,
|
|
11441
|
+
query: queryParameters,
|
|
11442
|
+
}, initOverrides);
|
|
11443
|
+
return new VoidApiResponse(response);
|
|
11444
|
+
}
|
|
11445
|
+
/**
|
|
11446
|
+
* Options call for this endpoint
|
|
11447
|
+
*/
|
|
11448
|
+
async waasWalletSelfPolicyLayerOptions(requestParameters, initOverrides) {
|
|
11449
|
+
await this.waasWalletSelfPolicyLayerOptionsRaw(requestParameters, initOverrides);
|
|
11450
|
+
}
|
|
11344
11451
|
/**
|
|
11345
11452
|
* Options call for this endpoint
|
|
11346
11453
|
*/
|
package/src/apis/SDKViewsApi.cjs
CHANGED
|
@@ -141,6 +141,7 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
|
141
141
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
142
142
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
143
143
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
144
|
+
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
144
145
|
require('../models/WaasTransactionBroadcastSubmissionState.cjs');
|
|
145
146
|
require('../models/WaasTransactionEncoding.cjs');
|
|
146
147
|
require('../models/WaasTransactionBroadcastStatus.cjs');
|
package/src/apis/SDKViewsApi.js
CHANGED
|
@@ -137,6 +137,7 @@ import '../models/VisitorFilterableFieldsEnum.js';
|
|
|
137
137
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
138
138
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
139
139
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
140
|
+
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
140
141
|
import '../models/WaasTransactionBroadcastSubmissionState.js';
|
|
141
142
|
import '../models/WaasTransactionEncoding.js';
|
|
142
143
|
import '../models/WaasTransactionBroadcastStatus.js';
|
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -150,6 +150,7 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
|
150
150
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
151
151
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
152
152
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
153
|
+
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
153
154
|
require('../models/WaasTransactionBroadcastSubmissionState.cjs');
|
|
154
155
|
require('../models/WaasTransactionEncoding.cjs');
|
|
155
156
|
require('../models/WaasTransactionBroadcastStatus.cjs');
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -146,6 +146,7 @@ import '../models/VisitorFilterableFieldsEnum.js';
|
|
|
146
146
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
147
147
|
import '../models/WaasDelegationCredentialsResponse.js';
|
|
148
148
|
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
149
|
+
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
149
150
|
import '../models/WaasTransactionBroadcastSubmissionState.js';
|
|
150
151
|
import '../models/WaasTransactionEncoding.js';
|
|
151
152
|
import '../models/WaasTransactionBroadcastStatus.js';
|
package/src/apis/SessionsApi.cjs
CHANGED
|
@@ -140,6 +140,7 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
|
140
140
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
141
141
|
require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
142
142
|
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
143
|
+
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
143
144
|
require('../models/WaasTransactionBroadcastSubmissionState.cjs');
|
|
144
145
|
require('../models/WaasTransactionEncoding.cjs');
|
|
145
146
|
require('../models/WaasTransactionBroadcastStatus.cjs');
|