@sentio/api 1.0.3-rc.8 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/client.gen.js +1 -1
- package/dist/src/sdk.gen.d.ts +134 -68
- package/dist/src/sdk.gen.js +307 -21
- package/dist/src/sdk.gen.js.map +1 -1
- package/dist/src/types.gen.d.ts +3655 -2993
- package/package.json +1 -1
- package/src/client.gen.ts +1 -1
- package/src/sdk.gen.ts +434 -135
- package/src/types.gen.ts +3672 -3482
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, google, move_service, price_service, processor_service, solidity_service, 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',
|
|
@@ -591,14 +760,100 @@ export class DataService {
|
|
|
591
760
|
});
|
|
592
761
|
}
|
|
593
762
|
|
|
763
|
+
/**
|
|
764
|
+
* Query Table By Name
|
|
765
|
+
* Query table schema by name.
|
|
766
|
+
*/
|
|
767
|
+
public static queryTable2<ThrowOnError extends boolean = false>(options?: Options<analytic_service.QueryTable2Data, ThrowOnError>) {
|
|
768
|
+
return (options?.client ?? _heyApiClient).get<analytic_service.QueryTable2Response, unknown, ThrowOnError>({
|
|
769
|
+
security: [
|
|
770
|
+
{
|
|
771
|
+
name: 'api-key',
|
|
772
|
+
type: 'apiKey'
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
in: 'query',
|
|
776
|
+
name: 'api-key',
|
|
777
|
+
type: 'apiKey'
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
url: '/api/v1/sql/table',
|
|
781
|
+
...options
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* List Tables
|
|
787
|
+
*/
|
|
788
|
+
public static listTables2<ThrowOnError extends boolean = false>(options?: Options<analytic_service.ListTables2Data, ThrowOnError>) {
|
|
789
|
+
return (options?.client ?? _heyApiClient).get<analytic_service.ListTables2Response, unknown, ThrowOnError>({
|
|
790
|
+
security: [
|
|
791
|
+
{
|
|
792
|
+
name: 'api-key',
|
|
793
|
+
type: 'apiKey'
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
in: 'query',
|
|
797
|
+
name: 'api-key',
|
|
798
|
+
type: 'apiKey'
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
url: '/api/v1/sql/tables',
|
|
802
|
+
...options
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Query Table By Name
|
|
808
|
+
* Query table schema by name.
|
|
809
|
+
*/
|
|
810
|
+
public static queryTable<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryTableData, ThrowOnError>) {
|
|
811
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QueryTableResponse2, unknown, ThrowOnError>({
|
|
812
|
+
security: [
|
|
813
|
+
{
|
|
814
|
+
name: 'api-key',
|
|
815
|
+
type: 'apiKey'
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
in: 'query',
|
|
819
|
+
name: 'api-key',
|
|
820
|
+
type: 'apiKey'
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
url: '/api/v1/sql/{owner}/{slug}/table/{name}',
|
|
824
|
+
...options
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* List Tables
|
|
830
|
+
*/
|
|
831
|
+
public static listTables<ThrowOnError extends boolean = false>(options: Options<analytic_service.ListTablesData, ThrowOnError>) {
|
|
832
|
+
return (options.client ?? _heyApiClient).get<analytic_service.ListTablesResponse2, unknown, ThrowOnError>({
|
|
833
|
+
security: [
|
|
834
|
+
{
|
|
835
|
+
name: 'api-key',
|
|
836
|
+
type: 'apiKey'
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
in: 'query',
|
|
840
|
+
name: 'api-key',
|
|
841
|
+
type: 'apiKey'
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
url: '/api/v1/sql/{owner}/{slug}/tables',
|
|
845
|
+
...options
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
|
|
594
849
|
}
|
|
595
850
|
|
|
596
851
|
export class WebService {
|
|
597
852
|
/**
|
|
598
853
|
* List all dashboards in a project
|
|
599
854
|
*/
|
|
600
|
-
public static listDashboards<ThrowOnError extends boolean = false>(options?: Options<ListDashboardsData, ThrowOnError>) {
|
|
601
|
-
return (options?.client ?? _heyApiClient).get<ListDashboardsResponse, unknown, ThrowOnError>({
|
|
855
|
+
public static listDashboards<ThrowOnError extends boolean = false>(options?: Options<web_service.ListDashboardsData, ThrowOnError>) {
|
|
856
|
+
return (options?.client ?? _heyApiClient).get<web_service.ListDashboardsResponse, unknown, ThrowOnError>({
|
|
602
857
|
security: [
|
|
603
858
|
{
|
|
604
859
|
name: 'api-key',
|
|
@@ -618,8 +873,8 @@ export class WebService {
|
|
|
618
873
|
/**
|
|
619
874
|
* Import a dashboard to another dashboard
|
|
620
875
|
*/
|
|
621
|
-
public static importDashboard<ThrowOnError extends boolean = false>(options: Options<ImportDashboardData, ThrowOnError>) {
|
|
622
|
-
return (options.client ?? _heyApiClient).post<
|
|
876
|
+
public static importDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ImportDashboardData, ThrowOnError>) {
|
|
877
|
+
return (options.client ?? _heyApiClient).post<web_service.ImportDashboardResponse2, unknown, ThrowOnError>({
|
|
623
878
|
security: [
|
|
624
879
|
{
|
|
625
880
|
name: 'api-key',
|
|
@@ -643,8 +898,8 @@ export class WebService {
|
|
|
643
898
|
/**
|
|
644
899
|
* Delete a dashboard by id
|
|
645
900
|
*/
|
|
646
|
-
public static deleteDashboard<ThrowOnError extends boolean = false>(options: Options<DeleteDashboardData, ThrowOnError>) {
|
|
647
|
-
return (options.client ?? _heyApiClient).delete<DeleteDashboardResponse, unknown, ThrowOnError>({
|
|
901
|
+
public static deleteDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.DeleteDashboardData, ThrowOnError>) {
|
|
902
|
+
return (options.client ?? _heyApiClient).delete<web_service.DeleteDashboardResponse, unknown, ThrowOnError>({
|
|
648
903
|
security: [
|
|
649
904
|
{
|
|
650
905
|
name: 'api-key',
|
|
@@ -664,8 +919,8 @@ export class WebService {
|
|
|
664
919
|
/**
|
|
665
920
|
* Get a dashboard by id
|
|
666
921
|
*/
|
|
667
|
-
public static getDashboard<ThrowOnError extends boolean = false>(options: Options<GetDashboardData, ThrowOnError>) {
|
|
668
|
-
return (options.client ?? _heyApiClient).get<
|
|
922
|
+
public static getDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboardData, ThrowOnError>) {
|
|
923
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboardResponse2, unknown, ThrowOnError>({
|
|
669
924
|
security: [
|
|
670
925
|
{
|
|
671
926
|
name: 'api-key',
|
|
@@ -683,10 +938,10 @@ export class WebService {
|
|
|
683
938
|
}
|
|
684
939
|
|
|
685
940
|
/**
|
|
686
|
-
*
|
|
941
|
+
* Get dashboard history by dashboard id
|
|
687
942
|
*/
|
|
688
|
-
public static
|
|
689
|
-
return (options.client ?? _heyApiClient).get<
|
|
943
|
+
public static getDashboardHistory<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboardHistoryData, ThrowOnError>) {
|
|
944
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboardHistoryResponse2, unknown, ThrowOnError>({
|
|
690
945
|
security: [
|
|
691
946
|
{
|
|
692
947
|
name: 'api-key',
|
|
@@ -698,16 +953,16 @@ export class WebService {
|
|
|
698
953
|
type: 'apiKey'
|
|
699
954
|
}
|
|
700
955
|
],
|
|
701
|
-
url: '/api/v1/dashboards/{dashboardId}/
|
|
956
|
+
url: '/api/v1/dashboards/{dashboardId}/history',
|
|
702
957
|
...options
|
|
703
958
|
});
|
|
704
959
|
}
|
|
705
960
|
|
|
706
961
|
/**
|
|
707
|
-
*
|
|
962
|
+
* Export a dashboard to json
|
|
708
963
|
*/
|
|
709
|
-
public static
|
|
710
|
-
return (options.client ?? _heyApiClient).get<
|
|
964
|
+
public static exportDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ExportDashboardData, ThrowOnError>) {
|
|
965
|
+
return (options.client ?? _heyApiClient).get<web_service.ExportDashboardResponse2, unknown, ThrowOnError>({
|
|
711
966
|
security: [
|
|
712
967
|
{
|
|
713
968
|
name: 'api-key',
|
|
@@ -719,16 +974,16 @@ export class WebService {
|
|
|
719
974
|
type: 'apiKey'
|
|
720
975
|
}
|
|
721
976
|
],
|
|
722
|
-
url: '/api/v1/
|
|
977
|
+
url: '/api/v1/dashboards/{dashboardId}/json',
|
|
723
978
|
...options
|
|
724
979
|
});
|
|
725
980
|
}
|
|
726
981
|
|
|
727
982
|
/**
|
|
728
|
-
*
|
|
983
|
+
* List all dashboards in a project
|
|
729
984
|
*/
|
|
730
|
-
public static
|
|
731
|
-
return (options.client ?? _heyApiClient).get<
|
|
985
|
+
public static listDashboards2<ThrowOnError extends boolean = false>(options: Options<web_service.ListDashboards2Data, ThrowOnError>) {
|
|
986
|
+
return (options.client ?? _heyApiClient).get<web_service.ListDashboards2Response, unknown, ThrowOnError>({
|
|
732
987
|
security: [
|
|
733
988
|
{
|
|
734
989
|
name: 'api-key',
|
|
@@ -740,16 +995,16 @@ export class WebService {
|
|
|
740
995
|
type: 'apiKey'
|
|
741
996
|
}
|
|
742
997
|
],
|
|
743
|
-
url: '/api/v1/
|
|
998
|
+
url: '/api/v1/projects/{owner}/{slug}/dashboards',
|
|
744
999
|
...options
|
|
745
1000
|
});
|
|
746
1001
|
}
|
|
747
1002
|
|
|
748
1003
|
/**
|
|
749
|
-
* Get
|
|
1004
|
+
* Get a dashboard by id
|
|
750
1005
|
*/
|
|
751
|
-
public static
|
|
752
|
-
return (options
|
|
1006
|
+
public static getDashboard2<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboard2Data, ThrowOnError>) {
|
|
1007
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboard2Response, unknown, ThrowOnError>({
|
|
753
1008
|
security: [
|
|
754
1009
|
{
|
|
755
1010
|
name: 'api-key',
|
|
@@ -761,16 +1016,38 @@ export class WebService {
|
|
|
761
1016
|
type: 'apiKey'
|
|
762
1017
|
}
|
|
763
1018
|
],
|
|
764
|
-
url: '/api/v1/projects',
|
|
1019
|
+
url: '/api/v1/projects/{owner}/{slug}/dashboards/{dashboardId}',
|
|
765
1020
|
...options
|
|
766
1021
|
});
|
|
767
1022
|
}
|
|
768
1023
|
|
|
1024
|
+
public static createLinkSession<ThrowOnError extends boolean = false>(options?: Options<web_service.CreateLinkSessionData, ThrowOnError>) {
|
|
1025
|
+
return (options?.client ?? _heyApiClient).get<web_service.CreateLinkSessionResponse, unknown, ThrowOnError>({
|
|
1026
|
+
security: [
|
|
1027
|
+
{
|
|
1028
|
+
name: 'api-key',
|
|
1029
|
+
type: 'apiKey'
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
in: 'query',
|
|
1033
|
+
name: 'api-key',
|
|
1034
|
+
type: 'apiKey'
|
|
1035
|
+
}
|
|
1036
|
+
],
|
|
1037
|
+
url: '/api/v1/users/link',
|
|
1038
|
+
...options
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export class MoveService {
|
|
769
1045
|
/**
|
|
770
|
-
*
|
|
1046
|
+
* Get Aptos transaction call trace
|
|
1047
|
+
* Retrieves the detailed call trace for an Aptos transaction
|
|
771
1048
|
*/
|
|
772
|
-
public static
|
|
773
|
-
return (options
|
|
1049
|
+
public static getCallTrace<ThrowOnError extends boolean = false>(options?: Options<google.GetCallTraceData, ThrowOnError>) {
|
|
1050
|
+
return (options?.client ?? _heyApiClient).get<google.GetCallTraceResponse, unknown, ThrowOnError>({
|
|
774
1051
|
security: [
|
|
775
1052
|
{
|
|
776
1053
|
name: 'api-key',
|
|
@@ -782,16 +1059,17 @@ export class WebService {
|
|
|
782
1059
|
type: 'apiKey'
|
|
783
1060
|
}
|
|
784
1061
|
],
|
|
785
|
-
url: '/api/v1/
|
|
1062
|
+
url: '/api/v1/move/call_trace',
|
|
786
1063
|
...options
|
|
787
1064
|
});
|
|
788
1065
|
}
|
|
789
1066
|
|
|
790
1067
|
/**
|
|
791
|
-
* Get
|
|
1068
|
+
* Get Sui transaction call trace
|
|
1069
|
+
* Retrieves the detailed call trace for a Sui transaction
|
|
792
1070
|
*/
|
|
793
|
-
public static
|
|
794
|
-
return (options
|
|
1071
|
+
public static getSuiCallTrace<ThrowOnError extends boolean = false>(options?: Options<move_service.GetSuiCallTraceData, ThrowOnError>) {
|
|
1072
|
+
return (options?.client ?? _heyApiClient).get<move_service.GetSuiCallTraceResponse2, unknown, ThrowOnError>({
|
|
795
1073
|
security: [
|
|
796
1074
|
{
|
|
797
1075
|
name: 'api-key',
|
|
@@ -803,7 +1081,7 @@ export class WebService {
|
|
|
803
1081
|
type: 'apiKey'
|
|
804
1082
|
}
|
|
805
1083
|
],
|
|
806
|
-
url: '/api/v1/
|
|
1084
|
+
url: '/api/v1/move/sui_call_trace',
|
|
807
1085
|
...options
|
|
808
1086
|
});
|
|
809
1087
|
}
|
|
@@ -818,8 +1096,8 @@ export class PriceService {
|
|
|
818
1096
|
* If we have at least one price data for the given coin, we will return it with the actual timestamp.
|
|
819
1097
|
* Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
820
1098
|
*/
|
|
821
|
-
public static getPrice<ThrowOnError extends boolean = false>(options?: Options<GetPriceData, ThrowOnError>) {
|
|
822
|
-
return (options?.client ?? _heyApiClient).get<
|
|
1099
|
+
public static getPrice<ThrowOnError extends boolean = false>(options?: Options<price_service.GetPriceData, ThrowOnError>) {
|
|
1100
|
+
return (options?.client ?? _heyApiClient).get<price_service.GetPriceResponse2, unknown, ThrowOnError>({
|
|
823
1101
|
security: [
|
|
824
1102
|
{
|
|
825
1103
|
name: 'api-key',
|
|
@@ -846,8 +1124,8 @@ export class PriceService {
|
|
|
846
1124
|
*
|
|
847
1125
|
* 
|
|
848
1126
|
*/
|
|
849
|
-
public static addCoinByGecko<ThrowOnError extends boolean = false>(options: Options<AddCoinByGeckoData, ThrowOnError>) {
|
|
850
|
-
return (options.client ?? _heyApiClient).post<
|
|
1127
|
+
public static addCoinByGecko<ThrowOnError extends boolean = false>(options: Options<price_service.AddCoinByGeckoData, ThrowOnError>) {
|
|
1128
|
+
return (options.client ?? _heyApiClient).post<price_service.AddCoinByGeckoResponse2, unknown, ThrowOnError>({
|
|
851
1129
|
security: [
|
|
852
1130
|
{
|
|
853
1131
|
name: 'api-key',
|
|
@@ -871,8 +1149,8 @@ export class PriceService {
|
|
|
871
1149
|
/**
|
|
872
1150
|
* Batch get prices
|
|
873
1151
|
*/
|
|
874
|
-
public static batchGetPrices<ThrowOnError extends boolean = false>(options: Options<BatchGetPricesData, ThrowOnError>) {
|
|
875
|
-
return (options.client ?? _heyApiClient).post<
|
|
1152
|
+
public static batchGetPrices<ThrowOnError extends boolean = false>(options: Options<price_service.BatchGetPricesData, ThrowOnError>) {
|
|
1153
|
+
return (options.client ?? _heyApiClient).post<price_service.BatchGetPricesResponse2, unknown, ThrowOnError>({
|
|
876
1154
|
security: [
|
|
877
1155
|
{
|
|
878
1156
|
name: 'api-key',
|
|
@@ -896,8 +1174,8 @@ export class PriceService {
|
|
|
896
1174
|
/**
|
|
897
1175
|
* Check latest price
|
|
898
1176
|
*/
|
|
899
|
-
public static checkLatestPrice<ThrowOnError extends boolean = false>(options?: Options<CheckLatestPriceData, ThrowOnError>) {
|
|
900
|
-
return (options?.client ?? _heyApiClient).get<
|
|
1177
|
+
public static checkLatestPrice<ThrowOnError extends boolean = false>(options?: Options<price_service.CheckLatestPriceData, ThrowOnError>) {
|
|
1178
|
+
return (options?.client ?? _heyApiClient).get<price_service.CheckLatestPriceResponse2, unknown, ThrowOnError>({
|
|
901
1179
|
security: [
|
|
902
1180
|
{
|
|
903
1181
|
name: 'api-key',
|
|
@@ -917,8 +1195,8 @@ export class PriceService {
|
|
|
917
1195
|
/**
|
|
918
1196
|
* List coins
|
|
919
1197
|
*/
|
|
920
|
-
public static priceListCoins<ThrowOnError extends boolean = false>(options?: Options<PriceListCoinsData, ThrowOnError>) {
|
|
921
|
-
return (options?.client ?? _heyApiClient).get<PriceListCoinsResponse, unknown, ThrowOnError>({
|
|
1198
|
+
public static priceListCoins<ThrowOnError extends boolean = false>(options?: Options<price_service.PriceListCoinsData, ThrowOnError>) {
|
|
1199
|
+
return (options?.client ?? _heyApiClient).get<price_service.PriceListCoinsResponse, unknown, ThrowOnError>({
|
|
922
1200
|
security: [
|
|
923
1201
|
{
|
|
924
1202
|
name: 'api-key',
|
|
@@ -938,11 +1216,32 @@ export class PriceService {
|
|
|
938
1216
|
}
|
|
939
1217
|
|
|
940
1218
|
export class ProcessorService {
|
|
1219
|
+
/**
|
|
1220
|
+
* activate the pending version of a processor
|
|
1221
|
+
*/
|
|
1222
|
+
public static activatePendingVersion<ThrowOnError extends boolean = false>(options: Options<processor_service.ActivatePendingVersionData, ThrowOnError>) {
|
|
1223
|
+
return (options.client ?? _heyApiClient).put<processor_service.ActivatePendingVersionResponse, 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}/activate_pending',
|
|
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',
|