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