@dynamic-labs/sdk-api-core 0.0.1011 → 0.0.1013
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apis/SDKApi.cjs +67 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +28 -0
- package/src/apis/SDKApi.js +67 -0
- package/src/apis/SDKApi.js.map +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -7833,6 +7833,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
7833
7833
|
async revokeAleoScannerOptions(requestParameters, initOverrides) {
|
|
7834
7834
|
await this.revokeAleoScannerOptionsRaw(requestParameters, initOverrides);
|
|
7835
7835
|
}
|
|
7836
|
+
/**
|
|
7837
|
+
* Soft-deletes the delegated `WaasWallets` row identified by `shareSetId` and its associated key shares. The rootUser share set is not touched. Used by the FF=on share-set-delegation revoke flow to take down delegation without running an MPC ceremony. Returns 204 on success, 404 when the share set is not owned by the wallet or has already been deleted.
|
|
7838
|
+
* Revoke a delegated share set
|
|
7839
|
+
*/
|
|
7840
|
+
async revokeDelegatedShareSetRaw(requestParameters, initOverrides) {
|
|
7841
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7842
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling revokeDelegatedShareSet.');
|
|
7843
|
+
}
|
|
7844
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7845
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling revokeDelegatedShareSet.');
|
|
7846
|
+
}
|
|
7847
|
+
if (requestParameters.shareSetId === null || requestParameters.shareSetId === undefined) {
|
|
7848
|
+
throw new runtime.RequiredError('shareSetId', 'Required parameter requestParameters.shareSetId was null or undefined when calling revokeDelegatedShareSet.');
|
|
7849
|
+
}
|
|
7850
|
+
const queryParameters = {};
|
|
7851
|
+
const headerParameters = {};
|
|
7852
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7853
|
+
const token = this.configuration.accessToken;
|
|
7854
|
+
const tokenString = await token("bearerAuth", []);
|
|
7855
|
+
if (tokenString) {
|
|
7856
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7857
|
+
}
|
|
7858
|
+
}
|
|
7859
|
+
const response = await this.request({
|
|
7860
|
+
path: `/sdk/{environmentId}/waas/{walletId}/delegatedAccess/{shareSetId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"shareSetId"}}`, encodeURIComponent(String(requestParameters.shareSetId))),
|
|
7861
|
+
method: 'DELETE',
|
|
7862
|
+
headers: headerParameters,
|
|
7863
|
+
query: queryParameters,
|
|
7864
|
+
}, initOverrides);
|
|
7865
|
+
return new runtime.VoidApiResponse(response);
|
|
7866
|
+
}
|
|
7867
|
+
/**
|
|
7868
|
+
* Soft-deletes the delegated `WaasWallets` row identified by `shareSetId` and its associated key shares. The rootUser share set is not touched. Used by the FF=on share-set-delegation revoke flow to take down delegation without running an MPC ceremony. Returns 204 on success, 404 when the share set is not owned by the wallet or has already been deleted.
|
|
7869
|
+
* Revoke a delegated share set
|
|
7870
|
+
*/
|
|
7871
|
+
async revokeDelegatedShareSet(requestParameters, initOverrides) {
|
|
7872
|
+
await this.revokeDelegatedShareSetRaw(requestParameters, initOverrides);
|
|
7873
|
+
}
|
|
7874
|
+
/**
|
|
7875
|
+
* Options call for this endpoint
|
|
7876
|
+
*/
|
|
7877
|
+
async revokeDelegatedShareSetOptionsRaw(requestParameters, initOverrides) {
|
|
7878
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7879
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling revokeDelegatedShareSetOptions.');
|
|
7880
|
+
}
|
|
7881
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7882
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling revokeDelegatedShareSetOptions.');
|
|
7883
|
+
}
|
|
7884
|
+
if (requestParameters.shareSetId === null || requestParameters.shareSetId === undefined) {
|
|
7885
|
+
throw new runtime.RequiredError('shareSetId', 'Required parameter requestParameters.shareSetId was null or undefined when calling revokeDelegatedShareSetOptions.');
|
|
7886
|
+
}
|
|
7887
|
+
const queryParameters = {};
|
|
7888
|
+
const headerParameters = {};
|
|
7889
|
+
const response = await this.request({
|
|
7890
|
+
path: `/sdk/{environmentId}/waas/{walletId}/delegatedAccess/{shareSetId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"shareSetId"}}`, encodeURIComponent(String(requestParameters.shareSetId))),
|
|
7891
|
+
method: 'OPTIONS',
|
|
7892
|
+
headers: headerParameters,
|
|
7893
|
+
query: queryParameters,
|
|
7894
|
+
}, initOverrides);
|
|
7895
|
+
return new runtime.VoidApiResponse(response);
|
|
7896
|
+
}
|
|
7897
|
+
/**
|
|
7898
|
+
* Options call for this endpoint
|
|
7899
|
+
*/
|
|
7900
|
+
async revokeDelegatedShareSetOptions(requestParameters, initOverrides) {
|
|
7901
|
+
await this.revokeDelegatedShareSetOptionsRaw(requestParameters, initOverrides);
|
|
7902
|
+
}
|
|
7836
7903
|
/**
|
|
7837
7904
|
* Revokes the current user session and invalidates the JWT.
|
|
7838
7905
|
* Revoke a session
|