@sentio/api 1.0.3-rc.6 → 1.0.3-rc.60
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/dist/src/client.gen.js +1 -1
- package/dist/src/client.gen.js.map +1 -1
- package/dist/src/sdk.gen.d.ts +125 -62
- package/dist/src/sdk.gen.js +287 -1
- package/dist/src/sdk.gen.js.map +1 -1
- package/dist/src/types.gen.d.ts +3606 -2987
- package/package.json +1 -1
- package/src/client.gen.ts +1 -1
- package/src/sdk.gen.ts +422 -123
- package/src/types.gen.ts +3624 -3477
package/src/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ai_service, alert_service, analytic_service, web_service, insights_service, metrics_service, price_service, processor_service, common, solidity_service, google, solidit_service } from './types.gen';
|
|
5
5
|
import { client as _heyApiClient } from './client.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
@@ -18,12 +18,89 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
18
18
|
meta?: Record<string, unknown>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export class AiService {
|
|
22
|
+
/**
|
|
23
|
+
* Create Chat Session
|
|
24
|
+
* Initialize a new AI chat session. Returns a session_id that can be used with PostSessionMessage to have a conversation with the AI. Messages are generated as part of runs, with is_final indicating run completion.
|
|
25
|
+
*/
|
|
26
|
+
public static createChatSession<ThrowOnError extends boolean = false>(options: Options<ai_service.CreateChatSessionData, ThrowOnError>) {
|
|
27
|
+
return (options.client ?? _heyApiClient).post<ai_service.CreateChatSessionResponse2, unknown, ThrowOnError>({
|
|
28
|
+
security: [
|
|
29
|
+
{
|
|
30
|
+
name: 'api-key',
|
|
31
|
+
type: 'apiKey'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
in: 'query',
|
|
35
|
+
name: 'api-key',
|
|
36
|
+
type: 'apiKey'
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
url: '/api/v1/ai/chat',
|
|
40
|
+
...options,
|
|
41
|
+
headers: {
|
|
42
|
+
'Content-Type': 'application/json',
|
|
43
|
+
...options?.headers
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Query Chat Session
|
|
50
|
+
* Retrieve information about an existing chat session, returning only messages after the specified cursor position. Messages include run_id to identify generation runs.
|
|
51
|
+
*/
|
|
52
|
+
public static queryChatSession<ThrowOnError extends boolean = false>(options: Options<ai_service.QueryChatSessionData, ThrowOnError>) {
|
|
53
|
+
return (options.client ?? _heyApiClient).get<ai_service.QueryChatSessionResponse, unknown, ThrowOnError>({
|
|
54
|
+
security: [
|
|
55
|
+
{
|
|
56
|
+
name: 'api-key',
|
|
57
|
+
type: 'apiKey'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
in: 'query',
|
|
61
|
+
name: 'api-key',
|
|
62
|
+
type: 'apiKey'
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
url: '/api/v1/ai/chat/{sessionId}',
|
|
66
|
+
...options
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Post Session Message
|
|
72
|
+
* Add a new message to an existing chat session. This will trigger AI message generation as a run. check is_final to know when all messages for the run have been generated.
|
|
73
|
+
*/
|
|
74
|
+
public static postSessionMessage<ThrowOnError extends boolean = false>(options: Options<ai_service.PostSessionMessageData, ThrowOnError>) {
|
|
75
|
+
return (options.client ?? _heyApiClient).post<ai_service.PostSessionMessageResponse2, unknown, ThrowOnError>({
|
|
76
|
+
security: [
|
|
77
|
+
{
|
|
78
|
+
name: 'api-key',
|
|
79
|
+
type: 'apiKey'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
in: 'query',
|
|
83
|
+
name: 'api-key',
|
|
84
|
+
type: 'apiKey'
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
url: '/api/v1/ai/chat/{sessionId}/message',
|
|
88
|
+
...options,
|
|
89
|
+
headers: {
|
|
90
|
+
'Content-Type': 'application/json',
|
|
91
|
+
...options?.headers
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
|
|
21
98
|
export class AlertsService {
|
|
22
99
|
/**
|
|
23
100
|
* Save an alert rule
|
|
24
101
|
*/
|
|
25
|
-
public static saveAlertRule<ThrowOnError extends boolean = false>(options: Options<SaveAlertRuleData, ThrowOnError>) {
|
|
26
|
-
return (options.client ?? _heyApiClient).post<SaveAlertRuleResponse, unknown, ThrowOnError>({
|
|
102
|
+
public static saveAlertRule<ThrowOnError extends boolean = false>(options: Options<alert_service.SaveAlertRuleData, ThrowOnError>) {
|
|
103
|
+
return (options.client ?? _heyApiClient).post<alert_service.SaveAlertRuleResponse, unknown, ThrowOnError>({
|
|
27
104
|
security: [
|
|
28
105
|
{
|
|
29
106
|
name: 'api-key',
|
|
@@ -47,8 +124,8 @@ export class AlertsService {
|
|
|
47
124
|
/**
|
|
48
125
|
* List all alert rules for a project
|
|
49
126
|
*/
|
|
50
|
-
public static getAlertRules<ThrowOnError extends boolean = false>(options: Options<GetAlertRulesData, ThrowOnError>) {
|
|
51
|
-
return (options.client ?? _heyApiClient).get<
|
|
127
|
+
public static getAlertRules<ThrowOnError extends boolean = false>(options: Options<alert_service.GetAlertRulesData, ThrowOnError>) {
|
|
128
|
+
return (options.client ?? _heyApiClient).get<alert_service.GetAlertRulesResponse2, unknown, ThrowOnError>({
|
|
52
129
|
security: [
|
|
53
130
|
{
|
|
54
131
|
name: 'api-key',
|
|
@@ -68,8 +145,8 @@ export class AlertsService {
|
|
|
68
145
|
/**
|
|
69
146
|
* Delete an alert rule
|
|
70
147
|
*/
|
|
71
|
-
public static deleteAlertRule<ThrowOnError extends boolean = false>(options: Options<DeleteAlertRuleData, ThrowOnError>) {
|
|
72
|
-
return (options.client ?? _heyApiClient).delete<DeleteAlertRuleResponse, unknown, ThrowOnError>({
|
|
148
|
+
public static deleteAlertRule<ThrowOnError extends boolean = false>(options: Options<alert_service.DeleteAlertRuleData, ThrowOnError>) {
|
|
149
|
+
return (options.client ?? _heyApiClient).delete<alert_service.DeleteAlertRuleResponse, unknown, ThrowOnError>({
|
|
73
150
|
security: [
|
|
74
151
|
{
|
|
75
152
|
name: 'api-key',
|
|
@@ -89,8 +166,8 @@ export class AlertsService {
|
|
|
89
166
|
/**
|
|
90
167
|
* Save an alert rule
|
|
91
168
|
*/
|
|
92
|
-
public static saveAlertRule2<ThrowOnError extends boolean = false>(options: Options<SaveAlertRule2Data, ThrowOnError>) {
|
|
93
|
-
return (options.client ?? _heyApiClient).put<SaveAlertRule2Response, unknown, ThrowOnError>({
|
|
169
|
+
public static saveAlertRule2<ThrowOnError extends boolean = false>(options: Options<alert_service.SaveAlertRule2Data, ThrowOnError>) {
|
|
170
|
+
return (options.client ?? _heyApiClient).put<alert_service.SaveAlertRule2Response, unknown, ThrowOnError>({
|
|
94
171
|
security: [
|
|
95
172
|
{
|
|
96
173
|
name: 'api-key',
|
|
@@ -114,8 +191,8 @@ export class AlertsService {
|
|
|
114
191
|
/**
|
|
115
192
|
* Find an alert rule by id, and list all alerts for this rule
|
|
116
193
|
*/
|
|
117
|
-
public static getAlert<ThrowOnError extends boolean = false>(options: Options<GetAlertData, ThrowOnError>) {
|
|
118
|
-
return (options.client ?? _heyApiClient).get<
|
|
194
|
+
public static getAlert<ThrowOnError extends boolean = false>(options: Options<alert_service.GetAlertData, ThrowOnError>) {
|
|
195
|
+
return (options.client ?? _heyApiClient).get<alert_service.GetAlertResponse2, unknown, ThrowOnError>({
|
|
119
196
|
security: [
|
|
120
197
|
{
|
|
121
198
|
name: 'api-key',
|
|
@@ -135,12 +212,82 @@ export class AlertsService {
|
|
|
135
212
|
}
|
|
136
213
|
|
|
137
214
|
export class DataService {
|
|
215
|
+
/**
|
|
216
|
+
* Save Sharing SQL
|
|
217
|
+
* Save or update sharing settings for a SQL query.
|
|
218
|
+
*/
|
|
219
|
+
public static saveSharingSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveSharingSqlData, ThrowOnError>) {
|
|
220
|
+
return (options.client ?? _heyApiClient).post<analytic_service.SaveSharingSqlResponse2, unknown, ThrowOnError>({
|
|
221
|
+
security: [
|
|
222
|
+
{
|
|
223
|
+
name: 'api-key',
|
|
224
|
+
type: 'apiKey'
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
in: 'query',
|
|
228
|
+
name: 'api-key',
|
|
229
|
+
type: 'apiKey'
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
url: '/api/v1/analytics/sql/sharing',
|
|
233
|
+
...options,
|
|
234
|
+
headers: {
|
|
235
|
+
'Content-Type': 'application/json',
|
|
236
|
+
...options?.headers
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Get Sharing SQL
|
|
243
|
+
* Get sharing settings for a SQL query.
|
|
244
|
+
*/
|
|
245
|
+
public static getSharingSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.GetSharingSqlData, ThrowOnError>) {
|
|
246
|
+
return (options.client ?? _heyApiClient).get<analytic_service.GetSharingSqlResponse2, unknown, ThrowOnError>({
|
|
247
|
+
security: [
|
|
248
|
+
{
|
|
249
|
+
name: 'api-key',
|
|
250
|
+
type: 'apiKey'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
in: 'query',
|
|
254
|
+
name: 'api-key',
|
|
255
|
+
type: 'apiKey'
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
url: '/api/v1/analytics/sql/sharing/{id}',
|
|
259
|
+
...options
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Query Tables
|
|
265
|
+
* Query tables in a project. use flag to control which type of tables to include.
|
|
266
|
+
*/
|
|
267
|
+
public static queryTables2<ThrowOnError extends boolean = false>(options?: Options<analytic_service.QueryTables2Data, ThrowOnError>) {
|
|
268
|
+
return (options?.client ?? _heyApiClient).get<analytic_service.QueryTables2Response, unknown, ThrowOnError>({
|
|
269
|
+
security: [
|
|
270
|
+
{
|
|
271
|
+
name: 'api-key',
|
|
272
|
+
type: 'apiKey'
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
in: 'query',
|
|
276
|
+
name: 'api-key',
|
|
277
|
+
type: 'apiKey'
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
url: '/api/v1/analytics/sql/tables',
|
|
281
|
+
...options
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
138
285
|
/**
|
|
139
286
|
* Cancel SQL Query
|
|
140
287
|
* Cancel a SQL query by execution_id.
|
|
141
288
|
*/
|
|
142
|
-
public static cancelSqlQuery<ThrowOnError extends boolean = false>(options: Options<CancelSqlQueryData, ThrowOnError>) {
|
|
143
|
-
return (options.client ?? _heyApiClient).put<CancelSqlQueryResponse, unknown, ThrowOnError>({
|
|
289
|
+
public static cancelSqlQuery<ThrowOnError extends boolean = false>(options: Options<analytic_service.CancelSqlQueryData, ThrowOnError>) {
|
|
290
|
+
return (options.client ?? _heyApiClient).put<analytic_service.CancelSqlQueryResponse, unknown, ThrowOnError>({
|
|
144
291
|
security: [
|
|
145
292
|
{
|
|
146
293
|
name: 'api-key',
|
|
@@ -165,8 +312,8 @@ export class DataService {
|
|
|
165
312
|
*
|
|
166
313
|
* Find more: https://docs.sentio.xyz/reference/data#sql-api
|
|
167
314
|
*/
|
|
168
|
-
public static executeSql<ThrowOnError extends boolean = false>(options: Options<ExecuteSqlData, ThrowOnError>) {
|
|
169
|
-
return (options.client ?? _heyApiClient).post<ExecuteSqlResponse, unknown, ThrowOnError>({
|
|
315
|
+
public static executeSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.ExecuteSqlData, ThrowOnError>) {
|
|
316
|
+
return (options.client ?? _heyApiClient).post<analytic_service.ExecuteSqlResponse, unknown, ThrowOnError>({
|
|
170
317
|
security: [
|
|
171
318
|
{
|
|
172
319
|
name: 'api-key',
|
|
@@ -191,8 +338,8 @@ export class DataService {
|
|
|
191
338
|
* Execute SQL by Async
|
|
192
339
|
* Execute SQL in a project asynchronously.
|
|
193
340
|
*/
|
|
194
|
-
public static executeSqlAsync<ThrowOnError extends boolean = false>(options: Options<ExecuteSqlAsyncData, ThrowOnError>) {
|
|
195
|
-
return (options.client ?? _heyApiClient).post<ExecuteSqlAsyncResponse, unknown, ThrowOnError>({
|
|
341
|
+
public static executeSqlAsync<ThrowOnError extends boolean = false>(options: Options<analytic_service.ExecuteSqlAsyncData, ThrowOnError>) {
|
|
342
|
+
return (options.client ?? _heyApiClient).post<analytic_service.ExecuteSqlAsyncResponse, unknown, ThrowOnError>({
|
|
196
343
|
security: [
|
|
197
344
|
{
|
|
198
345
|
name: 'api-key',
|
|
@@ -217,8 +364,8 @@ export class DataService {
|
|
|
217
364
|
* Query SQL Execution Detail
|
|
218
365
|
* Query the execution detail of a SQL query by execution_id.
|
|
219
366
|
*/
|
|
220
|
-
public static querySqlExecutionDetail<ThrowOnError extends boolean = false>(options: Options<QuerySqlExecutionDetailData, ThrowOnError>) {
|
|
221
|
-
return (options.client ?? _heyApiClient).get<
|
|
367
|
+
public static querySqlExecutionDetail<ThrowOnError extends boolean = false>(options: Options<analytic_service.QuerySqlExecutionDetailData, ThrowOnError>) {
|
|
368
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QuerySqlExecutionDetailResponse2, unknown, ThrowOnError>({
|
|
222
369
|
security: [
|
|
223
370
|
{
|
|
224
371
|
name: 'api-key',
|
|
@@ -239,8 +386,8 @@ export class DataService {
|
|
|
239
386
|
* Query SQL Result
|
|
240
387
|
* Query the result of a SQL query by execution_id.
|
|
241
388
|
*/
|
|
242
|
-
public static querySqlResult<ThrowOnError extends boolean = false>(options: Options<QuerySqlResultData, ThrowOnError>) {
|
|
243
|
-
return (options.client ?? _heyApiClient).get<
|
|
389
|
+
public static querySqlResult<ThrowOnError extends boolean = false>(options: Options<analytic_service.QuerySqlResultData, ThrowOnError>) {
|
|
390
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QuerySqlResultResponse2, unknown, ThrowOnError>({
|
|
244
391
|
security: [
|
|
245
392
|
{
|
|
246
393
|
name: 'api-key',
|
|
@@ -261,8 +408,8 @@ export class DataService {
|
|
|
261
408
|
* Save Refreshable Materialized View
|
|
262
409
|
* Save or update a refreshable materialized view in a project.
|
|
263
410
|
*/
|
|
264
|
-
public static saveRefreshableMaterializedView<ThrowOnError extends boolean = false>(options: Options<SaveRefreshableMaterializedViewData, ThrowOnError>) {
|
|
265
|
-
return (options.client ?? _heyApiClient).post<
|
|
411
|
+
public static saveRefreshableMaterializedView<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveRefreshableMaterializedViewData, ThrowOnError>) {
|
|
412
|
+
return (options.client ?? _heyApiClient).post<analytic_service.SaveRefreshableMaterializedViewResponse2, unknown, ThrowOnError>({
|
|
266
413
|
security: [
|
|
267
414
|
{
|
|
268
415
|
name: 'api-key',
|
|
@@ -287,8 +434,8 @@ export class DataService {
|
|
|
287
434
|
* Delete Refreshable Materialized View
|
|
288
435
|
* Delete a refreshable materialized view in a project.
|
|
289
436
|
*/
|
|
290
|
-
public static deleteRefreshableMaterializedView<ThrowOnError extends boolean = false>(options: Options<DeleteRefreshableMaterializedViewData, ThrowOnError>) {
|
|
291
|
-
return (options.client ?? _heyApiClient).delete<DeleteRefreshableMaterializedViewResponse, unknown, ThrowOnError>({
|
|
437
|
+
public static deleteRefreshableMaterializedView<ThrowOnError extends boolean = false>(options: Options<analytic_service.DeleteRefreshableMaterializedViewData, ThrowOnError>) {
|
|
438
|
+
return (options.client ?? _heyApiClient).delete<analytic_service.DeleteRefreshableMaterializedViewResponse, unknown, ThrowOnError>({
|
|
292
439
|
security: [
|
|
293
440
|
{
|
|
294
441
|
name: 'api-key',
|
|
@@ -309,8 +456,8 @@ export class DataService {
|
|
|
309
456
|
* Get Refreshable Materialized View Status
|
|
310
457
|
* Get the status of a refreshable materialized view in a project.
|
|
311
458
|
*/
|
|
312
|
-
public static getRefreshableMaterializedStatus<ThrowOnError extends boolean = false>(options: Options<GetRefreshableMaterializedStatusData, ThrowOnError>) {
|
|
313
|
-
return (options.client ?? _heyApiClient).get<GetRefreshableMaterializedStatusResponse, unknown, ThrowOnError>({
|
|
459
|
+
public static getRefreshableMaterializedStatus<ThrowOnError extends boolean = false>(options: Options<analytic_service.GetRefreshableMaterializedStatusData, ThrowOnError>) {
|
|
460
|
+
return (options.client ?? _heyApiClient).get<analytic_service.GetRefreshableMaterializedStatusResponse, unknown, ThrowOnError>({
|
|
314
461
|
security: [
|
|
315
462
|
{
|
|
316
463
|
name: 'api-key',
|
|
@@ -331,8 +478,8 @@ export class DataService {
|
|
|
331
478
|
* List Refreshable Materialized Views
|
|
332
479
|
* List all refreshable materialized views in a project.
|
|
333
480
|
*/
|
|
334
|
-
public static listRefreshableMaterializedViews<ThrowOnError extends boolean = false>(options: Options<ListRefreshableMaterializedViewsData, ThrowOnError>) {
|
|
335
|
-
return (options.client ?? _heyApiClient).get<ListRefreshableMaterializedViewsResponse, unknown, ThrowOnError>({
|
|
481
|
+
public static listRefreshableMaterializedViews<ThrowOnError extends boolean = false>(options: Options<analytic_service.ListRefreshableMaterializedViewsData, ThrowOnError>) {
|
|
482
|
+
return (options.client ?? _heyApiClient).get<analytic_service.ListRefreshableMaterializedViewsResponse, unknown, ThrowOnError>({
|
|
336
483
|
security: [
|
|
337
484
|
{
|
|
338
485
|
name: 'api-key',
|
|
@@ -353,8 +500,8 @@ export class DataService {
|
|
|
353
500
|
* Save SQL
|
|
354
501
|
* Save or update a SQL query in a project.
|
|
355
502
|
*/
|
|
356
|
-
public static saveSql<ThrowOnError extends boolean = false>(options: Options<SaveSqlData, ThrowOnError>) {
|
|
357
|
-
return (options.client ?? _heyApiClient).post<
|
|
503
|
+
public static saveSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveSqlData, ThrowOnError>) {
|
|
504
|
+
return (options.client ?? _heyApiClient).post<analytic_service.SaveSqlResponse2, unknown, ThrowOnError>({
|
|
358
505
|
security: [
|
|
359
506
|
{
|
|
360
507
|
name: 'api-key',
|
|
@@ -379,8 +526,8 @@ export class DataService {
|
|
|
379
526
|
* Save SQL
|
|
380
527
|
* Save or update a SQL query in a project.
|
|
381
528
|
*/
|
|
382
|
-
public static saveSql2<ThrowOnError extends boolean = false>(options: Options<SaveSql2Data, ThrowOnError>) {
|
|
383
|
-
return (options.client ?? _heyApiClient).put<SaveSql2Response, unknown, ThrowOnError>({
|
|
529
|
+
public static saveSql2<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveSql2Data, ThrowOnError>) {
|
|
530
|
+
return (options.client ?? _heyApiClient).put<analytic_service.SaveSql2Response, unknown, ThrowOnError>({
|
|
384
531
|
security: [
|
|
385
532
|
{
|
|
386
533
|
name: 'api-key',
|
|
@@ -401,11 +548,33 @@ export class DataService {
|
|
|
401
548
|
});
|
|
402
549
|
}
|
|
403
550
|
|
|
551
|
+
/**
|
|
552
|
+
* Query Tables
|
|
553
|
+
* Query tables in a project. use flag to control which type of tables to include.
|
|
554
|
+
*/
|
|
555
|
+
public static queryTables<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryTablesData, ThrowOnError>) {
|
|
556
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QueryTablesResponse2, unknown, ThrowOnError>({
|
|
557
|
+
security: [
|
|
558
|
+
{
|
|
559
|
+
name: 'api-key',
|
|
560
|
+
type: 'apiKey'
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
in: 'query',
|
|
564
|
+
name: 'api-key',
|
|
565
|
+
type: 'apiKey'
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
url: '/api/v1/analytics/{owner}/{slug}/sql/tables',
|
|
569
|
+
...options
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
|
|
404
573
|
/**
|
|
405
574
|
* Query event logs
|
|
406
575
|
*/
|
|
407
|
-
public static queryLog<ThrowOnError extends boolean = false>(options: Options<QueryLogData, ThrowOnError>) {
|
|
408
|
-
return (options.client ?? _heyApiClient).post<QueryLogResponse, unknown, ThrowOnError>({
|
|
576
|
+
public static queryLog<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryLogData, ThrowOnError>) {
|
|
577
|
+
return (options.client ?? _heyApiClient).post<analytic_service.QueryLogResponse, unknown, ThrowOnError>({
|
|
409
578
|
security: [
|
|
410
579
|
{
|
|
411
580
|
name: 'api-key',
|
|
@@ -429,8 +598,8 @@ export class DataService {
|
|
|
429
598
|
/**
|
|
430
599
|
* Query event logs
|
|
431
600
|
*/
|
|
432
|
-
public static queryLog2<ThrowOnError extends boolean = false>(options: Options<QueryLog2Data, ThrowOnError>) {
|
|
433
|
-
return (options.client ?? _heyApiClient).get<QueryLog2Response, unknown, ThrowOnError>({
|
|
601
|
+
public static queryLog2<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryLog2Data, ThrowOnError>) {
|
|
602
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QueryLog2Response, unknown, ThrowOnError>({
|
|
434
603
|
security: [
|
|
435
604
|
{
|
|
436
605
|
name: 'api-key',
|
|
@@ -451,8 +620,8 @@ export class DataService {
|
|
|
451
620
|
* List coins
|
|
452
621
|
* Get a list of coins in a project.
|
|
453
622
|
*/
|
|
454
|
-
public static listCoins2<ThrowOnError extends boolean = false>(options?: Options<ListCoins2Data, ThrowOnError>) {
|
|
455
|
-
return (options?.client ?? _heyApiClient).get<ListCoins2Response, unknown, ThrowOnError>({
|
|
623
|
+
public static listCoins2<ThrowOnError extends boolean = false>(options?: Options<insights_service.ListCoins2Data, ThrowOnError>) {
|
|
624
|
+
return (options?.client ?? _heyApiClient).get<insights_service.ListCoins2Response, unknown, ThrowOnError>({
|
|
456
625
|
security: [
|
|
457
626
|
{
|
|
458
627
|
name: 'api-key',
|
|
@@ -473,8 +642,8 @@ export class DataService {
|
|
|
473
642
|
* List coins
|
|
474
643
|
* Get a list of coins in a project.
|
|
475
644
|
*/
|
|
476
|
-
public static listCoins<ThrowOnError extends boolean = false>(options: Options<ListCoinsData, ThrowOnError>) {
|
|
477
|
-
return (options.client ?? _heyApiClient).get<
|
|
645
|
+
public static listCoins<ThrowOnError extends boolean = false>(options: Options<insights_service.ListCoinsData, ThrowOnError>) {
|
|
646
|
+
return (options.client ?? _heyApiClient).get<insights_service.ListCoinsResponse3, unknown, ThrowOnError>({
|
|
478
647
|
security: [
|
|
479
648
|
{
|
|
480
649
|
name: 'api-key',
|
|
@@ -495,8 +664,8 @@ export class DataService {
|
|
|
495
664
|
* Insight Query
|
|
496
665
|
* Query for metrics,event logs and coin prices in a project.
|
|
497
666
|
*/
|
|
498
|
-
public static query<ThrowOnError extends boolean = false>(options: Options<QueryData, ThrowOnError>) {
|
|
499
|
-
return (options.client ?? _heyApiClient).post<
|
|
667
|
+
public static query<ThrowOnError extends boolean = false>(options: Options<insights_service.QueryData, ThrowOnError>) {
|
|
668
|
+
return (options.client ?? _heyApiClient).post<insights_service.QueryResponse2, unknown, ThrowOnError>({
|
|
500
669
|
security: [
|
|
501
670
|
{
|
|
502
671
|
name: 'api-key',
|
|
@@ -520,8 +689,8 @@ export class DataService {
|
|
|
520
689
|
/**
|
|
521
690
|
* Get a list of metrics in a project
|
|
522
691
|
*/
|
|
523
|
-
public static getMetrics<ThrowOnError extends boolean = false>(options?: Options<GetMetricsData, ThrowOnError>) {
|
|
524
|
-
return (options?.client ?? _heyApiClient).get<
|
|
692
|
+
public static getMetrics<ThrowOnError extends boolean = false>(options?: Options<metrics_service.GetMetricsData, ThrowOnError>) {
|
|
693
|
+
return (options?.client ?? _heyApiClient).get<metrics_service.GetMetricsResponse2, unknown, ThrowOnError>({
|
|
525
694
|
security: [
|
|
526
695
|
{
|
|
527
696
|
name: 'api-key',
|
|
@@ -541,8 +710,8 @@ export class DataService {
|
|
|
541
710
|
/**
|
|
542
711
|
* Metric instant queries
|
|
543
712
|
*/
|
|
544
|
-
public static queryInstant<ThrowOnError extends boolean = false>(options: Options<QueryInstantData, ThrowOnError>) {
|
|
545
|
-
return (options.client ?? _heyApiClient).post<QueryInstantResponse, unknown, ThrowOnError>({
|
|
713
|
+
public static queryInstant<ThrowOnError extends boolean = false>(options: Options<metrics_service.QueryInstantData, ThrowOnError>) {
|
|
714
|
+
return (options.client ?? _heyApiClient).post<metrics_service.QueryInstantResponse, unknown, ThrowOnError>({
|
|
546
715
|
security: [
|
|
547
716
|
{
|
|
548
717
|
name: 'api-key',
|
|
@@ -569,8 +738,8 @@ export class DataService {
|
|
|
569
738
|
*
|
|
570
739
|
* .png)
|
|
571
740
|
*/
|
|
572
|
-
public static queryRange<ThrowOnError extends boolean = false>(options: Options<QueryRangeData, ThrowOnError>) {
|
|
573
|
-
return (options.client ?? _heyApiClient).post<QueryRangeResponse, unknown, ThrowOnError>({
|
|
741
|
+
public static queryRange<ThrowOnError extends boolean = false>(options: Options<metrics_service.QueryRangeData, ThrowOnError>) {
|
|
742
|
+
return (options.client ?? _heyApiClient).post<metrics_service.QueryRangeResponse, unknown, ThrowOnError>({
|
|
574
743
|
security: [
|
|
575
744
|
{
|
|
576
745
|
name: 'api-key',
|
|
@@ -597,8 +766,8 @@ export class WebService {
|
|
|
597
766
|
/**
|
|
598
767
|
* List all dashboards in a project
|
|
599
768
|
*/
|
|
600
|
-
public static listDashboards<ThrowOnError extends boolean = false>(options?: Options<ListDashboardsData, ThrowOnError>) {
|
|
601
|
-
return (options?.client ?? _heyApiClient).get<ListDashboardsResponse, unknown, ThrowOnError>({
|
|
769
|
+
public static listDashboards<ThrowOnError extends boolean = false>(options?: Options<web_service.ListDashboardsData, ThrowOnError>) {
|
|
770
|
+
return (options?.client ?? _heyApiClient).get<web_service.ListDashboardsResponse, unknown, ThrowOnError>({
|
|
602
771
|
security: [
|
|
603
772
|
{
|
|
604
773
|
name: 'api-key',
|
|
@@ -618,8 +787,8 @@ export class WebService {
|
|
|
618
787
|
/**
|
|
619
788
|
* Import a dashboard to another dashboard
|
|
620
789
|
*/
|
|
621
|
-
public static importDashboard<ThrowOnError extends boolean = false>(options: Options<ImportDashboardData, ThrowOnError>) {
|
|
622
|
-
return (options.client ?? _heyApiClient).post<
|
|
790
|
+
public static importDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ImportDashboardData, ThrowOnError>) {
|
|
791
|
+
return (options.client ?? _heyApiClient).post<web_service.ImportDashboardResponse2, unknown, ThrowOnError>({
|
|
623
792
|
security: [
|
|
624
793
|
{
|
|
625
794
|
name: 'api-key',
|
|
@@ -643,8 +812,8 @@ export class WebService {
|
|
|
643
812
|
/**
|
|
644
813
|
* Delete a dashboard by id
|
|
645
814
|
*/
|
|
646
|
-
public static deleteDashboard<ThrowOnError extends boolean = false>(options: Options<DeleteDashboardData, ThrowOnError>) {
|
|
647
|
-
return (options.client ?? _heyApiClient).delete<DeleteDashboardResponse, unknown, ThrowOnError>({
|
|
815
|
+
public static deleteDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.DeleteDashboardData, ThrowOnError>) {
|
|
816
|
+
return (options.client ?? _heyApiClient).delete<web_service.DeleteDashboardResponse, unknown, ThrowOnError>({
|
|
648
817
|
security: [
|
|
649
818
|
{
|
|
650
819
|
name: 'api-key',
|
|
@@ -664,8 +833,8 @@ export class WebService {
|
|
|
664
833
|
/**
|
|
665
834
|
* Get a dashboard by id
|
|
666
835
|
*/
|
|
667
|
-
public static getDashboard<ThrowOnError extends boolean = false>(options: Options<GetDashboardData, ThrowOnError>) {
|
|
668
|
-
return (options.client ?? _heyApiClient).get<
|
|
836
|
+
public static getDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboardData, ThrowOnError>) {
|
|
837
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboardResponse2, unknown, ThrowOnError>({
|
|
669
838
|
security: [
|
|
670
839
|
{
|
|
671
840
|
name: 'api-key',
|
|
@@ -682,11 +851,32 @@ export class WebService {
|
|
|
682
851
|
});
|
|
683
852
|
}
|
|
684
853
|
|
|
854
|
+
/**
|
|
855
|
+
* Get dashboard history by dashboard id
|
|
856
|
+
*/
|
|
857
|
+
public static getDashboardHistory<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboardHistoryData, ThrowOnError>) {
|
|
858
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboardHistoryResponse2, unknown, ThrowOnError>({
|
|
859
|
+
security: [
|
|
860
|
+
{
|
|
861
|
+
name: 'api-key',
|
|
862
|
+
type: 'apiKey'
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
in: 'query',
|
|
866
|
+
name: 'api-key',
|
|
867
|
+
type: 'apiKey'
|
|
868
|
+
}
|
|
869
|
+
],
|
|
870
|
+
url: '/api/v1/dashboards/{dashboardId}/history',
|
|
871
|
+
...options
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
|
|
685
875
|
/**
|
|
686
876
|
* Export a dashboard to json
|
|
687
877
|
*/
|
|
688
|
-
public static exportDashboard<ThrowOnError extends boolean = false>(options: Options<ExportDashboardData, ThrowOnError>) {
|
|
689
|
-
return (options.client ?? _heyApiClient).get<
|
|
878
|
+
public static exportDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ExportDashboardData, ThrowOnError>) {
|
|
879
|
+
return (options.client ?? _heyApiClient).get<web_service.ExportDashboardResponse2, unknown, ThrowOnError>({
|
|
690
880
|
security: [
|
|
691
881
|
{
|
|
692
882
|
name: 'api-key',
|
|
@@ -706,8 +896,8 @@ export class WebService {
|
|
|
706
896
|
/**
|
|
707
897
|
* Get project details
|
|
708
898
|
*/
|
|
709
|
-
public static getProject<ThrowOnError extends boolean = false>(options: Options<GetProjectData, ThrowOnError>) {
|
|
710
|
-
return (options.client ?? _heyApiClient).get<
|
|
899
|
+
public static getProject<ThrowOnError extends boolean = false>(options: Options<web_service.GetProjectData, ThrowOnError>) {
|
|
900
|
+
return (options.client ?? _heyApiClient).get<web_service.GetProjectResponse2, unknown, ThrowOnError>({
|
|
711
901
|
security: [
|
|
712
902
|
{
|
|
713
903
|
name: 'api-key',
|
|
@@ -724,11 +914,78 @@ export class WebService {
|
|
|
724
914
|
});
|
|
725
915
|
}
|
|
726
916
|
|
|
917
|
+
/**
|
|
918
|
+
* Get all imported projects
|
|
919
|
+
*/
|
|
920
|
+
public static getImportedProject<ThrowOnError extends boolean = false>(options: Options<web_service.GetImportedProjectData, ThrowOnError>) {
|
|
921
|
+
return (options.client ?? _heyApiClient).get<web_service.GetImportedProjectResponse, unknown, ThrowOnError>({
|
|
922
|
+
security: [
|
|
923
|
+
{
|
|
924
|
+
name: 'api-key',
|
|
925
|
+
type: 'apiKey'
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
in: 'query',
|
|
929
|
+
name: 'api-key',
|
|
930
|
+
type: 'apiKey'
|
|
931
|
+
}
|
|
932
|
+
],
|
|
933
|
+
url: '/api/v1/project/{owner}/{slug}/importprojects',
|
|
934
|
+
...options
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Import external project(s)
|
|
940
|
+
*/
|
|
941
|
+
public static importProject<ThrowOnError extends boolean = false>(options: Options<web_service.ImportProjectData, ThrowOnError>) {
|
|
942
|
+
return (options.client ?? _heyApiClient).post<web_service.ImportProjectResponse2, unknown, ThrowOnError>({
|
|
943
|
+
security: [
|
|
944
|
+
{
|
|
945
|
+
name: 'api-key',
|
|
946
|
+
type: 'apiKey'
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
in: 'query',
|
|
950
|
+
name: 'api-key',
|
|
951
|
+
type: 'apiKey'
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
url: '/api/v1/project/{owner}/{slug}/importprojects',
|
|
955
|
+
...options,
|
|
956
|
+
headers: {
|
|
957
|
+
'Content-Type': 'application/json',
|
|
958
|
+
...options?.headers
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Remove an imported project
|
|
965
|
+
*/
|
|
966
|
+
public static unImportProject<ThrowOnError extends boolean = false>(options: Options<web_service.UnImportProjectData, ThrowOnError>) {
|
|
967
|
+
return (options.client ?? _heyApiClient).delete<web_service.UnImportProjectResponse, unknown, ThrowOnError>({
|
|
968
|
+
security: [
|
|
969
|
+
{
|
|
970
|
+
name: 'api-key',
|
|
971
|
+
type: 'apiKey'
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
in: 'query',
|
|
975
|
+
name: 'api-key',
|
|
976
|
+
type: 'apiKey'
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
url: '/api/v1/project/{owner}/{slug}/unimportprojects/{unimportOwner}/{unimportSlug}',
|
|
980
|
+
...options
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
|
|
727
984
|
/**
|
|
728
985
|
* Get project details
|
|
729
986
|
*/
|
|
730
|
-
public static getProjectById<ThrowOnError extends boolean = false>(options: Options<GetProjectByIdData, ThrowOnError>) {
|
|
731
|
-
return (options.client ?? _heyApiClient).get<GetProjectByIdResponse, unknown, ThrowOnError>({
|
|
987
|
+
public static getProjectById<ThrowOnError extends boolean = false>(options: Options<common.GetProjectByIdData, ThrowOnError>) {
|
|
988
|
+
return (options.client ?? _heyApiClient).get<common.GetProjectByIdResponse, unknown, ThrowOnError>({
|
|
732
989
|
security: [
|
|
733
990
|
{
|
|
734
991
|
name: 'api-key',
|
|
@@ -748,8 +1005,8 @@ export class WebService {
|
|
|
748
1005
|
/**
|
|
749
1006
|
* Get project list
|
|
750
1007
|
*/
|
|
751
|
-
public static getProjectList<ThrowOnError extends boolean = false>(options?: Options<GetProjectListData, ThrowOnError>) {
|
|
752
|
-
return (options?.client ?? _heyApiClient).get<
|
|
1008
|
+
public static getProjectList<ThrowOnError extends boolean = false>(options?: Options<web_service.GetProjectListData, ThrowOnError>) {
|
|
1009
|
+
return (options?.client ?? _heyApiClient).get<web_service.GetProjectListResponse2, unknown, ThrowOnError>({
|
|
753
1010
|
security: [
|
|
754
1011
|
{
|
|
755
1012
|
name: 'api-key',
|
|
@@ -769,8 +1026,8 @@ export class WebService {
|
|
|
769
1026
|
/**
|
|
770
1027
|
* List all dashboards in a project
|
|
771
1028
|
*/
|
|
772
|
-
public static listDashboards2<ThrowOnError extends boolean = false>(options: Options<ListDashboards2Data, ThrowOnError>) {
|
|
773
|
-
return (options.client ?? _heyApiClient).get<ListDashboards2Response, unknown, ThrowOnError>({
|
|
1029
|
+
public static listDashboards2<ThrowOnError extends boolean = false>(options: Options<web_service.ListDashboards2Data, ThrowOnError>) {
|
|
1030
|
+
return (options.client ?? _heyApiClient).get<web_service.ListDashboards2Response, unknown, ThrowOnError>({
|
|
774
1031
|
security: [
|
|
775
1032
|
{
|
|
776
1033
|
name: 'api-key',
|
|
@@ -790,8 +1047,8 @@ export class WebService {
|
|
|
790
1047
|
/**
|
|
791
1048
|
* Get a dashboard by id
|
|
792
1049
|
*/
|
|
793
|
-
public static getDashboard2<ThrowOnError extends boolean = false>(options: Options<GetDashboard2Data, ThrowOnError>) {
|
|
794
|
-
return (options.client ?? _heyApiClient).get<GetDashboard2Response, unknown, ThrowOnError>({
|
|
1050
|
+
public static getDashboard2<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboard2Data, ThrowOnError>) {
|
|
1051
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboard2Response, unknown, ThrowOnError>({
|
|
795
1052
|
security: [
|
|
796
1053
|
{
|
|
797
1054
|
name: 'api-key',
|
|
@@ -818,8 +1075,8 @@ export class PriceService {
|
|
|
818
1075
|
* If we have at least one price data for the given coin, we will return it with the actual timestamp.
|
|
819
1076
|
* Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
820
1077
|
*/
|
|
821
|
-
public static getPrice<ThrowOnError extends boolean = false>(options?: Options<GetPriceData, ThrowOnError>) {
|
|
822
|
-
return (options?.client ?? _heyApiClient).get<
|
|
1078
|
+
public static getPrice<ThrowOnError extends boolean = false>(options?: Options<price_service.GetPriceData, ThrowOnError>) {
|
|
1079
|
+
return (options?.client ?? _heyApiClient).get<price_service.GetPriceResponse2, unknown, ThrowOnError>({
|
|
823
1080
|
security: [
|
|
824
1081
|
{
|
|
825
1082
|
name: 'api-key',
|
|
@@ -846,8 +1103,8 @@ export class PriceService {
|
|
|
846
1103
|
*
|
|
847
1104
|
* 
|
|
848
1105
|
*/
|
|
849
|
-
public static addCoinByGecko<ThrowOnError extends boolean = false>(options: Options<AddCoinByGeckoData, ThrowOnError>) {
|
|
850
|
-
return (options.client ?? _heyApiClient).post<
|
|
1106
|
+
public static addCoinByGecko<ThrowOnError extends boolean = false>(options: Options<price_service.AddCoinByGeckoData, ThrowOnError>) {
|
|
1107
|
+
return (options.client ?? _heyApiClient).post<price_service.AddCoinByGeckoResponse2, unknown, ThrowOnError>({
|
|
851
1108
|
security: [
|
|
852
1109
|
{
|
|
853
1110
|
name: 'api-key',
|
|
@@ -871,8 +1128,8 @@ export class PriceService {
|
|
|
871
1128
|
/**
|
|
872
1129
|
* Batch get prices
|
|
873
1130
|
*/
|
|
874
|
-
public static batchGetPrices<ThrowOnError extends boolean = false>(options: Options<BatchGetPricesData, ThrowOnError>) {
|
|
875
|
-
return (options.client ?? _heyApiClient).post<
|
|
1131
|
+
public static batchGetPrices<ThrowOnError extends boolean = false>(options: Options<price_service.BatchGetPricesData, ThrowOnError>) {
|
|
1132
|
+
return (options.client ?? _heyApiClient).post<price_service.BatchGetPricesResponse2, unknown, ThrowOnError>({
|
|
876
1133
|
security: [
|
|
877
1134
|
{
|
|
878
1135
|
name: 'api-key',
|
|
@@ -896,8 +1153,8 @@ export class PriceService {
|
|
|
896
1153
|
/**
|
|
897
1154
|
* Check latest price
|
|
898
1155
|
*/
|
|
899
|
-
public static checkLatestPrice<ThrowOnError extends boolean = false>(options?: Options<CheckLatestPriceData, ThrowOnError>) {
|
|
900
|
-
return (options?.client ?? _heyApiClient).get<
|
|
1156
|
+
public static checkLatestPrice<ThrowOnError extends boolean = false>(options?: Options<price_service.CheckLatestPriceData, ThrowOnError>) {
|
|
1157
|
+
return (options?.client ?? _heyApiClient).get<price_service.CheckLatestPriceResponse2, unknown, ThrowOnError>({
|
|
901
1158
|
security: [
|
|
902
1159
|
{
|
|
903
1160
|
name: 'api-key',
|
|
@@ -917,8 +1174,8 @@ export class PriceService {
|
|
|
917
1174
|
/**
|
|
918
1175
|
* List coins
|
|
919
1176
|
*/
|
|
920
|
-
public static priceListCoins<ThrowOnError extends boolean = false>(options?: Options<PriceListCoinsData, ThrowOnError>) {
|
|
921
|
-
return (options?.client ?? _heyApiClient).get<PriceListCoinsResponse, unknown, ThrowOnError>({
|
|
1177
|
+
public static priceListCoins<ThrowOnError extends boolean = false>(options?: Options<price_service.PriceListCoinsData, ThrowOnError>) {
|
|
1178
|
+
return (options?.client ?? _heyApiClient).get<price_service.PriceListCoinsResponse, unknown, ThrowOnError>({
|
|
922
1179
|
security: [
|
|
923
1180
|
{
|
|
924
1181
|
name: 'api-key',
|
|
@@ -938,11 +1195,53 @@ export class PriceService {
|
|
|
938
1195
|
}
|
|
939
1196
|
|
|
940
1197
|
export class ProcessorService {
|
|
1198
|
+
/**
|
|
1199
|
+
* activate the pending version of a processor
|
|
1200
|
+
*/
|
|
1201
|
+
public static activatePendingVersion<ThrowOnError extends boolean = false>(options: Options<processor_service.ActivatePendingVersionData, ThrowOnError>) {
|
|
1202
|
+
return (options.client ?? _heyApiClient).put<processor_service.ActivatePendingVersionResponse, unknown, ThrowOnError>({
|
|
1203
|
+
security: [
|
|
1204
|
+
{
|
|
1205
|
+
name: 'api-key',
|
|
1206
|
+
type: 'apiKey'
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
in: 'query',
|
|
1210
|
+
name: 'api-key',
|
|
1211
|
+
type: 'apiKey'
|
|
1212
|
+
}
|
|
1213
|
+
],
|
|
1214
|
+
url: '/api/v1/processors/{owner}/{slug}/activate_pending',
|
|
1215
|
+
...options
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Get the source files of a processor
|
|
1221
|
+
*/
|
|
1222
|
+
public static getProcessorSourceFiles<ThrowOnError extends boolean = false>(options: Options<processor_service.GetProcessorSourceFilesData, ThrowOnError>) {
|
|
1223
|
+
return (options.client ?? _heyApiClient).get<processor_service.GetProcessorSourceFilesResponse2, unknown, ThrowOnError>({
|
|
1224
|
+
security: [
|
|
1225
|
+
{
|
|
1226
|
+
name: 'api-key',
|
|
1227
|
+
type: 'apiKey'
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
in: 'query',
|
|
1231
|
+
name: 'api-key',
|
|
1232
|
+
type: 'apiKey'
|
|
1233
|
+
}
|
|
1234
|
+
],
|
|
1235
|
+
url: '/api/v1/processors/{owner}/{slug}/source_files',
|
|
1236
|
+
...options
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
|
|
941
1240
|
/**
|
|
942
1241
|
* Get processor status
|
|
943
1242
|
*/
|
|
944
|
-
public static getProcessorStatusV2<ThrowOnError extends boolean = false>(options: Options<GetProcessorStatusV2Data, ThrowOnError>) {
|
|
945
|
-
return (options.client ?? _heyApiClient).get<GetProcessorStatusV2Response, unknown, ThrowOnError>({
|
|
1243
|
+
public static getProcessorStatusV2<ThrowOnError extends boolean = false>(options: Options<processor_service.GetProcessorStatusV2Data, ThrowOnError>) {
|
|
1244
|
+
return (options.client ?? _heyApiClient).get<processor_service.GetProcessorStatusV2Response, unknown, ThrowOnError>({
|
|
946
1245
|
security: [
|
|
947
1246
|
{
|
|
948
1247
|
name: 'api-key',
|
|
@@ -965,8 +1264,8 @@ export class DebugAndSimulationService {
|
|
|
965
1264
|
/**
|
|
966
1265
|
* Estimate gas price
|
|
967
1266
|
*/
|
|
968
|
-
public static getEstimatedGasPrice<ThrowOnError extends boolean = false>(options?: Options<GetEstimatedGasPriceData, ThrowOnError>) {
|
|
969
|
-
return (options?.client ?? _heyApiClient).get<
|
|
1267
|
+
public static getEstimatedGasPrice<ThrowOnError extends boolean = false>(options?: Options<solidity_service.GetEstimatedGasPriceData, ThrowOnError>) {
|
|
1268
|
+
return (options?.client ?? _heyApiClient).get<solidity_service.GetEstimatedGasPriceResponse2, unknown, ThrowOnError>({
|
|
970
1269
|
security: [
|
|
971
1270
|
{
|
|
972
1271
|
name: 'api-key',
|
|
@@ -986,8 +1285,8 @@ export class DebugAndSimulationService {
|
|
|
986
1285
|
/**
|
|
987
1286
|
* Search transactions
|
|
988
1287
|
*/
|
|
989
|
-
public static searchTransactions<ThrowOnError extends boolean = false>(options: Options<SearchTransactionsData, ThrowOnError>) {
|
|
990
|
-
return (options.client ?? _heyApiClient).get<SearchTransactionsResponse, unknown, ThrowOnError>({
|
|
1288
|
+
public static searchTransactions<ThrowOnError extends boolean = false>(options: Options<solidity_service.SearchTransactionsData, ThrowOnError>) {
|
|
1289
|
+
return (options.client ?? _heyApiClient).get<solidity_service.SearchTransactionsResponse, unknown, ThrowOnError>({
|
|
991
1290
|
security: [
|
|
992
1291
|
{
|
|
993
1292
|
name: 'api-key',
|
|
@@ -1007,8 +1306,8 @@ export class DebugAndSimulationService {
|
|
|
1007
1306
|
/**
|
|
1008
1307
|
* Get list of simulations
|
|
1009
1308
|
*/
|
|
1010
|
-
public static getSimulations<ThrowOnError extends boolean = false>(options: Options<GetSimulationsData, ThrowOnError>) {
|
|
1011
|
-
return (options.client ?? _heyApiClient).get<
|
|
1309
|
+
public static getSimulations<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationsData, ThrowOnError>) {
|
|
1310
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetSimulationsResponse2, unknown, ThrowOnError>({
|
|
1012
1311
|
security: [
|
|
1013
1312
|
{
|
|
1014
1313
|
name: 'api-key',
|
|
@@ -1028,8 +1327,8 @@ export class DebugAndSimulationService {
|
|
|
1028
1327
|
/**
|
|
1029
1328
|
* Get simulation by ID
|
|
1030
1329
|
*/
|
|
1031
|
-
public static getSimulation<ThrowOnError extends boolean = false>(options: Options<GetSimulationData, ThrowOnError>) {
|
|
1032
|
-
return (options.client ?? _heyApiClient).get<
|
|
1330
|
+
public static getSimulation<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationData, ThrowOnError>) {
|
|
1331
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetSimulationResponse2, unknown, ThrowOnError>({
|
|
1033
1332
|
security: [
|
|
1034
1333
|
{
|
|
1035
1334
|
name: 'api-key',
|
|
@@ -1049,8 +1348,8 @@ export class DebugAndSimulationService {
|
|
|
1049
1348
|
/**
|
|
1050
1349
|
* Get bundle simulation by ID
|
|
1051
1350
|
*/
|
|
1052
|
-
public static getSimulationBundleInProject<ThrowOnError extends boolean = false>(options: Options<GetSimulationBundleInProjectData, ThrowOnError>) {
|
|
1053
|
-
return (options.client ?? _heyApiClient).get<GetSimulationBundleInProjectResponse, unknown, ThrowOnError>({
|
|
1351
|
+
public static getSimulationBundleInProject<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationBundleInProjectData, ThrowOnError>) {
|
|
1352
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetSimulationBundleInProjectResponse, unknown, ThrowOnError>({
|
|
1054
1353
|
security: [
|
|
1055
1354
|
{
|
|
1056
1355
|
name: 'api-key',
|
|
@@ -1070,8 +1369,8 @@ export class DebugAndSimulationService {
|
|
|
1070
1369
|
/**
|
|
1071
1370
|
* Get trace by bundle simulation
|
|
1072
1371
|
*/
|
|
1073
|
-
public static getCallTraceByBundle<ThrowOnError extends boolean = false>(options: Options<GetCallTraceByBundleData, ThrowOnError>) {
|
|
1074
|
-
return (options.client ?? _heyApiClient).get<GetCallTraceByBundleResponse, unknown, ThrowOnError>({
|
|
1372
|
+
public static getCallTraceByBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByBundleData, ThrowOnError>) {
|
|
1373
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceByBundleResponse, unknown, ThrowOnError>({
|
|
1075
1374
|
security: [
|
|
1076
1375
|
{
|
|
1077
1376
|
name: 'api-key',
|
|
@@ -1093,8 +1392,8 @@ export class DebugAndSimulationService {
|
|
|
1093
1392
|
* Create a new transaction simulation. The simulation body should be included in the request body.
|
|
1094
1393
|
* Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.
|
|
1095
1394
|
*/
|
|
1096
|
-
public static simulateTransaction<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionData, ThrowOnError>) {
|
|
1097
|
-
return (options.client ?? _heyApiClient).post<
|
|
1395
|
+
public static simulateTransaction<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionData, ThrowOnError>) {
|
|
1396
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionResponse2, unknown, ThrowOnError>({
|
|
1098
1397
|
security: [
|
|
1099
1398
|
{
|
|
1100
1399
|
name: 'api-key',
|
|
@@ -1118,8 +1417,8 @@ export class DebugAndSimulationService {
|
|
|
1118
1417
|
/**
|
|
1119
1418
|
* Get trace by simulation
|
|
1120
1419
|
*/
|
|
1121
|
-
public static getCallTraceBySimulation<ThrowOnError extends boolean = false>(options: Options<GetCallTraceBySimulationData, ThrowOnError>) {
|
|
1122
|
-
return (options.client ?? _heyApiClient).get<GetCallTraceBySimulationResponse, unknown, ThrowOnError>({
|
|
1420
|
+
public static getCallTraceBySimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceBySimulationData, ThrowOnError>) {
|
|
1421
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceBySimulationResponse, unknown, ThrowOnError>({
|
|
1123
1422
|
security: [
|
|
1124
1423
|
{
|
|
1125
1424
|
name: 'api-key',
|
|
@@ -1140,8 +1439,8 @@ export class DebugAndSimulationService {
|
|
|
1140
1439
|
* Run bundle simulation
|
|
1141
1440
|
* You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.
|
|
1142
1441
|
*/
|
|
1143
|
-
public static simulateTransactionBundle<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionBundleData, ThrowOnError>) {
|
|
1144
|
-
return (options.client ?? _heyApiClient).post<
|
|
1442
|
+
public static simulateTransactionBundle<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleData, ThrowOnError>) {
|
|
1443
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionBundleResponse2, unknown, ThrowOnError>({
|
|
1145
1444
|
security: [
|
|
1146
1445
|
{
|
|
1147
1446
|
name: 'api-key',
|
|
@@ -1172,8 +1471,8 @@ export class DebugAndSimulationService {
|
|
|
1172
1471
|
*
|
|
1173
1472
|
* %20(1)%20(1)%20(1).png)
|
|
1174
1473
|
*/
|
|
1175
|
-
public static getCallTraceByTransaction<ThrowOnError extends boolean = false>(options: Options<GetCallTraceByTransactionData, ThrowOnError>) {
|
|
1176
|
-
return (options.client ?? _heyApiClient).get<GetCallTraceByTransactionResponse, unknown, ThrowOnError>({
|
|
1474
|
+
public static getCallTraceByTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByTransactionData, ThrowOnError>) {
|
|
1475
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceByTransactionResponse, unknown, ThrowOnError>({
|
|
1177
1476
|
security: [
|
|
1178
1477
|
{
|
|
1179
1478
|
name: 'api-key',
|
|
@@ -1196,8 +1495,8 @@ export class ForksService {
|
|
|
1196
1495
|
/**
|
|
1197
1496
|
* List all forks
|
|
1198
1497
|
*/
|
|
1199
|
-
public static listForks<ThrowOnError extends boolean = false>(options: Options<ListForksData, ThrowOnError>) {
|
|
1200
|
-
return (options.client ?? _heyApiClient).get<
|
|
1498
|
+
public static listForks<ThrowOnError extends boolean = false>(options: Options<solidity_service.ListForksData, ThrowOnError>) {
|
|
1499
|
+
return (options.client ?? _heyApiClient).get<solidity_service.ListForksResponse2, unknown, ThrowOnError>({
|
|
1201
1500
|
security: [
|
|
1202
1501
|
{
|
|
1203
1502
|
name: 'api-key',
|
|
@@ -1217,8 +1516,8 @@ export class ForksService {
|
|
|
1217
1516
|
/**
|
|
1218
1517
|
* Create a fork
|
|
1219
1518
|
*/
|
|
1220
|
-
public static createFork<ThrowOnError extends boolean = false>(options: Options<CreateForkData, ThrowOnError>) {
|
|
1221
|
-
return (options.client ?? _heyApiClient).post<
|
|
1519
|
+
public static createFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.CreateForkData, ThrowOnError>) {
|
|
1520
|
+
return (options.client ?? _heyApiClient).post<solidity_service.CreateForkResponse2, unknown, ThrowOnError>({
|
|
1222
1521
|
security: [
|
|
1223
1522
|
{
|
|
1224
1523
|
name: 'api-key',
|
|
@@ -1242,8 +1541,8 @@ export class ForksService {
|
|
|
1242
1541
|
/**
|
|
1243
1542
|
* Get trace by bundle simulation
|
|
1244
1543
|
*/
|
|
1245
|
-
public static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<GetCallTraceOnForkBundleData, ThrowOnError>) {
|
|
1246
|
-
return (options.client ?? _heyApiClient).get<GetCallTraceOnForkBundleResponse, unknown, ThrowOnError>({
|
|
1544
|
+
public static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkBundleData, ThrowOnError>) {
|
|
1545
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceOnForkBundleResponse, unknown, ThrowOnError>({
|
|
1247
1546
|
security: [
|
|
1248
1547
|
{
|
|
1249
1548
|
name: 'api-key',
|
|
@@ -1263,8 +1562,8 @@ export class ForksService {
|
|
|
1263
1562
|
/**
|
|
1264
1563
|
* Run Simulation
|
|
1265
1564
|
*/
|
|
1266
|
-
public static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionOnForkData, ThrowOnError>) {
|
|
1267
|
-
return (options.client ?? _heyApiClient).post<SimulateTransactionOnForkResponse, unknown, ThrowOnError>({
|
|
1565
|
+
public static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionOnForkData, ThrowOnError>) {
|
|
1566
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionOnForkResponse, unknown, ThrowOnError>({
|
|
1268
1567
|
security: [
|
|
1269
1568
|
{
|
|
1270
1569
|
name: 'api-key',
|
|
@@ -1288,8 +1587,8 @@ export class ForksService {
|
|
|
1288
1587
|
/**
|
|
1289
1588
|
* Get trace by simulation
|
|
1290
1589
|
*/
|
|
1291
|
-
public static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<GetCallTraceOnForkSimulationData, ThrowOnError>) {
|
|
1292
|
-
return (options.client ?? _heyApiClient).get<GetCallTraceOnForkSimulationResponse, unknown, ThrowOnError>({
|
|
1590
|
+
public static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkSimulationData, ThrowOnError>) {
|
|
1591
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceOnForkSimulationResponse, unknown, ThrowOnError>({
|
|
1293
1592
|
security: [
|
|
1294
1593
|
{
|
|
1295
1594
|
name: 'api-key',
|
|
@@ -1309,8 +1608,8 @@ export class ForksService {
|
|
|
1309
1608
|
/**
|
|
1310
1609
|
* Run bundle simulation
|
|
1311
1610
|
*/
|
|
1312
|
-
public static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionBundleOnForkData, ThrowOnError>) {
|
|
1313
|
-
return (options.client ?? _heyApiClient).post<SimulateTransactionBundleOnForkResponse, unknown, ThrowOnError>({
|
|
1611
|
+
public static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleOnForkData, ThrowOnError>) {
|
|
1612
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionBundleOnForkResponse, unknown, ThrowOnError>({
|
|
1314
1613
|
security: [
|
|
1315
1614
|
{
|
|
1316
1615
|
name: 'api-key',
|
|
@@ -1334,8 +1633,8 @@ export class ForksService {
|
|
|
1334
1633
|
/**
|
|
1335
1634
|
* Get trace by transaction
|
|
1336
1635
|
*/
|
|
1337
|
-
public static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<GetCallTraceOnForkTransactionData, ThrowOnError>) {
|
|
1338
|
-
return (options.client ?? _heyApiClient).get<GetCallTraceOnForkTransactionResponse, unknown, ThrowOnError>({
|
|
1636
|
+
public static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkTransactionData, ThrowOnError>) {
|
|
1637
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceOnForkTransactionResponse, unknown, ThrowOnError>({
|
|
1339
1638
|
security: [
|
|
1340
1639
|
{
|
|
1341
1640
|
name: 'api-key',
|
|
@@ -1355,8 +1654,8 @@ export class ForksService {
|
|
|
1355
1654
|
/**
|
|
1356
1655
|
* Delete fork by id
|
|
1357
1656
|
*/
|
|
1358
|
-
public static deleteFork<ThrowOnError extends boolean = false>(options: Options<DeleteForkData, ThrowOnError>) {
|
|
1359
|
-
return (options.client ?? _heyApiClient).delete<DeleteForkResponse, unknown, ThrowOnError>({
|
|
1657
|
+
public static deleteFork<ThrowOnError extends boolean = false>(options: Options<solidit_service.DeleteForkData, ThrowOnError>) {
|
|
1658
|
+
return (options.client ?? _heyApiClient).delete<solidit_service.DeleteForkResponse, unknown, ThrowOnError>({
|
|
1360
1659
|
security: [
|
|
1361
1660
|
{
|
|
1362
1661
|
name: 'api-key',
|
|
@@ -1376,8 +1675,8 @@ export class ForksService {
|
|
|
1376
1675
|
/**
|
|
1377
1676
|
* Get fork by id
|
|
1378
1677
|
*/
|
|
1379
|
-
public static getFork<ThrowOnError extends boolean = false>(options: Options<GetForkData, ThrowOnError>) {
|
|
1380
|
-
return (options.client ?? _heyApiClient).get<
|
|
1678
|
+
public static getFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkData, ThrowOnError>) {
|
|
1679
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetForkResponse2, unknown, ThrowOnError>({
|
|
1381
1680
|
security: [
|
|
1382
1681
|
{
|
|
1383
1682
|
name: 'api-key',
|
|
@@ -1397,8 +1696,8 @@ export class ForksService {
|
|
|
1397
1696
|
/**
|
|
1398
1697
|
* Update fork by id
|
|
1399
1698
|
*/
|
|
1400
|
-
public static updateFork<ThrowOnError extends boolean = false>(options: Options<UpdateForkData, ThrowOnError>) {
|
|
1401
|
-
return (options.client ?? _heyApiClient).put<
|
|
1699
|
+
public static updateFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.UpdateForkData, ThrowOnError>) {
|
|
1700
|
+
return (options.client ?? _heyApiClient).put<solidity_service.UpdateForkResponse2, unknown, ThrowOnError>({
|
|
1402
1701
|
security: [
|
|
1403
1702
|
{
|
|
1404
1703
|
name: 'api-key',
|
|
@@ -1422,8 +1721,8 @@ export class ForksService {
|
|
|
1422
1721
|
/**
|
|
1423
1722
|
* Get fork info by id
|
|
1424
1723
|
*/
|
|
1425
|
-
public static getForkInfo<ThrowOnError extends boolean = false>(options: Options<GetForkInfoData, ThrowOnError>) {
|
|
1426
|
-
return (options.client ?? _heyApiClient).get<
|
|
1724
|
+
public static getForkInfo<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkInfoData, ThrowOnError>) {
|
|
1725
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetForkInfoResponse2, unknown, ThrowOnError>({
|
|
1427
1726
|
security: [
|
|
1428
1727
|
{
|
|
1429
1728
|
name: 'api-key',
|