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

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.
Files changed (31) hide show
  1. package/dist/apis/APIKeyManagementApi.d.ts +6 -6
  2. package/dist/apis/APIKeyManagementApi.js +10 -10
  3. package/dist/apis/AppManagementApi.d.ts +15 -0
  4. package/dist/apis/AppManagementApi.js +41 -0
  5. package/dist/apis/WalletAPIKeyManagementApi.d.ts +55 -0
  6. package/dist/apis/WalletAPIKeyManagementApi.js +140 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AppPermissionRequest.d.ts +7 -6
  10. package/dist/models/AppPermissionRequest.js +8 -7
  11. package/dist/models/BalanceUpdateRequest.d.ts +1 -1
  12. package/dist/models/BalanceUpdateRequest.js +3 -1
  13. package/dist/models/CreateAPIKeyRequest.d.ts +2 -2
  14. package/dist/models/CreateAPIKeyRequest.js +3 -1
  15. package/dist/models/CreateWalletAPIKeyRequest.d.ts +32 -0
  16. package/dist/models/CreateWalletAPIKeyRequest.js +50 -0
  17. package/dist/models/DeactivateWalletAPIKeyRequest.d.ts +32 -0
  18. package/dist/models/DeactivateWalletAPIKeyRequest.js +50 -0
  19. package/dist/models/UpdateAppCommissionRateRequest.d.ts +1 -1
  20. package/dist/models/UpdateAppCommissionRateRequest.js +3 -1
  21. package/dist/models/WalletAPIKey.d.ts +68 -0
  22. package/dist/models/WalletAPIKey.js +60 -0
  23. package/dist/models/WalletAPIKeyResponse.d.ts +40 -0
  24. package/dist/models/WalletAPIKeyResponse.js +52 -0
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/package.json +1 -1
  28. package/dist/apis/PricesApi.d.ts +0 -61
  29. package/dist/apis/PricesApi.js +0 -110
  30. package/dist/models/PagedMarketWithPricesResponse.d.ts +0 -96
  31. package/dist/models/PagedMarketWithPricesResponse.js +0 -76
@@ -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 { DeactivateWalletAPIKeyRequest, 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
+ deactivateWalletAPIKeyRequest: DeactivateWalletAPIKeyRequest;
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,140 @@
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['deactivateWalletAPIKeyRequest'] == null) {
78
+ throw new runtime.RequiredError('deactivateWalletAPIKeyRequest', 'Required parameter "deactivateWalletAPIKeyRequest" was null or undefined when calling deactivate().');
79
+ }
80
+ const queryParameters = {};
81
+ const headerParameters = {};
82
+ headerParameters['Content-Type'] = 'application/json';
83
+ if (requestParameters['authorization'] != null) {
84
+ headerParameters['authorization'] = String(requestParameters['authorization']);
85
+ }
86
+ const response = yield this.request({
87
+ path: `/wallets/{id}/api-keys/deactivate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
88
+ method: 'POST',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ body: (0, index_1.DeactivateWalletAPIKeyRequestToJSON)(requestParameters['deactivateWalletAPIKeyRequest']),
92
+ }, initOverrides);
93
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletAPIKeyResponseFromJSON)(jsonValue));
94
+ });
95
+ }
96
+ /**
97
+ * Deactivate wallet api key
98
+ */
99
+ deactivate(requestParameters, initOverrides) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const response = yield this.deactivateRaw(requestParameters, initOverrides);
102
+ return yield response.value();
103
+ });
104
+ }
105
+ /**
106
+ * Fetch api key for wallets
107
+ */
108
+ getApiKeyRaw(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ if (requestParameters['authorization'] == null) {
111
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getApiKey().');
112
+ }
113
+ if (requestParameters['id'] == null) {
114
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiKey().');
115
+ }
116
+ const queryParameters = {};
117
+ const headerParameters = {};
118
+ if (requestParameters['authorization'] != null) {
119
+ headerParameters['authorization'] = String(requestParameters['authorization']);
120
+ }
121
+ const response = yield this.request({
122
+ path: `/wallets/{id}/api-keys`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
123
+ method: 'GET',
124
+ headers: headerParameters,
125
+ query: queryParameters,
126
+ }, initOverrides);
127
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletAPIKeyResponseFromJSON)(jsonValue));
128
+ });
129
+ }
130
+ /**
131
+ * Fetch api key for wallets
132
+ */
133
+ getApiKey(requestParameters, initOverrides) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ const response = yield this.getApiKeyRaw(requestParameters, initOverrides);
136
+ return yield response.value();
137
+ });
138
+ }
139
+ }
140
+ 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,21 @@ 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";
40
42
  readonly WalletCanUpdateOverdraft: "WalletCanUpdateOverdraft";
41
43
  readonly WalletCanViewAll: "WalletCanViewAll";
42
- readonly WalletCanAdjustBalance: "WalletCanAdjustBalance";
43
44
  };
44
45
  export type AppPermissionRequestPermissionEnum = typeof AppPermissionRequestPermissionEnum[keyof typeof AppPermissionRequestPermissionEnum];
45
46
  /**
@@ -23,20 +23,21 @@ 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',
37
39
  WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft',
38
- WalletCanViewAll: 'WalletCanViewAll',
39
- WalletCanAdjustBalance: 'WalletCanAdjustBalance'
40
+ WalletCanViewAll: 'WalletCanViewAll'
40
41
  };
41
42
  /**
42
43
  * Check if a given object implements the AppPermissionRequest interface.
@@ -32,7 +32,7 @@ export interface BalanceUpdateRequest {
32
32
  * @type {number}
33
33
  * @memberof BalanceUpdateRequest
34
34
  */
35
- amount?: number;
35
+ amount: number;
36
36
  /**
37
37
  * Required: a unique identifier for this transaction, such as a Solana transaction id
38
38
  * @type {string}
@@ -34,6 +34,8 @@ function instanceOfBalanceUpdateRequest(value) {
34
34
  return false;
35
35
  if (!('type' in value) || value['type'] === undefined)
36
36
  return false;
37
+ if (!('amount' in value) || value['amount'] === undefined)
38
+ return false;
37
39
  if (!('transactionUniqueIdentifier' in value) || value['transactionUniqueIdentifier'] === undefined)
38
40
  return false;
39
41
  if (!('transactionDescription' in value) || value['transactionDescription'] === undefined)
@@ -50,7 +52,7 @@ function BalanceUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
50
52
  return {
51
53
  'currencyId': json['currencyId'],
52
54
  'type': json['type'],
53
- 'amount': json['amount'] == null ? undefined : json['amount'],
55
+ 'amount': json['amount'],
54
56
  'transactionUniqueIdentifier': json['transactionUniqueIdentifier'],
55
57
  'transactionDescription': json['transactionDescription'],
56
58
  };
@@ -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;