@dynamic-labs/sdk-api-core 0.0.1012 → 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/src/apis/SDKApi.d.ts
CHANGED
|
@@ -993,6 +993,16 @@ export interface RevokeAleoScannerRequest {
|
|
|
993
993
|
export interface RevokeAleoScannerOptionsRequest {
|
|
994
994
|
environmentId: string;
|
|
995
995
|
}
|
|
996
|
+
export interface RevokeDelegatedShareSetRequest {
|
|
997
|
+
environmentId: string;
|
|
998
|
+
walletId: string;
|
|
999
|
+
shareSetId: string;
|
|
1000
|
+
}
|
|
1001
|
+
export interface RevokeDelegatedShareSetOptionsRequest {
|
|
1002
|
+
environmentId: string;
|
|
1003
|
+
walletId: string;
|
|
1004
|
+
shareSetId: string;
|
|
1005
|
+
}
|
|
996
1006
|
export interface RevokeSessionRequest {
|
|
997
1007
|
environmentId: string;
|
|
998
1008
|
}
|
|
@@ -3527,6 +3537,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3527
3537
|
* Options call for this endpoint
|
|
3528
3538
|
*/
|
|
3529
3539
|
revokeAleoScannerOptions(requestParameters: RevokeAleoScannerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3540
|
+
/**
|
|
3541
|
+
* 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.
|
|
3542
|
+
* Revoke a delegated share set
|
|
3543
|
+
*/
|
|
3544
|
+
revokeDelegatedShareSetRaw(requestParameters: RevokeDelegatedShareSetRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3545
|
+
/**
|
|
3546
|
+
* 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.
|
|
3547
|
+
* Revoke a delegated share set
|
|
3548
|
+
*/
|
|
3549
|
+
revokeDelegatedShareSet(requestParameters: RevokeDelegatedShareSetRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3550
|
+
/**
|
|
3551
|
+
* Options call for this endpoint
|
|
3552
|
+
*/
|
|
3553
|
+
revokeDelegatedShareSetOptionsRaw(requestParameters: RevokeDelegatedShareSetOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3554
|
+
/**
|
|
3555
|
+
* Options call for this endpoint
|
|
3556
|
+
*/
|
|
3557
|
+
revokeDelegatedShareSetOptions(requestParameters: RevokeDelegatedShareSetOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3530
3558
|
/**
|
|
3531
3559
|
* Revokes the current user session and invalidates the JWT.
|
|
3532
3560
|
* Revoke a session
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -7829,6 +7829,73 @@ class SDKApi extends BaseAPI {
|
|
|
7829
7829
|
async revokeAleoScannerOptions(requestParameters, initOverrides) {
|
|
7830
7830
|
await this.revokeAleoScannerOptionsRaw(requestParameters, initOverrides);
|
|
7831
7831
|
}
|
|
7832
|
+
/**
|
|
7833
|
+
* 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.
|
|
7834
|
+
* Revoke a delegated share set
|
|
7835
|
+
*/
|
|
7836
|
+
async revokeDelegatedShareSetRaw(requestParameters, initOverrides) {
|
|
7837
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7838
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling revokeDelegatedShareSet.');
|
|
7839
|
+
}
|
|
7840
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7841
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling revokeDelegatedShareSet.');
|
|
7842
|
+
}
|
|
7843
|
+
if (requestParameters.shareSetId === null || requestParameters.shareSetId === undefined) {
|
|
7844
|
+
throw new RequiredError('shareSetId', 'Required parameter requestParameters.shareSetId was null or undefined when calling revokeDelegatedShareSet.');
|
|
7845
|
+
}
|
|
7846
|
+
const queryParameters = {};
|
|
7847
|
+
const headerParameters = {};
|
|
7848
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7849
|
+
const token = this.configuration.accessToken;
|
|
7850
|
+
const tokenString = await token("bearerAuth", []);
|
|
7851
|
+
if (tokenString) {
|
|
7852
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7853
|
+
}
|
|
7854
|
+
}
|
|
7855
|
+
const response = await this.request({
|
|
7856
|
+
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))),
|
|
7857
|
+
method: 'DELETE',
|
|
7858
|
+
headers: headerParameters,
|
|
7859
|
+
query: queryParameters,
|
|
7860
|
+
}, initOverrides);
|
|
7861
|
+
return new VoidApiResponse(response);
|
|
7862
|
+
}
|
|
7863
|
+
/**
|
|
7864
|
+
* 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.
|
|
7865
|
+
* Revoke a delegated share set
|
|
7866
|
+
*/
|
|
7867
|
+
async revokeDelegatedShareSet(requestParameters, initOverrides) {
|
|
7868
|
+
await this.revokeDelegatedShareSetRaw(requestParameters, initOverrides);
|
|
7869
|
+
}
|
|
7870
|
+
/**
|
|
7871
|
+
* Options call for this endpoint
|
|
7872
|
+
*/
|
|
7873
|
+
async revokeDelegatedShareSetOptionsRaw(requestParameters, initOverrides) {
|
|
7874
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7875
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling revokeDelegatedShareSetOptions.');
|
|
7876
|
+
}
|
|
7877
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
7878
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling revokeDelegatedShareSetOptions.');
|
|
7879
|
+
}
|
|
7880
|
+
if (requestParameters.shareSetId === null || requestParameters.shareSetId === undefined) {
|
|
7881
|
+
throw new RequiredError('shareSetId', 'Required parameter requestParameters.shareSetId was null or undefined when calling revokeDelegatedShareSetOptions.');
|
|
7882
|
+
}
|
|
7883
|
+
const queryParameters = {};
|
|
7884
|
+
const headerParameters = {};
|
|
7885
|
+
const response = await this.request({
|
|
7886
|
+
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))),
|
|
7887
|
+
method: 'OPTIONS',
|
|
7888
|
+
headers: headerParameters,
|
|
7889
|
+
query: queryParameters,
|
|
7890
|
+
}, initOverrides);
|
|
7891
|
+
return new VoidApiResponse(response);
|
|
7892
|
+
}
|
|
7893
|
+
/**
|
|
7894
|
+
* Options call for this endpoint
|
|
7895
|
+
*/
|
|
7896
|
+
async revokeDelegatedShareSetOptions(requestParameters, initOverrides) {
|
|
7897
|
+
await this.revokeDelegatedShareSetOptionsRaw(requestParameters, initOverrides);
|
|
7898
|
+
}
|
|
7832
7899
|
/**
|
|
7833
7900
|
* Revokes the current user session and invalidates the JWT.
|
|
7834
7901
|
* Revoke a session
|