@dynamic-labs/sdk-api 0.0.614 → 0.0.615
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
|
@@ -2630,6 +2630,42 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2630
2630
|
yield this.globalWalletsSettingsOptionsRaw(requestParameters, initOverrides);
|
|
2631
2631
|
});
|
|
2632
2632
|
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Hard delete the authenticated user
|
|
2635
|
+
* Hard delete a user
|
|
2636
|
+
*/
|
|
2637
|
+
hardDeleteUserRaw(requestParameters, initOverrides) {
|
|
2638
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2639
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2640
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling hardDeleteUser.');
|
|
2641
|
+
}
|
|
2642
|
+
const queryParameters = {};
|
|
2643
|
+
const headerParameters = {};
|
|
2644
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2645
|
+
const token = this.configuration.accessToken;
|
|
2646
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2647
|
+
if (tokenString) {
|
|
2648
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
const response = yield this.request({
|
|
2652
|
+
path: `/sdk/{environmentId}/users`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2653
|
+
method: 'DELETE',
|
|
2654
|
+
headers: headerParameters,
|
|
2655
|
+
query: queryParameters,
|
|
2656
|
+
}, initOverrides);
|
|
2657
|
+
return new runtime.VoidApiResponse(response);
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Hard delete the authenticated user
|
|
2662
|
+
* Hard delete a user
|
|
2663
|
+
*/
|
|
2664
|
+
hardDeleteUser(requestParameters, initOverrides) {
|
|
2665
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2666
|
+
yield this.hardDeleteUserRaw(requestParameters, initOverrides);
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2633
2669
|
/**
|
|
2634
2670
|
* Import a private key to create a waas account
|
|
2635
2671
|
* Import an existing private key to create a waas account
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -275,6 +275,9 @@ export interface GetUserPasskeysRequest {
|
|
|
275
275
|
export interface GlobalWalletsSettingsOptionsRequest {
|
|
276
276
|
environmentId: string;
|
|
277
277
|
}
|
|
278
|
+
export interface HardDeleteUserRequest {
|
|
279
|
+
environmentId: string;
|
|
280
|
+
}
|
|
278
281
|
export interface ImportPrivateKeyRequest {
|
|
279
282
|
environmentId: string;
|
|
280
283
|
importWaasPrivateKeyRequest: ImportWaasPrivateKeyRequest;
|
|
@@ -1317,6 +1320,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1317
1320
|
* Options call for this endpoint
|
|
1318
1321
|
*/
|
|
1319
1322
|
globalWalletsSettingsOptions(requestParameters: GlobalWalletsSettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Hard delete the authenticated user
|
|
1325
|
+
* Hard delete a user
|
|
1326
|
+
*/
|
|
1327
|
+
hardDeleteUserRaw(requestParameters: HardDeleteUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Hard delete the authenticated user
|
|
1330
|
+
* Hard delete a user
|
|
1331
|
+
*/
|
|
1332
|
+
hardDeleteUser(requestParameters: HardDeleteUserRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1320
1333
|
/**
|
|
1321
1334
|
* Import a private key to create a waas account
|
|
1322
1335
|
* Import an existing private key to create a waas account
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -2626,6 +2626,42 @@ class SDKApi extends BaseAPI {
|
|
|
2626
2626
|
yield this.globalWalletsSettingsOptionsRaw(requestParameters, initOverrides);
|
|
2627
2627
|
});
|
|
2628
2628
|
}
|
|
2629
|
+
/**
|
|
2630
|
+
* Hard delete the authenticated user
|
|
2631
|
+
* Hard delete a user
|
|
2632
|
+
*/
|
|
2633
|
+
hardDeleteUserRaw(requestParameters, initOverrides) {
|
|
2634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2635
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2636
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling hardDeleteUser.');
|
|
2637
|
+
}
|
|
2638
|
+
const queryParameters = {};
|
|
2639
|
+
const headerParameters = {};
|
|
2640
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2641
|
+
const token = this.configuration.accessToken;
|
|
2642
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2643
|
+
if (tokenString) {
|
|
2644
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
const response = yield this.request({
|
|
2648
|
+
path: `/sdk/{environmentId}/users`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2649
|
+
method: 'DELETE',
|
|
2650
|
+
headers: headerParameters,
|
|
2651
|
+
query: queryParameters,
|
|
2652
|
+
}, initOverrides);
|
|
2653
|
+
return new VoidApiResponse(response);
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
/**
|
|
2657
|
+
* Hard delete the authenticated user
|
|
2658
|
+
* Hard delete a user
|
|
2659
|
+
*/
|
|
2660
|
+
hardDeleteUser(requestParameters, initOverrides) {
|
|
2661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2662
|
+
yield this.hardDeleteUserRaw(requestParameters, initOverrides);
|
|
2663
|
+
});
|
|
2664
|
+
}
|
|
2629
2665
|
/**
|
|
2630
2666
|
* Import a private key to create a waas account
|
|
2631
2667
|
* Import an existing private key to create a waas account
|
|
@@ -10,13 +10,13 @@ function ImportWaasPrivateKeyRequestFromJSON(json) {
|
|
|
10
10
|
return ImportWaasPrivateKeyRequestFromJSONTyped(json);
|
|
11
11
|
}
|
|
12
12
|
function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if (json === undefined || json === null) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
14
|
return json;
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
|
-
chain: ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
18
|
-
clientKeygenIds: json['clientKeygenIds'],
|
|
19
|
-
thresholdSignatureScheme: ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
17
|
+
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
18
|
+
'clientKeygenIds': json['clientKeygenIds'],
|
|
19
|
+
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -27,9 +27,9 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
|
-
chain: ChainEnum.ChainEnumToJSON(value.chain),
|
|
31
|
-
clientKeygenIds: value.clientKeygenIds,
|
|
32
|
-
thresholdSignatureScheme: ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
30
|
+
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
31
|
+
'clientKeygenIds': value.clientKeygenIds,
|
|
32
|
+
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -6,13 +6,13 @@ function ImportWaasPrivateKeyRequestFromJSON(json) {
|
|
|
6
6
|
return ImportWaasPrivateKeyRequestFromJSONTyped(json);
|
|
7
7
|
}
|
|
8
8
|
function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
-
if (json === undefined || json === null) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
10
|
return json;
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
|
-
chain: ChainEnumFromJSON(json['chain']),
|
|
14
|
-
clientKeygenIds: json['clientKeygenIds'],
|
|
15
|
-
thresholdSignatureScheme: ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
13
|
+
'chain': ChainEnumFromJSON(json['chain']),
|
|
14
|
+
'clientKeygenIds': json['clientKeygenIds'],
|
|
15
|
+
'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -23,9 +23,9 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
|
-
chain: ChainEnumToJSON(value.chain),
|
|
27
|
-
clientKeygenIds: value.clientKeygenIds,
|
|
28
|
-
thresholdSignatureScheme: ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
26
|
+
'chain': ChainEnumToJSON(value.chain),
|
|
27
|
+
'clientKeygenIds': value.clientKeygenIds,
|
|
28
|
+
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|