@sentio/api 1.0.2-rc.1 → 1.0.2-rc.11
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/README.md +48 -1
- package/dist/src/apis/DataApi.d.ts +3 -29
- package/dist/src/apis/DataApi.js +14 -76
- package/dist/src/apis/DataApi.js.map +1 -1
- package/dist/src/apis/DebugAndSimulationApi.d.ts +2 -1
- package/dist/src/apis/DebugAndSimulationApi.js +10 -10
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/PriceApi.d.ts +68 -0
- package/dist/src/apis/PriceApi.js +149 -0
- package/dist/src/apis/PriceApi.js.map +1 -0
- package/dist/src/apis/WebApi.js +9 -9
- package/dist/src/apis/index.d.ts +1 -0
- package/dist/src/apis/index.js +1 -0
- package/dist/src/apis/index.js.map +1 -1
- package/dist/src/models/CommonTimeRangeLite.d.ts +1 -1
- package/dist/src/models/GoogleProtobufAny.d.ts +2 -1
- package/dist/src/models/GoogleProtobufAny.js.map +1 -1
- package/dist/src/models/PriceServiceBatchGetPricesResponse.d.ts +32 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponse.js +40 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponse.js.map +1 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.d.ts +45 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js +45 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js.map +1 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.d.ts +32 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js +40 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js.map +1 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.d.ts +38 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.js +42 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.js.map +1 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.d.ts +44 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js +44 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js.map +1 -0
- package/dist/src/models/PriceServiceCoinID.d.ts +38 -0
- package/dist/src/models/PriceServiceCoinID.js +42 -0
- package/dist/src/models/PriceServiceCoinID.js.map +1 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.d.ts +38 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js +41 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js.map +1 -0
- package/dist/src/models/PriceServiceGetPriceResponse.d.ts +37 -0
- package/dist/src/models/PriceServiceGetPriceResponse.js +41 -0
- package/dist/src/models/PriceServiceGetPriceResponse.js.map +1 -0
- package/dist/src/models/PriceServiceListCoinsResponse.d.ts +40 -0
- package/dist/src/models/PriceServiceListCoinsResponse.js +43 -0
- package/dist/src/models/PriceServiceListCoinsResponse.js.map +1 -0
- package/dist/src/models/SolidityServiceSimulation.d.ts +16 -10
- package/dist/src/models/SolidityServiceSimulation.js +29 -9
- package/dist/src/models/SolidityServiceSimulation.js.map +1 -1
- package/dist/src/models/SolidityServiceTxIdentifier.d.ts +2 -2
- package/dist/src/models/SolidityServiceTxIdentifier.js +1 -3
- package/dist/src/models/SolidityServiceTxIdentifier.js.map +1 -1
- package/dist/src/models/WebServiceChartConfig.d.ts +7 -0
- package/dist/src/models/WebServiceChartConfig.js +3 -0
- package/dist/src/models/WebServiceChartConfig.js.map +1 -1
- package/dist/src/models/WebServiceChartConfigLineConfig.d.ts +32 -0
- package/dist/src/models/WebServiceChartConfigLineConfig.js +40 -0
- package/dist/src/models/WebServiceChartConfigLineConfig.js.map +1 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.d.ts +24 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.js +34 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.js.map +1 -0
- package/dist/src/models/index.d.ts +11 -2
- package/dist/src/models/index.js +11 -2
- package/dist/src/models/index.js.map +1 -1
- package/dist/src/runtime.js +1 -1
- package/dist/src/runtime.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DataApi.ts +13 -111
- package/src/apis/DebugAndSimulationApi.ts +13 -15
- package/src/apis/PriceApi.ts +220 -0
- package/src/apis/WebApi.ts +9 -9
- package/src/apis/index.ts +1 -0
- package/src/models/CommonTimeRangeLite.ts +1 -1
- package/src/models/GoogleProtobufAny.ts +2 -1
- package/src/models/PriceServiceBatchGetPricesResponse.ts +67 -0
- package/src/models/PriceServiceBatchGetPricesResponseCoinPrice.ts +89 -0
- package/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.ts +67 -0
- package/src/models/PriceServiceCheckLatestPriceResponse.ts +75 -0
- package/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.ts +83 -0
- package/src/models/PriceServiceCoinID.ts +75 -0
- package/src/models/PriceServiceCoinIDAddressIdentifier.ts +69 -0
- package/src/models/PriceServiceGetPriceResponse.ts +68 -0
- package/src/models/PriceServiceListCoinsResponse.ts +75 -0
- package/src/models/SolidityServiceSimulation.ts +36 -19
- package/src/models/SolidityServiceTxIdentifier.ts +3 -4
- package/src/models/WebServiceChartConfig.ts +14 -0
- package/src/models/WebServiceChartConfigLineConfig.ts +67 -0
- package/src/models/WebServiceChartConfigLineConfigStyle.ts +42 -0
- package/src/models/index.ts +11 -2
- package/src/runtime.ts +1 -1
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.d.ts +0 -75
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js +0 -55
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js.map +0 -1
- package/dist/src/models/InsightsServiceQueryRequest.d.ts +0 -95
- package/dist/src/models/InsightsServiceQueryRequest.js +0 -63
- package/dist/src/models/InsightsServiceQueryRequest.js.map +0 -1
- package/src/models/AnalyticServiceSyncExecuteSQLRequest.ts +0 -129
- package/src/models/InsightsServiceQueryRequest.ts +0 -165
package/src/apis/DataApi.ts
CHANGED
|
@@ -18,12 +18,10 @@ import type {
|
|
|
18
18
|
AnalyticServiceAnalyticServiceExecuteSQLBody,
|
|
19
19
|
AnalyticServiceLogQueryResponse,
|
|
20
20
|
AnalyticServiceSearchServiceQueryLogBody,
|
|
21
|
-
AnalyticServiceSyncExecuteSQLRequest,
|
|
22
21
|
AnalyticServiceSyncExecuteSQLResponse,
|
|
23
22
|
InsightsServiceInsightsServiceQueryBody,
|
|
24
23
|
InsightsServiceInsightsServiceRetentionBody,
|
|
25
24
|
InsightsServiceListCoinsResponse,
|
|
26
|
-
InsightsServiceQueryRequest,
|
|
27
25
|
InsightsServiceQueryResponse,
|
|
28
26
|
InsightsServiceRetentionRequest,
|
|
29
27
|
InsightsServiceRetentionResponse,
|
|
@@ -40,8 +38,6 @@ import {
|
|
|
40
38
|
AnalyticServiceLogQueryResponseToJSON,
|
|
41
39
|
AnalyticServiceSearchServiceQueryLogBodyFromJSON,
|
|
42
40
|
AnalyticServiceSearchServiceQueryLogBodyToJSON,
|
|
43
|
-
AnalyticServiceSyncExecuteSQLRequestFromJSON,
|
|
44
|
-
AnalyticServiceSyncExecuteSQLRequestToJSON,
|
|
45
41
|
AnalyticServiceSyncExecuteSQLResponseFromJSON,
|
|
46
42
|
AnalyticServiceSyncExecuteSQLResponseToJSON,
|
|
47
43
|
InsightsServiceInsightsServiceQueryBodyFromJSON,
|
|
@@ -50,8 +46,6 @@ import {
|
|
|
50
46
|
InsightsServiceInsightsServiceRetentionBodyToJSON,
|
|
51
47
|
InsightsServiceListCoinsResponseFromJSON,
|
|
52
48
|
InsightsServiceListCoinsResponseToJSON,
|
|
53
|
-
InsightsServiceQueryRequestFromJSON,
|
|
54
|
-
InsightsServiceQueryRequestToJSON,
|
|
55
49
|
InsightsServiceQueryResponseFromJSON,
|
|
56
50
|
InsightsServiceQueryResponseToJSON,
|
|
57
51
|
InsightsServiceRetentionRequestFromJSON,
|
|
@@ -76,10 +70,6 @@ export interface ExecuteSQLRequest {
|
|
|
76
70
|
body: AnalyticServiceAnalyticServiceExecuteSQLBody;
|
|
77
71
|
}
|
|
78
72
|
|
|
79
|
-
export interface ExecuteSQL2Request {
|
|
80
|
-
body: AnalyticServiceSyncExecuteSQLRequest;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
73
|
export interface ListCoinsRequest {
|
|
84
74
|
owner: string;
|
|
85
75
|
slug: string;
|
|
@@ -124,10 +114,6 @@ export interface QueryRequest {
|
|
|
124
114
|
body: InsightsServiceInsightsServiceQueryBody;
|
|
125
115
|
}
|
|
126
116
|
|
|
127
|
-
export interface Query2Request {
|
|
128
|
-
body: InsightsServiceQueryRequest;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
117
|
export interface QueryLogRequest {
|
|
132
118
|
owner: string;
|
|
133
119
|
slug: string;
|
|
@@ -172,7 +158,7 @@ export interface Retention2Request {
|
|
|
172
158
|
export class DataApi extends runtime.BaseAPI {
|
|
173
159
|
|
|
174
160
|
/**
|
|
175
|
-
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" .png) Find more: https://docs.sentio.xyz/
|
|
161
|
+
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" .png) Find more: https://docs.sentio.xyz/reference/data#sql-api
|
|
176
162
|
* Execute SQL
|
|
177
163
|
*/
|
|
178
164
|
async executeSQLRaw(requestParameters: ExecuteSQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AnalyticServiceSyncExecuteSQLResponse>> {
|
|
@@ -204,7 +190,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
204
190
|
headerParameters['Content-Type'] = 'application/json';
|
|
205
191
|
|
|
206
192
|
if (this.configuration && this.configuration.apiKey) {
|
|
207
|
-
headerParameters["
|
|
193
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
208
194
|
}
|
|
209
195
|
|
|
210
196
|
const response = await this.request({
|
|
@@ -219,7 +205,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
219
205
|
}
|
|
220
206
|
|
|
221
207
|
/**
|
|
222
|
-
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" .png) Find more: https://docs.sentio.xyz/
|
|
208
|
+
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" .png) Find more: https://docs.sentio.xyz/reference/data#sql-api
|
|
223
209
|
* Execute SQL
|
|
224
210
|
*/
|
|
225
211
|
async executeSQL(requestParameters: ExecuteSQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AnalyticServiceSyncExecuteSQLResponse> {
|
|
@@ -227,48 +213,6 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
227
213
|
return await response.value();
|
|
228
214
|
}
|
|
229
215
|
|
|
230
|
-
/**
|
|
231
|
-
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" .png) Find more: https://docs.sentio.xyz/docs/data-api#sql-api
|
|
232
|
-
* Execute SQL
|
|
233
|
-
*/
|
|
234
|
-
async executeSQL2Raw(requestParameters: ExecuteSQL2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AnalyticServiceSyncExecuteSQLResponse>> {
|
|
235
|
-
if (requestParameters['body'] == null) {
|
|
236
|
-
throw new runtime.RequiredError(
|
|
237
|
-
'body',
|
|
238
|
-
'Required parameter "body" was null or undefined when calling executeSQL2().'
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
const queryParameters: any = {};
|
|
243
|
-
|
|
244
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
245
|
-
|
|
246
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
247
|
-
|
|
248
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
249
|
-
headerParameters["Api-Key"] = await this.configuration.apiKey("Api-Key"); // ApiKeyAuth authentication
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
const response = await this.request({
|
|
253
|
-
path: `/api/v1/analytics/sql/execute`,
|
|
254
|
-
method: 'POST',
|
|
255
|
-
headers: headerParameters,
|
|
256
|
-
query: queryParameters,
|
|
257
|
-
body: AnalyticServiceSyncExecuteSQLRequestToJSON(requestParameters['body']),
|
|
258
|
-
}, initOverrides);
|
|
259
|
-
|
|
260
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AnalyticServiceSyncExecuteSQLResponseFromJSON(jsonValue));
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" .png) Find more: https://docs.sentio.xyz/docs/data-api#sql-api
|
|
265
|
-
* Execute SQL
|
|
266
|
-
*/
|
|
267
|
-
async executeSQL2(requestParameters: ExecuteSQL2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AnalyticServiceSyncExecuteSQLResponse> {
|
|
268
|
-
const response = await this.executeSQL2Raw(requestParameters, initOverrides);
|
|
269
|
-
return await response.value();
|
|
270
|
-
}
|
|
271
|
-
|
|
272
216
|
/**
|
|
273
217
|
* Get a list of coins in a project.
|
|
274
218
|
* List coins
|
|
@@ -313,7 +257,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
313
257
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
314
258
|
|
|
315
259
|
if (this.configuration && this.configuration.apiKey) {
|
|
316
|
-
headerParameters["
|
|
260
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
317
261
|
}
|
|
318
262
|
|
|
319
263
|
const response = await this.request({
|
|
@@ -373,7 +317,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
373
317
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
374
318
|
|
|
375
319
|
if (this.configuration && this.configuration.apiKey) {
|
|
376
|
-
headerParameters["
|
|
320
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
377
321
|
}
|
|
378
322
|
|
|
379
323
|
const response = await this.request({
|
|
@@ -416,7 +360,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
416
360
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
417
361
|
|
|
418
362
|
if (this.configuration && this.configuration.apiKey) {
|
|
419
|
-
headerParameters["
|
|
363
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
420
364
|
}
|
|
421
365
|
|
|
422
366
|
const response = await this.request({
|
|
@@ -469,7 +413,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
469
413
|
headerParameters['Content-Type'] = 'application/json';
|
|
470
414
|
|
|
471
415
|
if (this.configuration && this.configuration.apiKey) {
|
|
472
|
-
headerParameters["
|
|
416
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
473
417
|
}
|
|
474
418
|
|
|
475
419
|
const response = await this.request({
|
|
@@ -524,7 +468,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
524
468
|
headerParameters['Content-Type'] = 'application/json';
|
|
525
469
|
|
|
526
470
|
if (this.configuration && this.configuration.apiKey) {
|
|
527
|
-
headerParameters["
|
|
471
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
528
472
|
}
|
|
529
473
|
|
|
530
474
|
const response = await this.request({
|
|
@@ -580,7 +524,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
580
524
|
headerParameters['Content-Type'] = 'application/json';
|
|
581
525
|
|
|
582
526
|
if (this.configuration && this.configuration.apiKey) {
|
|
583
|
-
headerParameters["
|
|
527
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
584
528
|
}
|
|
585
529
|
|
|
586
530
|
const response = await this.request({
|
|
@@ -603,48 +547,6 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
603
547
|
return await response.value();
|
|
604
548
|
}
|
|
605
549
|
|
|
606
|
-
/**
|
|
607
|
-
* Query for metrics,event logs and coin prices in a project.
|
|
608
|
-
* Insight Query
|
|
609
|
-
*/
|
|
610
|
-
async query2Raw(requestParameters: Query2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InsightsServiceQueryResponse>> {
|
|
611
|
-
if (requestParameters['body'] == null) {
|
|
612
|
-
throw new runtime.RequiredError(
|
|
613
|
-
'body',
|
|
614
|
-
'Required parameter "body" was null or undefined when calling query2().'
|
|
615
|
-
);
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
const queryParameters: any = {};
|
|
619
|
-
|
|
620
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
621
|
-
|
|
622
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
623
|
-
|
|
624
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
625
|
-
headerParameters["Api-Key"] = await this.configuration.apiKey("Api-Key"); // ApiKeyAuth authentication
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
const response = await this.request({
|
|
629
|
-
path: `/api/v1/insights/query`,
|
|
630
|
-
method: 'POST',
|
|
631
|
-
headers: headerParameters,
|
|
632
|
-
query: queryParameters,
|
|
633
|
-
body: InsightsServiceQueryRequestToJSON(requestParameters['body']),
|
|
634
|
-
}, initOverrides);
|
|
635
|
-
|
|
636
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => InsightsServiceQueryResponseFromJSON(jsonValue));
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* Query for metrics,event logs and coin prices in a project.
|
|
641
|
-
* Insight Query
|
|
642
|
-
*/
|
|
643
|
-
async query2(requestParameters: Query2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InsightsServiceQueryResponse> {
|
|
644
|
-
const response = await this.query2Raw(requestParameters, initOverrides);
|
|
645
|
-
return await response.value();
|
|
646
|
-
}
|
|
647
|
-
|
|
648
550
|
/**
|
|
649
551
|
* Query event logs
|
|
650
552
|
*/
|
|
@@ -677,7 +579,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
677
579
|
headerParameters['Content-Type'] = 'application/json';
|
|
678
580
|
|
|
679
581
|
if (this.configuration && this.configuration.apiKey) {
|
|
680
|
-
headerParameters["
|
|
582
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
681
583
|
}
|
|
682
584
|
|
|
683
585
|
const response = await this.request({
|
|
@@ -790,7 +692,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
790
692
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
791
693
|
|
|
792
694
|
if (this.configuration && this.configuration.apiKey) {
|
|
793
|
-
headerParameters["
|
|
695
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
794
696
|
}
|
|
795
697
|
|
|
796
698
|
const response = await this.request({
|
|
@@ -844,7 +746,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
844
746
|
headerParameters['Content-Type'] = 'application/json';
|
|
845
747
|
|
|
846
748
|
if (this.configuration && this.configuration.apiKey) {
|
|
847
|
-
headerParameters["
|
|
749
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
848
750
|
}
|
|
849
751
|
|
|
850
752
|
const response = await this.request({
|
|
@@ -886,7 +788,7 @@ export class DataApi extends runtime.BaseAPI {
|
|
|
886
788
|
headerParameters['Content-Type'] = 'application/json';
|
|
887
789
|
|
|
888
790
|
if (this.configuration && this.configuration.apiKey) {
|
|
889
|
-
headerParameters["
|
|
791
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
890
792
|
}
|
|
891
793
|
|
|
892
794
|
const response = await this.request({
|
|
@@ -48,9 +48,9 @@ import {
|
|
|
48
48
|
|
|
49
49
|
export interface GetCallTraceRequest {
|
|
50
50
|
networkId: string;
|
|
51
|
-
txIdTxHash: string;
|
|
52
51
|
projectOwner?: string;
|
|
53
52
|
projectSlug?: string;
|
|
53
|
+
txIdTxHash?: string;
|
|
54
54
|
txIdSimulationId?: string;
|
|
55
55
|
txIdBundleId?: string;
|
|
56
56
|
disableOptimizer?: boolean;
|
|
@@ -73,6 +73,7 @@ export interface GetSimulationBundleRequest {
|
|
|
73
73
|
export interface GetSimulationsRequest {
|
|
74
74
|
projectOwner?: string;
|
|
75
75
|
projectSlug?: string;
|
|
76
|
+
labelContains?: string;
|
|
76
77
|
page?: number;
|
|
77
78
|
pageSize?: number;
|
|
78
79
|
}
|
|
@@ -119,13 +120,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
119
120
|
);
|
|
120
121
|
}
|
|
121
122
|
|
|
122
|
-
if (requestParameters['txIdTxHash'] == null) {
|
|
123
|
-
throw new runtime.RequiredError(
|
|
124
|
-
'txIdTxHash',
|
|
125
|
-
'Required parameter "txIdTxHash" was null or undefined when calling getCallTrace().'
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
123
|
const queryParameters: any = {};
|
|
130
124
|
|
|
131
125
|
if (requestParameters['projectOwner'] != null) {
|
|
@@ -167,7 +161,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
167
161
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
162
|
|
|
169
163
|
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
-
headerParameters["
|
|
164
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
171
165
|
}
|
|
172
166
|
|
|
173
167
|
const response = await this.request({
|
|
@@ -213,7 +207,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
213
207
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
214
208
|
|
|
215
209
|
if (this.configuration && this.configuration.apiKey) {
|
|
216
|
-
headerParameters["
|
|
210
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
217
211
|
}
|
|
218
212
|
|
|
219
213
|
const response = await this.request({
|
|
@@ -258,7 +252,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
258
252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
259
253
|
|
|
260
254
|
if (this.configuration && this.configuration.apiKey) {
|
|
261
|
-
headerParameters["
|
|
255
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
262
256
|
}
|
|
263
257
|
|
|
264
258
|
const response = await this.request({
|
|
@@ -293,6 +287,10 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
293
287
|
queryParameters['projectSlug'] = requestParameters['projectSlug'];
|
|
294
288
|
}
|
|
295
289
|
|
|
290
|
+
if (requestParameters['labelContains'] != null) {
|
|
291
|
+
queryParameters['labelContains'] = requestParameters['labelContains'];
|
|
292
|
+
}
|
|
293
|
+
|
|
296
294
|
if (requestParameters['page'] != null) {
|
|
297
295
|
queryParameters['page'] = requestParameters['page'];
|
|
298
296
|
}
|
|
@@ -304,7 +302,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
304
302
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
305
303
|
|
|
306
304
|
if (this.configuration && this.configuration.apiKey) {
|
|
307
|
-
headerParameters["
|
|
305
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
308
306
|
}
|
|
309
307
|
|
|
310
308
|
const response = await this.request({
|
|
@@ -390,7 +388,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
390
388
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
391
389
|
|
|
392
390
|
if (this.configuration && this.configuration.apiKey) {
|
|
393
|
-
headerParameters["
|
|
391
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
394
392
|
}
|
|
395
393
|
|
|
396
394
|
const response = await this.request({
|
|
@@ -430,7 +428,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
430
428
|
headerParameters['Content-Type'] = 'application/json';
|
|
431
429
|
|
|
432
430
|
if (this.configuration && this.configuration.apiKey) {
|
|
433
|
-
headerParameters["
|
|
431
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
434
432
|
}
|
|
435
433
|
|
|
436
434
|
const response = await this.request({
|
|
@@ -472,7 +470,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
472
470
|
headerParameters['Content-Type'] = 'application/json';
|
|
473
471
|
|
|
474
472
|
if (this.configuration && this.configuration.apiKey) {
|
|
475
|
-
headerParameters["
|
|
473
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
476
474
|
}
|
|
477
475
|
|
|
478
476
|
const response = await this.request({
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
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.js';
|
|
17
|
+
import type {
|
|
18
|
+
PriceServiceBatchGetPricesResponse,
|
|
19
|
+
PriceServiceCheckLatestPriceResponse,
|
|
20
|
+
PriceServiceGetPriceResponse,
|
|
21
|
+
PriceServiceListCoinsResponse,
|
|
22
|
+
} from '../models/index.js';
|
|
23
|
+
import {
|
|
24
|
+
PriceServiceBatchGetPricesResponseFromJSON,
|
|
25
|
+
PriceServiceBatchGetPricesResponseToJSON,
|
|
26
|
+
PriceServiceCheckLatestPriceResponseFromJSON,
|
|
27
|
+
PriceServiceCheckLatestPriceResponseToJSON,
|
|
28
|
+
PriceServiceGetPriceResponseFromJSON,
|
|
29
|
+
PriceServiceGetPriceResponseToJSON,
|
|
30
|
+
PriceServiceListCoinsResponseFromJSON,
|
|
31
|
+
PriceServiceListCoinsResponseToJSON,
|
|
32
|
+
} from '../models/index.js';
|
|
33
|
+
|
|
34
|
+
export interface BatchGetPricesRequest {
|
|
35
|
+
timestamps?: Array<Date>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface GetPriceRequest {
|
|
39
|
+
timestamp?: Date;
|
|
40
|
+
coinIdSymbol?: string;
|
|
41
|
+
coinIdAddressAddress?: string;
|
|
42
|
+
coinIdAddressChain?: string;
|
|
43
|
+
source?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface PriceListCoinsRequest {
|
|
47
|
+
limit?: number;
|
|
48
|
+
offset?: number;
|
|
49
|
+
searchQuery?: string;
|
|
50
|
+
chain?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export class PriceApi extends runtime.BaseAPI {
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Batch get prices
|
|
60
|
+
*/
|
|
61
|
+
async batchGetPricesRaw(requestParameters: BatchGetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceBatchGetPricesResponse>> {
|
|
62
|
+
const queryParameters: any = {};
|
|
63
|
+
|
|
64
|
+
if (requestParameters['timestamps'] != null) {
|
|
65
|
+
queryParameters['timestamps'] = requestParameters['timestamps'];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
+
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const response = await this.request({
|
|
75
|
+
path: `/api/v1/prices/batch`,
|
|
76
|
+
method: 'GET',
|
|
77
|
+
headers: headerParameters,
|
|
78
|
+
query: queryParameters,
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
|
|
81
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceBatchGetPricesResponseFromJSON(jsonValue));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Batch get prices
|
|
86
|
+
*/
|
|
87
|
+
async batchGetPrices(requestParameters: BatchGetPricesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceBatchGetPricesResponse> {
|
|
88
|
+
const response = await this.batchGetPricesRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check latest price
|
|
94
|
+
*/
|
|
95
|
+
async checkLatestPriceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceCheckLatestPriceResponse>> {
|
|
96
|
+
const queryParameters: any = {};
|
|
97
|
+
|
|
98
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
99
|
+
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/api/v1/prices/check_latest`,
|
|
106
|
+
method: 'GET',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceCheckLatestPriceResponseFromJSON(jsonValue));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check latest price
|
|
116
|
+
*/
|
|
117
|
+
async checkLatestPrice(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceCheckLatestPriceResponse> {
|
|
118
|
+
const response = await this.checkLatestPriceRaw(initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
124
|
+
* Get price
|
|
125
|
+
*/
|
|
126
|
+
async getPriceRaw(requestParameters: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceGetPriceResponse>> {
|
|
127
|
+
const queryParameters: any = {};
|
|
128
|
+
|
|
129
|
+
if (requestParameters['timestamp'] != null) {
|
|
130
|
+
queryParameters['timestamp'] = (requestParameters['timestamp'] as any).toISOString();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (requestParameters['coinIdSymbol'] != null) {
|
|
134
|
+
queryParameters['coinId.symbol'] = requestParameters['coinIdSymbol'];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (requestParameters['coinIdAddressAddress'] != null) {
|
|
138
|
+
queryParameters['coinId.address.address'] = requestParameters['coinIdAddressAddress'];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (requestParameters['coinIdAddressChain'] != null) {
|
|
142
|
+
queryParameters['coinId.address.chain'] = requestParameters['coinIdAddressChain'];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (requestParameters['source'] != null) {
|
|
146
|
+
queryParameters['source'] = requestParameters['source'];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
150
|
+
|
|
151
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
152
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const response = await this.request({
|
|
156
|
+
path: `/api/v1/prices`,
|
|
157
|
+
method: 'GET',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
query: queryParameters,
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceGetPriceResponseFromJSON(jsonValue));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
167
|
+
* Get price
|
|
168
|
+
*/
|
|
169
|
+
async getPrice(requestParameters: GetPriceRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceGetPriceResponse> {
|
|
170
|
+
const response = await this.getPriceRaw(requestParameters, initOverrides);
|
|
171
|
+
return await response.value();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* List coins
|
|
176
|
+
*/
|
|
177
|
+
async priceListCoinsRaw(requestParameters: PriceListCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceListCoinsResponse>> {
|
|
178
|
+
const queryParameters: any = {};
|
|
179
|
+
|
|
180
|
+
if (requestParameters['limit'] != null) {
|
|
181
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (requestParameters['offset'] != null) {
|
|
185
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (requestParameters['searchQuery'] != null) {
|
|
189
|
+
queryParameters['searchQuery'] = requestParameters['searchQuery'];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (requestParameters['chain'] != null) {
|
|
193
|
+
queryParameters['chain'] = requestParameters['chain'];
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
|
+
|
|
198
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
199
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/api/v1/prices/coins`,
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides);
|
|
208
|
+
|
|
209
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceListCoinsResponseFromJSON(jsonValue));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* List coins
|
|
214
|
+
*/
|
|
215
|
+
async priceListCoins(requestParameters: PriceListCoinsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceListCoinsResponse> {
|
|
216
|
+
const response = await this.priceListCoinsRaw(requestParameters, initOverrides);
|
|
217
|
+
return await response.value();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
}
|
package/src/apis/WebApi.ts
CHANGED
|
@@ -126,7 +126,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
126
126
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
127
127
|
|
|
128
128
|
if (this.configuration && this.configuration.apiKey) {
|
|
129
|
-
headerParameters["
|
|
129
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
const response = await this.request({
|
|
@@ -163,7 +163,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
163
163
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
164
164
|
|
|
165
165
|
if (this.configuration && this.configuration.apiKey) {
|
|
166
|
-
headerParameters["
|
|
166
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
const response = await this.request({
|
|
@@ -212,7 +212,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
212
212
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
213
213
|
|
|
214
214
|
if (this.configuration && this.configuration.apiKey) {
|
|
215
|
-
headerParameters["
|
|
215
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
const response = await this.request({
|
|
@@ -267,7 +267,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
267
267
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
268
268
|
|
|
269
269
|
if (this.configuration && this.configuration.apiKey) {
|
|
270
|
-
headerParameters["
|
|
270
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
const response = await this.request({
|
|
@@ -311,7 +311,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
311
311
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
312
312
|
|
|
313
313
|
if (this.configuration && this.configuration.apiKey) {
|
|
314
|
-
headerParameters["
|
|
314
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
const response = await this.request({
|
|
@@ -349,7 +349,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
349
349
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
350
350
|
|
|
351
351
|
if (this.configuration && this.configuration.apiKey) {
|
|
352
|
-
headerParameters["
|
|
352
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
const response = await this.request({
|
|
@@ -388,7 +388,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
388
388
|
headerParameters['Content-Type'] = 'application/json';
|
|
389
389
|
|
|
390
390
|
if (this.configuration && this.configuration.apiKey) {
|
|
391
|
-
headerParameters["
|
|
391
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
const response = await this.request({
|
|
@@ -435,7 +435,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
435
435
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
436
436
|
|
|
437
437
|
if (this.configuration && this.configuration.apiKey) {
|
|
438
|
-
headerParameters["
|
|
438
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
const response = await this.request({
|
|
@@ -487,7 +487,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
487
487
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
488
488
|
|
|
489
489
|
if (this.configuration && this.configuration.apiKey) {
|
|
490
|
-
headerParameters["
|
|
490
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
const response = await this.request({
|