@reyaxyz/api-v2-sdk 0.301.2 → 0.301.3

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 (39) hide show
  1. package/dist/rest/apis/MarketDataApi.js +1 -1
  2. package/dist/rest/apis/MarketDataApi.js.map +1 -1
  3. package/dist/rest/apis/OrderEntryApi.js +1 -1
  4. package/dist/rest/apis/OrderEntryApi.js.map +1 -1
  5. package/dist/rest/apis/ReferenceDataApi.js +1 -1
  6. package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
  7. package/dist/rest/apis/SpecsApi.js +189 -0
  8. package/dist/rest/apis/SpecsApi.js.map +1 -0
  9. package/dist/rest/apis/WalletDataApi.js +1 -1
  10. package/dist/rest/apis/WalletDataApi.js.map +1 -1
  11. package/dist/rest/apis/index.js +1 -0
  12. package/dist/rest/apis/index.js.map +1 -1
  13. package/dist/rest/models/index.js.map +1 -1
  14. package/dist/rest/runtime.js +1 -1
  15. package/dist/rest/runtime.js.map +1 -1
  16. package/dist/types/rest/apis/MarketDataApi.d.ts +1 -1
  17. package/dist/types/rest/apis/OrderEntryApi.d.ts +1 -1
  18. package/dist/types/rest/apis/ReferenceDataApi.d.ts +1 -1
  19. package/dist/types/rest/apis/SpecsApi.d.ts +38 -0
  20. package/dist/types/rest/apis/SpecsApi.d.ts.map +1 -0
  21. package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
  22. package/dist/types/rest/apis/index.d.ts +1 -0
  23. package/dist/types/rest/apis/index.d.ts.map +1 -1
  24. package/dist/types/rest/models/index.d.ts +2 -2
  25. package/dist/types/rest/models/index.d.ts.map +1 -1
  26. package/dist/types/rest/runtime.d.ts +1 -1
  27. package/dist/types/websocket/types.d.ts +2 -2
  28. package/dist/types/websocket/types.d.ts.map +1 -1
  29. package/dist/websocket/types.js.map +1 -1
  30. package/package.json +2 -2
  31. package/rest/apis/MarketDataApi.ts +1 -1
  32. package/rest/apis/OrderEntryApi.ts +1 -1
  33. package/rest/apis/ReferenceDataApi.ts +1 -1
  34. package/rest/apis/SpecsApi.ts +82 -0
  35. package/rest/apis/WalletDataApi.ts +1 -1
  36. package/rest/apis/index.ts +1 -0
  37. package/rest/models/index.ts +2 -2
  38. package/rest/runtime.ts +1 -1
  39. package/websocket/types.ts +2 -2
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.1
7
+ * The version of the OpenAPI document: 2.0.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Reya DEX Trading API v2
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.3
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ServerError,
19
+ } from '../models/index';
20
+
21
+ /**
22
+ *
23
+ */
24
+ export class SpecsApi extends runtime.BaseAPI {
25
+
26
+ /**
27
+ * Returns the complete AsyncAPI specification for WebSocket API in YAML format
28
+ * Get AsyncAPI specification
29
+ */
30
+ async getAsyncApiSpecRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
31
+ const queryParameters: any = {};
32
+
33
+ const headerParameters: runtime.HTTPHeaders = {};
34
+
35
+ const response = await this.request({
36
+ path: `/asyncapi-spec.yaml`,
37
+ method: 'GET',
38
+ headers: headerParameters,
39
+ query: queryParameters,
40
+ }, initOverrides);
41
+
42
+ return new runtime.BlobApiResponse(response);
43
+ }
44
+
45
+ /**
46
+ * Returns the complete AsyncAPI specification for WebSocket API in YAML format
47
+ * Get AsyncAPI specification
48
+ */
49
+ async getAsyncApiSpec(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
50
+ const response = await this.getAsyncApiSpecRaw(initOverrides);
51
+ return await response.value();
52
+ }
53
+
54
+ /**
55
+ * Returns the complete OpenAPI specification for this API in YAML format
56
+ * Get OpenAPI specification
57
+ */
58
+ async getOpenApiSpecRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
59
+ const queryParameters: any = {};
60
+
61
+ const headerParameters: runtime.HTTPHeaders = {};
62
+
63
+ const response = await this.request({
64
+ path: `/openapi-spec.yaml`,
65
+ method: 'GET',
66
+ headers: headerParameters,
67
+ query: queryParameters,
68
+ }, initOverrides);
69
+
70
+ return new runtime.BlobApiResponse(response);
71
+ }
72
+
73
+ /**
74
+ * Returns the complete OpenAPI specification for this API in YAML format
75
+ * Get OpenAPI specification
76
+ */
77
+ async getOpenApiSpec(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
78
+ const response = await this.getOpenApiSpecRaw(initOverrides);
79
+ return await response.value();
80
+ }
81
+
82
+ }
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.1
7
+ * The version of the OpenAPI document: 2.0.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,4 +3,5 @@
3
3
  export * from './MarketDataApi';
4
4
  export * from './OrderEntryApi';
5
5
  export * from './ReferenceDataApi';
6
+ export * from './SpecsApi';
6
7
  export * from './WalletDataApi';
@@ -616,7 +616,7 @@ export interface Order {
616
616
  * @type {string}
617
617
  * @memberof Order
618
618
  */
619
- orderId?: string;
619
+ orderId: string;
620
620
  /**
621
621
  *
622
622
  * @type {string}
@@ -1090,7 +1090,7 @@ export interface Price {
1090
1090
  * @type {string}
1091
1091
  * @memberof Price
1092
1092
  */
1093
- oraclePrice?: string;
1093
+ oraclePrice: string;
1094
1094
  /**
1095
1095
  * The price currently quoted by the AMM for zero volume, from which trades are priced (equivalent to mid price in an order book); a trade of any size will be move this price up or down depending on the direction.
1096
1096
  * @type {string}
package/rest/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.1
7
+ * The version of the OpenAPI document: 2.0.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -69,7 +69,7 @@ export interface Order {
69
69
  exchangeId: number;
70
70
  symbol: string;
71
71
  accountId: number;
72
- orderId?: string;
72
+ orderId: string;
73
73
  qty?: string;
74
74
  execQty?: string;
75
75
  side: Side;
@@ -156,7 +156,7 @@ export interface PositionUpdatePayload {
156
156
 
157
157
  export interface Price {
158
158
  symbol: string;
159
- oraclePrice?: string;
159
+ oraclePrice: string;
160
160
  poolPrice?: string;
161
161
  updatedAt: number;
162
162
  additionalProperties?: Map<string, any>;