@monaco-protocol/client-v2 0.0.96 → 0.0.98-dev-wak-2

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.
@@ -11,11 +11,11 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { APIKeyResponse, CreateAPIKeyRequest, DeactivateAPIKeyRequest, RenameAPIKeyRequest } from '../models/index';
14
- export interface APIKeyManagementApiCreateApiKeyRequest {
14
+ export interface APIKeyManagementApiCreateApiKey1Request {
15
15
  authorization: string;
16
16
  createAPIKeyRequest: CreateAPIKeyRequest;
17
17
  }
18
- export interface APIKeyManagementApiDeactivateRequest {
18
+ export interface APIKeyManagementApiDeactivate1Request {
19
19
  authorization: string;
20
20
  deactivateAPIKeyRequest: DeactivateAPIKeyRequest;
21
21
  }
@@ -30,19 +30,19 @@ export declare class APIKeyManagementApi extends runtime.BaseAPI {
30
30
  /**
31
31
  * Create api key
32
32
  */
33
- createApiKeyRaw(requestParameters: APIKeyManagementApiCreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyResponse>>;
33
+ createApiKey1Raw(requestParameters: APIKeyManagementApiCreateApiKey1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyResponse>>;
34
34
  /**
35
35
  * Create api key
36
36
  */
37
- createApiKey(requestParameters: APIKeyManagementApiCreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyResponse>;
37
+ createApiKey1(requestParameters: APIKeyManagementApiCreateApiKey1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyResponse>;
38
38
  /**
39
39
  * Deactivate api key
40
40
  */
41
- deactivateRaw(requestParameters: APIKeyManagementApiDeactivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyResponse>>;
41
+ deactivate1Raw(requestParameters: APIKeyManagementApiDeactivate1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyResponse>>;
42
42
  /**
43
43
  * Deactivate api key
44
44
  */
45
- deactivate(requestParameters: APIKeyManagementApiDeactivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyResponse>;
45
+ deactivate1(requestParameters: APIKeyManagementApiDeactivate1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyResponse>;
46
46
  /**
47
47
  * Rename api key
48
48
  */
@@ -32,13 +32,13 @@ class APIKeyManagementApi extends runtime.BaseAPI {
32
32
  /**
33
33
  * Create api key
34
34
  */
35
- createApiKeyRaw(requestParameters, initOverrides) {
35
+ createApiKey1Raw(requestParameters, initOverrides) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  if (requestParameters['authorization'] == null) {
38
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createApiKey().');
38
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createApiKey1().');
39
39
  }
40
40
  if (requestParameters['createAPIKeyRequest'] == null) {
41
- throw new runtime.RequiredError('createAPIKeyRequest', 'Required parameter "createAPIKeyRequest" was null or undefined when calling createApiKey().');
41
+ throw new runtime.RequiredError('createAPIKeyRequest', 'Required parameter "createAPIKeyRequest" was null or undefined when calling createApiKey1().');
42
42
  }
43
43
  const queryParameters = {};
44
44
  const headerParameters = {};
@@ -59,22 +59,22 @@ class APIKeyManagementApi extends runtime.BaseAPI {
59
59
  /**
60
60
  * Create api key
61
61
  */
62
- createApiKey(requestParameters, initOverrides) {
62
+ createApiKey1(requestParameters, initOverrides) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
- const response = yield this.createApiKeyRaw(requestParameters, initOverrides);
64
+ const response = yield this.createApiKey1Raw(requestParameters, initOverrides);
65
65
  return yield response.value();
66
66
  });
67
67
  }
68
68
  /**
69
69
  * Deactivate api key
70
70
  */
71
- deactivateRaw(requestParameters, initOverrides) {
71
+ deactivate1Raw(requestParameters, initOverrides) {
72
72
  return __awaiter(this, void 0, void 0, function* () {
73
73
  if (requestParameters['authorization'] == null) {
74
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling deactivate().');
74
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling deactivate1().');
75
75
  }
76
76
  if (requestParameters['deactivateAPIKeyRequest'] == null) {
77
- throw new runtime.RequiredError('deactivateAPIKeyRequest', 'Required parameter "deactivateAPIKeyRequest" was null or undefined when calling deactivate().');
77
+ throw new runtime.RequiredError('deactivateAPIKeyRequest', 'Required parameter "deactivateAPIKeyRequest" was null or undefined when calling deactivate1().');
78
78
  }
79
79
  const queryParameters = {};
80
80
  const headerParameters = {};
@@ -95,9 +95,9 @@ class APIKeyManagementApi extends runtime.BaseAPI {
95
95
  /**
96
96
  * Deactivate api key
97
97
  */
98
- deactivate(requestParameters, initOverrides) {
98
+ deactivate1(requestParameters, initOverrides) {
99
99
  return __awaiter(this, void 0, void 0, function* () {
100
- const response = yield this.deactivateRaw(requestParameters, initOverrides);
100
+ const response = yield this.deactivate1Raw(requestParameters, initOverrides);
101
101
  return yield response.value();
102
102
  });
103
103
  }
@@ -42,6 +42,11 @@ export interface AppManagementApiUpdateCommissionRateRequest {
42
42
  id: string;
43
43
  updateAppCommissionRateRequest: UpdateAppCommissionRateRequest;
44
44
  }
45
+ export interface AppManagementApiUpdateProtocolFeeRateRequest {
46
+ authorization: string;
47
+ id: string;
48
+ updateAppCommissionRateRequest: UpdateAppCommissionRateRequest;
49
+ }
45
50
  /**
46
51
  *
47
52
  */
@@ -104,4 +109,14 @@ export declare class AppManagementApi extends runtime.BaseAPI {
104
109
  * Create a new app commission rate
105
110
  */
106
111
  updateCommissionRate(requestParameters: AppManagementApiUpdateCommissionRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppResponse>;
112
+ /**
113
+ * Update protocol fee applied during settlement for an app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.
114
+ * Update protocol fee rate for an app
115
+ */
116
+ updateProtocolFeeRateRaw(requestParameters: AppManagementApiUpdateProtocolFeeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppResponse>>;
117
+ /**
118
+ * Update protocol fee applied during settlement for an app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.
119
+ * Update protocol fee rate for an app
120
+ */
121
+ updateProtocolFeeRate(requestParameters: AppManagementApiUpdateProtocolFeeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppResponse>;
107
122
  }
@@ -284,5 +284,46 @@ class AppManagementApi extends runtime.BaseAPI {
284
284
  return yield response.value();
285
285
  });
286
286
  }
287
+ /**
288
+ * Update protocol fee applied during settlement for an app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.
289
+ * Update protocol fee rate for an app
290
+ */
291
+ updateProtocolFeeRateRaw(requestParameters, initOverrides) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ if (requestParameters['authorization'] == null) {
294
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling updateProtocolFeeRate().');
295
+ }
296
+ if (requestParameters['id'] == null) {
297
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateProtocolFeeRate().');
298
+ }
299
+ if (requestParameters['updateAppCommissionRateRequest'] == null) {
300
+ throw new runtime.RequiredError('updateAppCommissionRateRequest', 'Required parameter "updateAppCommissionRateRequest" was null or undefined when calling updateProtocolFeeRate().');
301
+ }
302
+ const queryParameters = {};
303
+ const headerParameters = {};
304
+ headerParameters['Content-Type'] = 'application/json';
305
+ if (requestParameters['authorization'] != null) {
306
+ headerParameters['authorization'] = String(requestParameters['authorization']);
307
+ }
308
+ const response = yield this.request({
309
+ path: `/apps/{id}/protocol-fee`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
310
+ method: 'POST',
311
+ headers: headerParameters,
312
+ query: queryParameters,
313
+ body: (0, index_1.UpdateAppCommissionRateRequestToJSON)(requestParameters['updateAppCommissionRateRequest']),
314
+ }, initOverrides);
315
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppResponseFromJSON)(jsonValue));
316
+ });
317
+ }
318
+ /**
319
+ * Update protocol fee applied during settlement for an app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.
320
+ * Update protocol fee rate for an app
321
+ */
322
+ updateProtocolFeeRate(requestParameters, initOverrides) {
323
+ return __awaiter(this, void 0, void 0, function* () {
324
+ const response = yield this.updateProtocolFeeRateRaw(requestParameters, initOverrides);
325
+ return yield response.value();
326
+ });
327
+ }
287
328
  }
288
329
  exports.AppManagementApi = AppManagementApi;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { WalletAPIKeyResponse } from '../models/index';
14
+ export interface WalletAPIKeyManagementApiCreateApiKeyRequest {
15
+ authorization: string;
16
+ id: string;
17
+ }
18
+ export interface WalletAPIKeyManagementApiDeactivateRequest {
19
+ authorization: string;
20
+ id: string;
21
+ name: string;
22
+ }
23
+ export interface WalletAPIKeyManagementApiGetApiKeyRequest {
24
+ authorization: string;
25
+ id: string;
26
+ }
27
+ /**
28
+ *
29
+ */
30
+ export declare class WalletAPIKeyManagementApi extends runtime.BaseAPI {
31
+ /**
32
+ * Create wallet api key
33
+ */
34
+ createApiKeyRaw(requestParameters: WalletAPIKeyManagementApiCreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletAPIKeyResponse>>;
35
+ /**
36
+ * Create wallet api key
37
+ */
38
+ createApiKey(requestParameters: WalletAPIKeyManagementApiCreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletAPIKeyResponse>;
39
+ /**
40
+ * Deactivate wallet api key
41
+ */
42
+ deactivateRaw(requestParameters: WalletAPIKeyManagementApiDeactivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletAPIKeyResponse>>;
43
+ /**
44
+ * Deactivate wallet api key
45
+ */
46
+ deactivate(requestParameters: WalletAPIKeyManagementApiDeactivateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletAPIKeyResponse>;
47
+ /**
48
+ * Fetch api key for wallets
49
+ */
50
+ getApiKeyRaw(requestParameters: WalletAPIKeyManagementApiGetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletAPIKeyResponse>>;
51
+ /**
52
+ * Fetch api key for wallets
53
+ */
54
+ getApiKey(requestParameters: WalletAPIKeyManagementApiGetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletAPIKeyResponse>;
55
+ }
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.WalletAPIKeyManagementApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class WalletAPIKeyManagementApi extends runtime.BaseAPI {
32
+ /**
33
+ * Create wallet api key
34
+ */
35
+ createApiKeyRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['authorization'] == null) {
38
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createApiKey().');
39
+ }
40
+ if (requestParameters['id'] == null) {
41
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createApiKey().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ if (requestParameters['authorization'] != null) {
46
+ headerParameters['authorization'] = String(requestParameters['authorization']);
47
+ }
48
+ const response = yield this.request({
49
+ path: `/wallets/{id}/api-keys`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ }, initOverrides);
54
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletAPIKeyResponseFromJSON)(jsonValue));
55
+ });
56
+ }
57
+ /**
58
+ * Create wallet api key
59
+ */
60
+ createApiKey(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const response = yield this.createApiKeyRaw(requestParameters, initOverrides);
63
+ return yield response.value();
64
+ });
65
+ }
66
+ /**
67
+ * Deactivate wallet api key
68
+ */
69
+ deactivateRaw(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ if (requestParameters['authorization'] == null) {
72
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling deactivate().');
73
+ }
74
+ if (requestParameters['id'] == null) {
75
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deactivate().');
76
+ }
77
+ if (requestParameters['name'] == null) {
78
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deactivate().');
79
+ }
80
+ const queryParameters = {};
81
+ const headerParameters = {};
82
+ if (requestParameters['authorization'] != null) {
83
+ headerParameters['authorization'] = String(requestParameters['authorization']);
84
+ }
85
+ const response = yield this.request({
86
+ path: `/wallets/{id}/api-keys/{name}/deactivate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
87
+ method: 'POST',
88
+ headers: headerParameters,
89
+ query: queryParameters,
90
+ }, initOverrides);
91
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletAPIKeyResponseFromJSON)(jsonValue));
92
+ });
93
+ }
94
+ /**
95
+ * Deactivate wallet api key
96
+ */
97
+ deactivate(requestParameters, initOverrides) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const response = yield this.deactivateRaw(requestParameters, initOverrides);
100
+ return yield response.value();
101
+ });
102
+ }
103
+ /**
104
+ * Fetch api key for wallets
105
+ */
106
+ getApiKeyRaw(requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ if (requestParameters['authorization'] == null) {
109
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getApiKey().');
110
+ }
111
+ if (requestParameters['id'] == null) {
112
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiKey().');
113
+ }
114
+ const queryParameters = {};
115
+ const headerParameters = {};
116
+ if (requestParameters['authorization'] != null) {
117
+ headerParameters['authorization'] = String(requestParameters['authorization']);
118
+ }
119
+ const response = yield this.request({
120
+ path: `/wallets/{id}/api-keys`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
121
+ method: 'GET',
122
+ headers: headerParameters,
123
+ query: queryParameters,
124
+ }, initOverrides);
125
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletAPIKeyResponseFromJSON)(jsonValue));
126
+ });
127
+ }
128
+ /**
129
+ * Fetch api key for wallets
130
+ */
131
+ getApiKey(requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const response = yield this.getApiKeyRaw(requestParameters, initOverrides);
134
+ return yield response.value();
135
+ });
136
+ }
137
+ }
138
+ exports.WalletAPIKeyManagementApi = WalletAPIKeyManagementApi;
@@ -15,4 +15,5 @@ export * from './ParticipantsApi';
15
15
  export * from './SessionManagementApi';
16
16
  export * from './StatusApi';
17
17
  export * from './TradesApi';
18
+ export * from './WalletAPIKeyManagementApi';
18
19
  export * from './WalletsApi';
@@ -33,4 +33,5 @@ __exportStar(require("./ParticipantsApi"), exports);
33
33
  __exportStar(require("./SessionManagementApi"), exports);
34
34
  __exportStar(require("./StatusApi"), exports);
35
35
  __exportStar(require("./TradesApi"), exports);
36
+ __exportStar(require("./WalletAPIKeyManagementApi"), exports);
36
37
  __exportStar(require("./WalletsApi"), exports);
@@ -26,20 +26,22 @@ export interface AppPermissionRequest {
26
26
  * @export
27
27
  */
28
28
  export declare const AppPermissionRequestPermissionEnum: {
29
- readonly AppsCanAdmin: "AppsCanAdmin";
30
29
  readonly ApiKeyCanAdmin: "APIKeyCanAdmin";
30
+ readonly AppsCanAdmin: "AppsCanAdmin";
31
31
  readonly CategoryCanAdmin: "CategoryCanAdmin";
32
- readonly ExternalTransfersEnabled: "ExternalTransfersEnabled";
33
- readonly SubCategoryCanAdmin: "SubCategoryCanAdmin";
34
- readonly MarketTypeCanAdmin: "MarketTypeCanAdmin";
35
- readonly EventGroupCanAdmin: "EventGroupCanAdmin";
36
32
  readonly EventCanAdmin: "EventCanAdmin";
33
+ readonly EventGroupCanAdmin: "EventGroupCanAdmin";
34
+ readonly ExternalTransfersEnabled: "ExternalTransfersEnabled";
37
35
  readonly MarketCanAdmin: "MarketCanAdmin";
36
+ readonly MarketTypeCanAdmin: "MarketTypeCanAdmin";
38
37
  readonly OrderCanViewAll: "OrderCanViewAll";
38
+ readonly SubCategoryCanAdmin: "SubCategoryCanAdmin";
39
39
  readonly TradeCanViewAll: "TradeCanViewAll";
40
+ readonly WalletApiKeyCanAdmin: "WalletAPIKeyCanAdmin";
41
+ readonly WalletCanAdjustBalance: "WalletCanAdjustBalance";
42
+ readonly WalletCanCreate: "WalletCanCreate";
40
43
  readonly WalletCanUpdateOverdraft: "WalletCanUpdateOverdraft";
41
44
  readonly WalletCanViewAll: "WalletCanViewAll";
42
- readonly WalletCanAdjustBalance: "WalletCanAdjustBalance";
43
45
  };
44
46
  export type AppPermissionRequestPermissionEnum = typeof AppPermissionRequestPermissionEnum[keyof typeof AppPermissionRequestPermissionEnum];
45
47
  /**
@@ -23,20 +23,22 @@ exports.AppPermissionRequestToJSONTyped = AppPermissionRequestToJSONTyped;
23
23
  * @export
24
24
  */
25
25
  exports.AppPermissionRequestPermissionEnum = {
26
- AppsCanAdmin: 'AppsCanAdmin',
27
26
  ApiKeyCanAdmin: 'APIKeyCanAdmin',
27
+ AppsCanAdmin: 'AppsCanAdmin',
28
28
  CategoryCanAdmin: 'CategoryCanAdmin',
29
- ExternalTransfersEnabled: 'ExternalTransfersEnabled',
30
- SubCategoryCanAdmin: 'SubCategoryCanAdmin',
31
- MarketTypeCanAdmin: 'MarketTypeCanAdmin',
32
- EventGroupCanAdmin: 'EventGroupCanAdmin',
33
29
  EventCanAdmin: 'EventCanAdmin',
30
+ EventGroupCanAdmin: 'EventGroupCanAdmin',
31
+ ExternalTransfersEnabled: 'ExternalTransfersEnabled',
34
32
  MarketCanAdmin: 'MarketCanAdmin',
33
+ MarketTypeCanAdmin: 'MarketTypeCanAdmin',
35
34
  OrderCanViewAll: 'OrderCanViewAll',
35
+ SubCategoryCanAdmin: 'SubCategoryCanAdmin',
36
36
  TradeCanViewAll: 'TradeCanViewAll',
37
+ WalletApiKeyCanAdmin: 'WalletAPIKeyCanAdmin',
38
+ WalletCanAdjustBalance: 'WalletCanAdjustBalance',
39
+ WalletCanCreate: 'WalletCanCreate',
37
40
  WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft',
38
- WalletCanViewAll: 'WalletCanViewAll',
39
- WalletCanAdjustBalance: 'WalletCanAdjustBalance'
41
+ WalletCanViewAll: 'WalletCanViewAll'
40
42
  };
41
43
  /**
42
44
  * Check if a given object implements the AppPermissionRequest interface.
@@ -16,11 +16,11 @@
16
16
  */
17
17
  export interface CreateAPIKeyRequest {
18
18
  /**
19
- *
19
+ * app id
20
20
  * @type {string}
21
21
  * @memberof CreateAPIKeyRequest
22
22
  */
23
- appId?: string;
23
+ appId: string;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the CreateAPIKeyRequest interface.
@@ -22,6 +22,8 @@ exports.CreateAPIKeyRequestToJSONTyped = CreateAPIKeyRequestToJSONTyped;
22
22
  * Check if a given object implements the CreateAPIKeyRequest interface.
23
23
  */
24
24
  function instanceOfCreateAPIKeyRequest(value) {
25
+ if (!('appId' in value) || value['appId'] === undefined)
26
+ return false;
25
27
  return true;
26
28
  }
27
29
  function CreateAPIKeyRequestFromJSON(json) {
@@ -32,7 +34,7 @@ function CreateAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
32
34
  return json;
33
35
  }
34
36
  return {
35
- 'appId': json['appId'] == null ? undefined : json['appId'],
37
+ 'appId': json['appId'],
36
38
  };
37
39
  }
38
40
  function CreateAPIKeyRequestToJSON(json) {
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateWalletAPIKeyRequest
16
+ */
17
+ export interface CreateWalletAPIKeyRequest {
18
+ /**
19
+ * wallet id
20
+ * @type {string}
21
+ * @memberof CreateWalletAPIKeyRequest
22
+ */
23
+ walletId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateWalletAPIKeyRequest interface.
27
+ */
28
+ export declare function instanceOfCreateWalletAPIKeyRequest(value: object): value is CreateWalletAPIKeyRequest;
29
+ export declare function CreateWalletAPIKeyRequestFromJSON(json: any): CreateWalletAPIKeyRequest;
30
+ export declare function CreateWalletAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWalletAPIKeyRequest;
31
+ export declare function CreateWalletAPIKeyRequestToJSON(json: any): CreateWalletAPIKeyRequest;
32
+ export declare function CreateWalletAPIKeyRequestToJSONTyped(value?: CreateWalletAPIKeyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateWalletAPIKeyRequest = instanceOfCreateWalletAPIKeyRequest;
17
+ exports.CreateWalletAPIKeyRequestFromJSON = CreateWalletAPIKeyRequestFromJSON;
18
+ exports.CreateWalletAPIKeyRequestFromJSONTyped = CreateWalletAPIKeyRequestFromJSONTyped;
19
+ exports.CreateWalletAPIKeyRequestToJSON = CreateWalletAPIKeyRequestToJSON;
20
+ exports.CreateWalletAPIKeyRequestToJSONTyped = CreateWalletAPIKeyRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateWalletAPIKeyRequest interface.
23
+ */
24
+ function instanceOfCreateWalletAPIKeyRequest(value) {
25
+ if (!('walletId' in value) || value['walletId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateWalletAPIKeyRequestFromJSON(json) {
30
+ return CreateWalletAPIKeyRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateWalletAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'walletId': json['walletId'],
38
+ };
39
+ }
40
+ function CreateWalletAPIKeyRequestToJSON(json) {
41
+ return CreateWalletAPIKeyRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateWalletAPIKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'walletId': value['walletId'],
49
+ };
50
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DeactivateWalletAPIKeyRequest
16
+ */
17
+ export interface DeactivateWalletAPIKeyRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DeactivateWalletAPIKeyRequest
22
+ */
23
+ apiKey: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the DeactivateWalletAPIKeyRequest interface.
27
+ */
28
+ export declare function instanceOfDeactivateWalletAPIKeyRequest(value: object): value is DeactivateWalletAPIKeyRequest;
29
+ export declare function DeactivateWalletAPIKeyRequestFromJSON(json: any): DeactivateWalletAPIKeyRequest;
30
+ export declare function DeactivateWalletAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeactivateWalletAPIKeyRequest;
31
+ export declare function DeactivateWalletAPIKeyRequestToJSON(json: any): DeactivateWalletAPIKeyRequest;
32
+ export declare function DeactivateWalletAPIKeyRequestToJSONTyped(value?: DeactivateWalletAPIKeyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDeactivateWalletAPIKeyRequest = instanceOfDeactivateWalletAPIKeyRequest;
17
+ exports.DeactivateWalletAPIKeyRequestFromJSON = DeactivateWalletAPIKeyRequestFromJSON;
18
+ exports.DeactivateWalletAPIKeyRequestFromJSONTyped = DeactivateWalletAPIKeyRequestFromJSONTyped;
19
+ exports.DeactivateWalletAPIKeyRequestToJSON = DeactivateWalletAPIKeyRequestToJSON;
20
+ exports.DeactivateWalletAPIKeyRequestToJSONTyped = DeactivateWalletAPIKeyRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeactivateWalletAPIKeyRequest interface.
23
+ */
24
+ function instanceOfDeactivateWalletAPIKeyRequest(value) {
25
+ if (!('apiKey' in value) || value['apiKey'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DeactivateWalletAPIKeyRequestFromJSON(json) {
30
+ return DeactivateWalletAPIKeyRequestFromJSONTyped(json, false);
31
+ }
32
+ function DeactivateWalletAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'apiKey': json['apiKey'],
38
+ };
39
+ }
40
+ function DeactivateWalletAPIKeyRequestToJSON(json) {
41
+ return DeactivateWalletAPIKeyRequestToJSONTyped(json, false);
42
+ }
43
+ function DeactivateWalletAPIKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'apiKey': value['apiKey'],
49
+ };
50
+ }
@@ -20,7 +20,7 @@ export interface UpdateAppCommissionRateRequest {
20
20
  * @type {number}
21
21
  * @memberof UpdateAppCommissionRateRequest
22
22
  */
23
- commissionRate?: number;
23
+ commissionRate: number;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the UpdateAppCommissionRateRequest interface.
@@ -22,6 +22,8 @@ exports.UpdateAppCommissionRateRequestToJSONTyped = UpdateAppCommissionRateReque
22
22
  * Check if a given object implements the UpdateAppCommissionRateRequest interface.
23
23
  */
24
24
  function instanceOfUpdateAppCommissionRateRequest(value) {
25
+ if (!('commissionRate' in value) || value['commissionRate'] === undefined)
26
+ return false;
25
27
  return true;
26
28
  }
27
29
  function UpdateAppCommissionRateRequestFromJSON(json) {
@@ -32,7 +34,7 @@ function UpdateAppCommissionRateRequestFromJSONTyped(json, ignoreDiscriminator)
32
34
  return json;
33
35
  }
34
36
  return {
35
- 'commissionRate': json['commissionRate'] == null ? undefined : json['commissionRate'],
37
+ 'commissionRate': json['commissionRate'],
36
38
  };
37
39
  }
38
40
  function UpdateAppCommissionRateRequestToJSON(json) {
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface WalletAPIKey
16
+ */
17
+ export interface WalletAPIKey {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WalletAPIKey
22
+ */
23
+ appId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WalletAPIKey
28
+ */
29
+ walletId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WalletAPIKey
34
+ */
35
+ name?: string;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof WalletAPIKey
40
+ */
41
+ active?: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof WalletAPIKey
46
+ */
47
+ secret?: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof WalletAPIKey
52
+ */
53
+ createdAt?: Date;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof WalletAPIKey
58
+ */
59
+ modifiedAt?: Date;
60
+ }
61
+ /**
62
+ * Check if a given object implements the WalletAPIKey interface.
63
+ */
64
+ export declare function instanceOfWalletAPIKey(value: object): value is WalletAPIKey;
65
+ export declare function WalletAPIKeyFromJSON(json: any): WalletAPIKey;
66
+ export declare function WalletAPIKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletAPIKey;
67
+ export declare function WalletAPIKeyToJSON(json: any): WalletAPIKey;
68
+ export declare function WalletAPIKeyToJSONTyped(value?: WalletAPIKey | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfWalletAPIKey = instanceOfWalletAPIKey;
17
+ exports.WalletAPIKeyFromJSON = WalletAPIKeyFromJSON;
18
+ exports.WalletAPIKeyFromJSONTyped = WalletAPIKeyFromJSONTyped;
19
+ exports.WalletAPIKeyToJSON = WalletAPIKeyToJSON;
20
+ exports.WalletAPIKeyToJSONTyped = WalletAPIKeyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WalletAPIKey interface.
23
+ */
24
+ function instanceOfWalletAPIKey(value) {
25
+ return true;
26
+ }
27
+ function WalletAPIKeyFromJSON(json) {
28
+ return WalletAPIKeyFromJSONTyped(json, false);
29
+ }
30
+ function WalletAPIKeyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'appId': json['appId'] == null ? undefined : json['appId'],
36
+ 'walletId': json['walletId'] == null ? undefined : json['walletId'],
37
+ 'name': json['name'] == null ? undefined : json['name'],
38
+ 'active': json['active'] == null ? undefined : json['active'],
39
+ 'secret': json['secret'] == null ? undefined : json['secret'],
40
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
41
+ 'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
42
+ };
43
+ }
44
+ function WalletAPIKeyToJSON(json) {
45
+ return WalletAPIKeyToJSONTyped(json, false);
46
+ }
47
+ function WalletAPIKeyToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'appId': value['appId'],
53
+ 'walletId': value['walletId'],
54
+ 'name': value['name'],
55
+ 'active': value['active'],
56
+ 'secret': value['secret'],
57
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
58
+ 'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
59
+ };
60
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Meta } from './Meta';
13
+ import type { WalletAPIKey } from './WalletAPIKey';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WalletAPIKeyResponse
18
+ */
19
+ export interface WalletAPIKeyResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof WalletAPIKeyResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<WalletAPIKey>}
29
+ * @memberof WalletAPIKeyResponse
30
+ */
31
+ apiKeys?: Array<WalletAPIKey>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the WalletAPIKeyResponse interface.
35
+ */
36
+ export declare function instanceOfWalletAPIKeyResponse(value: object): value is WalletAPIKeyResponse;
37
+ export declare function WalletAPIKeyResponseFromJSON(json: any): WalletAPIKeyResponse;
38
+ export declare function WalletAPIKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletAPIKeyResponse;
39
+ export declare function WalletAPIKeyResponseToJSON(json: any): WalletAPIKeyResponse;
40
+ export declare function WalletAPIKeyResponseToJSONTyped(value?: WalletAPIKeyResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfWalletAPIKeyResponse = instanceOfWalletAPIKeyResponse;
17
+ exports.WalletAPIKeyResponseFromJSON = WalletAPIKeyResponseFromJSON;
18
+ exports.WalletAPIKeyResponseFromJSONTyped = WalletAPIKeyResponseFromJSONTyped;
19
+ exports.WalletAPIKeyResponseToJSON = WalletAPIKeyResponseToJSON;
20
+ exports.WalletAPIKeyResponseToJSONTyped = WalletAPIKeyResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const WalletAPIKey_1 = require("./WalletAPIKey");
23
+ /**
24
+ * Check if a given object implements the WalletAPIKeyResponse interface.
25
+ */
26
+ function instanceOfWalletAPIKeyResponse(value) {
27
+ return true;
28
+ }
29
+ function WalletAPIKeyResponseFromJSON(json) {
30
+ return WalletAPIKeyResponseFromJSONTyped(json, false);
31
+ }
32
+ function WalletAPIKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
38
+ 'apiKeys': json['apiKeys'] == null ? undefined : (json['apiKeys'].map(WalletAPIKey_1.WalletAPIKeyFromJSON)),
39
+ };
40
+ }
41
+ function WalletAPIKeyResponseToJSON(json) {
42
+ return WalletAPIKeyResponseToJSONTyped(json, false);
43
+ }
44
+ function WalletAPIKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'apiKeys': value['apiKeys'] == null ? undefined : (value['apiKeys'].map(WalletAPIKey_1.WalletAPIKeyToJSON)),
51
+ };
52
+ }
@@ -118,6 +118,8 @@ export * from './UpdateReferenceRequest';
118
118
  export * from './UpdateReferencesRequest';
119
119
  export * from './UpdateWalletOverdraftRequest';
120
120
  export * from './Wallet';
121
+ export * from './WalletAPIKey';
122
+ export * from './WalletAPIKeyResponse';
121
123
  export * from './WalletBalance';
122
124
  export * from './WalletMetric';
123
125
  export * from './WalletMetrics';
@@ -136,6 +136,8 @@ __exportStar(require("./UpdateReferenceRequest"), exports);
136
136
  __exportStar(require("./UpdateReferencesRequest"), exports);
137
137
  __exportStar(require("./UpdateWalletOverdraftRequest"), exports);
138
138
  __exportStar(require("./Wallet"), exports);
139
+ __exportStar(require("./WalletAPIKey"), exports);
140
+ __exportStar(require("./WalletAPIKeyResponse"), exports);
139
141
  __exportStar(require("./WalletBalance"), exports);
140
142
  __exportStar(require("./WalletMetric"), exports);
141
143
  __exportStar(require("./WalletMetrics"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.96",
3
+ "version": "0.0.98-dev-wak-2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [