@dynamic-labs/sdk-api 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -903,7 +903,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
903
903
|
await this.broadcastFlowOptionsRaw(requestParameters, initOverrides);
|
|
904
904
|
}
|
|
905
905
|
/**
|
|
906
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
906
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
907
907
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
908
908
|
*/
|
|
909
909
|
async broadcastWaasTransactionRaw(requestParameters, initOverrides) {
|
|
@@ -942,7 +942,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
942
942
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasTransactionBroadcastResponse.WaasTransactionBroadcastResponseFromJSON(jsonValue));
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
945
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
946
946
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
947
947
|
*/
|
|
948
948
|
async broadcastWaasTransaction(requestParameters, initOverrides) {
|
|
@@ -3735,7 +3735,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3735
3735
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3736
3736
|
}
|
|
3737
3737
|
/**
|
|
3738
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3738
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3739
3739
|
* Get the business account\'s account-Layer Rules
|
|
3740
3740
|
*/
|
|
3741
3741
|
async getBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
@@ -3763,7 +3763,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3763
3763
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
3764
3764
|
}
|
|
3765
3765
|
/**
|
|
3766
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3766
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3767
3767
|
* Get the business account\'s account-Layer Rules
|
|
3768
3768
|
*/
|
|
3769
3769
|
async getBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
@@ -10849,6 +10849,47 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10849
10849
|
async updateAdditionalAddressesOptions(requestParameters, initOverrides) {
|
|
10850
10850
|
await this.updateAdditionalAddressesOptionsRaw(requestParameters, initOverrides);
|
|
10851
10851
|
}
|
|
10852
|
+
/**
|
|
10853
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10854
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10855
|
+
*/
|
|
10856
|
+
async updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10857
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10858
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10859
|
+
}
|
|
10860
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10861
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10862
|
+
}
|
|
10863
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10864
|
+
throw new runtime.RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10865
|
+
}
|
|
10866
|
+
const queryParameters = {};
|
|
10867
|
+
const headerParameters = {};
|
|
10868
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10869
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10870
|
+
const token = this.configuration.accessToken;
|
|
10871
|
+
const tokenString = await token("bearerAuth", []);
|
|
10872
|
+
if (tokenString) {
|
|
10873
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10874
|
+
}
|
|
10875
|
+
}
|
|
10876
|
+
const response = await this.request({
|
|
10877
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10878
|
+
method: 'PATCH',
|
|
10879
|
+
headers: headerParameters,
|
|
10880
|
+
query: queryParameters,
|
|
10881
|
+
body: WaasPolicyLayerUpdateRequest.WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10882
|
+
}, initOverrides);
|
|
10883
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10884
|
+
}
|
|
10885
|
+
/**
|
|
10886
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10887
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10888
|
+
*/
|
|
10889
|
+
async updateBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
10890
|
+
const response = await this.updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides);
|
|
10891
|
+
return await response.value();
|
|
10892
|
+
}
|
|
10852
10893
|
/**
|
|
10853
10894
|
* Updates the V2 recovery email address for the authenticated user.
|
|
10854
10895
|
* Update a user\'s V2 recovery email
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -1382,6 +1382,11 @@ export interface UpdateAdditionalAddressesOptionsRequest {
|
|
|
1382
1382
|
environmentId: string;
|
|
1383
1383
|
walletId: string;
|
|
1384
1384
|
}
|
|
1385
|
+
export interface UpdateBusinessAccountPolicyLayerRequest {
|
|
1386
|
+
environmentId: string;
|
|
1387
|
+
businessAccountId: string;
|
|
1388
|
+
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
1389
|
+
}
|
|
1385
1390
|
export interface UpdateEmbeddedWalletRecoveryEmailRequest {
|
|
1386
1391
|
environmentId: string;
|
|
1387
1392
|
updateRecoveryEmailRequest: UpdateRecoveryEmailRequest;
|
|
@@ -1691,12 +1696,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1691
1696
|
*/
|
|
1692
1697
|
broadcastFlowOptions(requestParameters: BroadcastFlowOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1693
1698
|
/**
|
|
1694
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
1699
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
1695
1700
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
1696
1701
|
*/
|
|
1697
1702
|
broadcastWaasTransactionRaw(requestParameters: BroadcastWaasTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasTransactionBroadcastResponse>>;
|
|
1698
1703
|
/**
|
|
1699
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
1704
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
1700
1705
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
1701
1706
|
*/
|
|
1702
1707
|
broadcastWaasTransaction(requestParameters: BroadcastWaasTransactionRequest, initOverrides?: RequestInit): Promise<WaasTransactionBroadcastResponse>;
|
|
@@ -2513,12 +2518,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2513
2518
|
*/
|
|
2514
2519
|
getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2515
2520
|
/**
|
|
2516
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
2521
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
2517
2522
|
* Get the business account\'s account-Layer Rules
|
|
2518
2523
|
*/
|
|
2519
2524
|
getBusinessAccountPolicyLayerRaw(requestParameters: GetBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
2520
2525
|
/**
|
|
2521
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
2526
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
2522
2527
|
* Get the business account\'s account-Layer Rules
|
|
2523
2528
|
*/
|
|
2524
2529
|
getBusinessAccountPolicyLayer(requestParameters: GetBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
@@ -4650,6 +4655,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4650
4655
|
* Options call for this endpoint
|
|
4651
4656
|
*/
|
|
4652
4657
|
updateAdditionalAddressesOptions(requestParameters: UpdateAdditionalAddressesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4658
|
+
/**
|
|
4659
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
4660
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
4661
|
+
*/
|
|
4662
|
+
updateBusinessAccountPolicyLayerRaw(requestParameters: UpdateBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4663
|
+
/**
|
|
4664
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
4665
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
4666
|
+
*/
|
|
4667
|
+
updateBusinessAccountPolicyLayer(requestParameters: UpdateBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4653
4668
|
/**
|
|
4654
4669
|
* Updates the V2 recovery email address for the authenticated user.
|
|
4655
4670
|
* Update a user\'s V2 recovery email
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -899,7 +899,7 @@ class SDKApi extends BaseAPI {
|
|
|
899
899
|
await this.broadcastFlowOptionsRaw(requestParameters, initOverrides);
|
|
900
900
|
}
|
|
901
901
|
/**
|
|
902
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
902
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
903
903
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
904
904
|
*/
|
|
905
905
|
async broadcastWaasTransactionRaw(requestParameters, initOverrides) {
|
|
@@ -938,7 +938,7 @@ class SDKApi extends BaseAPI {
|
|
|
938
938
|
return new JSONApiResponse(response, (jsonValue) => WaasTransactionBroadcastResponseFromJSON(jsonValue));
|
|
939
939
|
}
|
|
940
940
|
/**
|
|
941
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
941
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
942
942
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
943
943
|
*/
|
|
944
944
|
async broadcastWaasTransaction(requestParameters, initOverrides) {
|
|
@@ -3731,7 +3731,7 @@ class SDKApi extends BaseAPI {
|
|
|
3731
3731
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3732
3732
|
}
|
|
3733
3733
|
/**
|
|
3734
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3734
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3735
3735
|
* Get the business account\'s account-Layer Rules
|
|
3736
3736
|
*/
|
|
3737
3737
|
async getBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
@@ -3759,7 +3759,7 @@ class SDKApi extends BaseAPI {
|
|
|
3759
3759
|
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
3760
3760
|
}
|
|
3761
3761
|
/**
|
|
3762
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3762
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3763
3763
|
* Get the business account\'s account-Layer Rules
|
|
3764
3764
|
*/
|
|
3765
3765
|
async getBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
@@ -10845,6 +10845,47 @@ class SDKApi extends BaseAPI {
|
|
|
10845
10845
|
async updateAdditionalAddressesOptions(requestParameters, initOverrides) {
|
|
10846
10846
|
await this.updateAdditionalAddressesOptionsRaw(requestParameters, initOverrides);
|
|
10847
10847
|
}
|
|
10848
|
+
/**
|
|
10849
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10850
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10851
|
+
*/
|
|
10852
|
+
async updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10853
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10854
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10855
|
+
}
|
|
10856
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10857
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10858
|
+
}
|
|
10859
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10860
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10861
|
+
}
|
|
10862
|
+
const queryParameters = {};
|
|
10863
|
+
const headerParameters = {};
|
|
10864
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10865
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10866
|
+
const token = this.configuration.accessToken;
|
|
10867
|
+
const tokenString = await token("bearerAuth", []);
|
|
10868
|
+
if (tokenString) {
|
|
10869
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10870
|
+
}
|
|
10871
|
+
}
|
|
10872
|
+
const response = await this.request({
|
|
10873
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10874
|
+
method: 'PATCH',
|
|
10875
|
+
headers: headerParameters,
|
|
10876
|
+
query: queryParameters,
|
|
10877
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10878
|
+
}, initOverrides);
|
|
10879
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10880
|
+
}
|
|
10881
|
+
/**
|
|
10882
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10883
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10884
|
+
*/
|
|
10885
|
+
async updateBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
10886
|
+
const response = await this.updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides);
|
|
10887
|
+
return await response.value();
|
|
10888
|
+
}
|
|
10848
10889
|
/**
|
|
10849
10890
|
* Updates the V2 recovery email address for the authenticated user.
|
|
10850
10891
|
* Update a user\'s V2 recovery email
|
|
@@ -28,7 +28,7 @@ export interface WaasTransactionBroadcastRequest {
|
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof WaasTransactionBroadcastRequest
|
|
30
30
|
*/
|
|
31
|
-
networkId: string
|
|
31
|
+
networkId: string;
|
|
32
32
|
/**
|
|
33
33
|
* Immutable signed transaction payload, encoded per `encoding`.
|
|
34
34
|
* @type {string}
|