@sentio/api 1.0.2 → 1.0.3-rc.10
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/sdk.gen.d.ts +102 -63
- package/dist/src/sdk.gen.js +168 -6
- package/dist/src/sdk.gen.js.map +1 -1
- package/dist/src/types.gen.d.ts +3162 -2834
- package/package.json +1 -1
- package/src/sdk.gen.ts +289 -120
- package/src/types.gen.ts +3164 -3289
package/dist/src/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
-
import type {
|
|
2
|
+
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';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -13,156 +13,195 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: Record<string, unknown>;
|
|
15
15
|
};
|
|
16
|
+
export declare class AiService {
|
|
17
|
+
/**
|
|
18
|
+
* Create Chat Session
|
|
19
|
+
* 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.
|
|
20
|
+
*/
|
|
21
|
+
static createChatSession<ThrowOnError extends boolean = false>(options: Options<ai_service.CreateChatSessionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<ai_service.CreateChatSessionResponse, unknown, ThrowOnError>;
|
|
22
|
+
/**
|
|
23
|
+
* Query Chat Session
|
|
24
|
+
* Retrieve information about an existing chat session, returning only messages after the specified cursor position. Messages include run_id to identify generation runs.
|
|
25
|
+
*/
|
|
26
|
+
static queryChatSession<ThrowOnError extends boolean = false>(options: Options<ai_service.QueryChatSessionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<ai_service.ChatSession, unknown, ThrowOnError>;
|
|
27
|
+
/**
|
|
28
|
+
* Post Session Message
|
|
29
|
+
* 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.
|
|
30
|
+
*/
|
|
31
|
+
static postSessionMessage<ThrowOnError extends boolean = false>(options: Options<ai_service.PostSessionMessageData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<ai_service.PostSessionMessageResponse, unknown, ThrowOnError>;
|
|
32
|
+
}
|
|
16
33
|
export declare class AlertsService {
|
|
17
34
|
/**
|
|
18
35
|
* Save an alert rule
|
|
19
36
|
*/
|
|
20
|
-
static saveAlertRule<ThrowOnError extends boolean = false>(options: Options<SaveAlertRuleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
37
|
+
static saveAlertRule<ThrowOnError extends boolean = false>(options: Options<alert_service.SaveAlertRuleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
21
38
|
[key: string]: unknown;
|
|
22
39
|
}, unknown, ThrowOnError>;
|
|
23
40
|
/**
|
|
24
41
|
* List all alert rules for a project
|
|
25
42
|
*/
|
|
26
|
-
static getAlertRules<ThrowOnError extends boolean = false>(options: Options<GetAlertRulesData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
43
|
+
static getAlertRules<ThrowOnError extends boolean = false>(options: Options<alert_service.GetAlertRulesData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<alert_service.GetAlertRulesResponse, unknown, ThrowOnError>;
|
|
27
44
|
/**
|
|
28
45
|
* Delete an alert rule
|
|
29
46
|
*/
|
|
30
|
-
static deleteAlertRule<ThrowOnError extends boolean = false>(options: Options<DeleteAlertRuleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
47
|
+
static deleteAlertRule<ThrowOnError extends boolean = false>(options: Options<alert_service.DeleteAlertRuleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
31
48
|
[key: string]: unknown;
|
|
32
49
|
}, unknown, ThrowOnError>;
|
|
33
50
|
/**
|
|
34
51
|
* Save an alert rule
|
|
35
52
|
*/
|
|
36
|
-
static saveAlertRule2<ThrowOnError extends boolean = false>(options: Options<SaveAlertRule2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
53
|
+
static saveAlertRule2<ThrowOnError extends boolean = false>(options: Options<alert_service.SaveAlertRule2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
37
54
|
[key: string]: unknown;
|
|
38
55
|
}, unknown, ThrowOnError>;
|
|
39
56
|
/**
|
|
40
57
|
* Find an alert rule by id, and list all alerts for this rule
|
|
41
58
|
*/
|
|
42
|
-
static getAlert<ThrowOnError extends boolean = false>(options: Options<GetAlertData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
59
|
+
static getAlert<ThrowOnError extends boolean = false>(options: Options<alert_service.GetAlertData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<alert_service.GetAlertResponse, unknown, ThrowOnError>;
|
|
43
60
|
}
|
|
44
61
|
export declare class DataService {
|
|
45
62
|
/**
|
|
46
63
|
* Cancel SQL Query
|
|
47
64
|
* Cancel a SQL query by execution_id.
|
|
48
65
|
*/
|
|
49
|
-
static cancelSqlQuery<ThrowOnError extends boolean = false>(options: Options<CancelSqlQueryData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
66
|
+
static cancelSqlQuery<ThrowOnError extends boolean = false>(options: Options<analytic_service.CancelSqlQueryData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
50
67
|
[key: string]: unknown;
|
|
51
68
|
}, unknown, ThrowOnError>;
|
|
52
69
|
/**
|
|
53
70
|
* Execute SQL
|
|
54
71
|
* Execute SQL in a project. Go to "Data Studio" -> "SQL Editor", write your query and then click "Export as cURL"
|
|
55
72
|
*
|
|
56
|
-
* .png)
|
|
57
74
|
*
|
|
58
75
|
* Find more: https://docs.sentio.xyz/reference/data#sql-api
|
|
59
76
|
*/
|
|
60
|
-
static executeSql<ThrowOnError extends boolean = false>(options: Options<ExecuteSqlData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
77
|
+
static executeSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.ExecuteSqlData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.SyncExecuteSqlResponse, unknown, ThrowOnError>;
|
|
61
78
|
/**
|
|
62
79
|
* Execute SQL by Async
|
|
63
80
|
* Execute SQL in a project asynchronously.
|
|
64
81
|
*/
|
|
65
|
-
static executeSqlAsync<ThrowOnError extends boolean = false>(options: Options<ExecuteSqlAsyncData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
82
|
+
static executeSqlAsync<ThrowOnError extends boolean = false>(options: Options<analytic_service.ExecuteSqlAsyncData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.AsyncExecuteSqlResponse, unknown, ThrowOnError>;
|
|
66
83
|
/**
|
|
67
84
|
* Query SQL Execution Detail
|
|
68
85
|
* Query the execution detail of a SQL query by execution_id.
|
|
69
86
|
*/
|
|
70
|
-
static querySqlExecutionDetail<ThrowOnError extends boolean = false>(options: Options<QuerySqlExecutionDetailData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
87
|
+
static querySqlExecutionDetail<ThrowOnError extends boolean = false>(options: Options<analytic_service.QuerySqlExecutionDetailData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.QuerySqlExecutionDetailResponse, unknown, ThrowOnError>;
|
|
71
88
|
/**
|
|
72
89
|
* Query SQL Result
|
|
73
90
|
* Query the result of a SQL query by execution_id.
|
|
74
91
|
*/
|
|
75
|
-
static querySqlResult<ThrowOnError extends boolean = false>(options: Options<QuerySqlResultData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
92
|
+
static querySqlResult<ThrowOnError extends boolean = false>(options: Options<analytic_service.QuerySqlResultData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.QuerySqlResultResponse, unknown, ThrowOnError>;
|
|
93
|
+
/**
|
|
94
|
+
* Save Refreshable Materialized View
|
|
95
|
+
* Save or update a refreshable materialized view in a project.
|
|
96
|
+
*/
|
|
97
|
+
static saveRefreshableMaterializedView<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveRefreshableMaterializedViewData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.SaveRefreshableMaterializedViewResponse, unknown, ThrowOnError>;
|
|
98
|
+
/**
|
|
99
|
+
* Delete Refreshable Materialized View
|
|
100
|
+
* Delete a refreshable materialized view in a project.
|
|
101
|
+
*/
|
|
102
|
+
static deleteRefreshableMaterializedView<ThrowOnError extends boolean = false>(options: Options<analytic_service.DeleteRefreshableMaterializedViewData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
103
|
+
[key: string]: unknown;
|
|
104
|
+
}, unknown, ThrowOnError>;
|
|
105
|
+
/**
|
|
106
|
+
* Get Refreshable Materialized View Status
|
|
107
|
+
* Get the status of a refreshable materialized view in a project.
|
|
108
|
+
*/
|
|
109
|
+
static getRefreshableMaterializedStatus<ThrowOnError extends boolean = false>(options: Options<analytic_service.GetRefreshableMaterializedStatusData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.GetRefreshableMaterializedViewStatusResponse, unknown, ThrowOnError>;
|
|
110
|
+
/**
|
|
111
|
+
* List Refreshable Materialized Views
|
|
112
|
+
* List all refreshable materialized views in a project.
|
|
113
|
+
*/
|
|
114
|
+
static listRefreshableMaterializedViews<ThrowOnError extends boolean = false>(options: Options<analytic_service.ListRefreshableMaterializedViewsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.ListRefreshableMaterializedViewResponse, unknown, ThrowOnError>;
|
|
76
115
|
/**
|
|
77
116
|
* Save SQL
|
|
78
117
|
* Save or update a SQL query in a project.
|
|
79
118
|
*/
|
|
80
|
-
static saveSql<ThrowOnError extends boolean = false>(options: Options<SaveSqlData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
119
|
+
static saveSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveSqlData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.SaveSqlResponse, unknown, ThrowOnError>;
|
|
81
120
|
/**
|
|
82
121
|
* Save SQL
|
|
83
122
|
* Save or update a SQL query in a project.
|
|
84
123
|
*/
|
|
85
|
-
static saveSql2<ThrowOnError extends boolean = false>(options: Options<SaveSql2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
124
|
+
static saveSql2<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveSql2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.SaveSqlResponse, unknown, ThrowOnError>;
|
|
86
125
|
/**
|
|
87
126
|
* Query event logs
|
|
88
127
|
*/
|
|
89
|
-
static queryLog<ThrowOnError extends boolean = false>(options: Options<QueryLogData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
128
|
+
static queryLog<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryLogData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.LogQueryResponse, unknown, ThrowOnError>;
|
|
90
129
|
/**
|
|
91
130
|
* Query event logs
|
|
92
131
|
*/
|
|
93
|
-
static queryLog2<ThrowOnError extends boolean = false>(options: Options<QueryLog2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
132
|
+
static queryLog2<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryLog2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<analytic_service.LogQueryResponse, unknown, ThrowOnError>;
|
|
94
133
|
/**
|
|
95
134
|
* List coins
|
|
96
135
|
* Get a list of coins in a project.
|
|
97
136
|
*/
|
|
98
|
-
static listCoins2<ThrowOnError extends boolean = false>(options?: Options<ListCoins2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
137
|
+
static listCoins2<ThrowOnError extends boolean = false>(options?: Options<insights_service.ListCoins2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<insights_service.ListCoinsResponse, unknown, ThrowOnError>;
|
|
99
138
|
/**
|
|
100
139
|
* List coins
|
|
101
140
|
* Get a list of coins in a project.
|
|
102
141
|
*/
|
|
103
|
-
static listCoins<ThrowOnError extends boolean = false>(options: Options<ListCoinsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
142
|
+
static listCoins<ThrowOnError extends boolean = false>(options: Options<insights_service.ListCoinsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<insights_service.ListCoinsResponse, unknown, ThrowOnError>;
|
|
104
143
|
/**
|
|
105
144
|
* Insight Query
|
|
106
145
|
* Query for metrics,event logs and coin prices in a project.
|
|
107
146
|
*/
|
|
108
|
-
static query<ThrowOnError extends boolean = false>(options: Options<QueryData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
147
|
+
static query<ThrowOnError extends boolean = false>(options: Options<insights_service.QueryData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<insights_service.QueryResponse, unknown, ThrowOnError>;
|
|
109
148
|
/**
|
|
110
149
|
* Get a list of metrics in a project
|
|
111
150
|
*/
|
|
112
|
-
static getMetrics<ThrowOnError extends boolean = false>(options?: Options<GetMetricsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
151
|
+
static getMetrics<ThrowOnError extends boolean = false>(options?: Options<metrics_service.GetMetricsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<metrics_service.GetMetricsResponse, unknown, ThrowOnError>;
|
|
113
152
|
/**
|
|
114
153
|
* Metric instant queries
|
|
115
154
|
*/
|
|
116
|
-
static queryInstant<ThrowOnError extends boolean = false>(options: Options<QueryInstantData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
155
|
+
static queryInstant<ThrowOnError extends boolean = false>(options: Options<metrics_service.QueryInstantData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<metrics_service.QueryValueResponse, unknown, ThrowOnError>;
|
|
117
156
|
/**
|
|
118
157
|
* Metric range queries
|
|
119
158
|
* The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**.
|
|
120
159
|
*
|
|
121
|
-
* .png)
|
|
122
161
|
*/
|
|
123
|
-
static queryRange<ThrowOnError extends boolean = false>(options: Options<QueryRangeData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
162
|
+
static queryRange<ThrowOnError extends boolean = false>(options: Options<metrics_service.QueryRangeData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<metrics_service.MetricsQueryResponse, unknown, ThrowOnError>;
|
|
124
163
|
}
|
|
125
164
|
export declare class WebService {
|
|
126
165
|
/**
|
|
127
166
|
* List all dashboards in a project
|
|
128
167
|
*/
|
|
129
|
-
static listDashboards<ThrowOnError extends boolean = false>(options?: Options<ListDashboardsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
168
|
+
static listDashboards<ThrowOnError extends boolean = false>(options?: Options<web_service.ListDashboardsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetDashboardResponse, unknown, ThrowOnError>;
|
|
130
169
|
/**
|
|
131
170
|
* Import a dashboard to another dashboard
|
|
132
171
|
*/
|
|
133
|
-
static importDashboard<ThrowOnError extends boolean = false>(options: Options<ImportDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
172
|
+
static importDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ImportDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.ImportDashboardResponse, unknown, ThrowOnError>;
|
|
134
173
|
/**
|
|
135
174
|
* Delete a dashboard by id
|
|
136
175
|
*/
|
|
137
|
-
static deleteDashboard<ThrowOnError extends boolean = false>(options: Options<DeleteDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
176
|
+
static deleteDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.DeleteDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.Dashboard, unknown, ThrowOnError>;
|
|
138
177
|
/**
|
|
139
178
|
* Get a dashboard by id
|
|
140
179
|
*/
|
|
141
|
-
static getDashboard<ThrowOnError extends boolean = false>(options: Options<GetDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
180
|
+
static getDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetDashboardResponse, unknown, ThrowOnError>;
|
|
142
181
|
/**
|
|
143
182
|
* Export a dashboard to json
|
|
144
183
|
*/
|
|
145
|
-
static exportDashboard<ThrowOnError extends boolean = false>(options: Options<ExportDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
184
|
+
static exportDashboard<ThrowOnError extends boolean = false>(options: Options<web_service.ExportDashboardData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.ExportDashboardResponse, unknown, ThrowOnError>;
|
|
146
185
|
/**
|
|
147
186
|
* Get project details
|
|
148
187
|
*/
|
|
149
|
-
static getProject<ThrowOnError extends boolean = false>(options: Options<GetProjectData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
188
|
+
static getProject<ThrowOnError extends boolean = false>(options: Options<web_service.GetProjectData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetProjectResponse, unknown, ThrowOnError>;
|
|
150
189
|
/**
|
|
151
190
|
* Get project details
|
|
152
191
|
*/
|
|
153
|
-
static getProjectById<ThrowOnError extends boolean = false>(options: Options<GetProjectByIdData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
192
|
+
static getProjectById<ThrowOnError extends boolean = false>(options: Options<common.GetProjectByIdData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<common.ProjectInfo, unknown, ThrowOnError>;
|
|
154
193
|
/**
|
|
155
194
|
* Get project list
|
|
156
195
|
*/
|
|
157
|
-
static getProjectList<ThrowOnError extends boolean = false>(options?: Options<GetProjectListData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
196
|
+
static getProjectList<ThrowOnError extends boolean = false>(options?: Options<web_service.GetProjectListData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetProjectListResponse, unknown, ThrowOnError>;
|
|
158
197
|
/**
|
|
159
198
|
* List all dashboards in a project
|
|
160
199
|
*/
|
|
161
|
-
static listDashboards2<ThrowOnError extends boolean = false>(options: Options<ListDashboards2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
200
|
+
static listDashboards2<ThrowOnError extends boolean = false>(options: Options<web_service.ListDashboards2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetDashboardResponse, unknown, ThrowOnError>;
|
|
162
201
|
/**
|
|
163
202
|
* Get a dashboard by id
|
|
164
203
|
*/
|
|
165
|
-
static getDashboard2<ThrowOnError extends boolean = false>(options: Options<GetDashboard2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
204
|
+
static getDashboard2<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboard2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<web_service.GetDashboardResponse, unknown, ThrowOnError>;
|
|
166
205
|
}
|
|
167
206
|
export declare class PriceService {
|
|
168
207
|
/**
|
|
@@ -172,7 +211,7 @@ export declare class PriceService {
|
|
|
172
211
|
* If we have at least one price data for the given coin, we will return it with the actual timestamp.
|
|
173
212
|
* Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
174
213
|
*/
|
|
175
|
-
static getPrice<ThrowOnError extends boolean = false>(options?: Options<GetPriceData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
214
|
+
static getPrice<ThrowOnError extends boolean = false>(options?: Options<price_service.GetPriceData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<price_service.GetPriceResponse, unknown, ThrowOnError>;
|
|
176
215
|
/**
|
|
177
216
|
* Add coin by Gecko
|
|
178
217
|
* adds a coin by its coingecko id.
|
|
@@ -181,125 +220,125 @@ export declare class PriceService {
|
|
|
181
220
|
*
|
|
182
221
|
* please AWARE that the coingecko id is NOT the same as the symbol of the coin.
|
|
183
222
|
*
|
|
184
|
-
* 
|
|
185
224
|
*/
|
|
186
|
-
static addCoinByGecko<ThrowOnError extends boolean = false>(options: Options<AddCoinByGeckoData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
225
|
+
static addCoinByGecko<ThrowOnError extends boolean = false>(options: Options<price_service.AddCoinByGeckoData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<price_service.AddCoinByGeckoResponse, unknown, ThrowOnError>;
|
|
187
226
|
/**
|
|
188
227
|
* Batch get prices
|
|
189
228
|
*/
|
|
190
|
-
static batchGetPrices<ThrowOnError extends boolean = false>(options: Options<BatchGetPricesData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
229
|
+
static batchGetPrices<ThrowOnError extends boolean = false>(options: Options<price_service.BatchGetPricesData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<price_service.BatchGetPricesResponse, unknown, ThrowOnError>;
|
|
191
230
|
/**
|
|
192
231
|
* Check latest price
|
|
193
232
|
*/
|
|
194
|
-
static checkLatestPrice<ThrowOnError extends boolean = false>(options?: Options<CheckLatestPriceData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
233
|
+
static checkLatestPrice<ThrowOnError extends boolean = false>(options?: Options<price_service.CheckLatestPriceData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<price_service.CheckLatestPriceResponse, unknown, ThrowOnError>;
|
|
195
234
|
/**
|
|
196
235
|
* List coins
|
|
197
236
|
*/
|
|
198
|
-
static priceListCoins<ThrowOnError extends boolean = false>(options?: Options<PriceListCoinsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
237
|
+
static priceListCoins<ThrowOnError extends boolean = false>(options?: Options<price_service.PriceListCoinsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<price_service.ListCoinsResponse2, unknown, ThrowOnError>;
|
|
199
238
|
}
|
|
200
239
|
export declare class ProcessorService {
|
|
201
240
|
/**
|
|
202
241
|
* Get processor status
|
|
203
242
|
*/
|
|
204
|
-
static getProcessorStatusV2<ThrowOnError extends boolean = false>(options: Options<GetProcessorStatusV2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
243
|
+
static getProcessorStatusV2<ThrowOnError extends boolean = false>(options: Options<processor_service.GetProcessorStatusV2Data, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<processor_service.GetProcessorStatusResponse, unknown, ThrowOnError>;
|
|
205
244
|
}
|
|
206
245
|
export declare class DebugAndSimulationService {
|
|
207
246
|
/**
|
|
208
247
|
* Estimate gas price
|
|
209
248
|
*/
|
|
210
|
-
static getEstimatedGasPrice<ThrowOnError extends boolean = false>(options?: Options<GetEstimatedGasPriceData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
249
|
+
static getEstimatedGasPrice<ThrowOnError extends boolean = false>(options?: Options<solidity_service.GetEstimatedGasPriceData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetEstimatedGasPriceResponse, unknown, ThrowOnError>;
|
|
211
250
|
/**
|
|
212
251
|
* Search transactions
|
|
213
252
|
*/
|
|
214
|
-
static searchTransactions<ThrowOnError extends boolean = false>(options: Options<SearchTransactionsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
253
|
+
static searchTransactions<ThrowOnError extends boolean = false>(options: Options<solidity_service.SearchTransactionsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.EvmSearchTransactionsResponse, unknown, ThrowOnError>;
|
|
215
254
|
/**
|
|
216
255
|
* Get list of simulations
|
|
217
256
|
*/
|
|
218
|
-
static getSimulations<ThrowOnError extends boolean = false>(options: Options<GetSimulationsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
257
|
+
static getSimulations<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationsData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetSimulationsResponse, unknown, ThrowOnError>;
|
|
219
258
|
/**
|
|
220
259
|
* Get simulation by ID
|
|
221
260
|
*/
|
|
222
|
-
static getSimulation<ThrowOnError extends boolean = false>(options: Options<GetSimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
261
|
+
static getSimulation<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetSimulationResponse, unknown, ThrowOnError>;
|
|
223
262
|
/**
|
|
224
263
|
* Get bundle simulation by ID
|
|
225
264
|
*/
|
|
226
|
-
static getSimulationBundleInProject<ThrowOnError extends boolean = false>(options: Options<GetSimulationBundleInProjectData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
265
|
+
static getSimulationBundleInProject<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationBundleInProjectData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetSimulationBundleResponse, unknown, ThrowOnError>;
|
|
227
266
|
/**
|
|
228
267
|
* Get trace by bundle simulation
|
|
229
268
|
*/
|
|
230
|
-
static getCallTraceByBundle<ThrowOnError extends boolean = false>(options: Options<GetCallTraceByBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
269
|
+
static getCallTraceByBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
231
270
|
/**
|
|
232
271
|
* Run simulation
|
|
233
272
|
* Create a new transaction simulation. The simulation body should be included in the request body.
|
|
234
273
|
* 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.
|
|
235
274
|
*/
|
|
236
|
-
static simulateTransaction<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
275
|
+
static simulateTransaction<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionResponse, unknown, ThrowOnError>;
|
|
237
276
|
/**
|
|
238
277
|
* Get trace by simulation
|
|
239
278
|
*/
|
|
240
|
-
static getCallTraceBySimulation<ThrowOnError extends boolean = false>(options: Options<GetCallTraceBySimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
279
|
+
static getCallTraceBySimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceBySimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
241
280
|
/**
|
|
242
281
|
* Run bundle simulation
|
|
243
282
|
* 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.
|
|
244
283
|
*/
|
|
245
|
-
static simulateTransactionBundle<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
284
|
+
static simulateTransactionBundle<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionBundleResponse, unknown, ThrowOnError>;
|
|
246
285
|
/**
|
|
247
286
|
* Get trace by transaction
|
|
248
287
|
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.
|
|
249
288
|
*
|
|
250
|
-
* The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/
|
|
289
|
+
* The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/v1.0/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace.
|
|
251
290
|
*
|
|
252
291
|
* This allows you to build chart that marks the order of fund flow.
|
|
253
292
|
*
|
|
254
|
-
* %20(1)%20(1)%20(1).png)
|
|
255
294
|
*/
|
|
256
|
-
static getCallTraceByTransaction<ThrowOnError extends boolean = false>(options: Options<GetCallTraceByTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
295
|
+
static getCallTraceByTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
257
296
|
}
|
|
258
297
|
export declare class ForksService {
|
|
259
298
|
/**
|
|
260
299
|
* List all forks
|
|
261
300
|
*/
|
|
262
|
-
static listForks<ThrowOnError extends boolean = false>(options: Options<ListForksData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
301
|
+
static listForks<ThrowOnError extends boolean = false>(options: Options<solidity_service.ListForksData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.ListForksResponse, unknown, ThrowOnError>;
|
|
263
302
|
/**
|
|
264
303
|
* Create a fork
|
|
265
304
|
*/
|
|
266
|
-
static createFork<ThrowOnError extends boolean = false>(options: Options<CreateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
305
|
+
static createFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.CreateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.CreateForkResponse, unknown, ThrowOnError>;
|
|
267
306
|
/**
|
|
268
307
|
* Get trace by bundle simulation
|
|
269
308
|
*/
|
|
270
|
-
static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<GetCallTraceOnForkBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
309
|
+
static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
271
310
|
/**
|
|
272
311
|
* Run Simulation
|
|
273
312
|
*/
|
|
274
|
-
static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
313
|
+
static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionResponse, unknown, ThrowOnError>;
|
|
275
314
|
/**
|
|
276
315
|
* Get trace by simulation
|
|
277
316
|
*/
|
|
278
|
-
static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<GetCallTraceOnForkSimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
317
|
+
static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkSimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
279
318
|
/**
|
|
280
319
|
* Run bundle simulation
|
|
281
320
|
*/
|
|
282
|
-
static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<SimulateTransactionBundleOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
321
|
+
static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionBundleResponse, unknown, ThrowOnError>;
|
|
283
322
|
/**
|
|
284
323
|
* Get trace by transaction
|
|
285
324
|
*/
|
|
286
|
-
static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<GetCallTraceOnForkTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
325
|
+
static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
287
326
|
/**
|
|
288
327
|
* Delete fork by id
|
|
289
328
|
*/
|
|
290
|
-
static deleteFork<ThrowOnError extends boolean = false>(options: Options<DeleteForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
329
|
+
static deleteFork<ThrowOnError extends boolean = false>(options: Options<solidit_service.DeleteForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
291
330
|
[key: string]: unknown;
|
|
292
331
|
}, unknown, ThrowOnError>;
|
|
293
332
|
/**
|
|
294
333
|
* Get fork by id
|
|
295
334
|
*/
|
|
296
|
-
static getFork<ThrowOnError extends boolean = false>(options: Options<GetForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
335
|
+
static getFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetForkResponse, unknown, ThrowOnError>;
|
|
297
336
|
/**
|
|
298
337
|
* Update fork by id
|
|
299
338
|
*/
|
|
300
|
-
static updateFork<ThrowOnError extends boolean = false>(options: Options<UpdateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
339
|
+
static updateFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.UpdateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.UpdateForkResponse, unknown, ThrowOnError>;
|
|
301
340
|
/**
|
|
302
341
|
* Get fork info by id
|
|
303
342
|
*/
|
|
304
|
-
static getForkInfo<ThrowOnError extends boolean = false>(options: Options<GetForkInfoData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<
|
|
343
|
+
static getForkInfo<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkInfoData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetForkInfoResponse, unknown, ThrowOnError>;
|
|
305
344
|
}
|