@sentio/api 1.0.5-rc.8 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -43
- package/package.json +16 -10
- package/dist/src/client.gen.d.ts +0 -12
- package/dist/src/client.gen.js +0 -9
- package/dist/src/client.gen.js.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -21
- package/dist/src/index.js.map +0 -1
- package/dist/src/sdk.gen.d.ts +0 -399
- package/dist/src/sdk.gen.js +0 -1678
- package/dist/src/sdk.gen.js.map +0 -1
- package/dist/src/types.gen.d.ts +0 -3601
- package/dist/src/types.gen.js +0 -4
- package/dist/src/types.gen.js.map +0 -1
- package/src/client.gen.ts +0 -18
- package/src/index.ts +0 -4
- package/src/sdk.gen.ts +0 -1766
- package/src/types.gen.ts +0 -3617
package/src/types.gen.ts
DELETED
|
@@ -1,3617 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
export namespace ai_service {
|
|
4
|
-
export type AiServicePostSessionMessageBody = {
|
|
5
|
-
message?: Message;
|
|
6
|
-
};
|
|
7
|
-
export type AutoConfig = {
|
|
8
|
-
executeQuery?: boolean;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* - CHART_TYPE_UNSPECIFIED: Default unspecified type
|
|
12
|
-
* - CHART_TYPE_TABLE: Tabular data visualization
|
|
13
|
-
* - CHART_TYPE_LINE: Line chart
|
|
14
|
-
* - CHART_TYPE_BAR: Bar chart
|
|
15
|
-
* - CHART_TYPE_PIE: Pie chart
|
|
16
|
-
*/
|
|
17
|
-
export type ChartType = 'CHART_TYPE_UNSPECIFIED' | 'CHART_TYPE_TABLE' | 'CHART_TYPE_LINE' | 'CHART_TYPE_BAR' | 'CHART_TYPE_PIE';
|
|
18
|
-
/**
|
|
19
|
-
* ChatSession represents an interactive conversation session with the AI. Messages in the session are ordered and accessed via cursor positions.
|
|
20
|
-
*/
|
|
21
|
-
export type ChatSession = {
|
|
22
|
-
messages?: Array<Message>;
|
|
23
|
-
context?: Context;
|
|
24
|
-
streaming?: boolean;
|
|
25
|
-
preserveSession?: boolean;
|
|
26
|
-
};
|
|
27
|
-
export type Context = {
|
|
28
|
-
projectOwner?: string;
|
|
29
|
-
projectSlug?: string;
|
|
30
|
-
version?: number;
|
|
31
|
-
scenario?: ContextScenario;
|
|
32
|
-
sqlConfig?: SqlConfig;
|
|
33
|
-
insightConfig?: InsightConfig;
|
|
34
|
-
autoConfig?: AutoConfig;
|
|
35
|
-
};
|
|
36
|
-
export type ContextScenario = 'SCENARIO_UNSPECIFIED' | 'SCENARIO_SQL' | 'SCENARIO_INSIGHT' | 'SCENARIO_AUTO';
|
|
37
|
-
export type CreateChatSessionResponse = {
|
|
38
|
-
sessionId?: string;
|
|
39
|
-
currentCursorPosition?: number;
|
|
40
|
-
};
|
|
41
|
-
export type ErrorContent = {
|
|
42
|
-
code?: string;
|
|
43
|
-
message?: string;
|
|
44
|
-
};
|
|
45
|
-
export type HealthzResponse = {
|
|
46
|
-
status?: string;
|
|
47
|
-
service?: string;
|
|
48
|
-
};
|
|
49
|
-
export type InsightConfig = {
|
|
50
|
-
executeQuery?: boolean;
|
|
51
|
-
};
|
|
52
|
-
export type InsightQueryContent = {
|
|
53
|
-
explanation?: string;
|
|
54
|
-
chartType?: ChartType;
|
|
55
|
-
queries?: Array<common.Query>;
|
|
56
|
-
formulas?: Array<common.Formula>;
|
|
57
|
-
samplesLimit?: number;
|
|
58
|
-
timeRange?: common.TimeRangeLite;
|
|
59
|
-
results?: Array<InsightQueryResult>;
|
|
60
|
-
title?: string;
|
|
61
|
-
};
|
|
62
|
-
export type InsightQueryResult = {
|
|
63
|
-
id?: string;
|
|
64
|
-
alias?: string;
|
|
65
|
-
matrix?: common.Matrix;
|
|
66
|
-
error?: string;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Message represents a single message in an AI conversation with either text or structured content. Messages are generated as part of a 'run' (identified by run_id), and the is_final flag indicates when all messages for a run have been generated.
|
|
70
|
-
*/
|
|
71
|
-
export type Message = {
|
|
72
|
-
role?: MessageRole;
|
|
73
|
-
text?: string;
|
|
74
|
-
structured?: StructuredContent;
|
|
75
|
-
isFinal?: boolean;
|
|
76
|
-
runId?: string;
|
|
77
|
-
resources?: Array<Resource>;
|
|
78
|
-
};
|
|
79
|
-
export type MessageRole = 'ROLE_UNSPECIFIED' | 'ROLE_USER' | 'ROLE_ASSISTANT' | 'ROLE_SYSTEM' | 'AI_ROLE_TOOL';
|
|
80
|
-
export type PostSessionMessageResponse = {
|
|
81
|
-
currentCursorPosition?: number;
|
|
82
|
-
};
|
|
83
|
-
export type Resource = {
|
|
84
|
-
uri?: string;
|
|
85
|
-
name?: string;
|
|
86
|
-
description?: string;
|
|
87
|
-
mimeType?: string;
|
|
88
|
-
text?: string;
|
|
89
|
-
blob?: string;
|
|
90
|
-
};
|
|
91
|
-
export type SqlConfig = {
|
|
92
|
-
executeQuery?: boolean;
|
|
93
|
-
};
|
|
94
|
-
export type SqlContent = {
|
|
95
|
-
query?: string;
|
|
96
|
-
explanation?: string;
|
|
97
|
-
chartType?: ChartType;
|
|
98
|
-
title?: string;
|
|
99
|
-
result?: common.TabularData;
|
|
100
|
-
error?: string;
|
|
101
|
-
};
|
|
102
|
-
export type StructuredContent = {
|
|
103
|
-
type?: StructuredContentContentType;
|
|
104
|
-
sql?: SqlContent;
|
|
105
|
-
insightQuery?: InsightQueryContent;
|
|
106
|
-
error?: ErrorContent;
|
|
107
|
-
};
|
|
108
|
-
export type StructuredContentContentType = 'CONTENT_TYPE_UNSPECIFIED' | 'CONTENT_TYPE_SQL' | 'CONTENT_TYPE_INSIGHT_QUERY' | 'CONTENT_TYPE_ERROR';
|
|
109
|
-
export type CreateChatSessionData = {
|
|
110
|
-
/**
|
|
111
|
-
* ChatSession represents an interactive conversation session with the AI. Messages in the session are ordered and accessed via cursor positions.
|
|
112
|
-
*/
|
|
113
|
-
body: ai_service.ChatSession;
|
|
114
|
-
path?: never;
|
|
115
|
-
query?: never;
|
|
116
|
-
url: '/v1/ai/chat';
|
|
117
|
-
};
|
|
118
|
-
export type CreateChatSessionResponses = {
|
|
119
|
-
/**
|
|
120
|
-
* A successful response.
|
|
121
|
-
*/
|
|
122
|
-
200: ai_service.CreateChatSessionResponse;
|
|
123
|
-
};
|
|
124
|
-
export type CreateChatSessionResponse2 = CreateChatSessionResponses[keyof CreateChatSessionResponses];
|
|
125
|
-
export type QueryChatSessionData = {
|
|
126
|
-
body?: never;
|
|
127
|
-
path: {
|
|
128
|
-
/**
|
|
129
|
-
* Unique identifier for the session
|
|
130
|
-
*/
|
|
131
|
-
sessionId: string;
|
|
132
|
-
};
|
|
133
|
-
query?: {
|
|
134
|
-
/**
|
|
135
|
-
* Start cursor position - only messages after this position will be returned
|
|
136
|
-
*/
|
|
137
|
-
cursorPosition?: number;
|
|
138
|
-
};
|
|
139
|
-
url: '/v1/ai/chat/{sessionId}';
|
|
140
|
-
};
|
|
141
|
-
export type QueryChatSessionResponses = {
|
|
142
|
-
/**
|
|
143
|
-
* A successful response.
|
|
144
|
-
*/
|
|
145
|
-
200: ai_service.ChatSession;
|
|
146
|
-
};
|
|
147
|
-
export type QueryChatSessionResponse = QueryChatSessionResponses[keyof QueryChatSessionResponses];
|
|
148
|
-
export type PostSessionMessageData = {
|
|
149
|
-
body: ai_service.AiServicePostSessionMessageBody;
|
|
150
|
-
path: {
|
|
151
|
-
/**
|
|
152
|
-
* Unique identifier for the session
|
|
153
|
-
*/
|
|
154
|
-
sessionId: string;
|
|
155
|
-
};
|
|
156
|
-
query?: never;
|
|
157
|
-
url: '/v1/ai/chat/{sessionId}/message';
|
|
158
|
-
};
|
|
159
|
-
export type PostSessionMessageResponses = {
|
|
160
|
-
/**
|
|
161
|
-
* A successful response.
|
|
162
|
-
*/
|
|
163
|
-
200: ai_service.PostSessionMessageResponse;
|
|
164
|
-
};
|
|
165
|
-
export type PostSessionMessageResponse2 = PostSessionMessageResponses[keyof PostSessionMessageResponses];
|
|
166
|
-
export type HealthzData = {
|
|
167
|
-
body?: never;
|
|
168
|
-
path?: never;
|
|
169
|
-
query?: never;
|
|
170
|
-
url: '/v1/ai/healthz';
|
|
171
|
-
};
|
|
172
|
-
export type HealthzResponses = {
|
|
173
|
-
/**
|
|
174
|
-
* A successful response.
|
|
175
|
-
*/
|
|
176
|
-
200: ai_service.HealthzResponse;
|
|
177
|
-
};
|
|
178
|
-
export type HealthzResponse2 = HealthzResponses[keyof HealthzResponses];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export namespace alert_service {
|
|
182
|
-
export type Alert = {
|
|
183
|
-
id?: string;
|
|
184
|
-
ruleId?: string;
|
|
185
|
-
active?: boolean;
|
|
186
|
-
query?: string;
|
|
187
|
-
startTime?: string;
|
|
188
|
-
endTime?: string;
|
|
189
|
-
lastNotified?: string;
|
|
190
|
-
createState?: AlertAlertState;
|
|
191
|
-
lastState?: AlertAlertState;
|
|
192
|
-
};
|
|
193
|
-
export type AlertAlertState = {
|
|
194
|
-
condition?: Condition;
|
|
195
|
-
samples?: Array<Sample>;
|
|
196
|
-
subject?: string;
|
|
197
|
-
message?: string;
|
|
198
|
-
logCondition?: LogCondition;
|
|
199
|
-
logSamples?: Array<common.EventLogEntry>;
|
|
200
|
-
time?: string;
|
|
201
|
-
state?: AlertRuleState;
|
|
202
|
-
queryTimeRange?: common.TimeRangeLite;
|
|
203
|
-
sqlCondition?: SqlCondition;
|
|
204
|
-
sqlSamples?: Array<{
|
|
205
|
-
[key: string]: unknown;
|
|
206
|
-
}>;
|
|
207
|
-
sqlMatchCount?: number;
|
|
208
|
-
};
|
|
209
|
-
export type AlertRule = {
|
|
210
|
-
id?: string;
|
|
211
|
-
projectId?: string;
|
|
212
|
-
state?: AlertRuleState;
|
|
213
|
-
subject?: string;
|
|
214
|
-
message?: string;
|
|
215
|
-
group?: string;
|
|
216
|
-
query?: string;
|
|
217
|
-
for?: common.Duration;
|
|
218
|
-
channels?: Array<common.Channel>;
|
|
219
|
-
updateTime?: string;
|
|
220
|
-
condition?: Condition;
|
|
221
|
-
renotifyDuration?: common.Duration;
|
|
222
|
-
renotifyLimit?: number;
|
|
223
|
-
alertType?: AlertType;
|
|
224
|
-
logCondition?: LogCondition;
|
|
225
|
-
lastQueryTime?: string;
|
|
226
|
-
mute?: boolean;
|
|
227
|
-
interval?: common.Duration;
|
|
228
|
-
error?: string;
|
|
229
|
-
sqlCondition?: SqlCondition;
|
|
230
|
-
};
|
|
231
|
-
export type AlertRuleState = 'NO_DATA' | 'FIRING' | 'NORMAL' | 'ERROR';
|
|
232
|
-
export type AlertServiceSaveAlertRuleBody = {
|
|
233
|
-
rule?: {
|
|
234
|
-
projectId?: string;
|
|
235
|
-
state?: AlertRuleState;
|
|
236
|
-
subject?: string;
|
|
237
|
-
message?: string;
|
|
238
|
-
group?: string;
|
|
239
|
-
query?: string;
|
|
240
|
-
for?: common.Duration;
|
|
241
|
-
channels?: Array<common.Channel>;
|
|
242
|
-
updateTime?: string;
|
|
243
|
-
condition?: Condition;
|
|
244
|
-
renotifyDuration?: common.Duration;
|
|
245
|
-
renotifyLimit?: number;
|
|
246
|
-
alertType?: AlertType;
|
|
247
|
-
logCondition?: LogCondition;
|
|
248
|
-
lastQueryTime?: string;
|
|
249
|
-
mute?: boolean;
|
|
250
|
-
interval?: common.Duration;
|
|
251
|
-
error?: string;
|
|
252
|
-
sqlCondition?: SqlCondition;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
export type AlertType = 'METRIC' | 'LOG' | 'SQL';
|
|
256
|
-
export type Condition = {
|
|
257
|
-
queries?: Array<common.Query>;
|
|
258
|
-
formula?: common.Formula;
|
|
259
|
-
comparisonOp?: string;
|
|
260
|
-
threshold?: number;
|
|
261
|
-
eventsQueries?: Array<common.SegmentationQuery>;
|
|
262
|
-
priceQueries?: Array<common.PriceSegmentationQuery>;
|
|
263
|
-
insightQueries?: Array<ConditionInsightQuery>;
|
|
264
|
-
threshold2?: number;
|
|
265
|
-
};
|
|
266
|
-
export type ConditionInsightQuery = {
|
|
267
|
-
metricsQuery?: common.Query;
|
|
268
|
-
eventsQuery?: common.SegmentationQuery;
|
|
269
|
-
priceQuery?: common.PriceSegmentationQuery;
|
|
270
|
-
sourceName?: string;
|
|
271
|
-
};
|
|
272
|
-
export type GetAlertResponse = {
|
|
273
|
-
alertRule?: AlertRule;
|
|
274
|
-
alerts?: Array<Alert>;
|
|
275
|
-
mute?: Mute;
|
|
276
|
-
};
|
|
277
|
-
export type GetAlertRulesResponse = {
|
|
278
|
-
rules?: Array<AlertRule>;
|
|
279
|
-
};
|
|
280
|
-
export type LogCondition = {
|
|
281
|
-
query?: string;
|
|
282
|
-
comparisonOp?: string;
|
|
283
|
-
threshold?: number;
|
|
284
|
-
threshold2?: number;
|
|
285
|
-
};
|
|
286
|
-
export type Mute = {
|
|
287
|
-
id?: string;
|
|
288
|
-
ruleId?: string;
|
|
289
|
-
group?: string;
|
|
290
|
-
active?: boolean;
|
|
291
|
-
startTime?: string;
|
|
292
|
-
endTime?: string;
|
|
293
|
-
updateTime?: string;
|
|
294
|
-
};
|
|
295
|
-
export type SqlCondition = {
|
|
296
|
-
columnCondition?: SqlConditionColumnCondition;
|
|
297
|
-
rowCondition?: SqlConditionRowCondition;
|
|
298
|
-
sqlQuery?: string;
|
|
299
|
-
};
|
|
300
|
-
export type SqlConditionAggregation = 'COUNT' | 'SUM' | 'AVG' | 'MAX' | 'MIN' | 'LAST';
|
|
301
|
-
export type SqlConditionColumnCondition = {
|
|
302
|
-
valueColumn?: string;
|
|
303
|
-
timeColumn?: string;
|
|
304
|
-
comparisonOp?: string;
|
|
305
|
-
threshold?: number;
|
|
306
|
-
threshold2?: number;
|
|
307
|
-
aggregation?: SqlConditionAggregation;
|
|
308
|
-
};
|
|
309
|
-
export type SqlConditionRowCondition = {
|
|
310
|
-
[key: string]: unknown;
|
|
311
|
-
};
|
|
312
|
-
export type Sample = {
|
|
313
|
-
metric?: {
|
|
314
|
-
[key: string]: string;
|
|
315
|
-
};
|
|
316
|
-
value?: number;
|
|
317
|
-
timestamp?: string;
|
|
318
|
-
};
|
|
319
|
-
export type SaveAlertRuleRequest = {
|
|
320
|
-
rule?: AlertRule;
|
|
321
|
-
};
|
|
322
|
-
export type SaveAlertRuleData = {
|
|
323
|
-
body: alert_service.SaveAlertRuleRequest;
|
|
324
|
-
path?: never;
|
|
325
|
-
query?: never;
|
|
326
|
-
url: '/v1/alerts/rule';
|
|
327
|
-
};
|
|
328
|
-
export type SaveAlertRuleResponses = {
|
|
329
|
-
/**
|
|
330
|
-
* A successful response.
|
|
331
|
-
*/
|
|
332
|
-
200: {
|
|
333
|
-
[key: string]: unknown;
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
export type SaveAlertRuleResponse = SaveAlertRuleResponses[keyof SaveAlertRuleResponses];
|
|
337
|
-
export type GetAlertRulesData = {
|
|
338
|
-
body?: never;
|
|
339
|
-
path: {
|
|
340
|
-
projectId: string;
|
|
341
|
-
};
|
|
342
|
-
query?: never;
|
|
343
|
-
url: '/v1/alerts/rule/project/{projectId}';
|
|
344
|
-
};
|
|
345
|
-
export type GetAlertRulesResponses = {
|
|
346
|
-
/**
|
|
347
|
-
* A successful response.
|
|
348
|
-
*/
|
|
349
|
-
200: alert_service.GetAlertRulesResponse;
|
|
350
|
-
};
|
|
351
|
-
export type GetAlertRulesResponse2 = GetAlertRulesResponses[keyof GetAlertRulesResponses];
|
|
352
|
-
export type DeleteAlertRuleData = {
|
|
353
|
-
body?: never;
|
|
354
|
-
path: {
|
|
355
|
-
id: string;
|
|
356
|
-
};
|
|
357
|
-
query?: never;
|
|
358
|
-
url: '/v1/alerts/rule/{id}';
|
|
359
|
-
};
|
|
360
|
-
export type DeleteAlertRuleResponses = {
|
|
361
|
-
/**
|
|
362
|
-
* A successful response.
|
|
363
|
-
*/
|
|
364
|
-
200: {
|
|
365
|
-
[key: string]: unknown;
|
|
366
|
-
};
|
|
367
|
-
};
|
|
368
|
-
export type DeleteAlertRuleResponse = DeleteAlertRuleResponses[keyof DeleteAlertRuleResponses];
|
|
369
|
-
export type SaveAlertRule2Data = {
|
|
370
|
-
body: alert_service.AlertServiceSaveAlertRuleBody;
|
|
371
|
-
path: {
|
|
372
|
-
id: string;
|
|
373
|
-
};
|
|
374
|
-
query?: never;
|
|
375
|
-
url: '/v1/alerts/rule/{id}';
|
|
376
|
-
};
|
|
377
|
-
export type SaveAlertRule2Responses = {
|
|
378
|
-
/**
|
|
379
|
-
* A successful response.
|
|
380
|
-
*/
|
|
381
|
-
200: {
|
|
382
|
-
[key: string]: unknown;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
export type SaveAlertRule2Response = SaveAlertRule2Responses[keyof SaveAlertRule2Responses];
|
|
386
|
-
export type GetAlertData = {
|
|
387
|
-
body?: never;
|
|
388
|
-
path: {
|
|
389
|
-
ruleId: string;
|
|
390
|
-
};
|
|
391
|
-
query?: {
|
|
392
|
-
page?: number;
|
|
393
|
-
pageSize?: number;
|
|
394
|
-
};
|
|
395
|
-
url: '/v1/alerts/{ruleId}';
|
|
396
|
-
};
|
|
397
|
-
export type GetAlertResponses = {
|
|
398
|
-
/**
|
|
399
|
-
* A successful response.
|
|
400
|
-
*/
|
|
401
|
-
200: alert_service.GetAlertResponse;
|
|
402
|
-
};
|
|
403
|
-
export type GetAlertResponse2 = GetAlertResponses[keyof GetAlertResponses];
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export namespace analytic_service {
|
|
407
|
-
export type AnalyticServiceExecuteSqlAsyncBody = {
|
|
408
|
-
projectId?: string;
|
|
409
|
-
version?: number;
|
|
410
|
-
sqlQuery?: SqlQuery;
|
|
411
|
-
/**
|
|
412
|
-
* Pagination cursor for the next page of results, using the value from the previous response.
|
|
413
|
-
*/
|
|
414
|
-
cursor?: string;
|
|
415
|
-
cachePolicy?: common.CachePolicy;
|
|
416
|
-
engine?: ExecuteEngine;
|
|
417
|
-
};
|
|
418
|
-
export type AnalyticServiceExecuteSqlBody = {
|
|
419
|
-
projectId?: string;
|
|
420
|
-
version?: number;
|
|
421
|
-
sqlQuery?: SqlQuery;
|
|
422
|
-
/**
|
|
423
|
-
* Pagination cursor for the next page of results, using the value from the previous response.
|
|
424
|
-
*/
|
|
425
|
-
cursor?: string;
|
|
426
|
-
cachePolicy?: common.CachePolicy;
|
|
427
|
-
engine?: ExecuteEngine;
|
|
428
|
-
};
|
|
429
|
-
export type AnalyticServiceSaveRefreshableMaterializedViewBody = {
|
|
430
|
-
projectId?: string;
|
|
431
|
-
name?: string;
|
|
432
|
-
sql?: string;
|
|
433
|
-
refreshSettings?: ViewRefreshSettings;
|
|
434
|
-
};
|
|
435
|
-
export type AnalyticServiceSaveSqlBody = {
|
|
436
|
-
projectId?: string;
|
|
437
|
-
version?: number;
|
|
438
|
-
sqlQuery?: SqlQuery;
|
|
439
|
-
source?: Source;
|
|
440
|
-
};
|
|
441
|
-
export type AsyncExecuteSqlResponse = {
|
|
442
|
-
queryId?: string;
|
|
443
|
-
executionId?: string;
|
|
444
|
-
queueLength?: number;
|
|
445
|
-
computeStats?: common.ComputeStats;
|
|
446
|
-
};
|
|
447
|
-
export type ExecuteEngine = 'ULTRA' | 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
448
|
-
export type ExecutionInfo = {
|
|
449
|
-
queryId?: string;
|
|
450
|
-
executionId?: string;
|
|
451
|
-
status?: ExecutionStatus;
|
|
452
|
-
scheduledAt?: string;
|
|
453
|
-
startedAt?: string;
|
|
454
|
-
finishedAt?: string;
|
|
455
|
-
result?: common.TabularData;
|
|
456
|
-
error?: string;
|
|
457
|
-
computeStats?: common.ComputeStats;
|
|
458
|
-
processorVersion?: number;
|
|
459
|
-
};
|
|
460
|
-
export type ExecutionStatus = 'PENDING' | 'RUNNING' | 'FINISHED' | 'KILLED';
|
|
461
|
-
export type GetRefreshableMaterializedViewStatusResponse = {
|
|
462
|
-
name?: string;
|
|
463
|
-
status?: string;
|
|
464
|
-
lastRefreshTime?: string;
|
|
465
|
-
lastSuccessTime?: string;
|
|
466
|
-
nextRefreshTime?: string;
|
|
467
|
-
progress?: string;
|
|
468
|
-
readRows?: string;
|
|
469
|
-
readBytes?: string;
|
|
470
|
-
totalRows?: string;
|
|
471
|
-
writtenRows?: string;
|
|
472
|
-
writtenBytes?: string;
|
|
473
|
-
sql?: string;
|
|
474
|
-
refreshSettings?: ViewRefreshSettings;
|
|
475
|
-
computeStats?: common.ComputeStats;
|
|
476
|
-
exception?: string;
|
|
477
|
-
};
|
|
478
|
-
export type GetSharingSqlResponse = {
|
|
479
|
-
query?: GetSharingSqlResponseQuery;
|
|
480
|
-
project?: common.Project;
|
|
481
|
-
};
|
|
482
|
-
export type GetSharingSqlResponseQuery = {
|
|
483
|
-
sqlQuery?: SqlQuery;
|
|
484
|
-
createdAt?: string;
|
|
485
|
-
updatedAt?: string;
|
|
486
|
-
};
|
|
487
|
-
export type ListRefreshableMaterializedViewResponse = {
|
|
488
|
-
total?: string;
|
|
489
|
-
views?: Array<ListRefreshableMaterializedViewResponseRefreshableMaterializedView>;
|
|
490
|
-
};
|
|
491
|
-
export type ListRefreshableMaterializedViewResponseRefreshableMaterializedView = {
|
|
492
|
-
name?: string;
|
|
493
|
-
sql?: string;
|
|
494
|
-
};
|
|
495
|
-
export type ListTablesResponse = {
|
|
496
|
-
names?: Array<string>;
|
|
497
|
-
computeStats?: common.ComputeStats;
|
|
498
|
-
};
|
|
499
|
-
export type LogQueryRequestFilter = {
|
|
500
|
-
field?: string;
|
|
501
|
-
value?: string;
|
|
502
|
-
not?: boolean;
|
|
503
|
-
};
|
|
504
|
-
export type LogQueryRequestSort = {
|
|
505
|
-
field?: string;
|
|
506
|
-
desc?: boolean;
|
|
507
|
-
};
|
|
508
|
-
export type LogQueryResponse = {
|
|
509
|
-
entries?: Array<common.EventLogEntry>;
|
|
510
|
-
after?: Array<common.Any>;
|
|
511
|
-
total?: string;
|
|
512
|
-
computeStats?: common.ComputeStats;
|
|
513
|
-
};
|
|
514
|
-
export type QuerySqlExecutionDetailResponse = {
|
|
515
|
-
computeStats?: common.ComputeStats;
|
|
516
|
-
};
|
|
517
|
-
export type QuerySqlResultResponse = {
|
|
518
|
-
executionInfo?: ExecutionInfo;
|
|
519
|
-
};
|
|
520
|
-
export type QueryTableResponse = {
|
|
521
|
-
table?: Table;
|
|
522
|
-
computeStats?: common.ComputeStats;
|
|
523
|
-
};
|
|
524
|
-
export type QueryTablesResponse = {
|
|
525
|
-
tables?: {
|
|
526
|
-
[key: string]: Table;
|
|
527
|
-
};
|
|
528
|
-
computeStats?: common.ComputeStats;
|
|
529
|
-
};
|
|
530
|
-
export type SqlQuery = {
|
|
531
|
-
sql?: string;
|
|
532
|
-
size?: number;
|
|
533
|
-
parameters?: common.RichStruct;
|
|
534
|
-
/**
|
|
535
|
-
* the name of the query, if sql is empty and name not empty, the query will be fetched by the name.
|
|
536
|
-
*/
|
|
537
|
-
name?: string;
|
|
538
|
-
/**
|
|
539
|
-
* the id of the query, if sql and name both empty, the query will be fetched by the id.
|
|
540
|
-
*/
|
|
541
|
-
queryId?: string;
|
|
542
|
-
};
|
|
543
|
-
export type SaveRefreshableMaterializedViewResponse = {
|
|
544
|
-
name?: string;
|
|
545
|
-
isUpdated?: boolean;
|
|
546
|
-
};
|
|
547
|
-
export type SaveSqlResponse = {
|
|
548
|
-
queryId?: string;
|
|
549
|
-
};
|
|
550
|
-
export type SaveSharingSqlRequest = {
|
|
551
|
-
queryId?: string;
|
|
552
|
-
isPublic?: boolean;
|
|
553
|
-
};
|
|
554
|
-
export type SaveSharingSqlResponse = {
|
|
555
|
-
sharingId?: string;
|
|
556
|
-
queryId?: string;
|
|
557
|
-
isPublic?: boolean;
|
|
558
|
-
createdAt?: string;
|
|
559
|
-
updatedAt?: string;
|
|
560
|
-
};
|
|
561
|
-
export type SearchServiceQueryLogBody = {
|
|
562
|
-
projectId?: string;
|
|
563
|
-
query?: string;
|
|
564
|
-
timeRange?: common.TimeRange;
|
|
565
|
-
sorts?: Array<LogQueryRequestSort>;
|
|
566
|
-
after?: Array<common.Any>;
|
|
567
|
-
limit?: number;
|
|
568
|
-
offset?: number;
|
|
569
|
-
filters?: Array<LogQueryRequestFilter>;
|
|
570
|
-
version?: number;
|
|
571
|
-
source?: string;
|
|
572
|
-
cachePolicy?: common.CachePolicy;
|
|
573
|
-
};
|
|
574
|
-
export type Source = 'SQL_EDITOR' | 'DASHBOARD' | 'ASYNC_TRIGGER' | 'CURL' | 'ENDPOINT' | 'EXPORT' | 'USER_MATERIALIZED_VIEW_CREATOR' | 'SQL_ALERT';
|
|
575
|
-
export type SyncExecuteSqlResponse = {
|
|
576
|
-
runtimeCost?: string;
|
|
577
|
-
result?: common.TabularData;
|
|
578
|
-
error?: string;
|
|
579
|
-
computeStats?: common.ComputeStats;
|
|
580
|
-
};
|
|
581
|
-
export type Table = {
|
|
582
|
-
name?: string;
|
|
583
|
-
columns?: {
|
|
584
|
-
[key: string]: TableColumn;
|
|
585
|
-
};
|
|
586
|
-
tableType?: TableTableType;
|
|
587
|
-
relatedProjectId?: string;
|
|
588
|
-
};
|
|
589
|
-
export type TableColumn = {
|
|
590
|
-
name?: string;
|
|
591
|
-
columnType?: TableColumnColumnType;
|
|
592
|
-
clickhouseDataType?: string;
|
|
593
|
-
isBuiltin?: boolean;
|
|
594
|
-
};
|
|
595
|
-
export type TableColumnColumnType = 'STRING' | 'NUMBER' | 'BOOLEAN' | 'LIST' | 'TIME' | 'JSON' | 'TOKEN';
|
|
596
|
-
export type TableTableType = 'RESERVED' | 'EVENT' | 'METRICS' | 'SUBGRAPH' | 'MATERIALIZED_VIEW' | 'IMPORTED_EVENT' | 'SYSTEM' | 'ENTITY' | 'IMPORTED_ENTITY' | 'IMPORTED_SUBGRAPH' | 'USER_REFRESHABLE_VIEW' | 'DASH_COMMUNITY_EVENT' | 'DASH_COMMUNITY_SUBGRAPH' | 'DASH_COMMUNITY_ENTITY' | 'DASH_CURATED_EVENT' | 'DASH_CURATED_SUBGRAPH' | 'DASH_CURATED_ENTITY' | 'DASH_COMMUNITY_MATERIALIZED_VIEW' | 'DASH_CURATED_MATERIALIZED_VIEW' | 'IMPORTED_METRICS' | 'DASH_COMMUNITY_METRICS' | 'DASH_CURATED_METRICS';
|
|
597
|
-
export type ViewRefreshSettings = {
|
|
598
|
-
refreshInterval?: string;
|
|
599
|
-
strategy?: ViewRefreshSettingsRefreshStrategy;
|
|
600
|
-
dependsOn?: Array<string>;
|
|
601
|
-
appendMode?: boolean;
|
|
602
|
-
orderBy?: string;
|
|
603
|
-
};
|
|
604
|
-
export type ViewRefreshSettingsRefreshStrategy = 'EVERY' | 'AFTER';
|
|
605
|
-
export type SaveSharingSqlData = {
|
|
606
|
-
body: analytic_service.SaveSharingSqlRequest;
|
|
607
|
-
path?: never;
|
|
608
|
-
query?: never;
|
|
609
|
-
url: '/v1/analytics/sql/sharing';
|
|
610
|
-
};
|
|
611
|
-
export type SaveSharingSqlResponses = {
|
|
612
|
-
/**
|
|
613
|
-
* A successful response.
|
|
614
|
-
*/
|
|
615
|
-
200: analytic_service.SaveSharingSqlResponse;
|
|
616
|
-
};
|
|
617
|
-
export type SaveSharingSqlResponse2 = SaveSharingSqlResponses[keyof SaveSharingSqlResponses];
|
|
618
|
-
export type GetSharingSqlData = {
|
|
619
|
-
body?: never;
|
|
620
|
-
path: {
|
|
621
|
-
id: string;
|
|
622
|
-
};
|
|
623
|
-
query?: never;
|
|
624
|
-
url: '/v1/analytics/sql/sharing/{id}';
|
|
625
|
-
};
|
|
626
|
-
export type GetSharingSqlResponses = {
|
|
627
|
-
/**
|
|
628
|
-
* A successful response.
|
|
629
|
-
*/
|
|
630
|
-
200: analytic_service.GetSharingSqlResponse;
|
|
631
|
-
};
|
|
632
|
-
export type GetSharingSqlResponse2 = GetSharingSqlResponses[keyof GetSharingSqlResponses];
|
|
633
|
-
export type QueryTables2Data = {
|
|
634
|
-
body?: never;
|
|
635
|
-
path?: never;
|
|
636
|
-
query?: {
|
|
637
|
-
projectOwner?: string;
|
|
638
|
-
projectSlug?: string;
|
|
639
|
-
projectId?: string;
|
|
640
|
-
version?: number;
|
|
641
|
-
includeChains?: boolean;
|
|
642
|
-
includeViews?: boolean;
|
|
643
|
-
includeExternals?: boolean;
|
|
644
|
-
includeDash?: boolean;
|
|
645
|
-
};
|
|
646
|
-
url: '/v1/analytics/sql/tables';
|
|
647
|
-
};
|
|
648
|
-
export type QueryTables2Responses = {
|
|
649
|
-
/**
|
|
650
|
-
* A successful response.
|
|
651
|
-
*/
|
|
652
|
-
200: analytic_service.QueryTablesResponse;
|
|
653
|
-
};
|
|
654
|
-
export type QueryTables2Response = QueryTables2Responses[keyof QueryTables2Responses];
|
|
655
|
-
export type CancelSqlQueryData = {
|
|
656
|
-
body?: never;
|
|
657
|
-
path: {
|
|
658
|
-
/**
|
|
659
|
-
* username or organization name
|
|
660
|
-
*/
|
|
661
|
-
owner: string;
|
|
662
|
-
/**
|
|
663
|
-
* project slug
|
|
664
|
-
*/
|
|
665
|
-
slug: string;
|
|
666
|
-
executionId: string;
|
|
667
|
-
};
|
|
668
|
-
query?: {
|
|
669
|
-
/**
|
|
670
|
-
* use project id if project_owner and project_slug are not provided
|
|
671
|
-
*/
|
|
672
|
-
projectId?: string;
|
|
673
|
-
/**
|
|
674
|
-
* version of the datasource, default to the active version if not provided
|
|
675
|
-
*/
|
|
676
|
-
version?: number;
|
|
677
|
-
};
|
|
678
|
-
url: '/v1/analytics/{owner}/{slug}/sql/cancel_query/{executionId}';
|
|
679
|
-
};
|
|
680
|
-
export type CancelSqlQueryResponses = {
|
|
681
|
-
/**
|
|
682
|
-
* A successful response.
|
|
683
|
-
*/
|
|
684
|
-
200: {
|
|
685
|
-
[key: string]: unknown;
|
|
686
|
-
};
|
|
687
|
-
};
|
|
688
|
-
export type CancelSqlQueryResponse = CancelSqlQueryResponses[keyof CancelSqlQueryResponses];
|
|
689
|
-
export type ExecuteSqlData = {
|
|
690
|
-
body: analytic_service.AnalyticServiceExecuteSqlBody;
|
|
691
|
-
path: {
|
|
692
|
-
/**
|
|
693
|
-
* username or organization name
|
|
694
|
-
*/
|
|
695
|
-
owner: string;
|
|
696
|
-
/**
|
|
697
|
-
* project slug
|
|
698
|
-
*/
|
|
699
|
-
slug: string;
|
|
700
|
-
};
|
|
701
|
-
query?: never;
|
|
702
|
-
url: '/v1/analytics/{owner}/{slug}/sql/execute';
|
|
703
|
-
};
|
|
704
|
-
export type ExecuteSqlResponses = {
|
|
705
|
-
/**
|
|
706
|
-
* A successful response.
|
|
707
|
-
*/
|
|
708
|
-
200: analytic_service.SyncExecuteSqlResponse;
|
|
709
|
-
};
|
|
710
|
-
export type ExecuteSqlResponse = ExecuteSqlResponses[keyof ExecuteSqlResponses];
|
|
711
|
-
export type ExecuteSqlAsyncData = {
|
|
712
|
-
body: analytic_service.AnalyticServiceExecuteSqlAsyncBody;
|
|
713
|
-
path: {
|
|
714
|
-
/**
|
|
715
|
-
* username or organization name
|
|
716
|
-
*/
|
|
717
|
-
owner: string;
|
|
718
|
-
/**
|
|
719
|
-
* project slug
|
|
720
|
-
*/
|
|
721
|
-
slug: string;
|
|
722
|
-
};
|
|
723
|
-
query?: never;
|
|
724
|
-
url: '/v1/analytics/{owner}/{slug}/sql/execute/async';
|
|
725
|
-
};
|
|
726
|
-
export type ExecuteSqlAsyncResponses = {
|
|
727
|
-
/**
|
|
728
|
-
* A successful response.
|
|
729
|
-
*/
|
|
730
|
-
200: analytic_service.AsyncExecuteSqlResponse;
|
|
731
|
-
};
|
|
732
|
-
export type ExecuteSqlAsyncResponse = ExecuteSqlAsyncResponses[keyof ExecuteSqlAsyncResponses];
|
|
733
|
-
export type QuerySqlExecutionDetailData = {
|
|
734
|
-
body?: never;
|
|
735
|
-
path: {
|
|
736
|
-
/**
|
|
737
|
-
* username or organization name
|
|
738
|
-
*/
|
|
739
|
-
owner: string;
|
|
740
|
-
/**
|
|
741
|
-
* project slug
|
|
742
|
-
*/
|
|
743
|
-
slug: string;
|
|
744
|
-
executionId: string;
|
|
745
|
-
};
|
|
746
|
-
query?: {
|
|
747
|
-
/**
|
|
748
|
-
* use project id if project_owner and project_slug are not provided
|
|
749
|
-
*/
|
|
750
|
-
projectId?: string;
|
|
751
|
-
/**
|
|
752
|
-
* version of the datasource, default to the active version if not provided
|
|
753
|
-
*/
|
|
754
|
-
version?: number;
|
|
755
|
-
};
|
|
756
|
-
url: '/v1/analytics/{owner}/{slug}/sql/query_execution_detail/{executionId}';
|
|
757
|
-
};
|
|
758
|
-
export type QuerySqlExecutionDetailResponses = {
|
|
759
|
-
/**
|
|
760
|
-
* A successful response.
|
|
761
|
-
*/
|
|
762
|
-
200: analytic_service.QuerySqlExecutionDetailResponse;
|
|
763
|
-
};
|
|
764
|
-
export type QuerySqlExecutionDetailResponse2 = QuerySqlExecutionDetailResponses[keyof QuerySqlExecutionDetailResponses];
|
|
765
|
-
export type QuerySqlResultData = {
|
|
766
|
-
body?: never;
|
|
767
|
-
path: {
|
|
768
|
-
/**
|
|
769
|
-
* username or organization name
|
|
770
|
-
*/
|
|
771
|
-
owner: string;
|
|
772
|
-
/**
|
|
773
|
-
* project slug
|
|
774
|
-
*/
|
|
775
|
-
slug: string;
|
|
776
|
-
executionId: string;
|
|
777
|
-
};
|
|
778
|
-
query?: {
|
|
779
|
-
/**
|
|
780
|
-
* use project id if project_owner and project_slug are not provided
|
|
781
|
-
*/
|
|
782
|
-
projectId?: string;
|
|
783
|
-
/**
|
|
784
|
-
* version of the datasource, default to the active version if not provided
|
|
785
|
-
*/
|
|
786
|
-
version?: number;
|
|
787
|
-
};
|
|
788
|
-
url: '/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}';
|
|
789
|
-
};
|
|
790
|
-
export type QuerySqlResultResponses = {
|
|
791
|
-
/**
|
|
792
|
-
* A successful response.
|
|
793
|
-
*/
|
|
794
|
-
200: analytic_service.QuerySqlResultResponse;
|
|
795
|
-
};
|
|
796
|
-
export type QuerySqlResultResponse2 = QuerySqlResultResponses[keyof QuerySqlResultResponses];
|
|
797
|
-
export type SaveRefreshableMaterializedViewData = {
|
|
798
|
-
body: analytic_service.AnalyticServiceSaveRefreshableMaterializedViewBody;
|
|
799
|
-
path: {
|
|
800
|
-
/**
|
|
801
|
-
* username or organization name
|
|
802
|
-
*/
|
|
803
|
-
owner: string;
|
|
804
|
-
/**
|
|
805
|
-
* project slug
|
|
806
|
-
*/
|
|
807
|
-
slug: string;
|
|
808
|
-
};
|
|
809
|
-
query?: never;
|
|
810
|
-
url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_view';
|
|
811
|
-
};
|
|
812
|
-
export type SaveRefreshableMaterializedViewResponses = {
|
|
813
|
-
/**
|
|
814
|
-
* A successful response.
|
|
815
|
-
*/
|
|
816
|
-
200: analytic_service.SaveRefreshableMaterializedViewResponse;
|
|
817
|
-
};
|
|
818
|
-
export type SaveRefreshableMaterializedViewResponse2 = SaveRefreshableMaterializedViewResponses[keyof SaveRefreshableMaterializedViewResponses];
|
|
819
|
-
export type DeleteRefreshableMaterializedViewData = {
|
|
820
|
-
body?: never;
|
|
821
|
-
path: {
|
|
822
|
-
/**
|
|
823
|
-
* username or organization name
|
|
824
|
-
*/
|
|
825
|
-
owner: string;
|
|
826
|
-
/**
|
|
827
|
-
* project slug
|
|
828
|
-
*/
|
|
829
|
-
slug: string;
|
|
830
|
-
name: string;
|
|
831
|
-
};
|
|
832
|
-
query?: {
|
|
833
|
-
/**
|
|
834
|
-
* use project id if project_owner and project_slug are not provided
|
|
835
|
-
*/
|
|
836
|
-
projectId?: string;
|
|
837
|
-
};
|
|
838
|
-
url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_view/{name}';
|
|
839
|
-
};
|
|
840
|
-
export type DeleteRefreshableMaterializedViewResponses = {
|
|
841
|
-
/**
|
|
842
|
-
* A successful response.
|
|
843
|
-
*/
|
|
844
|
-
200: {
|
|
845
|
-
[key: string]: unknown;
|
|
846
|
-
};
|
|
847
|
-
};
|
|
848
|
-
export type DeleteRefreshableMaterializedViewResponse = DeleteRefreshableMaterializedViewResponses[keyof DeleteRefreshableMaterializedViewResponses];
|
|
849
|
-
export type GetRefreshableMaterializedStatusData = {
|
|
850
|
-
body?: never;
|
|
851
|
-
path: {
|
|
852
|
-
/**
|
|
853
|
-
* username or organization name
|
|
854
|
-
*/
|
|
855
|
-
owner: string;
|
|
856
|
-
/**
|
|
857
|
-
* project slug
|
|
858
|
-
*/
|
|
859
|
-
slug: string;
|
|
860
|
-
name: string;
|
|
861
|
-
};
|
|
862
|
-
query?: {
|
|
863
|
-
/**
|
|
864
|
-
* use project id if project_owner and project_slug are not provided
|
|
865
|
-
*/
|
|
866
|
-
projectId?: string;
|
|
867
|
-
};
|
|
868
|
-
url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_view/{name}';
|
|
869
|
-
};
|
|
870
|
-
export type GetRefreshableMaterializedStatusResponses = {
|
|
871
|
-
/**
|
|
872
|
-
* A successful response.
|
|
873
|
-
*/
|
|
874
|
-
200: analytic_service.GetRefreshableMaterializedViewStatusResponse;
|
|
875
|
-
};
|
|
876
|
-
export type GetRefreshableMaterializedStatusResponse = GetRefreshableMaterializedStatusResponses[keyof GetRefreshableMaterializedStatusResponses];
|
|
877
|
-
export type ListRefreshableMaterializedViewsData = {
|
|
878
|
-
body?: never;
|
|
879
|
-
path: {
|
|
880
|
-
/**
|
|
881
|
-
* username or organization name
|
|
882
|
-
*/
|
|
883
|
-
owner: string;
|
|
884
|
-
/**
|
|
885
|
-
* project slug
|
|
886
|
-
*/
|
|
887
|
-
slug: string;
|
|
888
|
-
};
|
|
889
|
-
query?: {
|
|
890
|
-
/**
|
|
891
|
-
* use project id if project_owner and project_slug are not provided
|
|
892
|
-
*/
|
|
893
|
-
projectId?: string;
|
|
894
|
-
};
|
|
895
|
-
url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_views';
|
|
896
|
-
};
|
|
897
|
-
export type ListRefreshableMaterializedViewsResponses = {
|
|
898
|
-
/**
|
|
899
|
-
* A successful response.
|
|
900
|
-
*/
|
|
901
|
-
200: analytic_service.ListRefreshableMaterializedViewResponse;
|
|
902
|
-
};
|
|
903
|
-
export type ListRefreshableMaterializedViewsResponse = ListRefreshableMaterializedViewsResponses[keyof ListRefreshableMaterializedViewsResponses];
|
|
904
|
-
export type SaveSqlData = {
|
|
905
|
-
body: analytic_service.AnalyticServiceSaveSqlBody;
|
|
906
|
-
path: {
|
|
907
|
-
/**
|
|
908
|
-
* username or organization name
|
|
909
|
-
*/
|
|
910
|
-
owner: string;
|
|
911
|
-
/**
|
|
912
|
-
* project slug
|
|
913
|
-
*/
|
|
914
|
-
slug: string;
|
|
915
|
-
};
|
|
916
|
-
query?: never;
|
|
917
|
-
url: '/v1/analytics/{owner}/{slug}/sql/save';
|
|
918
|
-
};
|
|
919
|
-
export type SaveSqlResponses = {
|
|
920
|
-
/**
|
|
921
|
-
* A successful response.
|
|
922
|
-
*/
|
|
923
|
-
200: analytic_service.SaveSqlResponse;
|
|
924
|
-
};
|
|
925
|
-
export type SaveSqlResponse2 = SaveSqlResponses[keyof SaveSqlResponses];
|
|
926
|
-
export type SaveSql2Data = {
|
|
927
|
-
body: analytic_service.AnalyticServiceSaveSqlBody;
|
|
928
|
-
path: {
|
|
929
|
-
/**
|
|
930
|
-
* username or organization name
|
|
931
|
-
*/
|
|
932
|
-
owner: string;
|
|
933
|
-
/**
|
|
934
|
-
* project slug
|
|
935
|
-
*/
|
|
936
|
-
slug: string;
|
|
937
|
-
};
|
|
938
|
-
query?: never;
|
|
939
|
-
url: '/v1/analytics/{owner}/{slug}/sql/save';
|
|
940
|
-
};
|
|
941
|
-
export type SaveSql2Responses = {
|
|
942
|
-
/**
|
|
943
|
-
* A successful response.
|
|
944
|
-
*/
|
|
945
|
-
200: analytic_service.SaveSqlResponse;
|
|
946
|
-
};
|
|
947
|
-
export type SaveSql2Response = SaveSql2Responses[keyof SaveSql2Responses];
|
|
948
|
-
export type QueryTablesData = {
|
|
949
|
-
body?: never;
|
|
950
|
-
path: {
|
|
951
|
-
owner: string;
|
|
952
|
-
slug: string;
|
|
953
|
-
};
|
|
954
|
-
query?: {
|
|
955
|
-
projectId?: string;
|
|
956
|
-
version?: number;
|
|
957
|
-
includeChains?: boolean;
|
|
958
|
-
includeViews?: boolean;
|
|
959
|
-
includeExternals?: boolean;
|
|
960
|
-
includeDash?: boolean;
|
|
961
|
-
};
|
|
962
|
-
url: '/v1/analytics/{owner}/{slug}/sql/tables';
|
|
963
|
-
};
|
|
964
|
-
export type QueryTablesResponses = {
|
|
965
|
-
/**
|
|
966
|
-
* A successful response.
|
|
967
|
-
*/
|
|
968
|
-
200: analytic_service.QueryTablesResponse;
|
|
969
|
-
};
|
|
970
|
-
export type QueryTablesResponse2 = QueryTablesResponses[keyof QueryTablesResponses];
|
|
971
|
-
export type QueryLogData = {
|
|
972
|
-
body: analytic_service.SearchServiceQueryLogBody;
|
|
973
|
-
path: {
|
|
974
|
-
owner: string;
|
|
975
|
-
slug: string;
|
|
976
|
-
};
|
|
977
|
-
query?: never;
|
|
978
|
-
url: '/v1/eventlogs/{owner}/{slug}';
|
|
979
|
-
};
|
|
980
|
-
export type QueryLogResponses = {
|
|
981
|
-
/**
|
|
982
|
-
* A successful response.
|
|
983
|
-
*/
|
|
984
|
-
200: analytic_service.LogQueryResponse;
|
|
985
|
-
};
|
|
986
|
-
export type QueryLogResponse = QueryLogResponses[keyof QueryLogResponses];
|
|
987
|
-
export type QueryLog2Data = {
|
|
988
|
-
body?: never;
|
|
989
|
-
path: {
|
|
990
|
-
owner: string;
|
|
991
|
-
slug: string;
|
|
992
|
-
};
|
|
993
|
-
query?: {
|
|
994
|
-
projectId?: string;
|
|
995
|
-
query?: string;
|
|
996
|
-
'timeRange.start.relativeTime.unit'?: string;
|
|
997
|
-
'timeRange.start.relativeTime.value'?: number;
|
|
998
|
-
'timeRange.start.relativeTime.align'?: string;
|
|
999
|
-
'timeRange.start.absoluteTime'?: string;
|
|
1000
|
-
'timeRange.end.relativeTime.unit'?: string;
|
|
1001
|
-
'timeRange.end.relativeTime.value'?: number;
|
|
1002
|
-
'timeRange.end.relativeTime.align'?: string;
|
|
1003
|
-
'timeRange.end.absoluteTime'?: string;
|
|
1004
|
-
'timeRange.step'?: string;
|
|
1005
|
-
'timeRange.interval.value'?: number;
|
|
1006
|
-
'timeRange.interval.unit'?: string;
|
|
1007
|
-
'timeRange.timezone'?: string;
|
|
1008
|
-
limit?: number;
|
|
1009
|
-
offset?: number;
|
|
1010
|
-
version?: number;
|
|
1011
|
-
source?: string;
|
|
1012
|
-
/**
|
|
1013
|
-
* how long the cache will be stored before it is evicted
|
|
1014
|
-
*/
|
|
1015
|
-
'cachePolicy.cacheTtlSecs'?: number;
|
|
1016
|
-
/**
|
|
1017
|
-
* how long the cache will be refreshed in the background
|
|
1018
|
-
*/
|
|
1019
|
-
'cachePolicy.cacheRefreshTtlSecs'?: number;
|
|
1020
|
-
/**
|
|
1021
|
-
* force refresh the cache now
|
|
1022
|
-
*/
|
|
1023
|
-
'cachePolicy.forceRefresh'?: boolean;
|
|
1024
|
-
/**
|
|
1025
|
-
* do not use cache
|
|
1026
|
-
*/
|
|
1027
|
-
'cachePolicy.noCache'?: boolean;
|
|
1028
|
-
};
|
|
1029
|
-
url: '/v1/eventlogs/{owner}/{slug}/query';
|
|
1030
|
-
};
|
|
1031
|
-
export type QueryLog2Responses = {
|
|
1032
|
-
/**
|
|
1033
|
-
* A successful response.
|
|
1034
|
-
*/
|
|
1035
|
-
200: analytic_service.LogQueryResponse;
|
|
1036
|
-
};
|
|
1037
|
-
export type QueryLog2Response = QueryLog2Responses[keyof QueryLog2Responses];
|
|
1038
|
-
export type QueryTable2Data = {
|
|
1039
|
-
body?: never;
|
|
1040
|
-
path?: never;
|
|
1041
|
-
query?: {
|
|
1042
|
-
projectOwner?: string;
|
|
1043
|
-
projectSlug?: string;
|
|
1044
|
-
projectId?: string;
|
|
1045
|
-
version?: number;
|
|
1046
|
-
name?: string;
|
|
1047
|
-
};
|
|
1048
|
-
url: '/v1/sql/table';
|
|
1049
|
-
};
|
|
1050
|
-
export type QueryTable2Responses = {
|
|
1051
|
-
/**
|
|
1052
|
-
* A successful response.
|
|
1053
|
-
*/
|
|
1054
|
-
200: analytic_service.QueryTableResponse;
|
|
1055
|
-
};
|
|
1056
|
-
export type QueryTable2Response = QueryTable2Responses[keyof QueryTable2Responses];
|
|
1057
|
-
export type ListTables2Data = {
|
|
1058
|
-
body?: never;
|
|
1059
|
-
path?: never;
|
|
1060
|
-
query?: {
|
|
1061
|
-
projectOwner?: string;
|
|
1062
|
-
projectSlug?: string;
|
|
1063
|
-
projectId?: string;
|
|
1064
|
-
version?: number;
|
|
1065
|
-
};
|
|
1066
|
-
url: '/v1/sql/tables';
|
|
1067
|
-
};
|
|
1068
|
-
export type ListTables2Responses = {
|
|
1069
|
-
/**
|
|
1070
|
-
* A successful response.
|
|
1071
|
-
*/
|
|
1072
|
-
200: analytic_service.ListTablesResponse;
|
|
1073
|
-
};
|
|
1074
|
-
export type ListTables2Response = ListTables2Responses[keyof ListTables2Responses];
|
|
1075
|
-
export type QueryTableData = {
|
|
1076
|
-
body?: never;
|
|
1077
|
-
path: {
|
|
1078
|
-
owner: string;
|
|
1079
|
-
slug: string;
|
|
1080
|
-
name: string;
|
|
1081
|
-
};
|
|
1082
|
-
query?: {
|
|
1083
|
-
projectId?: string;
|
|
1084
|
-
version?: number;
|
|
1085
|
-
};
|
|
1086
|
-
url: '/v1/sql/{owner}/{slug}/table/{name}';
|
|
1087
|
-
};
|
|
1088
|
-
export type QueryTableResponses = {
|
|
1089
|
-
/**
|
|
1090
|
-
* A successful response.
|
|
1091
|
-
*/
|
|
1092
|
-
200: analytic_service.QueryTableResponse;
|
|
1093
|
-
};
|
|
1094
|
-
export type QueryTableResponse2 = QueryTableResponses[keyof QueryTableResponses];
|
|
1095
|
-
export type ListTablesData = {
|
|
1096
|
-
body?: never;
|
|
1097
|
-
path: {
|
|
1098
|
-
owner: string;
|
|
1099
|
-
slug: string;
|
|
1100
|
-
};
|
|
1101
|
-
query?: {
|
|
1102
|
-
projectId?: string;
|
|
1103
|
-
version?: number;
|
|
1104
|
-
};
|
|
1105
|
-
url: '/v1/sql/{owner}/{slug}/tables';
|
|
1106
|
-
};
|
|
1107
|
-
export type ListTablesResponses = {
|
|
1108
|
-
/**
|
|
1109
|
-
* A successful response.
|
|
1110
|
-
*/
|
|
1111
|
-
200: analytic_service.ListTablesResponse;
|
|
1112
|
-
};
|
|
1113
|
-
export type ListTablesResponse2 = ListTablesResponses[keyof ListTablesResponses];
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
export namespace common {
|
|
1117
|
-
export type Aggregate = {
|
|
1118
|
-
op?: AggregateAggregateOps;
|
|
1119
|
-
grouping?: Array<string>;
|
|
1120
|
-
};
|
|
1121
|
-
export type AggregateAggregateOps = 'AVG' | 'SUM' | 'MIN' | 'MAX' | 'COUNT';
|
|
1122
|
-
export type Any = {
|
|
1123
|
-
intValue?: number;
|
|
1124
|
-
longValue?: string;
|
|
1125
|
-
doubleValue?: number;
|
|
1126
|
-
stringValue?: string;
|
|
1127
|
-
boolValue?: boolean;
|
|
1128
|
-
dateValue?: string;
|
|
1129
|
-
listValue?: StringList;
|
|
1130
|
-
};
|
|
1131
|
-
export type Argument = {
|
|
1132
|
-
stringValue?: string;
|
|
1133
|
-
intValue?: number;
|
|
1134
|
-
doubleValue?: number;
|
|
1135
|
-
boolValue?: boolean;
|
|
1136
|
-
durationValue?: Duration;
|
|
1137
|
-
};
|
|
1138
|
-
export type BigDecimal = {
|
|
1139
|
-
value?: BigInteger;
|
|
1140
|
-
exp?: number;
|
|
1141
|
-
};
|
|
1142
|
-
export type BigInteger = {
|
|
1143
|
-
negative?: boolean;
|
|
1144
|
-
data?: string;
|
|
1145
|
-
};
|
|
1146
|
-
export type CachePolicy = {
|
|
1147
|
-
cacheTtlSecs?: number;
|
|
1148
|
-
cacheRefreshTtlSecs?: number;
|
|
1149
|
-
forceRefresh?: boolean;
|
|
1150
|
-
noCache?: boolean;
|
|
1151
|
-
};
|
|
1152
|
-
export type Channel = {
|
|
1153
|
-
id?: string;
|
|
1154
|
-
projectId?: string;
|
|
1155
|
-
type?: ChannelType;
|
|
1156
|
-
slackWebhookUrl?: string;
|
|
1157
|
-
emailAddress?: string;
|
|
1158
|
-
name?: string;
|
|
1159
|
-
customWebhookUrl?: string;
|
|
1160
|
-
customHeaders?: {
|
|
1161
|
-
[key: string]: string;
|
|
1162
|
-
};
|
|
1163
|
-
telegramReference?: string;
|
|
1164
|
-
telegramChatId?: string;
|
|
1165
|
-
slackTeam?: string;
|
|
1166
|
-
slackChannel?: string;
|
|
1167
|
-
pagerdutyConfig?: {
|
|
1168
|
-
[key: string]: unknown;
|
|
1169
|
-
};
|
|
1170
|
-
};
|
|
1171
|
-
export type ChannelType = 'UNKNOWN' | 'EMAIL' | 'SLACK' | 'TELEGRAM' | 'WEBHOOK' | 'DISCORD' | 'PAGERDUTY';
|
|
1172
|
-
export type CohortsFilter = {
|
|
1173
|
-
symbol?: boolean;
|
|
1174
|
-
name?: string;
|
|
1175
|
-
aggregation?: CohortsFilterAggregation;
|
|
1176
|
-
selectorExpr?: SelectorExpr;
|
|
1177
|
-
timeRange?: TimeRangeLite;
|
|
1178
|
-
};
|
|
1179
|
-
export type CohortsFilterAggregation = {
|
|
1180
|
-
total?: CohortsFilterAggregationTotal;
|
|
1181
|
-
aggregateProperties?: CohortsFilterAggregationAggregateProperties;
|
|
1182
|
-
operator?: CohortsFilterAggregationOperatorType;
|
|
1183
|
-
value?: Array<Any>;
|
|
1184
|
-
};
|
|
1185
|
-
export type CohortsFilterAggregationAggregateProperties = {
|
|
1186
|
-
type?: CohortsFilterAggregationAggregatePropertiesAggregationType;
|
|
1187
|
-
propertyName?: string;
|
|
1188
|
-
};
|
|
1189
|
-
export type CohortsFilterAggregationAggregatePropertiesAggregationType = 'SUM' | 'AVG' | 'MEDIAN' | 'MIN' | 'MAX' | 'DISTINCT_COUNT' | 'LAST' | 'FIRST';
|
|
1190
|
-
export type CohortsFilterAggregationOperatorType = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'NOT_BETWEEN';
|
|
1191
|
-
export type CohortsFilterAggregationTotal = {
|
|
1192
|
-
[key: string]: unknown;
|
|
1193
|
-
};
|
|
1194
|
-
export type CohortsGroup = {
|
|
1195
|
-
joinOperator?: JoinOperator;
|
|
1196
|
-
filters?: Array<CohortsFilter>;
|
|
1197
|
-
};
|
|
1198
|
-
export type CohortsQuery = {
|
|
1199
|
-
joinOperator?: JoinOperator;
|
|
1200
|
-
groups?: Array<CohortsGroup>;
|
|
1201
|
-
name?: string;
|
|
1202
|
-
id?: string;
|
|
1203
|
-
};
|
|
1204
|
-
export type CoinId = {
|
|
1205
|
-
symbol?: string;
|
|
1206
|
-
address?: CoinIdAddressIdentifier;
|
|
1207
|
-
};
|
|
1208
|
-
export type CoinIdAddressIdentifier = {
|
|
1209
|
-
address?: string;
|
|
1210
|
-
chain?: string;
|
|
1211
|
-
};
|
|
1212
|
-
export type ColumnState = {
|
|
1213
|
-
columnSizing?: {
|
|
1214
|
-
[key: string]: number;
|
|
1215
|
-
};
|
|
1216
|
-
columnVisibility?: {
|
|
1217
|
-
[key: string]: boolean;
|
|
1218
|
-
};
|
|
1219
|
-
columnOrder?: Array<string>;
|
|
1220
|
-
sorting?: Array<ColumnStateSort>;
|
|
1221
|
-
};
|
|
1222
|
-
export type ColumnStateSort = {
|
|
1223
|
-
id?: string;
|
|
1224
|
-
desc?: boolean;
|
|
1225
|
-
};
|
|
1226
|
-
export type CommunityProject = {
|
|
1227
|
-
dashAlias?: string;
|
|
1228
|
-
curated?: boolean;
|
|
1229
|
-
chain?: {
|
|
1230
|
-
[key: string]: StringList;
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
export type ComputeStats = {
|
|
1234
|
-
computedAt?: string;
|
|
1235
|
-
computeCostMs?: string;
|
|
1236
|
-
binaryVersionHash?: string;
|
|
1237
|
-
computedBy?: string;
|
|
1238
|
-
isCached?: boolean;
|
|
1239
|
-
isRefreshing?: boolean;
|
|
1240
|
-
clickhouseStats?: ComputeStatsClickhouseStats;
|
|
1241
|
-
};
|
|
1242
|
-
export type ComputeStatsClickhouseStats = {
|
|
1243
|
-
readRows?: string;
|
|
1244
|
-
readBytes?: string;
|
|
1245
|
-
memoryUsage?: string;
|
|
1246
|
-
queryDurationMs?: string;
|
|
1247
|
-
resultRows?: string;
|
|
1248
|
-
resultBytes?: string;
|
|
1249
|
-
};
|
|
1250
|
-
export type Duration = {
|
|
1251
|
-
value?: number;
|
|
1252
|
-
unit?: string;
|
|
1253
|
-
};
|
|
1254
|
-
export type ErrorRecord = {
|
|
1255
|
-
id?: string;
|
|
1256
|
-
namespace?: number;
|
|
1257
|
-
code?: number;
|
|
1258
|
-
namespaceCode?: number;
|
|
1259
|
-
message?: string;
|
|
1260
|
-
createdAt?: string;
|
|
1261
|
-
};
|
|
1262
|
-
export type EventLogColumn = {
|
|
1263
|
-
id?: string;
|
|
1264
|
-
size?: number;
|
|
1265
|
-
name?: string;
|
|
1266
|
-
accessorKey?: string;
|
|
1267
|
-
enableHiding?: boolean;
|
|
1268
|
-
enableSorting?: boolean;
|
|
1269
|
-
enableResizing?: boolean;
|
|
1270
|
-
};
|
|
1271
|
-
export type EventLogConfig = {
|
|
1272
|
-
columns?: Array<EventLogColumn>;
|
|
1273
|
-
state?: ColumnState;
|
|
1274
|
-
};
|
|
1275
|
-
export type EventLogEntry = {
|
|
1276
|
-
message?: string;
|
|
1277
|
-
timestamp?: string;
|
|
1278
|
-
logLevel?: string;
|
|
1279
|
-
logType?: string;
|
|
1280
|
-
contractName?: string;
|
|
1281
|
-
contractAddress?: string;
|
|
1282
|
-
blockNumber?: string;
|
|
1283
|
-
chainId?: string;
|
|
1284
|
-
attributes?: {
|
|
1285
|
-
[key: string]: unknown;
|
|
1286
|
-
};
|
|
1287
|
-
id?: string;
|
|
1288
|
-
transactionHash?: string;
|
|
1289
|
-
highlightedMessage?: string;
|
|
1290
|
-
distinctId?: string;
|
|
1291
|
-
eventName?: string;
|
|
1292
|
-
logIndex?: number;
|
|
1293
|
-
transactionIndex?: number;
|
|
1294
|
-
};
|
|
1295
|
-
/**
|
|
1296
|
-
* the formula to combine multiple queries
|
|
1297
|
-
*/
|
|
1298
|
-
export type Formula = {
|
|
1299
|
-
expression?: string;
|
|
1300
|
-
alias?: string;
|
|
1301
|
-
id?: string;
|
|
1302
|
-
disabled?: boolean;
|
|
1303
|
-
functions?: Array<_Function>;
|
|
1304
|
-
color?: string;
|
|
1305
|
-
};
|
|
1306
|
-
export type _Function = {
|
|
1307
|
-
name?: string;
|
|
1308
|
-
arguments?: Array<Argument>;
|
|
1309
|
-
};
|
|
1310
|
-
export type JoinOperator = 'AND' | 'OR' | 'THEN';
|
|
1311
|
-
export type Matrix = {
|
|
1312
|
-
samples?: Array<MatrixSample>;
|
|
1313
|
-
totalSamples?: number;
|
|
1314
|
-
};
|
|
1315
|
-
export type MatrixMetric = {
|
|
1316
|
-
name?: string;
|
|
1317
|
-
labels?: {
|
|
1318
|
-
[key: string]: string;
|
|
1319
|
-
};
|
|
1320
|
-
displayName?: string;
|
|
1321
|
-
};
|
|
1322
|
-
export type MatrixSample = {
|
|
1323
|
-
metric?: MatrixMetric;
|
|
1324
|
-
values?: Array<MatrixValue>;
|
|
1325
|
-
};
|
|
1326
|
-
export type MatrixValue = {
|
|
1327
|
-
timestamp?: string;
|
|
1328
|
-
value?: number;
|
|
1329
|
-
};
|
|
1330
|
-
export type Organization = {
|
|
1331
|
-
id?: string;
|
|
1332
|
-
oid?: string;
|
|
1333
|
-
name?: string;
|
|
1334
|
-
createdAt?: string;
|
|
1335
|
-
updatedAt?: string;
|
|
1336
|
-
members?: Array<OrganizationMember>;
|
|
1337
|
-
displayName?: string;
|
|
1338
|
-
logoUrl?: string;
|
|
1339
|
-
projects?: Array<ProjectInfo>;
|
|
1340
|
-
tier?: Tier;
|
|
1341
|
-
};
|
|
1342
|
-
export type OrganizationMember = {
|
|
1343
|
-
user?: UserInfo;
|
|
1344
|
-
role?: OrganizationRole;
|
|
1345
|
-
};
|
|
1346
|
-
export type OrganizationRole = 'ORG_MEMBER' | 'ORG_ADMIN';
|
|
1347
|
-
export type Owner = {
|
|
1348
|
-
user?: User;
|
|
1349
|
-
organization?: Organization;
|
|
1350
|
-
tier?: Tier;
|
|
1351
|
-
};
|
|
1352
|
-
export type Permission = 'READ' | 'WRITE' | 'ADMIN';
|
|
1353
|
-
export type PriceSegmentationQuery = {
|
|
1354
|
-
id?: string;
|
|
1355
|
-
alias?: string;
|
|
1356
|
-
coinId?: Array<CoinId>;
|
|
1357
|
-
color?: string;
|
|
1358
|
-
disabled?: boolean;
|
|
1359
|
-
};
|
|
1360
|
-
export type Project = {
|
|
1361
|
-
id?: string;
|
|
1362
|
-
displayName?: string;
|
|
1363
|
-
description?: string;
|
|
1364
|
-
createdAt?: string;
|
|
1365
|
-
updatedAt?: string;
|
|
1366
|
-
slug?: string;
|
|
1367
|
-
ownerId?: string;
|
|
1368
|
-
owner?: Owner;
|
|
1369
|
-
visibility?: ProjectVisibility;
|
|
1370
|
-
type?: ProjectType;
|
|
1371
|
-
members?: Array<ProjectProjectMember>;
|
|
1372
|
-
multiVersion?: boolean;
|
|
1373
|
-
ownerName?: string;
|
|
1374
|
-
notificationChannels?: Array<Channel>;
|
|
1375
|
-
views?: Array<ProjectView>;
|
|
1376
|
-
supersetEnable?: boolean;
|
|
1377
|
-
superset?: ProjectSuperset;
|
|
1378
|
-
enableDisk?: boolean;
|
|
1379
|
-
enableMaterializedView?: boolean;
|
|
1380
|
-
defaultTimerange?: TimeRangeLite;
|
|
1381
|
-
communityProject?: CommunityProject;
|
|
1382
|
-
sentioNetwork?: boolean;
|
|
1383
|
-
};
|
|
1384
|
-
export type ProjectProjectMember = {
|
|
1385
|
-
user?: UserInfo;
|
|
1386
|
-
role?: string;
|
|
1387
|
-
};
|
|
1388
|
-
export type ProjectType = 'SENTIO' | 'SUBGRAPH' | 'ACTION';
|
|
1389
|
-
export type ProjectVisibility = 'PUBLIC' | 'PRIVATE';
|
|
1390
|
-
export type ProjectInfo = {
|
|
1391
|
-
id?: string;
|
|
1392
|
-
displayName?: string;
|
|
1393
|
-
description?: string;
|
|
1394
|
-
createdAt?: string;
|
|
1395
|
-
updatedAt?: string;
|
|
1396
|
-
slug?: string;
|
|
1397
|
-
owner?: string;
|
|
1398
|
-
visibility?: ProjectVisibility;
|
|
1399
|
-
type?: ProjectType;
|
|
1400
|
-
multiVersion?: boolean;
|
|
1401
|
-
supersetEnable?: boolean;
|
|
1402
|
-
superset?: ProjectSuperset;
|
|
1403
|
-
enableDisk?: boolean;
|
|
1404
|
-
enableMaterializedView?: boolean;
|
|
1405
|
-
defaultTimerange?: TimeRangeLite;
|
|
1406
|
-
};
|
|
1407
|
-
export type ProjectSuperset = {
|
|
1408
|
-
projectId?: string;
|
|
1409
|
-
createdAt?: string;
|
|
1410
|
-
syncAt?: string;
|
|
1411
|
-
};
|
|
1412
|
-
export type ProjectView = {
|
|
1413
|
-
id?: string;
|
|
1414
|
-
projectId?: string;
|
|
1415
|
-
name?: string;
|
|
1416
|
-
config?: ProjectViewProjectViewConfig;
|
|
1417
|
-
};
|
|
1418
|
-
export type ProjectViewProjectViewConfig = {
|
|
1419
|
-
eventLog?: EventLogConfig;
|
|
1420
|
-
};
|
|
1421
|
-
/**
|
|
1422
|
-
* the query to fetch metrics data, promql
|
|
1423
|
-
*/
|
|
1424
|
-
export type Query = {
|
|
1425
|
-
query?: string;
|
|
1426
|
-
alias?: string;
|
|
1427
|
-
id?: string;
|
|
1428
|
-
labelSelector?: {
|
|
1429
|
-
[key: string]: string;
|
|
1430
|
-
};
|
|
1431
|
-
aggregate?: Aggregate;
|
|
1432
|
-
functions?: Array<_Function>;
|
|
1433
|
-
color?: string;
|
|
1434
|
-
disabled?: boolean;
|
|
1435
|
-
};
|
|
1436
|
-
export type RetentionQuery = {
|
|
1437
|
-
resources?: Array<RetentionQueryResource>;
|
|
1438
|
-
criteria?: RetentionQueryCriteria;
|
|
1439
|
-
interval?: RetentionQueryInterval;
|
|
1440
|
-
selectorExpr?: SelectorExpr;
|
|
1441
|
-
groupBy?: Array<string>;
|
|
1442
|
-
segmentBy?: Array<SegmentParameter>;
|
|
1443
|
-
windowSize?: number;
|
|
1444
|
-
};
|
|
1445
|
-
export type RetentionQueryCriteria = 'OnOrAfter' | 'On';
|
|
1446
|
-
export type RetentionQueryFilter = {
|
|
1447
|
-
propertyFilter?: SelectorExpr;
|
|
1448
|
-
timeFilter?: RetentionQueryFilterTimeFilter;
|
|
1449
|
-
};
|
|
1450
|
-
export type RetentionQueryFilterTimeFilter = {
|
|
1451
|
-
type?: RetentionQueryFilterTimeFilterType;
|
|
1452
|
-
};
|
|
1453
|
-
export type RetentionQueryFilterTimeFilterType = 'Disable' | 'FirstInTimeRange' | 'FirstInGlobal';
|
|
1454
|
-
export type RetentionQueryInterval = {
|
|
1455
|
-
value?: number;
|
|
1456
|
-
unit?: RetentionQueryIntervalUnit;
|
|
1457
|
-
};
|
|
1458
|
-
export type RetentionQueryIntervalUnit = 'Day' | 'Week' | 'Month';
|
|
1459
|
-
export type RetentionQueryResource = {
|
|
1460
|
-
eventNames?: Array<string>;
|
|
1461
|
-
filter?: RetentionQueryFilter;
|
|
1462
|
-
};
|
|
1463
|
-
export type RichStruct = {
|
|
1464
|
-
fields?: {
|
|
1465
|
-
[key: string]: RichValue;
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
export type RichValue = {
|
|
1469
|
-
nullValue?: RichValueNullValue;
|
|
1470
|
-
intValue?: number;
|
|
1471
|
-
int64Value?: string;
|
|
1472
|
-
floatValue?: number;
|
|
1473
|
-
bytesValue?: string;
|
|
1474
|
-
boolValue?: boolean;
|
|
1475
|
-
stringValue?: string;
|
|
1476
|
-
timestampValue?: string;
|
|
1477
|
-
bigintValue?: BigInteger;
|
|
1478
|
-
bigdecimalValue?: BigDecimal;
|
|
1479
|
-
listValue?: RichValueList;
|
|
1480
|
-
structValue?: RichStruct;
|
|
1481
|
-
tokenValue?: TokenAmount;
|
|
1482
|
-
};
|
|
1483
|
-
export type RichValueNullValue = 'NULL_VALUE';
|
|
1484
|
-
export type RichValueList = {
|
|
1485
|
-
values?: Array<RichValue>;
|
|
1486
|
-
};
|
|
1487
|
-
export type SegmentParameter = {
|
|
1488
|
-
cohortId?: string;
|
|
1489
|
-
allUsers?: boolean;
|
|
1490
|
-
};
|
|
1491
|
-
export type SegmentationQuery = {
|
|
1492
|
-
resource?: SegmentationQueryResource;
|
|
1493
|
-
alias?: string;
|
|
1494
|
-
id?: string;
|
|
1495
|
-
aggregation?: SegmentationQueryAggregation;
|
|
1496
|
-
selectorExpr?: SegmentationQuerySelectorExpr;
|
|
1497
|
-
groupBy?: Array<string>;
|
|
1498
|
-
limit?: number;
|
|
1499
|
-
functions?: Array<_Function>;
|
|
1500
|
-
color?: string;
|
|
1501
|
-
disabled?: boolean;
|
|
1502
|
-
};
|
|
1503
|
-
export type SegmentationQueryAggregation = {
|
|
1504
|
-
total?: SegmentationQueryAggregationTotal;
|
|
1505
|
-
unique?: SegmentationQueryAggregationUnique;
|
|
1506
|
-
countUnique?: SegmentationQueryAggregationCountUnique;
|
|
1507
|
-
aggregateProperties?: SegmentationQueryAggregationAggregateProperties;
|
|
1508
|
-
};
|
|
1509
|
-
export type SegmentationQueryAggregationAggregateProperties = {
|
|
1510
|
-
type?: SegmentationQueryAggregationAggregatePropertiesAggregationType;
|
|
1511
|
-
propertyName?: string;
|
|
1512
|
-
};
|
|
1513
|
-
export type SegmentationQueryAggregationAggregatePropertiesAggregationType = 'SUM' | 'CUMULATIVE_SUM' | 'AVG' | 'MEDIAN' | 'MIN' | 'MAX' | 'DISTINCT_COUNT' | 'CUMULATIVE_DISTINCT_COUNT' | 'CUMULATIVE_COUNT' | 'LAST' | 'CUMULATIVE_LAST' | 'FIRST' | 'CUMULATIVE_FIRST' | 'PERCENTILE_25TH' | 'PERCENTILE_75TH' | 'PERCENTILE_90TH' | 'PERCENTILE_95TH' | 'PERCENTILE_99TH';
|
|
1514
|
-
export type SegmentationQueryAggregationCountUnique = {
|
|
1515
|
-
duration?: Duration;
|
|
1516
|
-
};
|
|
1517
|
-
export type SegmentationQueryAggregationTotal = {
|
|
1518
|
-
[key: string]: unknown;
|
|
1519
|
-
};
|
|
1520
|
-
export type SegmentationQueryAggregationUnique = {
|
|
1521
|
-
[key: string]: unknown;
|
|
1522
|
-
};
|
|
1523
|
-
export type SegmentationQueryResource = {
|
|
1524
|
-
name?: string;
|
|
1525
|
-
type?: SegmentationQueryResourceType;
|
|
1526
|
-
cohortsId?: string;
|
|
1527
|
-
cohortsQuery?: CohortsQuery;
|
|
1528
|
-
multipleNames?: Array<string>;
|
|
1529
|
-
};
|
|
1530
|
-
export type SegmentationQueryResourceType = 'EVENTS' | 'COHORTS';
|
|
1531
|
-
export type SegmentationQuerySelectorExpr = {
|
|
1532
|
-
selector?: Selector;
|
|
1533
|
-
logicExpr?: SegmentationQuerySelectorExprLogicExpr;
|
|
1534
|
-
};
|
|
1535
|
-
export type SegmentationQuerySelectorExprLogicExpr = {
|
|
1536
|
-
expressions?: Array<SegmentationQuerySelectorExpr>;
|
|
1537
|
-
operator?: JoinOperator;
|
|
1538
|
-
};
|
|
1539
|
-
export type Selector = {
|
|
1540
|
-
key?: string;
|
|
1541
|
-
operator?: SelectorOperatorType;
|
|
1542
|
-
value?: Array<Any>;
|
|
1543
|
-
};
|
|
1544
|
-
export type SelectorOperatorType = 'EQ' | 'NEQ' | 'EXISTS' | 'NOT_EXISTS' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'NOT_BETWEEN' | 'CONTAINS' | 'NOT_CONTAINS' | 'IN' | 'NOT_IN' | 'IN_COHORTS' | 'NOT_IN_COHORTS';
|
|
1545
|
-
export type SelectorExpr = {
|
|
1546
|
-
selector?: Selector;
|
|
1547
|
-
logicExpr?: SelectorExprLogicExpr;
|
|
1548
|
-
};
|
|
1549
|
-
export type SelectorExprLogicExpr = {
|
|
1550
|
-
expressions?: Array<SelectorExpr>;
|
|
1551
|
-
operator?: JoinOperator;
|
|
1552
|
-
};
|
|
1553
|
-
export type StringList = {
|
|
1554
|
-
values?: Array<string>;
|
|
1555
|
-
};
|
|
1556
|
-
export type TabularData = {
|
|
1557
|
-
columns?: Array<string>;
|
|
1558
|
-
columnTypes?: {
|
|
1559
|
-
[key: string]: TabularDataColumnType;
|
|
1560
|
-
};
|
|
1561
|
-
rows?: Array<{
|
|
1562
|
-
[key: string]: unknown;
|
|
1563
|
-
}>;
|
|
1564
|
-
generatedAt?: string;
|
|
1565
|
-
/**
|
|
1566
|
-
* The pagination cursor for the next page of results. If present, use this value in the `cursor` field of the next request to retrieve subsequent data. If null or empty, there are no more results.
|
|
1567
|
-
*/
|
|
1568
|
-
cursor?: string;
|
|
1569
|
-
};
|
|
1570
|
-
export type TabularDataColumnType = 'STRING' | 'NUMBER' | 'BOOLEAN' | 'LIST' | 'TIME' | 'MAP' | 'JSON' | 'TOKEN' | 'DYNAMIC';
|
|
1571
|
-
export type Tier = 'FREE' | 'DEV' | 'PRO' | 'ENTERPRISE' | 'ANONYMOUS';
|
|
1572
|
-
export type TimeRange = {
|
|
1573
|
-
start?: TimeRangeTimeLike;
|
|
1574
|
-
end?: TimeRangeTimeLike;
|
|
1575
|
-
step?: string;
|
|
1576
|
-
interval?: Duration;
|
|
1577
|
-
timezone?: string;
|
|
1578
|
-
};
|
|
1579
|
-
export type TimeRangeRelativeTime = {
|
|
1580
|
-
unit?: string;
|
|
1581
|
-
value?: number;
|
|
1582
|
-
align?: string;
|
|
1583
|
-
};
|
|
1584
|
-
export type TimeRangeTimeLike = {
|
|
1585
|
-
relativeTime?: TimeRangeRelativeTime;
|
|
1586
|
-
absoluteTime?: string;
|
|
1587
|
-
};
|
|
1588
|
-
/**
|
|
1589
|
-
* start and end time of the time range, Find more: https://docs.sentio.xyz/reference/data#time-range-configuration-guide
|
|
1590
|
-
*/
|
|
1591
|
-
export type TimeRangeLite = {
|
|
1592
|
-
start: string;
|
|
1593
|
-
end: string;
|
|
1594
|
-
step: number;
|
|
1595
|
-
timezone?: string;
|
|
1596
|
-
};
|
|
1597
|
-
export type TokenAmount = {
|
|
1598
|
-
token?: CoinId;
|
|
1599
|
-
amount?: BigDecimal;
|
|
1600
|
-
specifiedAt?: string;
|
|
1601
|
-
};
|
|
1602
|
-
export type User = {
|
|
1603
|
-
id?: string;
|
|
1604
|
-
email?: string;
|
|
1605
|
-
emailVerified?: boolean;
|
|
1606
|
-
lastName?: string;
|
|
1607
|
-
firstName?: string;
|
|
1608
|
-
locale?: string;
|
|
1609
|
-
nickname?: string;
|
|
1610
|
-
picture?: string;
|
|
1611
|
-
sub?: string;
|
|
1612
|
-
updatedAt?: string;
|
|
1613
|
-
createdAt?: string;
|
|
1614
|
-
username?: string;
|
|
1615
|
-
accountStatus?: UserAccountStatus;
|
|
1616
|
-
tier?: Tier;
|
|
1617
|
-
isOrganization?: boolean;
|
|
1618
|
-
walletAddress?: string;
|
|
1619
|
-
identities?: Array<string>;
|
|
1620
|
-
};
|
|
1621
|
-
export type UserAccountStatus = 'PENDING' | 'SET_USERNAME' | 'BANNED' | 'ACTIVE';
|
|
1622
|
-
/**
|
|
1623
|
-
* The same to user but with sensitive data removed.
|
|
1624
|
-
*/
|
|
1625
|
-
export type UserInfo = {
|
|
1626
|
-
id?: string;
|
|
1627
|
-
lastName?: string;
|
|
1628
|
-
firstName?: string;
|
|
1629
|
-
nickname?: string;
|
|
1630
|
-
picture?: string;
|
|
1631
|
-
username?: string;
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
export namespace evm {
|
|
1636
|
-
export type AccessListItem = {
|
|
1637
|
-
address?: string;
|
|
1638
|
-
storageKeys?: Array<string>;
|
|
1639
|
-
};
|
|
1640
|
-
export type Transaction = {
|
|
1641
|
-
blockNumber?: string;
|
|
1642
|
-
blockHash?: string;
|
|
1643
|
-
transactionIndex?: string;
|
|
1644
|
-
hash?: string;
|
|
1645
|
-
chainId?: string;
|
|
1646
|
-
type?: string;
|
|
1647
|
-
from?: string;
|
|
1648
|
-
to?: string;
|
|
1649
|
-
input?: string;
|
|
1650
|
-
value?: string;
|
|
1651
|
-
nonce?: string;
|
|
1652
|
-
gas?: string;
|
|
1653
|
-
gasPrice?: string;
|
|
1654
|
-
maxFeePerGas?: string;
|
|
1655
|
-
maxPriorityFeePerGas?: string;
|
|
1656
|
-
accessList?: Array<AccessListItem>;
|
|
1657
|
-
};
|
|
1658
|
-
export type TransactionReceipt = {
|
|
1659
|
-
gasUsed?: string;
|
|
1660
|
-
cumulativeGasUsed?: string;
|
|
1661
|
-
effectiveGasPrice?: string;
|
|
1662
|
-
status?: string;
|
|
1663
|
-
error?: string;
|
|
1664
|
-
revertReason?: string;
|
|
1665
|
-
logs?: Array<{
|
|
1666
|
-
[key: string]: unknown;
|
|
1667
|
-
}>;
|
|
1668
|
-
};
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
export namespace google {
|
|
1672
|
-
export type ApiHttpBody = {
|
|
1673
|
-
contentType?: string;
|
|
1674
|
-
data?: string;
|
|
1675
|
-
extensions?: Array<ProtobufAny>;
|
|
1676
|
-
};
|
|
1677
|
-
/**
|
|
1678
|
-
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
1679
|
-
* URL that describes the type of the serialized message.
|
|
1680
|
-
*
|
|
1681
|
-
* In its binary encoding, an `Any` is an ordinary message; but in other wire
|
|
1682
|
-
* forms like JSON, it has a special encoding. The format of the type URL is
|
|
1683
|
-
* described on the `type_url` field.
|
|
1684
|
-
*
|
|
1685
|
-
* Protobuf APIs provide utilities to interact with `Any` values:
|
|
1686
|
-
*
|
|
1687
|
-
* - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
|
|
1688
|
-
* around it.
|
|
1689
|
-
* - An 'unpack' operation reads the content of an `Any` message, either into an
|
|
1690
|
-
* existing message or a new one. Unpack operations must check the type of the
|
|
1691
|
-
* value they unpack against the declared `type_url`.
|
|
1692
|
-
* - An 'is' operation decides whether an `Any` contains a message of the given
|
|
1693
|
-
* type, i.e. whether it can 'unpack' that type.
|
|
1694
|
-
*
|
|
1695
|
-
* The JSON format representation of an `Any` follows one of these cases:
|
|
1696
|
-
*
|
|
1697
|
-
* - For types without special-cased JSON encodings, the JSON format
|
|
1698
|
-
* representation of the `Any` is the same as that of the message, with an
|
|
1699
|
-
* additional `@type` field which contains the type URL.
|
|
1700
|
-
* - For types with special-cased JSON encodings (typically called 'well-known'
|
|
1701
|
-
* types, listed in https://protobuf.dev/programming-guides/json/#any), the
|
|
1702
|
-
* JSON format representation has a key `@type` which contains the type URL
|
|
1703
|
-
* and a key `value` which contains the JSON-serialized value.
|
|
1704
|
-
*
|
|
1705
|
-
* The text format representation of an `Any` is like a message with one field
|
|
1706
|
-
* whose name is the type URL in brackets. For example, an `Any` containing a
|
|
1707
|
-
* `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
|
|
1708
|
-
*/
|
|
1709
|
-
export type ProtobufAny = {
|
|
1710
|
-
/**
|
|
1711
|
-
* Identifies the type of the serialized Protobuf message with a URI reference
|
|
1712
|
-
* consisting of a prefix ending in a slash and the fully-qualified type name.
|
|
1713
|
-
*
|
|
1714
|
-
* Example: type.googleapis.com/google.protobuf.StringValue
|
|
1715
|
-
*
|
|
1716
|
-
* This string must contain at least one `/` character, and the content after
|
|
1717
|
-
* the last `/` must be the fully-qualified name of the type in canonical
|
|
1718
|
-
* form, without a leading dot. Do not write a scheme on these URI references
|
|
1719
|
-
* so that clients do not attempt to contact them.
|
|
1720
|
-
*
|
|
1721
|
-
* The prefix is arbitrary and Protobuf implementations are expected to
|
|
1722
|
-
* simply strip off everything up to and including the last `/` to identify
|
|
1723
|
-
* the type. `type.googleapis.com/` is a common default prefix that some
|
|
1724
|
-
* legacy implementations require. This prefix does not indicate the origin of
|
|
1725
|
-
* the type, and URIs containing it are not expected to respond to any
|
|
1726
|
-
* requests.
|
|
1727
|
-
*
|
|
1728
|
-
* All type URL strings must be legal URI references with the additional
|
|
1729
|
-
* restriction (for the text format) that the content of the reference
|
|
1730
|
-
* must consist only of alphanumeric characters, percent-encoded escapes, and
|
|
1731
|
-
* characters in the following set (not including the outer backticks):
|
|
1732
|
-
* `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
|
|
1733
|
-
* should not unescape them to prevent confusion with existing parsers. For
|
|
1734
|
-
* example, `type.googleapis.com%2FFoo` should be rejected.
|
|
1735
|
-
*
|
|
1736
|
-
* In the original design of `Any`, the possibility of launching a type
|
|
1737
|
-
* resolution service at these type URLs was considered but Protobuf never
|
|
1738
|
-
* implemented one and considers contacting these URLs to be problematic and
|
|
1739
|
-
* a potential security issue. Do not attempt to contact type URLs.
|
|
1740
|
-
*/
|
|
1741
|
-
'@type'?: string;
|
|
1742
|
-
[key: string]: unknown | string | undefined;
|
|
1743
|
-
};
|
|
1744
|
-
/**
|
|
1745
|
-
* Represents a JSON `null`.
|
|
1746
|
-
*
|
|
1747
|
-
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
1748
|
-
* the null value for the `Value` type union.
|
|
1749
|
-
*
|
|
1750
|
-
* A field of type `NullValue` with any value other than `0` is considered
|
|
1751
|
-
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
1752
|
-
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
1753
|
-
* a `0` value.
|
|
1754
|
-
*
|
|
1755
|
-
* - NULL_VALUE: Null value.
|
|
1756
|
-
*/
|
|
1757
|
-
export type ProtobufNullValue = 'NULL_VALUE';
|
|
1758
|
-
export type GetCallTraceData = {
|
|
1759
|
-
body?: never;
|
|
1760
|
-
path?: never;
|
|
1761
|
-
query?: {
|
|
1762
|
-
networkId?: string;
|
|
1763
|
-
txHash?: string;
|
|
1764
|
-
};
|
|
1765
|
-
url: '/v1/move/call_trace';
|
|
1766
|
-
};
|
|
1767
|
-
export type GetCallTraceResponses = {
|
|
1768
|
-
/**
|
|
1769
|
-
* A successful response.
|
|
1770
|
-
*/
|
|
1771
|
-
200: google.ApiHttpBody;
|
|
1772
|
-
};
|
|
1773
|
-
export type GetCallTraceResponse = GetCallTraceResponses[keyof GetCallTraceResponses];
|
|
1774
|
-
export type GetCallTraceOnForkBundleData = {
|
|
1775
|
-
body?: never;
|
|
1776
|
-
path: {
|
|
1777
|
-
owner: string;
|
|
1778
|
-
slug: string;
|
|
1779
|
-
forkId: string;
|
|
1780
|
-
bundleId: string;
|
|
1781
|
-
};
|
|
1782
|
-
query?: {
|
|
1783
|
-
/**
|
|
1784
|
-
* Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
|
|
1785
|
-
*/
|
|
1786
|
-
withInternalCalls?: boolean;
|
|
1787
|
-
/**
|
|
1788
|
-
* Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
|
|
1789
|
-
*/
|
|
1790
|
-
disableOptimizer?: boolean;
|
|
1791
|
-
/**
|
|
1792
|
-
* Only effective when disableOptimizer=true.
|
|
1793
|
-
*/
|
|
1794
|
-
ignoreGasCost?: boolean;
|
|
1795
|
-
};
|
|
1796
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace';
|
|
1797
|
-
};
|
|
1798
|
-
export type GetCallTraceOnForkBundleResponses = {
|
|
1799
|
-
/**
|
|
1800
|
-
* A successful response.
|
|
1801
|
-
*/
|
|
1802
|
-
200: google.ApiHttpBody;
|
|
1803
|
-
};
|
|
1804
|
-
export type GetCallTraceOnForkBundleResponse = GetCallTraceOnForkBundleResponses[keyof GetCallTraceOnForkBundleResponses];
|
|
1805
|
-
export type GetCallTraceOnForkSimulationData = {
|
|
1806
|
-
body?: never;
|
|
1807
|
-
path: {
|
|
1808
|
-
owner: string;
|
|
1809
|
-
slug: string;
|
|
1810
|
-
forkId: string;
|
|
1811
|
-
simulationId: string;
|
|
1812
|
-
};
|
|
1813
|
-
query?: {
|
|
1814
|
-
/**
|
|
1815
|
-
* Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
|
|
1816
|
-
*/
|
|
1817
|
-
withInternalCalls?: boolean;
|
|
1818
|
-
/**
|
|
1819
|
-
* Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
|
|
1820
|
-
*/
|
|
1821
|
-
disableOptimizer?: boolean;
|
|
1822
|
-
/**
|
|
1823
|
-
* Only effective when disableOptimizer=true.
|
|
1824
|
-
*/
|
|
1825
|
-
ignoreGasCost?: boolean;
|
|
1826
|
-
};
|
|
1827
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace';
|
|
1828
|
-
};
|
|
1829
|
-
export type GetCallTraceOnForkSimulationResponses = {
|
|
1830
|
-
/**
|
|
1831
|
-
* A successful response.
|
|
1832
|
-
*/
|
|
1833
|
-
200: google.ApiHttpBody;
|
|
1834
|
-
};
|
|
1835
|
-
export type GetCallTraceOnForkSimulationResponse = GetCallTraceOnForkSimulationResponses[keyof GetCallTraceOnForkSimulationResponses];
|
|
1836
|
-
export type GetCallTraceOnForkTransactionData = {
|
|
1837
|
-
body?: never;
|
|
1838
|
-
path: {
|
|
1839
|
-
owner: string;
|
|
1840
|
-
slug: string;
|
|
1841
|
-
forkId: string;
|
|
1842
|
-
txHash: string;
|
|
1843
|
-
};
|
|
1844
|
-
query?: {
|
|
1845
|
-
/**
|
|
1846
|
-
* Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
|
|
1847
|
-
*/
|
|
1848
|
-
withInternalCalls?: boolean;
|
|
1849
|
-
/**
|
|
1850
|
-
* Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
|
|
1851
|
-
*/
|
|
1852
|
-
disableOptimizer?: boolean;
|
|
1853
|
-
/**
|
|
1854
|
-
* Only effective when disableOptimizer=true.
|
|
1855
|
-
*/
|
|
1856
|
-
ignoreGasCost?: boolean;
|
|
1857
|
-
};
|
|
1858
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace';
|
|
1859
|
-
};
|
|
1860
|
-
export type GetCallTraceOnForkTransactionResponses = {
|
|
1861
|
-
/**
|
|
1862
|
-
* A successful response.
|
|
1863
|
-
*/
|
|
1864
|
-
200: google.ApiHttpBody;
|
|
1865
|
-
};
|
|
1866
|
-
export type GetCallTraceOnForkTransactionResponse = GetCallTraceOnForkTransactionResponses[keyof GetCallTraceOnForkTransactionResponses];
|
|
1867
|
-
export type GetCallTraceByBundleData = {
|
|
1868
|
-
body?: never;
|
|
1869
|
-
path: {
|
|
1870
|
-
owner: string;
|
|
1871
|
-
slug: string;
|
|
1872
|
-
chainId: string;
|
|
1873
|
-
bundleId: string;
|
|
1874
|
-
};
|
|
1875
|
-
query?: {
|
|
1876
|
-
/**
|
|
1877
|
-
* Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
|
|
1878
|
-
*/
|
|
1879
|
-
withInternalCalls?: boolean;
|
|
1880
|
-
/**
|
|
1881
|
-
* Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
|
|
1882
|
-
*/
|
|
1883
|
-
disableOptimizer?: boolean;
|
|
1884
|
-
/**
|
|
1885
|
-
* Only effective when disableOptimizer=true.
|
|
1886
|
-
*/
|
|
1887
|
-
ignoreGasCost?: boolean;
|
|
1888
|
-
};
|
|
1889
|
-
url: '/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace';
|
|
1890
|
-
};
|
|
1891
|
-
export type GetCallTraceByBundleResponses = {
|
|
1892
|
-
/**
|
|
1893
|
-
* A successful response.
|
|
1894
|
-
*/
|
|
1895
|
-
200: google.ApiHttpBody;
|
|
1896
|
-
};
|
|
1897
|
-
export type GetCallTraceByBundleResponse = GetCallTraceByBundleResponses[keyof GetCallTraceByBundleResponses];
|
|
1898
|
-
export type GetCallTraceBySimulationData = {
|
|
1899
|
-
body?: never;
|
|
1900
|
-
path: {
|
|
1901
|
-
owner: string;
|
|
1902
|
-
slug: string;
|
|
1903
|
-
chainId: string;
|
|
1904
|
-
simulationId: string;
|
|
1905
|
-
};
|
|
1906
|
-
query?: {
|
|
1907
|
-
/**
|
|
1908
|
-
* Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
|
|
1909
|
-
*/
|
|
1910
|
-
withInternalCalls?: boolean;
|
|
1911
|
-
/**
|
|
1912
|
-
* Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
|
|
1913
|
-
*/
|
|
1914
|
-
disableOptimizer?: boolean;
|
|
1915
|
-
/**
|
|
1916
|
-
* Only effective when disableOptimizer=true.
|
|
1917
|
-
*/
|
|
1918
|
-
ignoreGasCost?: boolean;
|
|
1919
|
-
};
|
|
1920
|
-
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace';
|
|
1921
|
-
};
|
|
1922
|
-
export type GetCallTraceBySimulationResponses = {
|
|
1923
|
-
/**
|
|
1924
|
-
* A successful response.
|
|
1925
|
-
*/
|
|
1926
|
-
200: google.ApiHttpBody;
|
|
1927
|
-
};
|
|
1928
|
-
export type GetCallTraceBySimulationResponse = GetCallTraceBySimulationResponses[keyof GetCallTraceBySimulationResponses];
|
|
1929
|
-
export type GetCallTraceByTransactionData = {
|
|
1930
|
-
body?: never;
|
|
1931
|
-
path: {
|
|
1932
|
-
owner: string;
|
|
1933
|
-
slug: string;
|
|
1934
|
-
chainId: string;
|
|
1935
|
-
txHash: string;
|
|
1936
|
-
};
|
|
1937
|
-
query?: {
|
|
1938
|
-
/**
|
|
1939
|
-
* Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
|
|
1940
|
-
*/
|
|
1941
|
-
withInternalCalls?: boolean;
|
|
1942
|
-
/**
|
|
1943
|
-
* Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
|
|
1944
|
-
*/
|
|
1945
|
-
disableOptimizer?: boolean;
|
|
1946
|
-
/**
|
|
1947
|
-
* Only effective when disableOptimizer=true.
|
|
1948
|
-
*/
|
|
1949
|
-
ignoreGasCost?: boolean;
|
|
1950
|
-
};
|
|
1951
|
-
url: '/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace';
|
|
1952
|
-
};
|
|
1953
|
-
export type GetCallTraceByTransactionResponses = {
|
|
1954
|
-
/**
|
|
1955
|
-
* A successful response.
|
|
1956
|
-
*/
|
|
1957
|
-
200: google.ApiHttpBody;
|
|
1958
|
-
};
|
|
1959
|
-
export type GetCallTraceByTransactionResponse = GetCallTraceByTransactionResponses[keyof GetCallTraceByTransactionResponses];
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
export namespace insights_service {
|
|
1963
|
-
export type DataSource = 'METRICS' | 'EVENTS' | 'PRICE' | 'FORMULA' | 'COHORTS' | 'SYSTEM_SQL';
|
|
1964
|
-
export type InsightsServiceQueryBody = {
|
|
1965
|
-
projectId?: string;
|
|
1966
|
-
version?: number;
|
|
1967
|
-
timeRange?: common.TimeRangeLite;
|
|
1968
|
-
queries?: Array<QueryRequestQuery>;
|
|
1969
|
-
formulas?: Array<common.Formula>;
|
|
1970
|
-
limit?: number;
|
|
1971
|
-
offset?: number;
|
|
1972
|
-
bypassCache?: boolean;
|
|
1973
|
-
cachePolicy?: common.CachePolicy;
|
|
1974
|
-
enableExperimentalFeatures?: boolean;
|
|
1975
|
-
};
|
|
1976
|
-
export type ListCoinsResponse = {
|
|
1977
|
-
coins?: Array<common.CoinId>;
|
|
1978
|
-
computeStats?: common.ComputeStats;
|
|
1979
|
-
};
|
|
1980
|
-
export type QueryRequestQuery = {
|
|
1981
|
-
metricsQuery?: common.Query;
|
|
1982
|
-
eventsQuery?: common.SegmentationQuery;
|
|
1983
|
-
priceQuery?: common.PriceSegmentationQuery;
|
|
1984
|
-
dataSource?: DataSource;
|
|
1985
|
-
sourceName?: string;
|
|
1986
|
-
};
|
|
1987
|
-
export type QueryResponse = {
|
|
1988
|
-
results?: Array<QueryResponseResult>;
|
|
1989
|
-
};
|
|
1990
|
-
export type QueryResponseResult = {
|
|
1991
|
-
id?: string;
|
|
1992
|
-
alias?: string;
|
|
1993
|
-
dataSource?: DataSource;
|
|
1994
|
-
matrix?: common.Matrix;
|
|
1995
|
-
error?: string;
|
|
1996
|
-
computeStats?: common.ComputeStats;
|
|
1997
|
-
color?: string;
|
|
1998
|
-
};
|
|
1999
|
-
export type ListCoins2Data = {
|
|
2000
|
-
body?: never;
|
|
2001
|
-
path?: never;
|
|
2002
|
-
query?: {
|
|
2003
|
-
projectOwner?: string;
|
|
2004
|
-
projectSlug?: string;
|
|
2005
|
-
projectId?: string;
|
|
2006
|
-
version?: number;
|
|
2007
|
-
limit?: number;
|
|
2008
|
-
offset?: number;
|
|
2009
|
-
searchQuery?: string;
|
|
2010
|
-
};
|
|
2011
|
-
url: '/v1/insights/coins';
|
|
2012
|
-
};
|
|
2013
|
-
export type ListCoins2Responses = {
|
|
2014
|
-
/**
|
|
2015
|
-
* A successful response.
|
|
2016
|
-
*/
|
|
2017
|
-
200: insights_service.ListCoinsResponse;
|
|
2018
|
-
};
|
|
2019
|
-
export type ListCoins2Response = ListCoins2Responses[keyof ListCoins2Responses];
|
|
2020
|
-
export type ListCoinsData = {
|
|
2021
|
-
body?: never;
|
|
2022
|
-
path: {
|
|
2023
|
-
owner: string;
|
|
2024
|
-
slug: string;
|
|
2025
|
-
};
|
|
2026
|
-
query?: {
|
|
2027
|
-
projectId?: string;
|
|
2028
|
-
version?: number;
|
|
2029
|
-
limit?: number;
|
|
2030
|
-
offset?: number;
|
|
2031
|
-
searchQuery?: string;
|
|
2032
|
-
};
|
|
2033
|
-
url: '/v1/insights/{owner}/{slug}/coins';
|
|
2034
|
-
};
|
|
2035
|
-
export type ListCoinsResponses = {
|
|
2036
|
-
/**
|
|
2037
|
-
* A successful response.
|
|
2038
|
-
*/
|
|
2039
|
-
200: insights_service.ListCoinsResponse;
|
|
2040
|
-
};
|
|
2041
|
-
export type ListCoinsResponse3 = ListCoinsResponses[keyof ListCoinsResponses];
|
|
2042
|
-
export type QueryData = {
|
|
2043
|
-
body: insights_service.InsightsServiceQueryBody;
|
|
2044
|
-
path: {
|
|
2045
|
-
/**
|
|
2046
|
-
* username or organization name
|
|
2047
|
-
*/
|
|
2048
|
-
owner: string;
|
|
2049
|
-
/**
|
|
2050
|
-
* project slug
|
|
2051
|
-
*/
|
|
2052
|
-
slug: string;
|
|
2053
|
-
};
|
|
2054
|
-
query?: never;
|
|
2055
|
-
url: '/v1/insights/{owner}/{slug}/query';
|
|
2056
|
-
};
|
|
2057
|
-
export type QueryResponses = {
|
|
2058
|
-
/**
|
|
2059
|
-
* A successful response.
|
|
2060
|
-
*/
|
|
2061
|
-
200: insights_service.QueryResponse;
|
|
2062
|
-
};
|
|
2063
|
-
export type QueryResponse2 = QueryResponses[keyof QueryResponses];
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
export namespace metrics_service {
|
|
2067
|
-
export type GetMetricsResponse = {
|
|
2068
|
-
metrics?: Array<MetricInfo>;
|
|
2069
|
-
computeStats?: common.ComputeStats;
|
|
2070
|
-
};
|
|
2071
|
-
export type MetricInfo = {
|
|
2072
|
-
name?: string;
|
|
2073
|
-
displayName?: string;
|
|
2074
|
-
projectId?: string;
|
|
2075
|
-
contractName?: Array<string>;
|
|
2076
|
-
contractAddress?: Array<string>;
|
|
2077
|
-
chainId?: Array<string>;
|
|
2078
|
-
labels?: {
|
|
2079
|
-
[key: string]: MetricInfoLabelValues;
|
|
2080
|
-
};
|
|
2081
|
-
metadata?: MetricMetadata;
|
|
2082
|
-
};
|
|
2083
|
-
export type MetricInfoLabelValues = {
|
|
2084
|
-
values?: Array<string>;
|
|
2085
|
-
totalCount?: string;
|
|
2086
|
-
};
|
|
2087
|
-
export type MetricMetadata = {
|
|
2088
|
-
type?: string;
|
|
2089
|
-
unit?: string;
|
|
2090
|
-
help?: string;
|
|
2091
|
-
lastSeen?: string;
|
|
2092
|
-
};
|
|
2093
|
-
export type MetricsQueryResponse = {
|
|
2094
|
-
results?: Array<MetricsQueryResponseResult>;
|
|
2095
|
-
};
|
|
2096
|
-
export type MetricsQueryResponseMatrix = {
|
|
2097
|
-
samples?: Array<MetricsQueryResponseSample>;
|
|
2098
|
-
totalSamples?: number;
|
|
2099
|
-
};
|
|
2100
|
-
export type MetricsQueryResponseMetric = {
|
|
2101
|
-
name?: string;
|
|
2102
|
-
labels?: {
|
|
2103
|
-
[key: string]: string;
|
|
2104
|
-
};
|
|
2105
|
-
displayName?: string;
|
|
2106
|
-
};
|
|
2107
|
-
export type MetricsQueryResponseResult = {
|
|
2108
|
-
matrix?: MetricsQueryResponseMatrix;
|
|
2109
|
-
error?: string;
|
|
2110
|
-
alias?: string;
|
|
2111
|
-
id?: string;
|
|
2112
|
-
computeStats?: common.ComputeStats;
|
|
2113
|
-
color?: string;
|
|
2114
|
-
};
|
|
2115
|
-
export type MetricsQueryResponseSample = {
|
|
2116
|
-
metric?: MetricsQueryResponseMetric;
|
|
2117
|
-
values?: Array<MetricsQueryResponseValue>;
|
|
2118
|
-
};
|
|
2119
|
-
export type MetricsQueryResponseValue = {
|
|
2120
|
-
timestamp?: string;
|
|
2121
|
-
value?: number;
|
|
2122
|
-
extraValues?: Array<number>;
|
|
2123
|
-
};
|
|
2124
|
-
export type ObservabilityServiceQueryBody = {
|
|
2125
|
-
queries?: Array<common.Query>;
|
|
2126
|
-
formulas?: Array<common.Formula>;
|
|
2127
|
-
time?: string;
|
|
2128
|
-
samplesLimit?: number;
|
|
2129
|
-
version?: number;
|
|
2130
|
-
timezone?: string;
|
|
2131
|
-
samplesOffset?: number;
|
|
2132
|
-
enableExperimentalFeatures?: boolean;
|
|
2133
|
-
};
|
|
2134
|
-
export type ObservabilityServiceQueryRangeBody = {
|
|
2135
|
-
queries?: Array<common.Query>;
|
|
2136
|
-
formulas?: Array<common.Formula>;
|
|
2137
|
-
samplesLimit?: number;
|
|
2138
|
-
timeRange: common.TimeRangeLite;
|
|
2139
|
-
projectId?: string;
|
|
2140
|
-
version?: number;
|
|
2141
|
-
samplesOffset?: number;
|
|
2142
|
-
enableExperimentalFeatures?: boolean;
|
|
2143
|
-
};
|
|
2144
|
-
export type QueryValueResponse = {
|
|
2145
|
-
results?: Array<QueryValueResponseResult>;
|
|
2146
|
-
};
|
|
2147
|
-
export type QueryValueResponseResult = {
|
|
2148
|
-
sample?: Array<MetricsQueryResponseSample>;
|
|
2149
|
-
error?: string;
|
|
2150
|
-
alias?: string;
|
|
2151
|
-
id?: string;
|
|
2152
|
-
color?: string;
|
|
2153
|
-
};
|
|
2154
|
-
export type GetMetricsData = {
|
|
2155
|
-
body?: never;
|
|
2156
|
-
path?: never;
|
|
2157
|
-
query?: {
|
|
2158
|
-
projectId?: string;
|
|
2159
|
-
name?: string;
|
|
2160
|
-
version?: number;
|
|
2161
|
-
labelLimit?: string;
|
|
2162
|
-
labelSearchQuery?: string;
|
|
2163
|
-
};
|
|
2164
|
-
url: '/v1/metrics';
|
|
2165
|
-
};
|
|
2166
|
-
export type GetMetricsResponses = {
|
|
2167
|
-
/**
|
|
2168
|
-
* A successful response.
|
|
2169
|
-
*/
|
|
2170
|
-
200: metrics_service.GetMetricsResponse;
|
|
2171
|
-
};
|
|
2172
|
-
export type GetMetricsResponse2 = GetMetricsResponses[keyof GetMetricsResponses];
|
|
2173
|
-
export type QueryInstantData = {
|
|
2174
|
-
body: metrics_service.ObservabilityServiceQueryBody;
|
|
2175
|
-
path: {
|
|
2176
|
-
/**
|
|
2177
|
-
* username or organization name
|
|
2178
|
-
*/
|
|
2179
|
-
owner: string;
|
|
2180
|
-
/**
|
|
2181
|
-
* project slug
|
|
2182
|
-
*/
|
|
2183
|
-
slug: string;
|
|
2184
|
-
};
|
|
2185
|
-
query?: never;
|
|
2186
|
-
url: '/v1/metrics/{owner}/{slug}/query';
|
|
2187
|
-
};
|
|
2188
|
-
export type QueryInstantResponses = {
|
|
2189
|
-
/**
|
|
2190
|
-
* A successful response.
|
|
2191
|
-
*/
|
|
2192
|
-
200: metrics_service.QueryValueResponse;
|
|
2193
|
-
};
|
|
2194
|
-
export type QueryInstantResponse = QueryInstantResponses[keyof QueryInstantResponses];
|
|
2195
|
-
export type QueryRangeData = {
|
|
2196
|
-
body: metrics_service.ObservabilityServiceQueryRangeBody;
|
|
2197
|
-
path: {
|
|
2198
|
-
/**
|
|
2199
|
-
* username or organization name
|
|
2200
|
-
*/
|
|
2201
|
-
owner: string;
|
|
2202
|
-
/**
|
|
2203
|
-
* project slug
|
|
2204
|
-
*/
|
|
2205
|
-
slug: string;
|
|
2206
|
-
};
|
|
2207
|
-
query?: never;
|
|
2208
|
-
url: '/v1/metrics/{owner}/{slug}/query_range';
|
|
2209
|
-
};
|
|
2210
|
-
export type QueryRangeResponses = {
|
|
2211
|
-
/**
|
|
2212
|
-
* A successful response.
|
|
2213
|
-
*/
|
|
2214
|
-
200: metrics_service.MetricsQueryResponse;
|
|
2215
|
-
};
|
|
2216
|
-
export type QueryRangeResponse = QueryRangeResponses[keyof QueryRangeResponses];
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
export namespace move_service {
|
|
2220
|
-
export type GetSuiCallTraceResponse = {
|
|
2221
|
-
result?: Array<SuiCallTrace>;
|
|
2222
|
-
};
|
|
2223
|
-
export type SuiCallTrace = {
|
|
2224
|
-
from?: string;
|
|
2225
|
-
to?: string;
|
|
2226
|
-
contractName?: string;
|
|
2227
|
-
functionName?: string;
|
|
2228
|
-
inputs?: Array<unknown>;
|
|
2229
|
-
returnValue?: Array<unknown>;
|
|
2230
|
-
typeArgs?: Array<string>;
|
|
2231
|
-
calls?: Array<SuiCallTrace>;
|
|
2232
|
-
location?: unknown;
|
|
2233
|
-
pc?: number;
|
|
2234
|
-
gasUsed?: string;
|
|
2235
|
-
error?: SuiCallTraceError;
|
|
2236
|
-
};
|
|
2237
|
-
export type SuiCallTraceError = {
|
|
2238
|
-
majorStatus?: string;
|
|
2239
|
-
subStatus?: string;
|
|
2240
|
-
message?: string;
|
|
2241
|
-
location?: SuiCallTraceErrorModuleId;
|
|
2242
|
-
functionName?: string;
|
|
2243
|
-
codeOffset?: number;
|
|
2244
|
-
};
|
|
2245
|
-
export type SuiCallTraceErrorModuleId = {
|
|
2246
|
-
address?: string;
|
|
2247
|
-
name?: string;
|
|
2248
|
-
};
|
|
2249
|
-
export type GetSuiCallTraceData = {
|
|
2250
|
-
body?: never;
|
|
2251
|
-
path?: never;
|
|
2252
|
-
query?: {
|
|
2253
|
-
networkId?: string;
|
|
2254
|
-
txDigest?: string;
|
|
2255
|
-
};
|
|
2256
|
-
url: '/v1/move/sui_call_trace';
|
|
2257
|
-
};
|
|
2258
|
-
export type GetSuiCallTraceResponses = {
|
|
2259
|
-
/**
|
|
2260
|
-
* A successful response.
|
|
2261
|
-
*/
|
|
2262
|
-
200: move_service.GetSuiCallTraceResponse;
|
|
2263
|
-
};
|
|
2264
|
-
export type GetSuiCallTraceResponse2 = GetSuiCallTraceResponses[keyof GetSuiCallTraceResponses];
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
export namespace price_service {
|
|
2268
|
-
export type AddCoinByGeckoRequest = {
|
|
2269
|
-
coingeckoId?: string;
|
|
2270
|
-
};
|
|
2271
|
-
export type AddCoinByGeckoResponse = {
|
|
2272
|
-
status?: AddCoinByGeckoResponseStatus;
|
|
2273
|
-
message?: string;
|
|
2274
|
-
currentPrice?: number;
|
|
2275
|
-
timestamp?: string;
|
|
2276
|
-
symbol?: string;
|
|
2277
|
-
coins?: Array<CoinId2>;
|
|
2278
|
-
};
|
|
2279
|
-
export type AddCoinByGeckoResponseStatus = 'OK' | 'ALREADY_EXISTS' | 'MISMATCH_WITH_EXISTING' | 'GECKO_NOT_FOUND' | 'GECKO_RETURN_NON_SUPPORTED_CHAIN' | 'GECKO_HAS_DUPLICATE_SYMBOL';
|
|
2280
|
-
export type BatchGetPricesRequest = {
|
|
2281
|
-
timestamps?: Array<string>;
|
|
2282
|
-
coinIds?: Array<CoinId2>;
|
|
2283
|
-
experimentalFlag?: ExperimentalFlag;
|
|
2284
|
-
};
|
|
2285
|
-
export type BatchGetPricesResponse = {
|
|
2286
|
-
prices?: Array<BatchGetPricesResponseCoinPrice>;
|
|
2287
|
-
};
|
|
2288
|
-
export type BatchGetPricesResponseCoinPrice = {
|
|
2289
|
-
coinId?: CoinId2;
|
|
2290
|
-
price?: BatchGetPricesResponseCoinPricePrice;
|
|
2291
|
-
error?: string;
|
|
2292
|
-
};
|
|
2293
|
-
export type BatchGetPricesResponseCoinPricePrice = {
|
|
2294
|
-
results?: Array<GetPriceResponse>;
|
|
2295
|
-
};
|
|
2296
|
-
export type CheckLatestPriceResponse = {
|
|
2297
|
-
prices?: Array<CheckLatestPriceResponseCoinPrice>;
|
|
2298
|
-
latestPrice?: CheckLatestPriceResponseCoinPrice;
|
|
2299
|
-
};
|
|
2300
|
-
export type CheckLatestPriceResponseCoinPrice = {
|
|
2301
|
-
coinId?: CoinId2;
|
|
2302
|
-
price?: number;
|
|
2303
|
-
timestamp?: string;
|
|
2304
|
-
};
|
|
2305
|
-
/**
|
|
2306
|
-
* The identifier of a coin.
|
|
2307
|
-
*/
|
|
2308
|
-
export type CoinId2 = {
|
|
2309
|
-
symbol?: string;
|
|
2310
|
-
address?: CoinIdAddressIdentifier2;
|
|
2311
|
-
};
|
|
2312
|
-
/**
|
|
2313
|
-
* The coin can be defined as a symbol, e.g. BTC, ETH, etc, or an address + chain.
|
|
2314
|
-
* The format of the chain is consistent with the Sentio internal representation.
|
|
2315
|
-
*/
|
|
2316
|
-
export type CoinIdAddressIdentifier2 = {
|
|
2317
|
-
address?: string;
|
|
2318
|
-
chain?: string;
|
|
2319
|
-
};
|
|
2320
|
-
export type ExperimentalFlag = {
|
|
2321
|
-
enablePythSource?: boolean;
|
|
2322
|
-
};
|
|
2323
|
-
/**
|
|
2324
|
-
* GetPriceResponse is the response for GetPrice.
|
|
2325
|
-
*/
|
|
2326
|
-
export type GetPriceResponse = {
|
|
2327
|
-
/**
|
|
2328
|
-
* Price in USD.
|
|
2329
|
-
*/
|
|
2330
|
-
price?: number;
|
|
2331
|
-
/**
|
|
2332
|
-
* The actual timestamp of the price returned.
|
|
2333
|
-
*/
|
|
2334
|
-
timestamp?: string;
|
|
2335
|
-
source?: string;
|
|
2336
|
-
};
|
|
2337
|
-
export type ListCoinsResponse2 = {
|
|
2338
|
-
coins?: Array<CoinId2>;
|
|
2339
|
-
coinAddressesInChain?: {
|
|
2340
|
-
[key: string]: CoinId2;
|
|
2341
|
-
};
|
|
2342
|
-
};
|
|
2343
|
-
export type GetPriceData = {
|
|
2344
|
-
body?: never;
|
|
2345
|
-
path?: never;
|
|
2346
|
-
query?: {
|
|
2347
|
-
/**
|
|
2348
|
-
* The timestamp we request the price at. Note, the price service may not have
|
|
2349
|
-
* the price at the exact timestamp, in which case it will return the price
|
|
2350
|
-
* at the closest timestamp.
|
|
2351
|
-
*/
|
|
2352
|
-
timestamp?: string;
|
|
2353
|
-
'coinId.symbol'?: string;
|
|
2354
|
-
'coinId.address.address'?: string;
|
|
2355
|
-
'coinId.address.chain'?: string;
|
|
2356
|
-
source?: string;
|
|
2357
|
-
'experimentalFlag.enablePythSource'?: boolean;
|
|
2358
|
-
};
|
|
2359
|
-
url: '/v1/prices';
|
|
2360
|
-
};
|
|
2361
|
-
export type GetPriceResponses = {
|
|
2362
|
-
/**
|
|
2363
|
-
* A successful response.
|
|
2364
|
-
*/
|
|
2365
|
-
200: price_service.GetPriceResponse;
|
|
2366
|
-
};
|
|
2367
|
-
export type GetPriceResponse2 = GetPriceResponses[keyof GetPriceResponses];
|
|
2368
|
-
export type AddCoinByGeckoData = {
|
|
2369
|
-
body: price_service.AddCoinByGeckoRequest;
|
|
2370
|
-
path?: never;
|
|
2371
|
-
query?: never;
|
|
2372
|
-
url: '/v1/prices/add_coin_by_gecko';
|
|
2373
|
-
};
|
|
2374
|
-
export type AddCoinByGeckoResponses = {
|
|
2375
|
-
/**
|
|
2376
|
-
* A successful response.
|
|
2377
|
-
*/
|
|
2378
|
-
200: price_service.AddCoinByGeckoResponse;
|
|
2379
|
-
};
|
|
2380
|
-
export type AddCoinByGeckoResponse2 = AddCoinByGeckoResponses[keyof AddCoinByGeckoResponses];
|
|
2381
|
-
export type BatchGetPricesData = {
|
|
2382
|
-
body: price_service.BatchGetPricesRequest;
|
|
2383
|
-
path?: never;
|
|
2384
|
-
query?: never;
|
|
2385
|
-
url: '/v1/prices/batch';
|
|
2386
|
-
};
|
|
2387
|
-
export type BatchGetPricesResponses = {
|
|
2388
|
-
/**
|
|
2389
|
-
* A successful response.
|
|
2390
|
-
*/
|
|
2391
|
-
200: price_service.BatchGetPricesResponse;
|
|
2392
|
-
};
|
|
2393
|
-
export type BatchGetPricesResponse2 = BatchGetPricesResponses[keyof BatchGetPricesResponses];
|
|
2394
|
-
export type CheckLatestPriceData = {
|
|
2395
|
-
body?: never;
|
|
2396
|
-
path?: never;
|
|
2397
|
-
query?: never;
|
|
2398
|
-
url: '/v1/prices/check_latest';
|
|
2399
|
-
};
|
|
2400
|
-
export type CheckLatestPriceResponses = {
|
|
2401
|
-
/**
|
|
2402
|
-
* A successful response.
|
|
2403
|
-
*/
|
|
2404
|
-
200: price_service.CheckLatestPriceResponse;
|
|
2405
|
-
};
|
|
2406
|
-
export type CheckLatestPriceResponse2 = CheckLatestPriceResponses[keyof CheckLatestPriceResponses];
|
|
2407
|
-
export type PriceListCoinsData = {
|
|
2408
|
-
body?: never;
|
|
2409
|
-
path?: never;
|
|
2410
|
-
query?: {
|
|
2411
|
-
limit?: number;
|
|
2412
|
-
offset?: number;
|
|
2413
|
-
searchQuery?: string;
|
|
2414
|
-
chain?: string;
|
|
2415
|
-
};
|
|
2416
|
-
url: '/v1/prices/coins';
|
|
2417
|
-
};
|
|
2418
|
-
export type PriceListCoinsResponses = {
|
|
2419
|
-
/**
|
|
2420
|
-
* A successful response.
|
|
2421
|
-
*/
|
|
2422
|
-
200: price_service.ListCoinsResponse2;
|
|
2423
|
-
};
|
|
2424
|
-
export type PriceListCoinsResponse = PriceListCoinsResponses[keyof PriceListCoinsResponses];
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
export namespace processor_service {
|
|
2428
|
-
export type ChainState = {
|
|
2429
|
-
/**
|
|
2430
|
-
* The chain id.
|
|
2431
|
-
*/
|
|
2432
|
-
chainId?: string;
|
|
2433
|
-
/**
|
|
2434
|
-
* The most recently processed block number and block hash.
|
|
2435
|
-
*/
|
|
2436
|
-
processedBlockNumber?: string;
|
|
2437
|
-
processedTimestampMicros?: string;
|
|
2438
|
-
processedBlockHash?: string;
|
|
2439
|
-
processedVersion?: number;
|
|
2440
|
-
status?: ChainStateStatus;
|
|
2441
|
-
updatedAt?: string;
|
|
2442
|
-
/**
|
|
2443
|
-
* The serialized templates info.
|
|
2444
|
-
*/
|
|
2445
|
-
templates?: string;
|
|
2446
|
-
/**
|
|
2447
|
-
* The serialized indexer state.
|
|
2448
|
-
*/
|
|
2449
|
-
indexerState?: string;
|
|
2450
|
-
/**
|
|
2451
|
-
* The serialized meter state.
|
|
2452
|
-
*/
|
|
2453
|
-
meterState?: string;
|
|
2454
|
-
handlerStat?: string;
|
|
2455
|
-
initialStartBlockNumber?: string;
|
|
2456
|
-
estimatedLatestBlockNumber?: string;
|
|
2457
|
-
lastBlockNumber?: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* To be deprecated after the migration.
|
|
2460
|
-
*/
|
|
2461
|
-
trackers?: string;
|
|
2462
|
-
};
|
|
2463
|
-
export type ChainStateStatus = {
|
|
2464
|
-
state?: ChainStateStatusState;
|
|
2465
|
-
errorRecord?: common.ErrorRecord;
|
|
2466
|
-
};
|
|
2467
|
-
export type ChainStateStatusState = 'UNKNOWN' | 'ERROR' | 'CATCHING_UP' | 'PROCESSING_LATEST' | 'QUEUING';
|
|
2468
|
-
export type GetProcessorSourceFilesResponse = {
|
|
2469
|
-
sourceFiles?: Array<ProcessorSourceFile>;
|
|
2470
|
-
};
|
|
2471
|
-
export type GetProcessorStatusRequestV2VersionSelector = 'ACTIVE' | 'PENDING' | 'ALL';
|
|
2472
|
-
export type GetProcessorStatusResponse = {
|
|
2473
|
-
processors?: Array<GetProcessorStatusResponseProcessorEx>;
|
|
2474
|
-
};
|
|
2475
|
-
export type GetProcessorStatusResponseProcessorEx = {
|
|
2476
|
-
states?: Array<ChainState>;
|
|
2477
|
-
processorId?: string;
|
|
2478
|
-
codeHash?: string;
|
|
2479
|
-
commitSha?: string;
|
|
2480
|
-
uploadedBy?: common.UserInfo;
|
|
2481
|
-
uploadedAt?: string;
|
|
2482
|
-
processorStatus?: GetProcessorStatusResponseProcessorStatus;
|
|
2483
|
-
version?: number;
|
|
2484
|
-
sdkVersion?: string;
|
|
2485
|
-
gitUrl?: string;
|
|
2486
|
-
versionState?: ProcessorVersionState;
|
|
2487
|
-
versionLabel?: string;
|
|
2488
|
-
ipfsHash?: string;
|
|
2489
|
-
debugFork?: string;
|
|
2490
|
-
cliVersion?: string;
|
|
2491
|
-
referenceProjectId?: string;
|
|
2492
|
-
warnings?: Array<string>;
|
|
2493
|
-
pause?: boolean;
|
|
2494
|
-
pauseAt?: string;
|
|
2495
|
-
pauseReason?: string;
|
|
2496
|
-
networkOverrides?: Array<NetworkOverride>;
|
|
2497
|
-
driverVersion?: string;
|
|
2498
|
-
numWorkers?: string;
|
|
2499
|
-
entitySchema?: string;
|
|
2500
|
-
snChainId?: string;
|
|
2501
|
-
snRequiredChains?: Array<string>;
|
|
2502
|
-
entitySchemaVersion?: number;
|
|
2503
|
-
};
|
|
2504
|
-
export type GetProcessorStatusResponseProcessorStatus = {
|
|
2505
|
-
state?: GetProcessorStatusResponseProcessorStatusState;
|
|
2506
|
-
errorRecord?: common.ErrorRecord;
|
|
2507
|
-
};
|
|
2508
|
-
export type GetProcessorStatusResponseProcessorStatusState = 'UNKNOWN' | 'ERROR' | 'STARTING' | 'PROCESSING';
|
|
2509
|
-
export type NetworkOverride = {
|
|
2510
|
-
chain?: string;
|
|
2511
|
-
host?: string;
|
|
2512
|
-
};
|
|
2513
|
-
export type ProcessorSourceFile = {
|
|
2514
|
-
path?: string;
|
|
2515
|
-
content?: string;
|
|
2516
|
-
};
|
|
2517
|
-
export type ProcessorVersionState = 'UNKNOWN' | 'PENDING' | 'ACTIVE' | 'OBSOLETE';
|
|
2518
|
-
export type ActivatePendingVersionData = {
|
|
2519
|
-
body?: never;
|
|
2520
|
-
path: {
|
|
2521
|
-
owner: string;
|
|
2522
|
-
slug: string;
|
|
2523
|
-
};
|
|
2524
|
-
query?: never;
|
|
2525
|
-
url: '/v1/processors/{owner}/{slug}/activate_pending';
|
|
2526
|
-
};
|
|
2527
|
-
export type ActivatePendingVersionResponses = {
|
|
2528
|
-
/**
|
|
2529
|
-
* A successful response.
|
|
2530
|
-
*/
|
|
2531
|
-
200: {
|
|
2532
|
-
[key: string]: unknown;
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
export type ActivatePendingVersionResponse = ActivatePendingVersionResponses[keyof ActivatePendingVersionResponses];
|
|
2536
|
-
export type GetProcessorSourceFilesData = {
|
|
2537
|
-
body?: never;
|
|
2538
|
-
path: {
|
|
2539
|
-
owner: string;
|
|
2540
|
-
slug: string;
|
|
2541
|
-
};
|
|
2542
|
-
query?: {
|
|
2543
|
-
/**
|
|
2544
|
-
* Optional version to fetch. If omitted, use latest active version.
|
|
2545
|
-
*/
|
|
2546
|
-
version?: number;
|
|
2547
|
-
};
|
|
2548
|
-
url: '/v1/processors/{owner}/{slug}/source_files';
|
|
2549
|
-
};
|
|
2550
|
-
export type GetProcessorSourceFilesResponses = {
|
|
2551
|
-
/**
|
|
2552
|
-
* A successful response.
|
|
2553
|
-
*/
|
|
2554
|
-
200: processor_service.GetProcessorSourceFilesResponse;
|
|
2555
|
-
};
|
|
2556
|
-
export type GetProcessorSourceFilesResponse2 = GetProcessorSourceFilesResponses[keyof GetProcessorSourceFilesResponses];
|
|
2557
|
-
export type GetProcessorStatusV2Data = {
|
|
2558
|
-
body?: never;
|
|
2559
|
-
path: {
|
|
2560
|
-
owner: string;
|
|
2561
|
-
slug: string;
|
|
2562
|
-
};
|
|
2563
|
-
query?: {
|
|
2564
|
-
/**
|
|
2565
|
-
* - ACTIVE: Only active version
|
|
2566
|
-
* - PENDING: Only pending versions
|
|
2567
|
-
* - ALL: All version
|
|
2568
|
-
*/
|
|
2569
|
-
version?: 'ACTIVE' | 'PENDING' | 'ALL';
|
|
2570
|
-
};
|
|
2571
|
-
url: '/v1/processors/{owner}/{slug}/status';
|
|
2572
|
-
};
|
|
2573
|
-
export type GetProcessorStatusV2Responses = {
|
|
2574
|
-
/**
|
|
2575
|
-
* A successful response.
|
|
2576
|
-
*/
|
|
2577
|
-
200: processor_service.GetProcessorStatusResponse;
|
|
2578
|
-
};
|
|
2579
|
-
export type GetProcessorStatusV2Response = GetProcessorStatusV2Responses[keyof GetProcessorStatusV2Responses];
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
export namespace solidity_service {
|
|
2583
|
-
export type BaseChainConfig = {
|
|
2584
|
-
endpoint?: string;
|
|
2585
|
-
debugEndpoint?: string;
|
|
2586
|
-
sourceFetcherType?: SourceFetcherType;
|
|
2587
|
-
sourceFetcherEndpoint?: string;
|
|
2588
|
-
sourceFetcherTimeout?: string;
|
|
2589
|
-
sourceFetcherApiKeys?: Array<string>;
|
|
2590
|
-
oklinkChainShortName?: string;
|
|
2591
|
-
};
|
|
2592
|
-
export type BlockOverrides = {
|
|
2593
|
-
blockNumber?: string;
|
|
2594
|
-
timestamp?: string;
|
|
2595
|
-
gasLimit?: string;
|
|
2596
|
-
difficulty?: string;
|
|
2597
|
-
baseFee?: string;
|
|
2598
|
-
blockHash?: {
|
|
2599
|
-
[key: string]: string;
|
|
2600
|
-
};
|
|
2601
|
-
};
|
|
2602
|
-
export type ChainIdentifier = {
|
|
2603
|
-
chainId?: string;
|
|
2604
|
-
forkId?: string;
|
|
2605
|
-
};
|
|
2606
|
-
export type CreateForkResponse = {
|
|
2607
|
-
fork?: Fork;
|
|
2608
|
-
};
|
|
2609
|
-
export type EvmRawTransaction = {
|
|
2610
|
-
hash?: string;
|
|
2611
|
-
blockNumber?: string;
|
|
2612
|
-
isIn?: boolean;
|
|
2613
|
-
trace?: boolean;
|
|
2614
|
-
tx?: evm.Transaction;
|
|
2615
|
-
json?: string;
|
|
2616
|
-
timestamp?: string;
|
|
2617
|
-
transactionStatus?: number;
|
|
2618
|
-
methodSignature?: string;
|
|
2619
|
-
methodSignatureText?: string;
|
|
2620
|
-
abiItem?: string;
|
|
2621
|
-
};
|
|
2622
|
-
export type EvmSearchTransactionsResponse = {
|
|
2623
|
-
transactions?: Array<EvmRawTransaction>;
|
|
2624
|
-
nextPageToken?: string;
|
|
2625
|
-
};
|
|
2626
|
-
export type ExternalFork = {
|
|
2627
|
-
chainConfig?: BaseChainConfig;
|
|
2628
|
-
nodeAdditionalHeaders?: string;
|
|
2629
|
-
};
|
|
2630
|
-
export type Fork = {
|
|
2631
|
-
id?: string;
|
|
2632
|
-
type?: ForkType;
|
|
2633
|
-
name?: string;
|
|
2634
|
-
extra?: string;
|
|
2635
|
-
managedFork?: ManagedFork;
|
|
2636
|
-
externalFork?: ExternalFork;
|
|
2637
|
-
createTime?: string;
|
|
2638
|
-
updateTime?: string;
|
|
2639
|
-
};
|
|
2640
|
-
export type ForkServiceCreateForkBody = {
|
|
2641
|
-
fork: Fork;
|
|
2642
|
-
};
|
|
2643
|
-
export type ForkServiceUpdateForkBody = {
|
|
2644
|
-
fork: Fork;
|
|
2645
|
-
};
|
|
2646
|
-
export type ForkType = 'MANAGED' | 'EXTERNAL';
|
|
2647
|
-
export type GetForkInfoResponse = {
|
|
2648
|
-
currentBlockNumber?: string;
|
|
2649
|
-
currentBlockTimestamp?: string;
|
|
2650
|
-
currentBlockHash?: string;
|
|
2651
|
-
hardFork?: string;
|
|
2652
|
-
transactionOrder?: string;
|
|
2653
|
-
environment?: NodeEnvironment;
|
|
2654
|
-
forkConfig?: NodeForkConfig;
|
|
2655
|
-
};
|
|
2656
|
-
export type GetForkResponse = {
|
|
2657
|
-
fork?: Fork;
|
|
2658
|
-
};
|
|
2659
|
-
export type GetSimulationBundleResponse = {
|
|
2660
|
-
simulations?: Array<Simulation>;
|
|
2661
|
-
error?: string;
|
|
2662
|
-
};
|
|
2663
|
-
export type GetSimulationResponse = {
|
|
2664
|
-
simulation?: Simulation;
|
|
2665
|
-
};
|
|
2666
|
-
export type GetSimulationsResponse = {
|
|
2667
|
-
simulations?: Array<Simulation>;
|
|
2668
|
-
count?: string;
|
|
2669
|
-
page?: number;
|
|
2670
|
-
pageSize?: number;
|
|
2671
|
-
};
|
|
2672
|
-
export type ListForksResponse = {
|
|
2673
|
-
forks?: Array<Fork>;
|
|
2674
|
-
};
|
|
2675
|
-
export type ManagedFork = {
|
|
2676
|
-
parentChainSpec?: ChainIdentifier;
|
|
2677
|
-
parentRpcEndpoint?: string;
|
|
2678
|
-
parentBlockNumber?: string;
|
|
2679
|
-
chainId?: string;
|
|
2680
|
-
rpcEndpoint?: string;
|
|
2681
|
-
version?: string;
|
|
2682
|
-
};
|
|
2683
|
-
export type NodeEnvironment = {
|
|
2684
|
-
chainId?: string;
|
|
2685
|
-
baseFee?: string;
|
|
2686
|
-
gasLimit?: string;
|
|
2687
|
-
gasPrice?: string;
|
|
2688
|
-
};
|
|
2689
|
-
export type NodeForkConfig = {
|
|
2690
|
-
forkUrl?: string;
|
|
2691
|
-
forkBlockNumber?: string;
|
|
2692
|
-
forkRetryBackoff?: string;
|
|
2693
|
-
};
|
|
2694
|
-
export type SimulateTransactionBundleResponse = {
|
|
2695
|
-
bundleId?: string;
|
|
2696
|
-
simulations?: Array<Simulation>;
|
|
2697
|
-
error?: string;
|
|
2698
|
-
};
|
|
2699
|
-
export type SimulateTransactionResponse = {
|
|
2700
|
-
simulation?: Simulation;
|
|
2701
|
-
};
|
|
2702
|
-
export type Simulation = {
|
|
2703
|
-
id?: string;
|
|
2704
|
-
createAt?: string;
|
|
2705
|
-
bundleId?: string;
|
|
2706
|
-
networkId: string;
|
|
2707
|
-
chainId?: string;
|
|
2708
|
-
chainSpec: ChainIdentifier;
|
|
2709
|
-
to: string;
|
|
2710
|
-
input: string;
|
|
2711
|
-
/**
|
|
2712
|
-
* Can be "latest".
|
|
2713
|
-
*/
|
|
2714
|
-
blockNumber: string;
|
|
2715
|
-
transactionIndex: string;
|
|
2716
|
-
from: string;
|
|
2717
|
-
gas: string;
|
|
2718
|
-
gasPrice: string;
|
|
2719
|
-
maxFeePerGas?: string;
|
|
2720
|
-
maxPriorityFeePerGas?: string;
|
|
2721
|
-
value: string;
|
|
2722
|
-
accessList?: Array<evm.AccessListItem>;
|
|
2723
|
-
originTxHash?: string;
|
|
2724
|
-
label?: string;
|
|
2725
|
-
stateOverrides?: {
|
|
2726
|
-
[key: string]: StateOverride;
|
|
2727
|
-
};
|
|
2728
|
-
sourceOverrides?: {
|
|
2729
|
-
[key: string]: string;
|
|
2730
|
-
};
|
|
2731
|
-
blockOverride?: BlockOverrides;
|
|
2732
|
-
debugDeployment?: boolean;
|
|
2733
|
-
result?: SimulationResult;
|
|
2734
|
-
sharing?: SimulationSharing;
|
|
2735
|
-
};
|
|
2736
|
-
export type SimulationResult = {
|
|
2737
|
-
transaction?: evm.Transaction;
|
|
2738
|
-
transactionReceipt?: evm.TransactionReceipt;
|
|
2739
|
-
};
|
|
2740
|
-
export type SimulationSharing = {
|
|
2741
|
-
isPublic?: boolean;
|
|
2742
|
-
id?: string;
|
|
2743
|
-
simulationId?: string;
|
|
2744
|
-
};
|
|
2745
|
-
export type SolidityApiServiceSimulateTransactionBody = {
|
|
2746
|
-
simulation: Simulation;
|
|
2747
|
-
};
|
|
2748
|
-
export type SolidityApiServiceSimulateTransactionBundleBody = {
|
|
2749
|
-
/**
|
|
2750
|
-
* For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.
|
|
2751
|
-
*/
|
|
2752
|
-
simulations: Array<Simulation>;
|
|
2753
|
-
};
|
|
2754
|
-
export type SolidityApiServiceSimulateTransactionBundleOnForkBody = {
|
|
2755
|
-
/**
|
|
2756
|
-
* For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.
|
|
2757
|
-
*/
|
|
2758
|
-
simulations: Array<Simulation>;
|
|
2759
|
-
};
|
|
2760
|
-
export type SolidityApiServiceSimulateTransactionOnForkBody = {
|
|
2761
|
-
simulation: Simulation;
|
|
2762
|
-
};
|
|
2763
|
-
export type SourceFetcherType = 'ETHERSCAN' | 'BLOCKSCOUT' | 'OKLINK' | 'ETHERSCAN_V2';
|
|
2764
|
-
export type StateOverride = {
|
|
2765
|
-
state?: {
|
|
2766
|
-
[key: string]: string;
|
|
2767
|
-
};
|
|
2768
|
-
/**
|
|
2769
|
-
* uint256
|
|
2770
|
-
*/
|
|
2771
|
-
balance?: string;
|
|
2772
|
-
code?: string;
|
|
2773
|
-
};
|
|
2774
|
-
export type UpdateForkResponse = {
|
|
2775
|
-
fork?: Fork;
|
|
2776
|
-
};
|
|
2777
|
-
export type ListForksData = {
|
|
2778
|
-
body?: never;
|
|
2779
|
-
path: {
|
|
2780
|
-
owner: string;
|
|
2781
|
-
slug: string;
|
|
2782
|
-
};
|
|
2783
|
-
query?: never;
|
|
2784
|
-
url: '/v1/solidity/{owner}/{slug}/fork';
|
|
2785
|
-
};
|
|
2786
|
-
export type ListForksResponses = {
|
|
2787
|
-
/**
|
|
2788
|
-
* A successful response.
|
|
2789
|
-
*/
|
|
2790
|
-
200: solidity_service.ListForksResponse;
|
|
2791
|
-
};
|
|
2792
|
-
export type ListForksResponse2 = ListForksResponses[keyof ListForksResponses];
|
|
2793
|
-
export type CreateForkData = {
|
|
2794
|
-
body: solidity_service.ForkServiceCreateForkBody;
|
|
2795
|
-
path: {
|
|
2796
|
-
owner: string;
|
|
2797
|
-
slug: string;
|
|
2798
|
-
};
|
|
2799
|
-
query?: never;
|
|
2800
|
-
url: '/v1/solidity/{owner}/{slug}/fork';
|
|
2801
|
-
};
|
|
2802
|
-
export type CreateForkResponses = {
|
|
2803
|
-
/**
|
|
2804
|
-
* A successful response.
|
|
2805
|
-
*/
|
|
2806
|
-
200: solidity_service.CreateForkResponse;
|
|
2807
|
-
};
|
|
2808
|
-
export type CreateForkResponse2 = CreateForkResponses[keyof CreateForkResponses];
|
|
2809
|
-
export type SimulateTransactionOnForkData = {
|
|
2810
|
-
body: solidity_service.SolidityApiServiceSimulateTransactionOnForkBody;
|
|
2811
|
-
path: {
|
|
2812
|
-
owner: string;
|
|
2813
|
-
slug: string;
|
|
2814
|
-
forkId: string;
|
|
2815
|
-
};
|
|
2816
|
-
query?: never;
|
|
2817
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation';
|
|
2818
|
-
};
|
|
2819
|
-
export type SimulateTransactionOnForkResponses = {
|
|
2820
|
-
/**
|
|
2821
|
-
* A successful response.
|
|
2822
|
-
*/
|
|
2823
|
-
200: solidity_service.SimulateTransactionResponse;
|
|
2824
|
-
};
|
|
2825
|
-
export type SimulateTransactionOnForkResponse = SimulateTransactionOnForkResponses[keyof SimulateTransactionOnForkResponses];
|
|
2826
|
-
export type SimulateTransactionBundleOnForkData = {
|
|
2827
|
-
body: solidity_service.SolidityApiServiceSimulateTransactionBundleOnForkBody;
|
|
2828
|
-
path: {
|
|
2829
|
-
owner: string;
|
|
2830
|
-
slug: string;
|
|
2831
|
-
forkId: string;
|
|
2832
|
-
};
|
|
2833
|
-
query?: never;
|
|
2834
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle';
|
|
2835
|
-
};
|
|
2836
|
-
export type SimulateTransactionBundleOnForkResponses = {
|
|
2837
|
-
/**
|
|
2838
|
-
* A successful response.
|
|
2839
|
-
*/
|
|
2840
|
-
200: solidity_service.SimulateTransactionBundleResponse;
|
|
2841
|
-
};
|
|
2842
|
-
export type SimulateTransactionBundleOnForkResponse = SimulateTransactionBundleOnForkResponses[keyof SimulateTransactionBundleOnForkResponses];
|
|
2843
|
-
export type GetForkData = {
|
|
2844
|
-
body?: never;
|
|
2845
|
-
path: {
|
|
2846
|
-
owner: string;
|
|
2847
|
-
slug: string;
|
|
2848
|
-
id: string;
|
|
2849
|
-
};
|
|
2850
|
-
query?: never;
|
|
2851
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{id}';
|
|
2852
|
-
};
|
|
2853
|
-
export type GetForkResponses = {
|
|
2854
|
-
/**
|
|
2855
|
-
* A successful response.
|
|
2856
|
-
*/
|
|
2857
|
-
200: solidity_service.GetForkResponse;
|
|
2858
|
-
};
|
|
2859
|
-
export type GetForkResponse2 = GetForkResponses[keyof GetForkResponses];
|
|
2860
|
-
export type UpdateForkData = {
|
|
2861
|
-
body: solidity_service.ForkServiceUpdateForkBody;
|
|
2862
|
-
path: {
|
|
2863
|
-
owner: string;
|
|
2864
|
-
slug: string;
|
|
2865
|
-
id: string;
|
|
2866
|
-
};
|
|
2867
|
-
query?: never;
|
|
2868
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{id}';
|
|
2869
|
-
};
|
|
2870
|
-
export type UpdateForkResponses = {
|
|
2871
|
-
/**
|
|
2872
|
-
* A successful response.
|
|
2873
|
-
*/
|
|
2874
|
-
200: solidity_service.UpdateForkResponse;
|
|
2875
|
-
};
|
|
2876
|
-
export type UpdateForkResponse2 = UpdateForkResponses[keyof UpdateForkResponses];
|
|
2877
|
-
export type GetForkInfoData = {
|
|
2878
|
-
body?: never;
|
|
2879
|
-
path: {
|
|
2880
|
-
owner: string;
|
|
2881
|
-
slug: string;
|
|
2882
|
-
id: string;
|
|
2883
|
-
};
|
|
2884
|
-
query?: never;
|
|
2885
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{id}/info';
|
|
2886
|
-
};
|
|
2887
|
-
export type GetForkInfoResponses = {
|
|
2888
|
-
/**
|
|
2889
|
-
* A successful response.
|
|
2890
|
-
*/
|
|
2891
|
-
200: solidity_service.GetForkInfoResponse;
|
|
2892
|
-
};
|
|
2893
|
-
export type GetForkInfoResponse2 = GetForkInfoResponses[keyof GetForkInfoResponses];
|
|
2894
|
-
export type SearchTransactionsData = {
|
|
2895
|
-
body?: never;
|
|
2896
|
-
path: {
|
|
2897
|
-
owner: string;
|
|
2898
|
-
slug: string;
|
|
2899
|
-
};
|
|
2900
|
-
query?: {
|
|
2901
|
-
chainId?: Array<string>;
|
|
2902
|
-
address?: Array<string>;
|
|
2903
|
-
includeDirect?: boolean;
|
|
2904
|
-
includeTrace?: boolean;
|
|
2905
|
-
includeIn?: boolean;
|
|
2906
|
-
includeOut?: boolean;
|
|
2907
|
-
startBlock?: string;
|
|
2908
|
-
endBlock?: string;
|
|
2909
|
-
startTimestamp?: string;
|
|
2910
|
-
endTimestamp?: string;
|
|
2911
|
-
transactionStatus?: Array<number>;
|
|
2912
|
-
methodSignature?: string;
|
|
2913
|
-
limit?: number;
|
|
2914
|
-
pageToken?: string;
|
|
2915
|
-
};
|
|
2916
|
-
url: '/v1/solidity/{owner}/{slug}/search_transactions';
|
|
2917
|
-
};
|
|
2918
|
-
export type SearchTransactionsResponses = {
|
|
2919
|
-
/**
|
|
2920
|
-
* A successful response.
|
|
2921
|
-
*/
|
|
2922
|
-
200: solidity_service.EvmSearchTransactionsResponse;
|
|
2923
|
-
};
|
|
2924
|
-
export type SearchTransactionsResponse = SearchTransactionsResponses[keyof SearchTransactionsResponses];
|
|
2925
|
-
export type GetSimulationsData = {
|
|
2926
|
-
body?: never;
|
|
2927
|
-
path: {
|
|
2928
|
-
owner: string;
|
|
2929
|
-
slug: string;
|
|
2930
|
-
};
|
|
2931
|
-
query?: {
|
|
2932
|
-
labelContains?: string;
|
|
2933
|
-
page?: number;
|
|
2934
|
-
pageSize?: number;
|
|
2935
|
-
};
|
|
2936
|
-
url: '/v1/solidity/{owner}/{slug}/simulation';
|
|
2937
|
-
};
|
|
2938
|
-
export type GetSimulationsResponses = {
|
|
2939
|
-
/**
|
|
2940
|
-
* A successful response.
|
|
2941
|
-
*/
|
|
2942
|
-
200: solidity_service.GetSimulationsResponse;
|
|
2943
|
-
};
|
|
2944
|
-
export type GetSimulationsResponse2 = GetSimulationsResponses[keyof GetSimulationsResponses];
|
|
2945
|
-
export type GetSimulationData = {
|
|
2946
|
-
body?: never;
|
|
2947
|
-
path: {
|
|
2948
|
-
owner: string;
|
|
2949
|
-
slug: string;
|
|
2950
|
-
simulationId: string;
|
|
2951
|
-
};
|
|
2952
|
-
query?: never;
|
|
2953
|
-
url: '/v1/solidity/{owner}/{slug}/simulation/{simulationId}';
|
|
2954
|
-
};
|
|
2955
|
-
export type GetSimulationResponses = {
|
|
2956
|
-
/**
|
|
2957
|
-
* A successful response.
|
|
2958
|
-
*/
|
|
2959
|
-
200: solidity_service.GetSimulationResponse;
|
|
2960
|
-
};
|
|
2961
|
-
export type GetSimulationResponse2 = GetSimulationResponses[keyof GetSimulationResponses];
|
|
2962
|
-
export type GetSimulationBundleInProjectData = {
|
|
2963
|
-
body?: never;
|
|
2964
|
-
path: {
|
|
2965
|
-
owner: string;
|
|
2966
|
-
slug: string;
|
|
2967
|
-
bundleId: string;
|
|
2968
|
-
};
|
|
2969
|
-
query?: never;
|
|
2970
|
-
url: '/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}';
|
|
2971
|
-
};
|
|
2972
|
-
export type GetSimulationBundleInProjectResponses = {
|
|
2973
|
-
/**
|
|
2974
|
-
* A successful response.
|
|
2975
|
-
*/
|
|
2976
|
-
200: solidity_service.GetSimulationBundleResponse;
|
|
2977
|
-
};
|
|
2978
|
-
export type GetSimulationBundleInProjectResponse = GetSimulationBundleInProjectResponses[keyof GetSimulationBundleInProjectResponses];
|
|
2979
|
-
export type SimulateTransactionData = {
|
|
2980
|
-
body: solidity_service.SolidityApiServiceSimulateTransactionBody;
|
|
2981
|
-
path: {
|
|
2982
|
-
owner: string;
|
|
2983
|
-
slug: string;
|
|
2984
|
-
chainId: string;
|
|
2985
|
-
};
|
|
2986
|
-
query?: never;
|
|
2987
|
-
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation';
|
|
2988
|
-
};
|
|
2989
|
-
export type SimulateTransactionResponses = {
|
|
2990
|
-
/**
|
|
2991
|
-
* A successful response.
|
|
2992
|
-
*/
|
|
2993
|
-
200: solidity_service.SimulateTransactionResponse;
|
|
2994
|
-
};
|
|
2995
|
-
export type SimulateTransactionResponse2 = SimulateTransactionResponses[keyof SimulateTransactionResponses];
|
|
2996
|
-
export type SimulateTransactionBundleData = {
|
|
2997
|
-
body: solidity_service.SolidityApiServiceSimulateTransactionBundleBody;
|
|
2998
|
-
path: {
|
|
2999
|
-
owner: string;
|
|
3000
|
-
slug: string;
|
|
3001
|
-
chainId: string;
|
|
3002
|
-
};
|
|
3003
|
-
query?: never;
|
|
3004
|
-
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle';
|
|
3005
|
-
};
|
|
3006
|
-
export type SimulateTransactionBundleResponses = {
|
|
3007
|
-
/**
|
|
3008
|
-
* A successful response.
|
|
3009
|
-
*/
|
|
3010
|
-
200: solidity_service.SimulateTransactionBundleResponse;
|
|
3011
|
-
};
|
|
3012
|
-
export type SimulateTransactionBundleResponse2 = SimulateTransactionBundleResponses[keyof SimulateTransactionBundleResponses];
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
export namespace web_service {
|
|
3016
|
-
export type Chart = {
|
|
3017
|
-
type?: ChartType2;
|
|
3018
|
-
queries?: Array<common.Query>;
|
|
3019
|
-
formulas?: Array<common.Formula>;
|
|
3020
|
-
config?: ChartConfig;
|
|
3021
|
-
note?: Note;
|
|
3022
|
-
datasourceType?: ChartDataSourceType;
|
|
3023
|
-
segmentationQueries?: Array<common.SegmentationQuery>;
|
|
3024
|
-
insightsQueries?: Array<insights_service.QueryRequestQuery>;
|
|
3025
|
-
eventLogsConfig?: EventLogsConfig;
|
|
3026
|
-
retentionQuery?: common.RetentionQuery;
|
|
3027
|
-
sqlQuery?: string;
|
|
3028
|
-
sqlQueryId?: string;
|
|
3029
|
-
sqlExecuteEngine?: analytic_service.ExecuteEngine;
|
|
3030
|
-
enableExperimentalFeatures?: boolean;
|
|
3031
|
-
overlayGraphs?: Array<OverlayGraph>;
|
|
3032
|
-
group?: Group;
|
|
3033
|
-
};
|
|
3034
|
-
export type ChartDataSourceType = 'METRICS' | 'NOTES' | 'ANALYTICS' | 'INSIGHTS' | 'EVENTS' | 'RETENTION' | 'SQL' | 'GROUP';
|
|
3035
|
-
export type ChartConfig = {
|
|
3036
|
-
yAxis?: ChartConfigYAxisConfig;
|
|
3037
|
-
barGauge?: ChartConfigBarGaugeConfig;
|
|
3038
|
-
valueConfig?: ChartConfigValueConfig;
|
|
3039
|
-
timeRangeOverride?: ChartConfigTimeRangeOverride;
|
|
3040
|
-
tableConfig?: ChartConfigTableConfig;
|
|
3041
|
-
queryValueConfig?: ChartConfigQueryValueConfig;
|
|
3042
|
-
pieConfig?: ChartConfigPieConfig;
|
|
3043
|
-
markers?: Array<ChartConfigMarker>;
|
|
3044
|
-
lineConfig?: ChartConfigLineConfig;
|
|
3045
|
-
xAxis?: ChartConfigXAxisConfig;
|
|
3046
|
-
labelConfig?: ChartConfigLabelConfig;
|
|
3047
|
-
scatterConfig?: ChartConfigScatterConfig;
|
|
3048
|
-
seriesConfig?: ChartConfigSeriesConfig;
|
|
3049
|
-
dataConfig?: ChartConfigDataConfig;
|
|
3050
|
-
};
|
|
3051
|
-
export type ChartConfigBarGaugeConfig = {
|
|
3052
|
-
direction?: ChartConfigDirection;
|
|
3053
|
-
calculation?: ChartConfigCalculation;
|
|
3054
|
-
sort?: ChartConfigSort;
|
|
3055
|
-
};
|
|
3056
|
-
export type ChartConfigCalculation = 'LAST' | 'FIRST' | 'MEAN' | 'TOTAL' | 'ALL' | 'MIN' | 'MAX';
|
|
3057
|
-
export type ChartConfigColorTheme = {
|
|
3058
|
-
textColor?: string;
|
|
3059
|
-
backgroundColor?: string;
|
|
3060
|
-
themeType?: string;
|
|
3061
|
-
};
|
|
3062
|
-
export type ChartConfigColumnSort = {
|
|
3063
|
-
column?: string;
|
|
3064
|
-
orderDesc?: boolean;
|
|
3065
|
-
};
|
|
3066
|
-
export type ChartConfigCompareTime = {
|
|
3067
|
-
ago?: common.Duration;
|
|
3068
|
-
};
|
|
3069
|
-
export type ChartConfigDataConfig = {
|
|
3070
|
-
seriesLimit?: number;
|
|
3071
|
-
};
|
|
3072
|
-
export type ChartConfigDirection = 'HORIZONTAL' | 'VERTICAL';
|
|
3073
|
-
export type ChartConfigLabelConfig = {
|
|
3074
|
-
columns?: Array<ChartConfigLabelConfigColumn>;
|
|
3075
|
-
alias?: string;
|
|
3076
|
-
};
|
|
3077
|
-
export type ChartConfigLabelConfigColumn = {
|
|
3078
|
-
name?: string;
|
|
3079
|
-
showLabel?: boolean;
|
|
3080
|
-
showValue?: boolean;
|
|
3081
|
-
};
|
|
3082
|
-
export type ChartConfigLineConfig = {
|
|
3083
|
-
style?: ChartConfigLineConfigStyle;
|
|
3084
|
-
smooth?: boolean;
|
|
3085
|
-
};
|
|
3086
|
-
export type ChartConfigLineConfigStyle = 'Solid' | 'Dotted';
|
|
3087
|
-
export type ChartConfigMappingRule = {
|
|
3088
|
-
comparison?: string;
|
|
3089
|
-
value?: number;
|
|
3090
|
-
text?: string;
|
|
3091
|
-
colorTheme?: ChartConfigColorTheme;
|
|
3092
|
-
};
|
|
3093
|
-
export type ChartConfigMarker = {
|
|
3094
|
-
type?: ChartConfigMarkerType;
|
|
3095
|
-
value?: number;
|
|
3096
|
-
color?: string;
|
|
3097
|
-
label?: string;
|
|
3098
|
-
valueX?: string;
|
|
3099
|
-
};
|
|
3100
|
-
export type ChartConfigMarkerType = 'LINE' | 'AREA' | 'LINEX';
|
|
3101
|
-
export type ChartConfigPieConfig = {
|
|
3102
|
-
pieType?: ChartConfigPieConfigPieType;
|
|
3103
|
-
showPercent?: boolean;
|
|
3104
|
-
showValue?: boolean;
|
|
3105
|
-
calculation?: ChartConfigCalculation;
|
|
3106
|
-
absValue?: boolean;
|
|
3107
|
-
};
|
|
3108
|
-
export type ChartConfigPieConfigPieType = 'Pie' | 'Donut';
|
|
3109
|
-
export type ChartConfigQueryValueConfig = {
|
|
3110
|
-
colorTheme?: ChartConfigColorTheme;
|
|
3111
|
-
showBackgroundChart?: boolean;
|
|
3112
|
-
calculation?: ChartConfigCalculation;
|
|
3113
|
-
seriesCalculation?: ChartConfigCalculation;
|
|
3114
|
-
};
|
|
3115
|
-
export type ChartConfigScatterConfig = {
|
|
3116
|
-
symbolSize?: string;
|
|
3117
|
-
color?: string;
|
|
3118
|
-
minSize?: number;
|
|
3119
|
-
maxSize?: number;
|
|
3120
|
-
};
|
|
3121
|
-
export type ChartConfigSeriesConfig = {
|
|
3122
|
-
series?: {
|
|
3123
|
-
[key: string]: ChartConfigSeriesConfigSeries;
|
|
3124
|
-
};
|
|
3125
|
-
};
|
|
3126
|
-
export type ChartConfigSeriesConfigSeries = {
|
|
3127
|
-
type?: ChartType2;
|
|
3128
|
-
};
|
|
3129
|
-
export type ChartConfigSort = {
|
|
3130
|
-
sortBy?: ChartConfigSortBy;
|
|
3131
|
-
orderDesc?: boolean;
|
|
3132
|
-
};
|
|
3133
|
-
export type ChartConfigSortBy = 'ByName' | 'ByValue';
|
|
3134
|
-
export type ChartConfigTableConfig = {
|
|
3135
|
-
calculation?: ChartConfigCalculation;
|
|
3136
|
-
showColumns?: {
|
|
3137
|
-
[key: string]: boolean;
|
|
3138
|
-
};
|
|
3139
|
-
sortColumns?: Array<ChartConfigColumnSort>;
|
|
3140
|
-
columnOrders?: Array<string>;
|
|
3141
|
-
columnWidths?: {
|
|
3142
|
-
[key: string]: number;
|
|
3143
|
-
};
|
|
3144
|
-
showPlainData?: boolean;
|
|
3145
|
-
calculations?: {
|
|
3146
|
-
[key: string]: ChartConfigCalculation;
|
|
3147
|
-
};
|
|
3148
|
-
valueConfigs?: {
|
|
3149
|
-
[key: string]: ChartConfigValueConfig;
|
|
3150
|
-
};
|
|
3151
|
-
rowLimit?: number;
|
|
3152
|
-
};
|
|
3153
|
-
export type ChartConfigTimeRangeOverride = {
|
|
3154
|
-
enabled?: boolean;
|
|
3155
|
-
timeRange?: common.TimeRange;
|
|
3156
|
-
compareTime?: ChartConfigCompareTime;
|
|
3157
|
-
};
|
|
3158
|
-
export type ChartConfigValueConfig = {
|
|
3159
|
-
valueFormatter?: ChartConfigValueFormatter;
|
|
3160
|
-
showValueLabel?: boolean;
|
|
3161
|
-
maxSignificantDigits?: number;
|
|
3162
|
-
dateFormat?: string;
|
|
3163
|
-
mappingRules?: Array<ChartConfigMappingRule>;
|
|
3164
|
-
style?: ChartConfigValueConfigStyle;
|
|
3165
|
-
maxFractionDigits?: number;
|
|
3166
|
-
precision?: number;
|
|
3167
|
-
currencySymbol?: string;
|
|
3168
|
-
tooltipTotal?: boolean;
|
|
3169
|
-
prefix?: string;
|
|
3170
|
-
suffix?: string;
|
|
3171
|
-
};
|
|
3172
|
-
export type ChartConfigValueConfigStyle = 'Standard' | 'Compact' | 'Scientific' | 'Percent' | 'Currency' | 'None';
|
|
3173
|
-
export type ChartConfigValueFormatter = 'NumberFormatter' | 'DateFormatter' | 'StringFormatter';
|
|
3174
|
-
export type ChartConfigXAxisConfig = {
|
|
3175
|
-
type?: string;
|
|
3176
|
-
min?: string;
|
|
3177
|
-
max?: string;
|
|
3178
|
-
scale?: boolean;
|
|
3179
|
-
name?: string;
|
|
3180
|
-
column?: string;
|
|
3181
|
-
sort?: ChartConfigSort;
|
|
3182
|
-
format?: string;
|
|
3183
|
-
};
|
|
3184
|
-
export type ChartConfigYAxisConfig = {
|
|
3185
|
-
min?: string;
|
|
3186
|
-
max?: string;
|
|
3187
|
-
scale?: boolean;
|
|
3188
|
-
stacked?: string;
|
|
3189
|
-
column?: string;
|
|
3190
|
-
name?: string;
|
|
3191
|
-
};
|
|
3192
|
-
export type ChartType2 = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER' | 'GROUP';
|
|
3193
|
-
export type Dashboard = {
|
|
3194
|
-
id?: string;
|
|
3195
|
-
name?: string;
|
|
3196
|
-
projectId?: string;
|
|
3197
|
-
description?: string;
|
|
3198
|
-
createdAt?: string;
|
|
3199
|
-
updatedAt?: string;
|
|
3200
|
-
panels?: {
|
|
3201
|
-
[key: string]: Panel;
|
|
3202
|
-
};
|
|
3203
|
-
layouts?: DashboardResponsiveLayouts;
|
|
3204
|
-
extra?: DashboardExtra;
|
|
3205
|
-
sharing?: DashboardSharing;
|
|
3206
|
-
default?: boolean;
|
|
3207
|
-
isPinned?: boolean;
|
|
3208
|
-
visibility?: DashboardDashboardVisibility;
|
|
3209
|
-
ownerId?: string;
|
|
3210
|
-
tags?: Array<string>;
|
|
3211
|
-
url?: string;
|
|
3212
|
-
projectOwner?: string;
|
|
3213
|
-
projectSlug?: string;
|
|
3214
|
-
createPanels?: Array<string>;
|
|
3215
|
-
editPanels?: Array<string>;
|
|
3216
|
-
};
|
|
3217
|
-
export type DashboardDashboardVisibility = 'INTERNAL' | 'PRIVATE' | 'PUBLIC';
|
|
3218
|
-
export type DashboardExtra = {
|
|
3219
|
-
templateVariables?: {
|
|
3220
|
-
[key: string]: DashboardExtraTemplateVariable;
|
|
3221
|
-
};
|
|
3222
|
-
templateViews?: Array<DashboardExtraTemplateView>;
|
|
3223
|
-
};
|
|
3224
|
-
export type DashboardExtraTemplateVariable = {
|
|
3225
|
-
field?: string;
|
|
3226
|
-
defaultValue?: string;
|
|
3227
|
-
sourceName?: string;
|
|
3228
|
-
options?: Array<string>;
|
|
3229
|
-
};
|
|
3230
|
-
export type DashboardExtraTemplateView = {
|
|
3231
|
-
values?: {
|
|
3232
|
-
[key: string]: string;
|
|
3233
|
-
};
|
|
3234
|
-
};
|
|
3235
|
-
export type DashboardLayouts = {
|
|
3236
|
-
layouts?: Array<DashboardLayoutsLayout>;
|
|
3237
|
-
};
|
|
3238
|
-
export type DashboardLayoutsLayout = {
|
|
3239
|
-
i?: string;
|
|
3240
|
-
x?: number;
|
|
3241
|
-
y?: number;
|
|
3242
|
-
w?: number;
|
|
3243
|
-
h?: number;
|
|
3244
|
-
};
|
|
3245
|
-
export type DashboardResponsiveLayouts = {
|
|
3246
|
-
responsiveLayouts?: {
|
|
3247
|
-
[key: string]: DashboardLayouts;
|
|
3248
|
-
};
|
|
3249
|
-
};
|
|
3250
|
-
export type DashboardHistory = {
|
|
3251
|
-
id?: number;
|
|
3252
|
-
dashboardId?: string;
|
|
3253
|
-
version?: number;
|
|
3254
|
-
name?: string;
|
|
3255
|
-
description?: string;
|
|
3256
|
-
projectId?: string;
|
|
3257
|
-
layouts?: DashboardResponsiveLayouts;
|
|
3258
|
-
extra?: DashboardExtra;
|
|
3259
|
-
tags?: Array<string>;
|
|
3260
|
-
url?: string;
|
|
3261
|
-
default?: boolean;
|
|
3262
|
-
isPinned?: boolean;
|
|
3263
|
-
ownerId?: string;
|
|
3264
|
-
visibility?: DashboardDashboardVisibility;
|
|
3265
|
-
createdAt?: string;
|
|
3266
|
-
createdById?: string;
|
|
3267
|
-
};
|
|
3268
|
-
export type DashboardSharing = {
|
|
3269
|
-
id?: string;
|
|
3270
|
-
dashboardId?: string;
|
|
3271
|
-
isPublic?: boolean;
|
|
3272
|
-
viewers?: Array<string>;
|
|
3273
|
-
config?: SharingConfig;
|
|
3274
|
-
};
|
|
3275
|
-
export type EventLogsConfig = {
|
|
3276
|
-
columnsConfig?: common.EventLogConfig;
|
|
3277
|
-
timeRangeOverride?: EventLogsConfigTimeRangeOverride;
|
|
3278
|
-
query?: string;
|
|
3279
|
-
sourceName?: string;
|
|
3280
|
-
};
|
|
3281
|
-
export type EventLogsConfigTimeRangeOverride = {
|
|
3282
|
-
enabled?: boolean;
|
|
3283
|
-
timeRange?: common.TimeRange;
|
|
3284
|
-
};
|
|
3285
|
-
export type ExportDashboardResponse = {
|
|
3286
|
-
dashboardJson?: Dashboard;
|
|
3287
|
-
};
|
|
3288
|
-
export type GetDashboardHistoryResponse = {
|
|
3289
|
-
histories?: Array<DashboardHistory>;
|
|
3290
|
-
total?: number;
|
|
3291
|
-
};
|
|
3292
|
-
export type GetDashboardResponse = {
|
|
3293
|
-
dashboards?: Array<Dashboard>;
|
|
3294
|
-
permissions?: Array<common.Permission>;
|
|
3295
|
-
};
|
|
3296
|
-
/**
|
|
3297
|
-
* Configuration for a GROUP-typed Panel — a collapsible container that holds
|
|
3298
|
-
* other panels referencing it via Panel.group_id. Groups cannot nest.
|
|
3299
|
-
*/
|
|
3300
|
-
export type Group = {
|
|
3301
|
-
title?: string;
|
|
3302
|
-
collapsed?: boolean;
|
|
3303
|
-
childLayouts?: DashboardResponsiveLayouts;
|
|
3304
|
-
style?: GroupStyle;
|
|
3305
|
-
/**
|
|
3306
|
-
* Palette key (e.g. "green", "purple") used to derive the header
|
|
3307
|
-
* background. Empty string keeps the theme default.
|
|
3308
|
-
*/
|
|
3309
|
-
highlightColor?: string;
|
|
3310
|
-
};
|
|
3311
|
-
/**
|
|
3312
|
-
* Visual treatment for the Group's header card. Default = plain border;
|
|
3313
|
-
* Emphasis = solid highlight_color tint behind the title row.
|
|
3314
|
-
*/
|
|
3315
|
-
export type GroupStyle = 'DEFAULT' | 'EMPHASIS';
|
|
3316
|
-
export type ImportDashboardRequest = {
|
|
3317
|
-
/**
|
|
3318
|
-
* The id of the target dashboard to import into.
|
|
3319
|
-
*/
|
|
3320
|
-
dashboardId: string;
|
|
3321
|
-
dashboardJson: Dashboard;
|
|
3322
|
-
/**
|
|
3323
|
-
* Override the layout of target dashboard.
|
|
3324
|
-
*/
|
|
3325
|
-
overrideLayouts?: boolean;
|
|
3326
|
-
};
|
|
3327
|
-
export type ImportDashboardResponse = {
|
|
3328
|
-
dashboard?: Dashboard;
|
|
3329
|
-
};
|
|
3330
|
-
export type LinkAccountSession = {
|
|
3331
|
-
sessionId?: string;
|
|
3332
|
-
};
|
|
3333
|
-
export type Note = {
|
|
3334
|
-
content?: string;
|
|
3335
|
-
fontSize?: NoteFontSize;
|
|
3336
|
-
textAlign?: NoteAlignment;
|
|
3337
|
-
verticalAlign?: NoteVerticalAlignment;
|
|
3338
|
-
backgroundColor?: string;
|
|
3339
|
-
textColor?: string;
|
|
3340
|
-
};
|
|
3341
|
-
export type NoteAlignment = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
3342
|
-
export type NoteFontSize = 'MD' | 'SM' | 'LG' | 'XL' | 'XXL';
|
|
3343
|
-
export type NoteVerticalAlignment = 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
3344
|
-
/**
|
|
3345
|
-
* An additional graph overlaid on the primary chart, with its own queries
|
|
3346
|
-
* and Y-axis configuration. Chart type defaults to the parent chart type.
|
|
3347
|
-
*/
|
|
3348
|
-
export type OverlayGraph = {
|
|
3349
|
-
insightsQueries?: Array<insights_service.QueryRequestQuery>;
|
|
3350
|
-
formulas?: Array<common.Formula>;
|
|
3351
|
-
yAxis?: ChartConfigYAxisConfig;
|
|
3352
|
-
name?: string;
|
|
3353
|
-
lineConfig?: ChartConfigLineConfig;
|
|
3354
|
-
valueConfig?: ChartConfigValueConfig;
|
|
3355
|
-
dataConfig?: ChartConfigDataConfig;
|
|
3356
|
-
sqlQuery?: string;
|
|
3357
|
-
sqlQueryId?: string;
|
|
3358
|
-
sqlExecuteEngine?: analytic_service.ExecuteEngine;
|
|
3359
|
-
chartType?: ChartType2;
|
|
3360
|
-
};
|
|
3361
|
-
export type Panel = {
|
|
3362
|
-
id?: string;
|
|
3363
|
-
name?: string;
|
|
3364
|
-
dashboardId?: string;
|
|
3365
|
-
chart?: Chart;
|
|
3366
|
-
creator?: common.UserInfo;
|
|
3367
|
-
updater?: common.UserInfo;
|
|
3368
|
-
/**
|
|
3369
|
-
* When non-empty, this panel renders inside the Group panel identified by group_id.
|
|
3370
|
-
* GROUP-typed panels must keep this field empty (groups cannot nest).
|
|
3371
|
-
*/
|
|
3372
|
-
groupId?: string;
|
|
3373
|
-
};
|
|
3374
|
-
export type SharingConfig = {
|
|
3375
|
-
isReadonly?: boolean;
|
|
3376
|
-
hideModifiers?: boolean;
|
|
3377
|
-
};
|
|
3378
|
-
export type ListDashboardsData = {
|
|
3379
|
-
body?: never;
|
|
3380
|
-
path?: never;
|
|
3381
|
-
query?: {
|
|
3382
|
-
/**
|
|
3383
|
-
* filter the dashboard by id
|
|
3384
|
-
*/
|
|
3385
|
-
dashboardId?: string;
|
|
3386
|
-
/**
|
|
3387
|
-
* filter the dashboard by project id
|
|
3388
|
-
*/
|
|
3389
|
-
projectId?: string;
|
|
3390
|
-
/**
|
|
3391
|
-
* username or organization name
|
|
3392
|
-
*/
|
|
3393
|
-
ownerName?: string;
|
|
3394
|
-
/**
|
|
3395
|
-
* project slug
|
|
3396
|
-
*/
|
|
3397
|
-
slug?: string;
|
|
3398
|
-
};
|
|
3399
|
-
url: '/v1/dashboards';
|
|
3400
|
-
};
|
|
3401
|
-
export type ListDashboardsResponses = {
|
|
3402
|
-
/**
|
|
3403
|
-
* A successful response.
|
|
3404
|
-
*/
|
|
3405
|
-
200: GetDashboardResponse;
|
|
3406
|
-
};
|
|
3407
|
-
export type ListDashboardsResponse = ListDashboardsResponses[keyof ListDashboardsResponses];
|
|
3408
|
-
export type ImportDashboardData = {
|
|
3409
|
-
body: ImportDashboardRequest;
|
|
3410
|
-
path?: never;
|
|
3411
|
-
query?: never;
|
|
3412
|
-
url: '/v1/dashboards/json';
|
|
3413
|
-
};
|
|
3414
|
-
export type ImportDashboardResponses = {
|
|
3415
|
-
/**
|
|
3416
|
-
* A successful response.
|
|
3417
|
-
*/
|
|
3418
|
-
200: ImportDashboardResponse;
|
|
3419
|
-
};
|
|
3420
|
-
export type ImportDashboardResponse2 = ImportDashboardResponses[keyof ImportDashboardResponses];
|
|
3421
|
-
export type DeleteDashboardData = {
|
|
3422
|
-
body?: never;
|
|
3423
|
-
path: {
|
|
3424
|
-
/**
|
|
3425
|
-
* filter the dashboard by id
|
|
3426
|
-
*/
|
|
3427
|
-
dashboardId: string;
|
|
3428
|
-
};
|
|
3429
|
-
query?: {
|
|
3430
|
-
/**
|
|
3431
|
-
* filter the dashboard by project id
|
|
3432
|
-
*/
|
|
3433
|
-
projectId?: string;
|
|
3434
|
-
/**
|
|
3435
|
-
* username or organization name
|
|
3436
|
-
*/
|
|
3437
|
-
ownerName?: string;
|
|
3438
|
-
/**
|
|
3439
|
-
* project slug
|
|
3440
|
-
*/
|
|
3441
|
-
slug?: string;
|
|
3442
|
-
};
|
|
3443
|
-
url: '/v1/dashboards/{dashboardId}';
|
|
3444
|
-
};
|
|
3445
|
-
export type DeleteDashboardResponses = {
|
|
3446
|
-
/**
|
|
3447
|
-
* A successful response.
|
|
3448
|
-
*/
|
|
3449
|
-
200: Dashboard;
|
|
3450
|
-
};
|
|
3451
|
-
export type DeleteDashboardResponse = DeleteDashboardResponses[keyof DeleteDashboardResponses];
|
|
3452
|
-
export type GetDashboardData = {
|
|
3453
|
-
body?: never;
|
|
3454
|
-
path: {
|
|
3455
|
-
/**
|
|
3456
|
-
* filter the dashboard by id
|
|
3457
|
-
*/
|
|
3458
|
-
dashboardId: string;
|
|
3459
|
-
};
|
|
3460
|
-
query?: {
|
|
3461
|
-
/**
|
|
3462
|
-
* filter the dashboard by project id
|
|
3463
|
-
*/
|
|
3464
|
-
projectId?: string;
|
|
3465
|
-
/**
|
|
3466
|
-
* username or organization name
|
|
3467
|
-
*/
|
|
3468
|
-
ownerName?: string;
|
|
3469
|
-
/**
|
|
3470
|
-
* project slug
|
|
3471
|
-
*/
|
|
3472
|
-
slug?: string;
|
|
3473
|
-
};
|
|
3474
|
-
url: '/v1/dashboards/{dashboardId}';
|
|
3475
|
-
};
|
|
3476
|
-
export type GetDashboardResponses = {
|
|
3477
|
-
/**
|
|
3478
|
-
* A successful response.
|
|
3479
|
-
*/
|
|
3480
|
-
200: GetDashboardResponse;
|
|
3481
|
-
};
|
|
3482
|
-
export type GetDashboardResponse2 = GetDashboardResponses[keyof GetDashboardResponses];
|
|
3483
|
-
export type GetDashboardHistoryData = {
|
|
3484
|
-
body?: never;
|
|
3485
|
-
path: {
|
|
3486
|
-
dashboardId: string;
|
|
3487
|
-
};
|
|
3488
|
-
query?: {
|
|
3489
|
-
limit?: number;
|
|
3490
|
-
offset?: number;
|
|
3491
|
-
};
|
|
3492
|
-
url: '/v1/dashboards/{dashboardId}/history';
|
|
3493
|
-
};
|
|
3494
|
-
export type GetDashboardHistoryResponses = {
|
|
3495
|
-
/**
|
|
3496
|
-
* A successful response.
|
|
3497
|
-
*/
|
|
3498
|
-
200: GetDashboardHistoryResponse;
|
|
3499
|
-
};
|
|
3500
|
-
export type GetDashboardHistoryResponse2 = GetDashboardHistoryResponses[keyof GetDashboardHistoryResponses];
|
|
3501
|
-
export type ExportDashboardData = {
|
|
3502
|
-
body?: never;
|
|
3503
|
-
path: {
|
|
3504
|
-
dashboardId: string;
|
|
3505
|
-
};
|
|
3506
|
-
query?: never;
|
|
3507
|
-
url: '/v1/dashboards/{dashboardId}/json';
|
|
3508
|
-
};
|
|
3509
|
-
export type ExportDashboardResponses = {
|
|
3510
|
-
/**
|
|
3511
|
-
* A successful response.
|
|
3512
|
-
*/
|
|
3513
|
-
200: ExportDashboardResponse;
|
|
3514
|
-
};
|
|
3515
|
-
export type ExportDashboardResponse2 = ExportDashboardResponses[keyof ExportDashboardResponses];
|
|
3516
|
-
export type ListDashboards2Data = {
|
|
3517
|
-
body?: never;
|
|
3518
|
-
path: {
|
|
3519
|
-
/**
|
|
3520
|
-
* username or organization name
|
|
3521
|
-
*/
|
|
3522
|
-
owner: string;
|
|
3523
|
-
/**
|
|
3524
|
-
* project slug
|
|
3525
|
-
*/
|
|
3526
|
-
slug: string;
|
|
3527
|
-
};
|
|
3528
|
-
query?: {
|
|
3529
|
-
/**
|
|
3530
|
-
* filter the dashboard by id
|
|
3531
|
-
*/
|
|
3532
|
-
dashboardId?: string;
|
|
3533
|
-
/**
|
|
3534
|
-
* filter the dashboard by project id
|
|
3535
|
-
*/
|
|
3536
|
-
projectId?: string;
|
|
3537
|
-
};
|
|
3538
|
-
url: '/v1/projects/{owner}/{slug}/dashboards';
|
|
3539
|
-
};
|
|
3540
|
-
export type ListDashboards2Responses = {
|
|
3541
|
-
/**
|
|
3542
|
-
* A successful response.
|
|
3543
|
-
*/
|
|
3544
|
-
200: GetDashboardResponse;
|
|
3545
|
-
};
|
|
3546
|
-
export type ListDashboards2Response = ListDashboards2Responses[keyof ListDashboards2Responses];
|
|
3547
|
-
export type GetDashboard2Data = {
|
|
3548
|
-
body?: never;
|
|
3549
|
-
path: {
|
|
3550
|
-
/**
|
|
3551
|
-
* username or organization name
|
|
3552
|
-
*/
|
|
3553
|
-
owner: string;
|
|
3554
|
-
/**
|
|
3555
|
-
* project slug
|
|
3556
|
-
*/
|
|
3557
|
-
slug: string;
|
|
3558
|
-
/**
|
|
3559
|
-
* filter the dashboard by id
|
|
3560
|
-
*/
|
|
3561
|
-
dashboardId: string;
|
|
3562
|
-
};
|
|
3563
|
-
query?: {
|
|
3564
|
-
/**
|
|
3565
|
-
* filter the dashboard by project id
|
|
3566
|
-
*/
|
|
3567
|
-
projectId?: string;
|
|
3568
|
-
};
|
|
3569
|
-
url: '/v1/projects/{owner}/{slug}/dashboards/{dashboardId}';
|
|
3570
|
-
};
|
|
3571
|
-
export type GetDashboard2Responses = {
|
|
3572
|
-
/**
|
|
3573
|
-
* A successful response.
|
|
3574
|
-
*/
|
|
3575
|
-
200: GetDashboardResponse;
|
|
3576
|
-
};
|
|
3577
|
-
export type GetDashboard2Response = GetDashboard2Responses[keyof GetDashboard2Responses];
|
|
3578
|
-
export type CreateLinkSessionData = {
|
|
3579
|
-
body?: never;
|
|
3580
|
-
path?: never;
|
|
3581
|
-
query?: never;
|
|
3582
|
-
url: '/v1/users/link';
|
|
3583
|
-
};
|
|
3584
|
-
export type CreateLinkSessionResponses = {
|
|
3585
|
-
/**
|
|
3586
|
-
* A successful response.
|
|
3587
|
-
*/
|
|
3588
|
-
200: LinkAccountSession;
|
|
3589
|
-
};
|
|
3590
|
-
export type CreateLinkSessionResponse = CreateLinkSessionResponses[keyof CreateLinkSessionResponses];
|
|
3591
|
-
}
|
|
3592
|
-
|
|
3593
|
-
export namespace solidit_service {
|
|
3594
|
-
export type DeleteForkData = {
|
|
3595
|
-
body?: never;
|
|
3596
|
-
path: {
|
|
3597
|
-
owner: string;
|
|
3598
|
-
slug: string;
|
|
3599
|
-
id: string;
|
|
3600
|
-
};
|
|
3601
|
-
query?: never;
|
|
3602
|
-
url: '/v1/solidity/{owner}/{slug}/fork/{id}';
|
|
3603
|
-
};
|
|
3604
|
-
export type DeleteForkResponses = {
|
|
3605
|
-
/**
|
|
3606
|
-
* A successful response.
|
|
3607
|
-
*/
|
|
3608
|
-
200: {
|
|
3609
|
-
[key: string]: unknown;
|
|
3610
|
-
};
|
|
3611
|
-
};
|
|
3612
|
-
export type DeleteForkResponse = DeleteForkResponses[keyof DeleteForkResponses];
|
|
3613
|
-
}
|
|
3614
|
-
|
|
3615
|
-
export type ClientOptions = {
|
|
3616
|
-
baseUrl: 'https://api.sentio.xyz' | (string & {});
|
|
3617
|
-
};
|