@dynamic-labs/sdk-api 0.0.613 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.613",
3
+ "version": "0.0.615",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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
@@ -2639,9 +2675,6 @@ class SDKApi extends runtime.BaseAPI {
2639
2675
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2640
2676
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
2641
2677
  }
2642
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2643
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
2644
- }
2645
2678
  if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
2646
2679
  throw new runtime.RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
2647
2680
  }
@@ -2656,7 +2689,7 @@ class SDKApi extends runtime.BaseAPI {
2656
2689
  }
2657
2690
  }
2658
2691
  const response = yield this.request({
2659
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2692
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2660
2693
  method: 'POST',
2661
2694
  headers: headerParameters,
2662
2695
  query: queryParameters,
@@ -2683,13 +2716,10 @@ class SDKApi extends runtime.BaseAPI {
2683
2716
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2684
2717
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
2685
2718
  }
2686
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2687
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
2688
- }
2689
2719
  const queryParameters = {};
2690
2720
  const headerParameters = {};
2691
2721
  const response = yield this.request({
2692
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2722
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2693
2723
  method: 'OPTIONS',
2694
2724
  headers: headerParameters,
2695
2725
  query: queryParameters,
@@ -275,14 +275,15 @@ 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
- walletId: string;
281
283
  importWaasPrivateKeyRequest: ImportWaasPrivateKeyRequest;
282
284
  }
283
285
  export interface ImportPrivateKeyOptionsRequest {
284
286
  environmentId: string;
285
- walletId: string;
286
287
  }
287
288
  export interface InitAuthRequest {
288
289
  environmentId: string;
@@ -1319,6 +1320,16 @@ export declare class SDKApi extends runtime.BaseAPI {
1319
1320
  * Options call for this endpoint
1320
1321
  */
1321
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>;
1322
1333
  /**
1323
1334
  * Import a private key to create a waas account
1324
1335
  * Import an existing private key to create a waas account
@@ -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
@@ -2635,9 +2671,6 @@ class SDKApi extends BaseAPI {
2635
2671
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2636
2672
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
2637
2673
  }
2638
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2639
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
2640
- }
2641
2674
  if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
2642
2675
  throw new RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
2643
2676
  }
@@ -2652,7 +2685,7 @@ class SDKApi extends BaseAPI {
2652
2685
  }
2653
2686
  }
2654
2687
  const response = yield this.request({
2655
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2688
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2656
2689
  method: 'POST',
2657
2690
  headers: headerParameters,
2658
2691
  query: queryParameters,
@@ -2679,13 +2712,10 @@ class SDKApi extends BaseAPI {
2679
2712
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2680
2713
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
2681
2714
  }
2682
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2683
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
2684
- }
2685
2715
  const queryParameters = {};
2686
2716
  const headerParameters = {};
2687
2717
  const response = yield this.request({
2688
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2718
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2689
2719
  method: 'OPTIONS',
2690
2720
  headers: headerParameters,
2691
2721
  query: queryParameters,
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var ChainEnum = require('./ChainEnum.cjs');
6
+ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function ImportWaasPrivateKeyRequestFromJSON(json) {
@@ -15,6 +16,7 @@ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
15
16
  return {
16
17
  'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
17
18
  'clientKeygenIds': json['clientKeygenIds'],
19
+ 'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
18
20
  };
19
21
  }
20
22
  function ImportWaasPrivateKeyRequestToJSON(value) {
@@ -27,6 +29,7 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
27
29
  return {
28
30
  'chain': ChainEnum.ChainEnumToJSON(value.chain),
29
31
  'clientKeygenIds': value.clientKeygenIds,
32
+ 'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
30
33
  };
31
34
  }
32
35
 
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ChainEnum } from './ChainEnum';
13
+ import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,12 @@ export interface ImportWaasPrivateKeyRequest {
28
29
  * @memberof ImportWaasPrivateKeyRequest
29
30
  */
30
31
  clientKeygenIds: Array<string>;
32
+ /**
33
+ *
34
+ * @type {ThresholdSignatureScheme}
35
+ * @memberof ImportWaasPrivateKeyRequest
36
+ */
37
+ thresholdSignatureScheme: ThresholdSignatureScheme;
31
38
  }
32
39
  export declare function ImportWaasPrivateKeyRequestFromJSON(json: any): ImportWaasPrivateKeyRequest;
33
40
  export declare function ImportWaasPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportWaasPrivateKeyRequest;
@@ -1,4 +1,5 @@
1
1
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
+ import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function ImportWaasPrivateKeyRequestFromJSON(json) {
@@ -11,6 +12,7 @@ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
11
12
  return {
12
13
  'chain': ChainEnumFromJSON(json['chain']),
13
14
  'clientKeygenIds': json['clientKeygenIds'],
15
+ 'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
14
16
  };
15
17
  }
16
18
  function ImportWaasPrivateKeyRequestToJSON(value) {
@@ -23,6 +25,7 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
23
25
  return {
24
26
  'chain': ChainEnumToJSON(value.chain),
25
27
  'clientKeygenIds': value.clientKeygenIds,
28
+ 'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
26
29
  };
27
30
  }
28
31