@dynamic-labs/sdk-api-core 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-core",
3
- "version": "0.0.613",
3
+ "version": "0.0.615",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2563,6 +2563,42 @@ class SDKApi extends runtime.BaseAPI {
2563
2563
  yield this.globalWalletsSettingsOptionsRaw(requestParameters, initOverrides);
2564
2564
  });
2565
2565
  }
2566
+ /**
2567
+ * Hard delete the authenticated user
2568
+ * Hard delete a user
2569
+ */
2570
+ hardDeleteUserRaw(requestParameters, initOverrides) {
2571
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2572
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2573
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling hardDeleteUser.');
2574
+ }
2575
+ const queryParameters = {};
2576
+ const headerParameters = {};
2577
+ if (this.configuration && this.configuration.accessToken) {
2578
+ const token = this.configuration.accessToken;
2579
+ const tokenString = yield token("bearerAuth", []);
2580
+ if (tokenString) {
2581
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2582
+ }
2583
+ }
2584
+ const response = yield this.request({
2585
+ path: `/sdk/{environmentId}/users`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2586
+ method: 'DELETE',
2587
+ headers: headerParameters,
2588
+ query: queryParameters,
2589
+ }, initOverrides);
2590
+ return new runtime.VoidApiResponse(response);
2591
+ });
2592
+ }
2593
+ /**
2594
+ * Hard delete the authenticated user
2595
+ * Hard delete a user
2596
+ */
2597
+ hardDeleteUser(requestParameters, initOverrides) {
2598
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2599
+ yield this.hardDeleteUserRaw(requestParameters, initOverrides);
2600
+ });
2601
+ }
2566
2602
  /**
2567
2603
  * Import a private key to create a waas account
2568
2604
  * Import an existing private key to create a waas account
@@ -2572,9 +2608,6 @@ class SDKApi extends runtime.BaseAPI {
2572
2608
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2573
2609
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
2574
2610
  }
2575
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2576
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
2577
- }
2578
2611
  if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
2579
2612
  throw new runtime.RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
2580
2613
  }
@@ -2589,7 +2622,7 @@ class SDKApi extends runtime.BaseAPI {
2589
2622
  }
2590
2623
  }
2591
2624
  const response = yield this.request({
2592
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2625
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2593
2626
  method: 'POST',
2594
2627
  headers: headerParameters,
2595
2628
  query: queryParameters,
@@ -2616,13 +2649,10 @@ class SDKApi extends runtime.BaseAPI {
2616
2649
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2617
2650
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
2618
2651
  }
2619
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2620
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
2621
- }
2622
2652
  const queryParameters = {};
2623
2653
  const headerParameters = {};
2624
2654
  const response = yield this.request({
2625
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2655
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2626
2656
  method: 'OPTIONS',
2627
2657
  headers: headerParameters,
2628
2658
  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;
@@ -1303,6 +1304,16 @@ export declare class SDKApi extends runtime.BaseAPI {
1303
1304
  * Options call for this endpoint
1304
1305
  */
1305
1306
  globalWalletsSettingsOptions(requestParameters: GlobalWalletsSettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1307
+ /**
1308
+ * Hard delete the authenticated user
1309
+ * Hard delete a user
1310
+ */
1311
+ hardDeleteUserRaw(requestParameters: HardDeleteUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1312
+ /**
1313
+ * Hard delete the authenticated user
1314
+ * Hard delete a user
1315
+ */
1316
+ hardDeleteUser(requestParameters: HardDeleteUserRequest, initOverrides?: RequestInit): Promise<void>;
1306
1317
  /**
1307
1318
  * Import a private key to create a waas account
1308
1319
  * Import an existing private key to create a waas account
@@ -2559,6 +2559,42 @@ class SDKApi extends BaseAPI {
2559
2559
  yield this.globalWalletsSettingsOptionsRaw(requestParameters, initOverrides);
2560
2560
  });
2561
2561
  }
2562
+ /**
2563
+ * Hard delete the authenticated user
2564
+ * Hard delete a user
2565
+ */
2566
+ hardDeleteUserRaw(requestParameters, initOverrides) {
2567
+ return __awaiter(this, void 0, void 0, function* () {
2568
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2569
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling hardDeleteUser.');
2570
+ }
2571
+ const queryParameters = {};
2572
+ const headerParameters = {};
2573
+ if (this.configuration && this.configuration.accessToken) {
2574
+ const token = this.configuration.accessToken;
2575
+ const tokenString = yield token("bearerAuth", []);
2576
+ if (tokenString) {
2577
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2578
+ }
2579
+ }
2580
+ const response = yield this.request({
2581
+ path: `/sdk/{environmentId}/users`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2582
+ method: 'DELETE',
2583
+ headers: headerParameters,
2584
+ query: queryParameters,
2585
+ }, initOverrides);
2586
+ return new VoidApiResponse(response);
2587
+ });
2588
+ }
2589
+ /**
2590
+ * Hard delete the authenticated user
2591
+ * Hard delete a user
2592
+ */
2593
+ hardDeleteUser(requestParameters, initOverrides) {
2594
+ return __awaiter(this, void 0, void 0, function* () {
2595
+ yield this.hardDeleteUserRaw(requestParameters, initOverrides);
2596
+ });
2597
+ }
2562
2598
  /**
2563
2599
  * Import a private key to create a waas account
2564
2600
  * Import an existing private key to create a waas account
@@ -2568,9 +2604,6 @@ class SDKApi extends BaseAPI {
2568
2604
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2569
2605
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
2570
2606
  }
2571
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2572
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
2573
- }
2574
2607
  if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
2575
2608
  throw new RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
2576
2609
  }
@@ -2585,7 +2618,7 @@ class SDKApi extends BaseAPI {
2585
2618
  }
2586
2619
  }
2587
2620
  const response = yield this.request({
2588
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2621
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2589
2622
  method: 'POST',
2590
2623
  headers: headerParameters,
2591
2624
  query: queryParameters,
@@ -2612,13 +2645,10 @@ class SDKApi extends BaseAPI {
2612
2645
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2613
2646
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
2614
2647
  }
2615
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
2616
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
2617
- }
2618
2648
  const queryParameters = {};
2619
2649
  const headerParameters = {};
2620
2650
  const response = yield this.request({
2621
- path: `/sdk/{environmentId}/waas/{walletId}/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
2651
+ path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2622
2652
  method: 'OPTIONS',
2623
2653
  headers: headerParameters,
2624
2654
  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