@monaco-protocol/client-v2 0.0.98-dev-wak → 0.0.99-rc1

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DeactivateWalletAPIKeyRequest, WalletAPIKeyResponse } from '../models/index';
13
+ import type { WalletAPIKeyResponse } from '../models/index';
14
14
  export interface WalletAPIKeyManagementApiCreateApiKeyRequest {
15
15
  authorization: string;
16
16
  id: string;
@@ -18,7 +18,7 @@ export interface WalletAPIKeyManagementApiCreateApiKeyRequest {
18
18
  export interface WalletAPIKeyManagementApiDeactivateRequest {
19
19
  authorization: string;
20
20
  id: string;
21
- deactivateWalletAPIKeyRequest: DeactivateWalletAPIKeyRequest;
21
+ name: string;
22
22
  }
23
23
  export interface WalletAPIKeyManagementApiGetApiKeyRequest {
24
24
  authorization: string;
@@ -74,21 +74,19 @@ class WalletAPIKeyManagementApi extends runtime.BaseAPI {
74
74
  if (requestParameters['id'] == null) {
75
75
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deactivate().');
76
76
  }
77
- if (requestParameters['deactivateWalletAPIKeyRequest'] == null) {
78
- throw new runtime.RequiredError('deactivateWalletAPIKeyRequest', 'Required parameter "deactivateWalletAPIKeyRequest" was null or undefined when calling deactivate().');
77
+ if (requestParameters['name'] == null) {
78
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deactivate().');
79
79
  }
80
80
  const queryParameters = {};
81
81
  const headerParameters = {};
82
- headerParameters['Content-Type'] = 'application/json';
83
82
  if (requestParameters['authorization'] != null) {
84
83
  headerParameters['authorization'] = String(requestParameters['authorization']);
85
84
  }
86
85
  const response = yield this.request({
87
- path: `/wallets/{id}/api-keys/deactivate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
86
+ path: `/wallets/{id}/api-keys/{name}/deactivate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
88
87
  method: 'POST',
89
88
  headers: headerParameters,
90
89
  query: queryParameters,
91
- body: (0, index_1.DeactivateWalletAPIKeyRequestToJSON)(requestParameters['deactivateWalletAPIKeyRequest']),
92
90
  }, initOverrides);
93
91
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletAPIKeyResponseFromJSON)(jsonValue));
94
92
  });
@@ -39,6 +39,7 @@ export declare const AppPermissionRequestPermissionEnum: {
39
39
  readonly TradeCanViewAll: "TradeCanViewAll";
40
40
  readonly WalletApiKeyCanAdmin: "WalletAPIKeyCanAdmin";
41
41
  readonly WalletCanAdjustBalance: "WalletCanAdjustBalance";
42
+ readonly WalletCanCreate: "WalletCanCreate";
42
43
  readonly WalletCanUpdateOverdraft: "WalletCanUpdateOverdraft";
43
44
  readonly WalletCanViewAll: "WalletCanViewAll";
44
45
  };
@@ -36,6 +36,7 @@ exports.AppPermissionRequestPermissionEnum = {
36
36
  TradeCanViewAll: 'TradeCanViewAll',
37
37
  WalletApiKeyCanAdmin: 'WalletAPIKeyCanAdmin',
38
38
  WalletCanAdjustBalance: 'WalletCanAdjustBalance',
39
+ WalletCanCreate: 'WalletCanCreate',
39
40
  WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft',
40
41
  WalletCanViewAll: 'WalletCanViewAll'
41
42
  };
@@ -38,7 +38,6 @@ export * from './CreateWalletRequest';
38
38
  export * from './Currency';
39
39
  export * from './CurrencyResponse';
40
40
  export * from './DeactivateAPIKeyRequest';
41
- export * from './DeactivateWalletAPIKeyRequest';
42
41
  export * from './DepositAddress';
43
42
  export * from './DepositAddressResponse';
44
43
  export * from './DepositRequest';
@@ -56,7 +56,6 @@ __exportStar(require("./CreateWalletRequest"), exports);
56
56
  __exportStar(require("./Currency"), exports);
57
57
  __exportStar(require("./CurrencyResponse"), exports);
58
58
  __exportStar(require("./DeactivateAPIKeyRequest"), exports);
59
- __exportStar(require("./DeactivateWalletAPIKeyRequest"), exports);
60
59
  __exportStar(require("./DepositAddress"), exports);
61
60
  __exportStar(require("./DepositAddressResponse"), exports);
62
61
  __exportStar(require("./DepositRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.98-dev-wak",
3
+ "version": "0.0.99-rc1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [