@sentio/api 1.0.3-rc.9 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.gen.ts CHANGED
@@ -1,5 +1,166 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
+ export namespace ai_service {
4
+ export type AiServicePostSessionMessageBody = {
5
+ message?: Message;
6
+ };
7
+ export type AutoConfig = {
8
+ executeQuery?: boolean;
9
+ };
10
+ /**
11
+ * - CHART_TYPE_UNSPECIFIED: Default unspecified type
12
+ * - CHART_TYPE_TABLE: Tabular data visualization
13
+ * - CHART_TYPE_LINE: Line chart
14
+ * - CHART_TYPE_BAR: Bar chart
15
+ * - CHART_TYPE_PIE: Pie chart
16
+ */
17
+ export type ChartType = 'CHART_TYPE_UNSPECIFIED' | 'CHART_TYPE_TABLE' | 'CHART_TYPE_LINE' | 'CHART_TYPE_BAR' | 'CHART_TYPE_PIE';
18
+ /**
19
+ * ChatSession represents an interactive conversation session with the AI. Messages in the session are ordered and accessed via cursor positions.
20
+ */
21
+ export type ChatSession = {
22
+ messages?: Array<Message>;
23
+ context?: Context;
24
+ streaming?: boolean;
25
+ preserveSession?: boolean;
26
+ };
27
+ export type Context = {
28
+ projectOwner?: string;
29
+ projectSlug?: string;
30
+ version?: number;
31
+ scenario?: ContextScenario;
32
+ sqlConfig?: SqlConfig;
33
+ insightConfig?: InsightConfig;
34
+ autoConfig?: AutoConfig;
35
+ };
36
+ export type ContextScenario = 'SCENARIO_UNSPECIFIED' | 'SCENARIO_SQL' | 'SCENARIO_INSIGHT' | 'SCENARIO_AUTO';
37
+ export type CreateChatSessionResponse = {
38
+ sessionId?: string;
39
+ currentCursorPosition?: number;
40
+ };
41
+ export type ErrorContent = {
42
+ code?: string;
43
+ message?: string;
44
+ };
45
+ export type InsightConfig = {
46
+ executeQuery?: boolean;
47
+ };
48
+ export type InsightQueryContent = {
49
+ explanation?: string;
50
+ chartType?: ChartType;
51
+ queries?: Array<common.Query>;
52
+ formulas?: Array<common.Formula>;
53
+ samplesLimit?: number;
54
+ timeRange?: common.TimeRangeLite;
55
+ results?: Array<InsightQueryResult>;
56
+ title?: string;
57
+ };
58
+ export type InsightQueryResult = {
59
+ id?: string;
60
+ alias?: string;
61
+ matrix?: common.Matrix;
62
+ error?: string;
63
+ };
64
+ /**
65
+ * 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.
66
+ */
67
+ export type Message = {
68
+ role?: MessageRole;
69
+ text?: string;
70
+ structured?: StructuredContent;
71
+ isFinal?: boolean;
72
+ runId?: string;
73
+ resources?: Array<Resource>;
74
+ };
75
+ export type MessageRole = 'ROLE_UNSPECIFIED' | 'ROLE_USER' | 'ROLE_ASSISTANT' | 'ROLE_SYSTEM' | 'AI_ROLE_TOOL';
76
+ export type PostSessionMessageResponse = {
77
+ currentCursorPosition?: number;
78
+ };
79
+ export type Resource = {
80
+ uri?: string;
81
+ name?: string;
82
+ description?: string;
83
+ mimeType?: string;
84
+ text?: string;
85
+ blob?: string;
86
+ };
87
+ export type SqlConfig = {
88
+ executeQuery?: boolean;
89
+ };
90
+ export type SqlContent = {
91
+ query?: string;
92
+ explanation?: string;
93
+ chartType?: ChartType;
94
+ title?: string;
95
+ result?: common.TabularData;
96
+ error?: string;
97
+ };
98
+ export type StructuredContent = {
99
+ type?: StructuredContentContentType;
100
+ sql?: SqlContent;
101
+ insightQuery?: InsightQueryContent;
102
+ error?: ErrorContent;
103
+ };
104
+ export type StructuredContentContentType = 'CONTENT_TYPE_UNSPECIFIED' | 'CONTENT_TYPE_SQL' | 'CONTENT_TYPE_INSIGHT_QUERY' | 'CONTENT_TYPE_ERROR';
105
+ export type CreateChatSessionData = {
106
+ /**
107
+ * ChatSession represents an interactive conversation session with the AI. Messages in the session are ordered and accessed via cursor positions.
108
+ */
109
+ body: ai_service.ChatSession;
110
+ path?: never;
111
+ query?: never;
112
+ url: '/api/v1/ai/chat';
113
+ };
114
+ export type CreateChatSessionResponses = {
115
+ /**
116
+ * A successful response.
117
+ */
118
+ 200: ai_service.CreateChatSessionResponse;
119
+ };
120
+ export type CreateChatSessionResponse2 = CreateChatSessionResponses[keyof CreateChatSessionResponses];
121
+ export type QueryChatSessionData = {
122
+ body?: never;
123
+ path: {
124
+ /**
125
+ * Unique identifier for the session
126
+ */
127
+ sessionId: string;
128
+ };
129
+ query?: {
130
+ /**
131
+ * Start cursor position - only messages after this position will be returned
132
+ */
133
+ cursorPosition?: number;
134
+ };
135
+ url: '/api/v1/ai/chat/{sessionId}';
136
+ };
137
+ export type QueryChatSessionResponses = {
138
+ /**
139
+ * A successful response.
140
+ */
141
+ 200: ai_service.ChatSession;
142
+ };
143
+ export type QueryChatSessionResponse = QueryChatSessionResponses[keyof QueryChatSessionResponses];
144
+ export type PostSessionMessageData = {
145
+ body: ai_service.AiServicePostSessionMessageBody;
146
+ path: {
147
+ /**
148
+ * Unique identifier for the session
149
+ */
150
+ sessionId: string;
151
+ };
152
+ query?: never;
153
+ url: '/api/v1/ai/chat/{sessionId}/message';
154
+ };
155
+ export type PostSessionMessageResponses = {
156
+ /**
157
+ * A successful response.
158
+ */
159
+ 200: ai_service.PostSessionMessageResponse;
160
+ };
161
+ export type PostSessionMessageResponse2 = PostSessionMessageResponses[keyof PostSessionMessageResponses];
162
+ }
163
+
3
164
  export namespace alert_service {
4
165
  export type Alert = {
5
166
  id?: string;
@@ -22,6 +183,11 @@ export namespace alert_service {
22
183
  time?: string;
23
184
  state?: AlertRuleState;
24
185
  queryTimeRange?: common.TimeRangeLite;
186
+ sqlCondition?: SqlCondition;
187
+ sqlSamples?: Array<{
188
+ [key: string]: unknown;
189
+ }>;
190
+ sqlMatchCount?: number;
25
191
  };
26
192
  export type AlertRule = {
27
193
  id?: string;
@@ -42,8 +208,10 @@ export namespace alert_service {
42
208
  lastQueryTime?: string;
43
209
  mute?: boolean;
44
210
  interval?: common.Duration;
211
+ error?: string;
212
+ sqlCondition?: SqlCondition;
45
213
  };
46
- export type AlertRuleState = 'NO_DATA' | 'FIRING' | 'NORMAL';
214
+ export type AlertRuleState = 'NO_DATA' | 'FIRING' | 'NORMAL' | 'ERROR';
47
215
  export type AlertServiceSaveAlertRuleBody = {
48
216
  rule?: {
49
217
  projectId?: string;
@@ -63,9 +231,11 @@ export namespace alert_service {
63
231
  lastQueryTime?: string;
64
232
  mute?: boolean;
65
233
  interval?: common.Duration;
234
+ error?: string;
235
+ sqlCondition?: SqlCondition;
66
236
  };
67
237
  };
68
- export type AlertType = 'METRIC' | 'LOG';
238
+ export type AlertType = 'METRIC' | 'LOG' | 'SQL';
69
239
  export type Condition = {
70
240
  queries?: Array<common.Query>;
71
241
  formula?: common.Formula;
@@ -74,6 +244,7 @@ export namespace alert_service {
74
244
  eventsQueries?: Array<common.SegmentationQuery>;
75
245
  priceQueries?: Array<common.PriceSegmentationQuery>;
76
246
  insightQueries?: Array<ConditionInsightQuery>;
247
+ threshold2?: number;
77
248
  };
78
249
  export type ConditionInsightQuery = {
79
250
  metricsQuery?: common.Query;
@@ -93,6 +264,7 @@ export namespace alert_service {
93
264
  query?: string;
94
265
  comparisonOp?: string;
95
266
  threshold?: number;
267
+ threshold2?: number;
96
268
  };
97
269
  export type Mute = {
98
270
  id?: string;
@@ -103,6 +275,23 @@ export namespace alert_service {
103
275
  endTime?: string;
104
276
  updateTime?: string;
105
277
  };
278
+ export type SqlCondition = {
279
+ columnCondition?: SqlConditionColumnCondition;
280
+ rowCondition?: SqlConditionRowCondition;
281
+ sqlQuery?: string;
282
+ };
283
+ export type SqlConditionAggregation = 'COUNT' | 'SUM' | 'AVG' | 'MAX' | 'MIN' | 'LAST';
284
+ export type SqlConditionColumnCondition = {
285
+ valueColumn?: string;
286
+ timeColumn?: string;
287
+ comparisonOp?: string;
288
+ threshold?: number;
289
+ threshold2?: number;
290
+ aggregation?: SqlConditionAggregation;
291
+ };
292
+ export type SqlConditionRowCondition = {
293
+ [key: string]: unknown;
294
+ };
106
295
  export type Sample = {
107
296
  metric?: {
108
297
  [key: string]: string;
@@ -207,6 +396,7 @@ export namespace analytic_service {
207
396
  */
208
397
  cursor?: string;
209
398
  cachePolicy?: common.CachePolicy;
399
+ engine?: ExecuteEngine;
210
400
  };
211
401
  export type AnalyticServiceExecuteSqlBody = {
212
402
  projectId?: string;
@@ -217,6 +407,7 @@ export namespace analytic_service {
217
407
  */
218
408
  cursor?: string;
219
409
  cachePolicy?: common.CachePolicy;
410
+ engine?: ExecuteEngine;
220
411
  };
221
412
  export type AnalyticServiceSaveRefreshableMaterializedViewBody = {
222
413
  projectId?: string;
@@ -236,6 +427,7 @@ export namespace analytic_service {
236
427
  queueLength?: number;
237
428
  computeStats?: common.ComputeStats;
238
429
  };
430
+ export type ExecuteEngine = 'ULTRA' | 'SMALL' | 'MEDIUM' | 'LARGE';
239
431
  export type ExecutionInfo = {
240
432
  queryId?: string;
241
433
  executionId?: string;
@@ -266,6 +458,15 @@ export namespace analytic_service {
266
458
  computeStats?: common.ComputeStats;
267
459
  exception?: string;
268
460
  };
461
+ export type GetSharingSqlResponse = {
462
+ query?: GetSharingSqlResponseQuery;
463
+ project?: common.Project;
464
+ };
465
+ export type GetSharingSqlResponseQuery = {
466
+ sqlQuery?: SqlQuery;
467
+ createdAt?: string;
468
+ updatedAt?: string;
469
+ };
269
470
  export type ListRefreshableMaterializedViewResponse = {
270
471
  total?: string;
271
472
  views?: Array<ListRefreshableMaterializedViewResponseRefreshableMaterializedView>;
@@ -274,6 +475,10 @@ export namespace analytic_service {
274
475
  name?: string;
275
476
  sql?: string;
276
477
  };
478
+ export type ListTablesResponse = {
479
+ names?: Array<string>;
480
+ computeStats?: common.ComputeStats;
481
+ };
277
482
  export type LogQueryRequestFilter = {
278
483
  field?: string;
279
484
  value?: string;
@@ -287,6 +492,7 @@ export namespace analytic_service {
287
492
  entries?: Array<common.EventLogEntry>;
288
493
  after?: Array<common.Any>;
289
494
  total?: string;
495
+ computeStats?: common.ComputeStats;
290
496
  };
291
497
  export type QuerySqlExecutionDetailResponse = {
292
498
  computeStats?: common.ComputeStats;
@@ -305,6 +511,16 @@ export namespace analytic_service {
305
511
  computeStats?: common.ComputeStats;
306
512
  color?: string;
307
513
  };
514
+ export type QueryTableResponse = {
515
+ table?: Table;
516
+ computeStats?: common.ComputeStats;
517
+ };
518
+ export type QueryTablesResponse = {
519
+ tables?: {
520
+ [key: string]: Table;
521
+ };
522
+ computeStats?: common.ComputeStats;
523
+ };
308
524
  export type SqlQuery = {
309
525
  sql?: string;
310
526
  size?: number;
@@ -325,6 +541,17 @@ export namespace analytic_service {
325
541
  export type SaveSqlResponse = {
326
542
  queryId?: string;
327
543
  };
544
+ export type SaveSharingSqlRequest = {
545
+ queryId?: string;
546
+ isPublic?: boolean;
547
+ };
548
+ export type SaveSharingSqlResponse = {
549
+ sharingId?: string;
550
+ queryId?: string;
551
+ isPublic?: boolean;
552
+ createdAt?: string;
553
+ updatedAt?: string;
554
+ };
328
555
  export type SearchServiceQueryLogBody = {
329
556
  projectId?: string;
330
557
  query?: string;
@@ -335,6 +562,8 @@ export namespace analytic_service {
335
562
  offset?: number;
336
563
  filters?: Array<LogQueryRequestFilter>;
337
564
  version?: number;
565
+ source?: string;
566
+ cachePolicy?: common.CachePolicy;
338
567
  };
339
568
  export type SegmentationRequest = {
340
569
  projectOwner?: string;
@@ -344,18 +573,33 @@ export namespace analytic_service {
344
573
  timeRange?: common.TimeRangeLite;
345
574
  queries?: Array<common.SegmentationQuery>;
346
575
  formulas?: Array<common.Formula>;
347
- systemSqlQueries?: Array<common.SystemSqlQuery>;
348
576
  debug?: boolean;
349
577
  limit?: number;
350
578
  offset?: number;
351
579
  };
352
- export type Source = 'SQL_EDITOR' | 'DASHBOARD' | 'ASYNC_TRIGGER' | 'CURL' | 'ENDPOINT';
580
+ export type Source = 'SQL_EDITOR' | 'DASHBOARD' | 'ASYNC_TRIGGER' | 'CURL' | 'ENDPOINT' | 'EXPORT' | 'USER_MATERIALIZED_VIEW_CREATOR' | 'SQL_ALERT';
353
581
  export type SyncExecuteSqlResponse = {
354
582
  runtimeCost?: string;
355
583
  result?: common.TabularData;
356
584
  error?: string;
357
585
  computeStats?: common.ComputeStats;
358
586
  };
587
+ export type Table = {
588
+ name?: string;
589
+ columns?: {
590
+ [key: string]: TableColumn;
591
+ };
592
+ tableType?: TableTableType;
593
+ relatedProjectId?: string;
594
+ };
595
+ export type TableColumn = {
596
+ name?: string;
597
+ columnType?: TableColumnColumnType;
598
+ clickhouseDataType?: string;
599
+ isBuiltin?: boolean;
600
+ };
601
+ export type TableColumnColumnType = 'STRING' | 'NUMBER' | 'BOOLEAN' | 'LIST' | 'TIME' | 'JSON' | 'TOKEN';
602
+ export type TableTableType = 'RESERVED' | 'EVENT' | 'METRICS' | 'SUBGRAPH' | 'MATERIALIZED_VIEW' | 'IMPORTED_EVENT' | 'SYSTEM' | 'ENTITY' | 'IMPORTED_ENTITY' | 'IMPORTED_SUBGRAPH' | 'USER_REFRESHABLE_VIEW' | 'DASH_COMMUNITY_EVENT' | 'DASH_COMMUNITY_SUBGRAPH' | 'DASH_COMMUNITY_ENTITY' | 'DASH_CURATED_EVENT' | 'DASH_CURATED_SUBGRAPH' | 'DASH_CURATED_ENTITY' | 'DASH_COMMUNITY_MATERIALIZED_VIEW' | 'DASH_CURATED_MATERIALIZED_VIEW' | 'IMPORTED_METRICS' | 'DASH_COMMUNITY_METRICS' | 'DASH_CURATED_METRICS';
359
603
  export type ViewRefreshSettings = {
360
604
  refreshInterval?: string;
361
605
  strategy?: ViewRefreshSettingsRefreshStrategy;
@@ -364,6 +608,56 @@ export namespace analytic_service {
364
608
  orderBy?: string;
365
609
  };
366
610
  export type ViewRefreshSettingsRefreshStrategy = 'EVERY' | 'AFTER';
611
+ export type SaveSharingSqlData = {
612
+ body: analytic_service.SaveSharingSqlRequest;
613
+ path?: never;
614
+ query?: never;
615
+ url: '/api/v1/analytics/sql/sharing';
616
+ };
617
+ export type SaveSharingSqlResponses = {
618
+ /**
619
+ * A successful response.
620
+ */
621
+ 200: analytic_service.SaveSharingSqlResponse;
622
+ };
623
+ export type SaveSharingSqlResponse2 = SaveSharingSqlResponses[keyof SaveSharingSqlResponses];
624
+ export type GetSharingSqlData = {
625
+ body?: never;
626
+ path: {
627
+ id: string;
628
+ };
629
+ query?: never;
630
+ url: '/api/v1/analytics/sql/sharing/{id}';
631
+ };
632
+ export type GetSharingSqlResponses = {
633
+ /**
634
+ * A successful response.
635
+ */
636
+ 200: analytic_service.GetSharingSqlResponse;
637
+ };
638
+ export type GetSharingSqlResponse2 = GetSharingSqlResponses[keyof GetSharingSqlResponses];
639
+ export type QueryTables2Data = {
640
+ body?: never;
641
+ path?: never;
642
+ query?: {
643
+ projectOwner?: string;
644
+ projectSlug?: string;
645
+ projectId?: string;
646
+ version?: number;
647
+ includeChains?: boolean;
648
+ includeViews?: boolean;
649
+ includeExternals?: boolean;
650
+ includeDash?: boolean;
651
+ };
652
+ url: '/api/v1/analytics/sql/tables';
653
+ };
654
+ export type QueryTables2Responses = {
655
+ /**
656
+ * A successful response.
657
+ */
658
+ 200: analytic_service.QueryTablesResponse;
659
+ };
660
+ export type QueryTables2Response = QueryTables2Responses[keyof QueryTables2Responses];
367
661
  export type CancelSqlQueryData = {
368
662
  body?: never;
369
663
  path: {
@@ -657,6 +951,29 @@ export namespace analytic_service {
657
951
  200: analytic_service.SaveSqlResponse;
658
952
  };
659
953
  export type SaveSql2Response = SaveSql2Responses[keyof SaveSql2Responses];
954
+ export type QueryTablesData = {
955
+ body?: never;
956
+ path: {
957
+ owner: string;
958
+ slug: string;
959
+ };
960
+ query?: {
961
+ projectId?: string;
962
+ version?: number;
963
+ includeChains?: boolean;
964
+ includeViews?: boolean;
965
+ includeExternals?: boolean;
966
+ includeDash?: boolean;
967
+ };
968
+ url: '/api/v1/analytics/{owner}/{slug}/sql/tables';
969
+ };
970
+ export type QueryTablesResponses = {
971
+ /**
972
+ * A successful response.
973
+ */
974
+ 200: analytic_service.QueryTablesResponse;
975
+ };
976
+ export type QueryTablesResponse2 = QueryTablesResponses[keyof QueryTablesResponses];
660
977
  export type QueryLogData = {
661
978
  body: analytic_service.SearchServiceQueryLogBody;
662
979
  path: {
@@ -697,6 +1014,23 @@ export namespace analytic_service {
697
1014
  limit?: number;
698
1015
  offset?: number;
699
1016
  version?: number;
1017
+ source?: string;
1018
+ /**
1019
+ * how long the cache will be stored before it is evicted
1020
+ */
1021
+ 'cachePolicy.cacheTtlSecs'?: number;
1022
+ /**
1023
+ * how long the cache will be refreshed in the background
1024
+ */
1025
+ 'cachePolicy.cacheRefreshTtlSecs'?: number;
1026
+ /**
1027
+ * force refresh the cache now
1028
+ */
1029
+ 'cachePolicy.forceRefresh'?: boolean;
1030
+ /**
1031
+ * do not use cache
1032
+ */
1033
+ 'cachePolicy.noCache'?: boolean;
700
1034
  };
701
1035
  url: '/api/v1/eventlogs/{owner}/{slug}/query';
702
1036
  };
@@ -707,6 +1041,82 @@ export namespace analytic_service {
707
1041
  200: analytic_service.LogQueryResponse;
708
1042
  };
709
1043
  export type QueryLog2Response = QueryLog2Responses[keyof QueryLog2Responses];
1044
+ export type QueryTable2Data = {
1045
+ body?: never;
1046
+ path?: never;
1047
+ query?: {
1048
+ projectOwner?: string;
1049
+ projectSlug?: string;
1050
+ projectId?: string;
1051
+ version?: number;
1052
+ name?: string;
1053
+ };
1054
+ url: '/api/v1/sql/table';
1055
+ };
1056
+ export type QueryTable2Responses = {
1057
+ /**
1058
+ * A successful response.
1059
+ */
1060
+ 200: analytic_service.QueryTableResponse;
1061
+ };
1062
+ export type QueryTable2Response = QueryTable2Responses[keyof QueryTable2Responses];
1063
+ export type ListTables2Data = {
1064
+ body?: never;
1065
+ path?: never;
1066
+ query?: {
1067
+ projectOwner?: string;
1068
+ projectSlug?: string;
1069
+ projectId?: string;
1070
+ version?: number;
1071
+ };
1072
+ url: '/api/v1/sql/tables';
1073
+ };
1074
+ export type ListTables2Responses = {
1075
+ /**
1076
+ * A successful response.
1077
+ */
1078
+ 200: analytic_service.ListTablesResponse;
1079
+ };
1080
+ export type ListTables2Response = ListTables2Responses[keyof ListTables2Responses];
1081
+ export type QueryTableData = {
1082
+ body?: never;
1083
+ path: {
1084
+ owner: string;
1085
+ slug: string;
1086
+ name: string;
1087
+ };
1088
+ query?: {
1089
+ projectId?: string;
1090
+ version?: number;
1091
+ };
1092
+ url: '/api/v1/sql/{owner}/{slug}/table/{name}';
1093
+ };
1094
+ export type QueryTableResponses = {
1095
+ /**
1096
+ * A successful response.
1097
+ */
1098
+ 200: analytic_service.QueryTableResponse;
1099
+ };
1100
+ export type QueryTableResponse2 = QueryTableResponses[keyof QueryTableResponses];
1101
+ export type ListTablesData = {
1102
+ body?: never;
1103
+ path: {
1104
+ owner: string;
1105
+ slug: string;
1106
+ };
1107
+ query?: {
1108
+ projectId?: string;
1109
+ version?: number;
1110
+ };
1111
+ url: '/api/v1/sql/{owner}/{slug}/tables';
1112
+ };
1113
+ export type ListTablesResponses = {
1114
+ /**
1115
+ * A successful response.
1116
+ */
1117
+ 200: analytic_service.ListTablesResponse;
1118
+ };
1119
+ export type ListTablesResponse2 = ListTablesResponses[keyof ListTablesResponses];
710
1120
  }
711
1121
 
712
1122
  export namespace common {
@@ -822,6 +1232,9 @@ export namespace common {
822
1232
  export type CommunityProject = {
823
1233
  dashAlias?: string;
824
1234
  curated?: boolean;
1235
+ chain?: {
1236
+ [key: string]: StringList;
1237
+ };
825
1238
  };
826
1239
  export type ComputeStats = {
827
1240
  computedAt?: string;
@@ -972,6 +1385,7 @@ export namespace common {
972
1385
  enableMaterializedView?: boolean;
973
1386
  defaultTimerange?: TimeRangeLite;
974
1387
  communityProject?: CommunityProject;
1388
+ sentioNetwork?: boolean;
975
1389
  };
976
1390
  export type ProjectProjectMember = {
977
1391
  user?: UserInfo;
@@ -1142,11 +1556,7 @@ export namespace common {
1142
1556
  operator?: SelectorOperatorType;
1143
1557
  value?: Array<Any>;
1144
1558
  };
1145
- /**
1146
- * - GT: Numeric operators
1147
- * - CONTAINS: String operators
1148
- */
1149
- export type SelectorOperatorType = 'EQ' | 'NEQ' | 'EXISTS' | 'NOT_EXISTS' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'NOT_BETWEEN' | 'CONTAINS' | 'NOT_CONTAINS' | 'IN_COHORTS' | 'NOT_IN_COHORTS';
1559
+ export type SelectorOperatorType = 'EQ' | 'NEQ' | 'EXISTS' | 'NOT_EXISTS' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'NOT_BETWEEN' | 'CONTAINS' | 'NOT_CONTAINS' | 'IN' | 'NOT_IN' | 'IN_COHORTS' | 'NOT_IN_COHORTS';
1150
1560
  export type SelectorExpr = {
1151
1561
  selector?: Selector;
1152
1562
  logicExpr?: SelectorExprLogicExpr;
@@ -1158,32 +1568,6 @@ export namespace common {
1158
1568
  export type StringList = {
1159
1569
  values?: Array<string>;
1160
1570
  };
1161
- export type SystemSqlQuery = {
1162
- id?: string;
1163
- alias?: string;
1164
- name?: string;
1165
- tableName?: string;
1166
- aggregation?: SystemSqlQueryAggregation;
1167
- selectorExpr?: SelectorExpr;
1168
- groupBy?: Array<string>;
1169
- disabled?: boolean;
1170
- };
1171
- export type SystemSqlQueryAggregation = {
1172
- total?: SystemSqlQueryAggregationTotal;
1173
- countUnique?: SystemSqlQueryAggregationCountUnique;
1174
- aggregateProperties?: SystemSqlQueryAggregationAggregateProperties;
1175
- };
1176
- export type SystemSqlQueryAggregationAggregateProperties = {
1177
- type?: SystemSqlQueryAggregationAggregatePropertiesAggregationType;
1178
- propertyName?: string;
1179
- };
1180
- export type SystemSqlQueryAggregationAggregatePropertiesAggregationType = 'SUM' | 'AVG' | 'MEDIAN' | 'MIN' | 'MAX' | 'DISTINCT_COUNT';
1181
- export type SystemSqlQueryAggregationCountUnique = {
1182
- duration?: Duration;
1183
- };
1184
- export type SystemSqlQueryAggregationTotal = {
1185
- [key: string]: unknown;
1186
- };
1187
1571
  export type TabularData = {
1188
1572
  columns?: Array<string>;
1189
1573
  columnTypes?: {
@@ -1245,6 +1629,9 @@ export namespace common {
1245
1629
  username?: string;
1246
1630
  accountStatus?: UserAccountStatus;
1247
1631
  tier?: Tier;
1632
+ isOrganization?: boolean;
1633
+ walletAddress?: string;
1634
+ identities?: Array<string>;
1248
1635
  };
1249
1636
  export type UserAccountStatus = 'PENDING' | 'SET_USERNAME' | 'BANNED' | 'ACTIVE';
1250
1637
  /**
@@ -1258,21 +1645,6 @@ export namespace common {
1258
1645
  picture?: string;
1259
1646
  username?: string;
1260
1647
  };
1261
- export type GetProjectByIdData = {
1262
- body?: never;
1263
- path: {
1264
- projectId: string;
1265
- };
1266
- query?: never;
1267
- url: '/api/v1/project/{projectId}';
1268
- };
1269
- export type GetProjectByIdResponses = {
1270
- /**
1271
- * A successful response.
1272
- */
1273
- 200: common.ProjectInfo;
1274
- };
1275
- export type GetProjectByIdResponse = GetProjectByIdResponses[keyof GetProjectByIdResponses];
1276
1648
  }
1277
1649
 
1278
1650
  export namespace evm {
@@ -1317,11 +1689,152 @@ export namespace google {
1317
1689
  data?: string;
1318
1690
  extensions?: Array<ProtobufAny>;
1319
1691
  };
1692
+ /**
1693
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
1694
+ * URL that describes the type of the serialized message.
1695
+ *
1696
+ * Protobuf library provides support to pack/unpack Any values in the form
1697
+ * of utility functions or additional generated methods of the Any type.
1698
+ *
1699
+ * Example 1: Pack and unpack a message in C++.
1700
+ *
1701
+ * Foo foo = ...;
1702
+ * Any any;
1703
+ * any.PackFrom(foo);
1704
+ * ...
1705
+ * if (any.UnpackTo(&foo)) {
1706
+ * ...
1707
+ * }
1708
+ *
1709
+ * Example 2: Pack and unpack a message in Java.
1710
+ *
1711
+ * Foo foo = ...;
1712
+ * Any any = Any.pack(foo);
1713
+ * ...
1714
+ * if (any.is(Foo.class)) {
1715
+ * foo = any.unpack(Foo.class);
1716
+ * }
1717
+ * // or ...
1718
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
1719
+ * foo = any.unpack(Foo.getDefaultInstance());
1720
+ * }
1721
+ *
1722
+ * Example 3: Pack and unpack a message in Python.
1723
+ *
1724
+ * foo = Foo(...)
1725
+ * any = Any()
1726
+ * any.Pack(foo)
1727
+ * ...
1728
+ * if any.Is(Foo.DESCRIPTOR):
1729
+ * any.Unpack(foo)
1730
+ * ...
1731
+ *
1732
+ * Example 4: Pack and unpack a message in Go
1733
+ *
1734
+ * foo := &pb.Foo{...}
1735
+ * any, err := anypb.New(foo)
1736
+ * if err != nil {
1737
+ * ...
1738
+ * }
1739
+ * ...
1740
+ * foo := &pb.Foo{}
1741
+ * if err := any.UnmarshalTo(foo); err != nil {
1742
+ * ...
1743
+ * }
1744
+ *
1745
+ * The pack methods provided by protobuf library will by default use
1746
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
1747
+ * methods only use the fully qualified type name after the last '/'
1748
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
1749
+ * name "y.z".
1750
+ *
1751
+ * JSON
1752
+ * ====
1753
+ * The JSON representation of an `Any` value uses the regular
1754
+ * representation of the deserialized, embedded message, with an
1755
+ * additional field `@type` which contains the type URL. Example:
1756
+ *
1757
+ * package google.profile;
1758
+ * message Person {
1759
+ * string first_name = 1;
1760
+ * string last_name = 2;
1761
+ * }
1762
+ *
1763
+ * {
1764
+ * "@type": "type.googleapis.com/google.profile.Person",
1765
+ * "firstName": <string>,
1766
+ * "lastName": <string>
1767
+ * }
1768
+ *
1769
+ * If the embedded message type is well-known and has a custom JSON
1770
+ * representation, that representation will be embedded adding a field
1771
+ * `value` which holds the custom JSON in addition to the `@type`
1772
+ * field. Example (for message [google.protobuf.Duration][]):
1773
+ *
1774
+ * {
1775
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
1776
+ * "value": "1.212s"
1777
+ * }
1778
+ */
1320
1779
  export type ProtobufAny = {
1780
+ /**
1781
+ * A URL/resource name that uniquely identifies the type of the serialized
1782
+ * protocol buffer message. This string must contain at least
1783
+ * one "/" character. The last segment of the URL's path must represent
1784
+ * the fully qualified name of the type (as in
1785
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
1786
+ * (e.g., leading "." is not accepted).
1787
+ *
1788
+ * In practice, teams usually precompile into the binary all types that they
1789
+ * expect it to use in the context of Any. However, for URLs which use the
1790
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
1791
+ * server that maps type URLs to message definitions as follows:
1792
+ *
1793
+ * * If no scheme is provided, `https` is assumed.
1794
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
1795
+ * value in binary format, or produce an error.
1796
+ * * Applications are allowed to cache lookup results based on the
1797
+ * URL, or have them precompiled into a binary to avoid any
1798
+ * lookup. Therefore, binary compatibility needs to be preserved
1799
+ * on changes to types. (Use versioned type names to manage
1800
+ * breaking changes.)
1801
+ *
1802
+ * Note: this functionality is not currently available in the official
1803
+ * protobuf release, and it is not used for type URLs beginning with
1804
+ * type.googleapis.com. As of May 2023, there are no widely used type server
1805
+ * implementations and no plans to implement one.
1806
+ *
1807
+ * Schemes other than `http`, `https` (or the empty scheme) might be
1808
+ * used with implementation specific semantics.
1809
+ */
1321
1810
  '@type'?: string;
1322
1811
  [key: string]: unknown | string | undefined;
1323
1812
  };
1813
+ /**
1814
+ * `NullValue` is a singleton enumeration to represent the null value for the
1815
+ * `Value` type union.
1816
+ *
1817
+ * The JSON representation for `NullValue` is JSON `null`.
1818
+ *
1819
+ * - NULL_VALUE: Null value.
1820
+ */
1324
1821
  export type ProtobufNullValue = 'NULL_VALUE';
1822
+ export type GetCallTraceData = {
1823
+ body?: never;
1824
+ path?: never;
1825
+ query?: {
1826
+ networkId?: string;
1827
+ txHash?: string;
1828
+ };
1829
+ url: '/api/v1/move/call_trace';
1830
+ };
1831
+ export type GetCallTraceResponses = {
1832
+ /**
1833
+ * A successful response.
1834
+ */
1835
+ 200: google.ApiHttpBody;
1836
+ };
1837
+ export type GetCallTraceResponse = GetCallTraceResponses[keyof GetCallTraceResponses];
1325
1838
  export type GetCallTraceOnForkBundleData = {
1326
1839
  body?: never;
1327
1840
  path: {
@@ -1522,6 +2035,7 @@ export namespace insights_service {
1522
2035
  offset?: number;
1523
2036
  bypassCache?: boolean;
1524
2037
  cachePolicy?: common.CachePolicy;
2038
+ enableExperimentalFeatures?: boolean;
1525
2039
  };
1526
2040
  export type ListCoinsResponse = {
1527
2041
  coins?: Array<common.CoinId>;
@@ -1616,6 +2130,7 @@ export namespace insights_service {
1616
2130
  export namespace metrics_service {
1617
2131
  export type GetMetricsResponse = {
1618
2132
  metrics?: Array<MetricInfo>;
2133
+ computeStats?: common.ComputeStats;
1619
2134
  };
1620
2135
  export type MetricInfo = {
1621
2136
  name?: string;
@@ -1631,6 +2146,7 @@ export namespace metrics_service {
1631
2146
  };
1632
2147
  export type MetricInfoLabelValues = {
1633
2148
  values?: Array<string>;
2149
+ totalCount?: string;
1634
2150
  };
1635
2151
  export type MetricMetadata = {
1636
2152
  type?: string;
@@ -1677,6 +2193,7 @@ export namespace metrics_service {
1677
2193
  version?: number;
1678
2194
  timezone?: string;
1679
2195
  samplesOffset?: number;
2196
+ enableExperimentalFeatures?: boolean;
1680
2197
  };
1681
2198
  export type ObservabilityServiceQueryRangeBody = {
1682
2199
  queries?: Array<common.Query>;
@@ -1686,6 +2203,7 @@ export namespace metrics_service {
1686
2203
  projectId?: string;
1687
2204
  version?: number;
1688
2205
  samplesOffset?: number;
2206
+ enableExperimentalFeatures?: boolean;
1689
2207
  };
1690
2208
  export type QueryValueResponse = {
1691
2209
  results?: Array<QueryValueResponseResult>;
@@ -1704,6 +2222,8 @@ export namespace metrics_service {
1704
2222
  projectId?: string;
1705
2223
  name?: string;
1706
2224
  version?: number;
2225
+ labelLimit?: string;
2226
+ labelSearchQuery?: string;
1707
2227
  };
1708
2228
  url: '/api/v1/metrics';
1709
2229
  };
@@ -1760,6 +2280,54 @@ export namespace metrics_service {
1760
2280
  export type QueryRangeResponse = QueryRangeResponses[keyof QueryRangeResponses];
1761
2281
  }
1762
2282
 
2283
+ export namespace move_service {
2284
+ export type GetSuiCallTraceResponse = {
2285
+ result?: Array<SuiCallTrace>;
2286
+ };
2287
+ export type SuiCallTrace = {
2288
+ from?: string;
2289
+ to?: string;
2290
+ contractName?: string;
2291
+ functionName?: string;
2292
+ inputs?: Array<unknown>;
2293
+ returnValue?: Array<unknown>;
2294
+ typeArgs?: Array<string>;
2295
+ calls?: Array<SuiCallTrace>;
2296
+ location?: unknown;
2297
+ pc?: number;
2298
+ gasUsed?: string;
2299
+ error?: SuiCallTraceError;
2300
+ };
2301
+ export type SuiCallTraceError = {
2302
+ majorStatus?: string;
2303
+ subStatus?: string;
2304
+ message?: string;
2305
+ location?: SuiCallTraceErrorModuleId;
2306
+ functionName?: string;
2307
+ codeOffset?: number;
2308
+ };
2309
+ export type SuiCallTraceErrorModuleId = {
2310
+ address?: string;
2311
+ name?: string;
2312
+ };
2313
+ export type GetSuiCallTraceData = {
2314
+ body?: never;
2315
+ path?: never;
2316
+ query?: {
2317
+ networkId?: string;
2318
+ txDigest?: string;
2319
+ };
2320
+ url: '/api/v1/move/sui_call_trace';
2321
+ };
2322
+ export type GetSuiCallTraceResponses = {
2323
+ /**
2324
+ * A successful response.
2325
+ */
2326
+ 200: move_service.GetSuiCallTraceResponse;
2327
+ };
2328
+ export type GetSuiCallTraceResponse2 = GetSuiCallTraceResponses[keyof GetSuiCallTraceResponses];
2329
+ }
2330
+
1763
2331
  export namespace price_service {
1764
2332
  export type AddCoinByGeckoRequest = {
1765
2333
  coingeckoId?: string;
@@ -1776,6 +2344,7 @@ export namespace price_service {
1776
2344
  export type BatchGetPricesRequest = {
1777
2345
  timestamps?: Array<string>;
1778
2346
  coinIds?: Array<CoinId2>;
2347
+ experimentalFlag?: ExperimentalFlag;
1779
2348
  };
1780
2349
  export type BatchGetPricesResponse = {
1781
2350
  prices?: Array<BatchGetPricesResponseCoinPrice>;
@@ -1812,6 +2381,9 @@ export namespace price_service {
1812
2381
  address?: string;
1813
2382
  chain?: string;
1814
2383
  };
2384
+ export type ExperimentalFlag = {
2385
+ enablePythSource?: boolean;
2386
+ };
1815
2387
  /**
1816
2388
  * GetPriceResponse is the response for GetPrice.
1817
2389
  */
@@ -1824,6 +2396,7 @@ export namespace price_service {
1824
2396
  * The actual timestamp of the price returned.
1825
2397
  */
1826
2398
  timestamp?: string;
2399
+ source?: string;
1827
2400
  };
1828
2401
  export type ListCoinsResponse2 = {
1829
2402
  coins?: Array<CoinId2>;
@@ -1845,6 +2418,7 @@ export namespace price_service {
1845
2418
  'coinId.address.address'?: string;
1846
2419
  'coinId.address.chain'?: string;
1847
2420
  source?: string;
2421
+ 'experimentalFlag.enablePythSource'?: boolean;
1848
2422
  };
1849
2423
  url: '/api/v1/prices';
1850
2424
  };
@@ -1983,7 +2557,11 @@ export namespace processor_service {
1983
2557
  referenceProjectId?: string;
1984
2558
  warnings?: Array<string>;
1985
2559
  pause?: boolean;
2560
+ pauseAt?: string;
2561
+ pauseReason?: string;
1986
2562
  networkOverrides?: Array<NetworkOverride>;
2563
+ driverVersion?: string;
2564
+ numWorkers?: string;
1987
2565
  };
1988
2566
  export type GetProcessorStatusResponseProcessorStatus = {
1989
2567
  state?: GetProcessorStatusResponseProcessorStatusState;
@@ -2051,12 +2629,37 @@ export namespace processor_service {
2051
2629
  eventlogMigrateStatus?: number;
2052
2630
  eventlogVersion?: number;
2053
2631
  pause?: boolean;
2632
+ pauseAt?: string;
2633
+ pauseReason?: string;
2054
2634
  entitySchemaVersion?: number;
2635
+ driverVersion?: number;
2636
+ numWorkers?: number;
2637
+ isBinary?: boolean;
2638
+ chainId?: string;
2639
+ requiredChains?: Array<string>;
2055
2640
  };
2056
2641
  export type ProcessorVersionState = 'UNKNOWN' | 'PENDING' | 'ACTIVE' | 'OBSOLETE';
2057
2642
  export type UpdateChainProcessorStatusResponse = {
2058
2643
  [key: string]: unknown;
2059
2644
  };
2645
+ export type ActivatePendingVersionData = {
2646
+ body?: never;
2647
+ path: {
2648
+ owner: string;
2649
+ slug: string;
2650
+ };
2651
+ query?: never;
2652
+ url: '/api/v1/processors/{owner}/{slug}/activate_pending';
2653
+ };
2654
+ export type ActivatePendingVersionResponses = {
2655
+ /**
2656
+ * A successful response.
2657
+ */
2658
+ 200: {
2659
+ [key: string]: unknown;
2660
+ };
2661
+ };
2662
+ export type ActivatePendingVersionResponse = ActivatePendingVersionResponses[keyof ActivatePendingVersionResponses];
2060
2663
  export type GetProcessorStatusV2Data = {
2061
2664
  body?: never;
2062
2665
  path: {
@@ -2163,12 +2766,6 @@ export namespace solidity_service {
2163
2766
  error?: string;
2164
2767
  reason?: string;
2165
2768
  };
2166
- export type FetchAndCompileInternalResponse = {
2167
- compiledAddresses?: Array<string>;
2168
- failures?: {
2169
- [key: string]: Failure;
2170
- };
2171
- };
2172
2769
  export type Fork = {
2173
2770
  id?: string;
2174
2771
  type?: ForkType;
@@ -2369,7 +2966,7 @@ export namespace solidity_service {
2369
2966
  export type SolidityApiServiceSimulateTransactionOnForkBody = {
2370
2967
  simulation: Simulation;
2371
2968
  };
2372
- export type SourceFetcherType = 'ETHERSCAN' | 'BLOCKSCOUT' | 'OKLINK';
2969
+ export type SourceFetcherType = 'ETHERSCAN' | 'BLOCKSCOUT' | 'OKLINK' | 'ETHERSCAN_V2';
2373
2970
  export type SourceInfo = {
2374
2971
  contractName?: string;
2375
2972
  options?: CompilerOptions;
@@ -2674,7 +3271,7 @@ export namespace solidity_service {
2674
3271
 
2675
3272
  export namespace web_service {
2676
3273
  export type Chart = {
2677
- type?: ChartChartType;
3274
+ type?: ChartType2;
2678
3275
  queries?: Array<common.Query>;
2679
3276
  formulas?: Array<common.Formula>;
2680
3277
  config?: ChartConfig;
@@ -2686,8 +3283,9 @@ export namespace web_service {
2686
3283
  retentionQuery?: common.RetentionQuery;
2687
3284
  sqlQuery?: string;
2688
3285
  sqlQueryId?: string;
3286
+ sqlExecuteEngine?: analytic_service.ExecuteEngine;
3287
+ enableExperimentalFeatures?: boolean;
2689
3288
  };
2690
- export type ChartChartType = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER';
2691
3289
  export type ChartDataSourceType = 'METRICS' | 'NOTES' | 'ANALYTICS' | 'INSIGHTS' | 'EVENTS' | 'RETENTION' | 'SQL';
2692
3290
  export type ChartConfig = {
2693
3291
  yAxis?: ChartConfigYAxisConfig;
@@ -2702,6 +3300,8 @@ export namespace web_service {
2702
3300
  xAxis?: ChartConfigXAxisConfig;
2703
3301
  labelConfig?: ChartConfigLabelConfig;
2704
3302
  scatterConfig?: ChartConfigScatterConfig;
3303
+ seriesConfig?: ChartConfigSeriesConfig;
3304
+ dataConfig?: ChartConfigDataConfig;
2705
3305
  };
2706
3306
  export type ChartConfigBarGaugeConfig = {
2707
3307
  direction?: ChartConfigDirection;
@@ -2721,9 +3321,13 @@ export namespace web_service {
2721
3321
  export type ChartConfigCompareTime = {
2722
3322
  ago?: common.Duration;
2723
3323
  };
3324
+ export type ChartConfigDataConfig = {
3325
+ seriesLimit?: number;
3326
+ };
2724
3327
  export type ChartConfigDirection = 'HORIZONTAL' | 'VERTICAL';
2725
3328
  export type ChartConfigLabelConfig = {
2726
3329
  columns?: Array<ChartConfigLabelConfigColumn>;
3330
+ alias?: string;
2727
3331
  };
2728
3332
  export type ChartConfigLabelConfigColumn = {
2729
3333
  name?: string;
@@ -2732,6 +3336,7 @@ export namespace web_service {
2732
3336
  };
2733
3337
  export type ChartConfigLineConfig = {
2734
3338
  style?: ChartConfigLineConfigStyle;
3339
+ smooth?: boolean;
2735
3340
  };
2736
3341
  export type ChartConfigLineConfigStyle = 'Solid' | 'Dotted';
2737
3342
  export type ChartConfigMappingRule = {
@@ -2753,6 +3358,7 @@ export namespace web_service {
2753
3358
  showPercent?: boolean;
2754
3359
  showValue?: boolean;
2755
3360
  calculation?: ChartConfigCalculation;
3361
+ absValue?: boolean;
2756
3362
  };
2757
3363
  export type ChartConfigPieConfigPieType = 'Pie' | 'Donut';
2758
3364
  export type ChartConfigQueryValueConfig = {
@@ -2763,6 +3369,17 @@ export namespace web_service {
2763
3369
  };
2764
3370
  export type ChartConfigScatterConfig = {
2765
3371
  symbolSize?: string;
3372
+ color?: string;
3373
+ minSize?: number;
3374
+ maxSize?: number;
3375
+ };
3376
+ export type ChartConfigSeriesConfig = {
3377
+ series?: {
3378
+ [key: string]: ChartConfigSeriesConfigSeries;
3379
+ };
3380
+ };
3381
+ export type ChartConfigSeriesConfigSeries = {
3382
+ type?: ChartType2;
2766
3383
  };
2767
3384
  export type ChartConfigSort = {
2768
3385
  sortBy?: ChartConfigSortBy;
@@ -2803,6 +3420,9 @@ export namespace web_service {
2803
3420
  maxFractionDigits?: number;
2804
3421
  precision?: number;
2805
3422
  currencySymbol?: string;
3423
+ tooltipTotal?: boolean;
3424
+ prefix?: string;
3425
+ suffix?: string;
2806
3426
  };
2807
3427
  export type ChartConfigValueConfigStyle = 'Standard' | 'Compact' | 'Scientific' | 'Percent' | 'Currency' | 'None';
2808
3428
  export type ChartConfigValueFormatter = 'NumberFormatter' | 'DateFormatter' | 'StringFormatter';
@@ -2824,6 +3444,7 @@ export namespace web_service {
2824
3444
  column?: string;
2825
3445
  name?: string;
2826
3446
  };
3447
+ export type ChartType2 = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER';
2827
3448
  export type Dashboard = {
2828
3449
  id?: string;
2829
3450
  name?: string;
@@ -2838,12 +3459,15 @@ export namespace web_service {
2838
3459
  extra?: DashboardExtra;
2839
3460
  sharing?: DashboardSharing;
2840
3461
  default?: boolean;
3462
+ isPinned?: boolean;
2841
3463
  visibility?: DashboardDashboardVisibility;
2842
3464
  ownerId?: string;
2843
3465
  tags?: Array<string>;
2844
3466
  url?: string;
2845
3467
  projectOwner?: string;
2846
3468
  projectSlug?: string;
3469
+ createPanels?: Array<string>;
3470
+ editPanels?: Array<string>;
2847
3471
  };
2848
3472
  export type DashboardDashboardVisibility = 'INTERNAL' | 'PRIVATE' | 'PUBLIC';
2849
3473
  export type DashboardExtra = {
@@ -2878,11 +3502,30 @@ export namespace web_service {
2878
3502
  [key: string]: DashboardLayouts;
2879
3503
  };
2880
3504
  };
3505
+ export type DashboardHistory = {
3506
+ id?: number;
3507
+ dashboardId?: string;
3508
+ version?: number;
3509
+ name?: string;
3510
+ description?: string;
3511
+ projectId?: string;
3512
+ layouts?: DashboardResponsiveLayouts;
3513
+ extra?: DashboardExtra;
3514
+ tags?: Array<string>;
3515
+ url?: string;
3516
+ default?: boolean;
3517
+ isPinned?: boolean;
3518
+ ownerId?: string;
3519
+ visibility?: DashboardDashboardVisibility;
3520
+ createdAt?: string;
3521
+ createdById?: string;
3522
+ };
2881
3523
  export type DashboardSharing = {
2882
3524
  id?: string;
2883
3525
  dashboardId?: string;
2884
3526
  isPublic?: boolean;
2885
3527
  viewers?: Array<string>;
3528
+ config?: SharingConfig;
2886
3529
  };
2887
3530
  export type EventLogsConfig = {
2888
3531
  columnsConfig?: common.EventLogConfig;
@@ -2899,19 +3542,14 @@ export namespace web_service {
2899
3542
  [key: string]: unknown;
2900
3543
  };
2901
3544
  };
3545
+ export type GetDashboardHistoryResponse = {
3546
+ histories?: Array<DashboardHistory>;
3547
+ total?: number;
3548
+ };
2902
3549
  export type GetDashboardResponse = {
2903
3550
  dashboards?: Array<Dashboard>;
2904
3551
  permissions?: Array<common.Permission>;
2905
3552
  };
2906
- export type GetProjectListResponse = {
2907
- projects?: Array<common.Project>;
2908
- sharedProjects?: Array<common.Project>;
2909
- orgProjects?: Array<common.Project>;
2910
- };
2911
- export type GetProjectResponse = {
2912
- project?: common.Project;
2913
- permissions?: Array<common.Permission>;
2914
- };
2915
3553
  export type ImportDashboardRequest = {
2916
3554
  /**
2917
3555
  * The id of the target dashboard to import into.
@@ -2931,6 +3569,9 @@ export namespace web_service {
2931
3569
  export type ImportDashboardResponse = {
2932
3570
  dashboard?: Dashboard;
2933
3571
  };
3572
+ export type LinkAccountSession = {
3573
+ sessionId?: string;
3574
+ };
2934
3575
  export type Note = {
2935
3576
  content?: string;
2936
3577
  fontSize?: NoteFontSize;
@@ -2947,6 +3588,12 @@ export namespace web_service {
2947
3588
  name?: string;
2948
3589
  dashboardId?: string;
2949
3590
  chart?: Chart;
3591
+ creator?: common.UserInfo;
3592
+ updater?: common.UserInfo;
3593
+ };
3594
+ export type SharingConfig = {
3595
+ isReadonly?: boolean;
3596
+ hideModifiers?: boolean;
2950
3597
  };
2951
3598
  export type ListDashboardsData = {
2952
3599
  body?: never;
@@ -3053,59 +3700,39 @@ export namespace web_service {
3053
3700
  200: GetDashboardResponse;
3054
3701
  };
3055
3702
  export type GetDashboardResponse2 = GetDashboardResponses[keyof GetDashboardResponses];
3056
- export type ExportDashboardData = {
3703
+ export type GetDashboardHistoryData = {
3057
3704
  body?: never;
3058
3705
  path: {
3059
3706
  dashboardId: string;
3060
3707
  };
3061
- query?: never;
3062
- url: '/api/v1/dashboards/{dashboardId}/json';
3708
+ query?: {
3709
+ limit?: number;
3710
+ offset?: number;
3711
+ };
3712
+ url: '/api/v1/dashboards/{dashboardId}/history';
3063
3713
  };
3064
- export type ExportDashboardResponses = {
3714
+ export type GetDashboardHistoryResponses = {
3065
3715
  /**
3066
3716
  * A successful response.
3067
3717
  */
3068
- 200: ExportDashboardResponse;
3718
+ 200: GetDashboardHistoryResponse;
3069
3719
  };
3070
- export type ExportDashboardResponse2 = ExportDashboardResponses[keyof ExportDashboardResponses];
3071
- export type GetProjectData = {
3720
+ export type GetDashboardHistoryResponse2 = GetDashboardHistoryResponses[keyof GetDashboardHistoryResponses];
3721
+ export type ExportDashboardData = {
3072
3722
  body?: never;
3073
3723
  path: {
3074
- /**
3075
- * username or organization name
3076
- */
3077
- owner: string;
3078
- /**
3079
- * project slug
3080
- */
3081
- slug: string;
3724
+ dashboardId: string;
3082
3725
  };
3083
3726
  query?: never;
3084
- url: '/api/v1/project/{owner}/{slug}';
3085
- };
3086
- export type GetProjectResponses = {
3087
- /**
3088
- * A successful response.
3089
- */
3090
- 200: GetProjectResponse;
3091
- };
3092
- export type GetProjectResponse2 = GetProjectResponses[keyof GetProjectResponses];
3093
- export type GetProjectListData = {
3094
- body?: never;
3095
- path?: never;
3096
- query?: {
3097
- userId?: string;
3098
- organizationId?: string;
3099
- };
3100
- url: '/api/v1/projects';
3727
+ url: '/api/v1/dashboards/{dashboardId}/json';
3101
3728
  };
3102
- export type GetProjectListResponses = {
3729
+ export type ExportDashboardResponses = {
3103
3730
  /**
3104
3731
  * A successful response.
3105
3732
  */
3106
- 200: GetProjectListResponse;
3733
+ 200: ExportDashboardResponse;
3107
3734
  };
3108
- export type GetProjectListResponse2 = GetProjectListResponses[keyof GetProjectListResponses];
3735
+ export type ExportDashboardResponse2 = ExportDashboardResponses[keyof ExportDashboardResponses];
3109
3736
  export type ListDashboards2Data = {
3110
3737
  body?: never;
3111
3738
  path: {
@@ -3168,6 +3795,19 @@ export namespace web_service {
3168
3795
  200: GetDashboardResponse;
3169
3796
  };
3170
3797
  export type GetDashboard2Response = GetDashboard2Responses[keyof GetDashboard2Responses];
3798
+ export type CreateLinkSessionData = {
3799
+ body?: never;
3800
+ path?: never;
3801
+ query?: never;
3802
+ url: '/api/v1/users/link';
3803
+ };
3804
+ export type CreateLinkSessionResponses = {
3805
+ /**
3806
+ * A successful response.
3807
+ */
3808
+ 200: LinkAccountSession;
3809
+ };
3810
+ export type CreateLinkSessionResponse = CreateLinkSessionResponses[keyof CreateLinkSessionResponses];
3171
3811
  }
3172
3812
 
3173
3813
  export namespace solidit_service {
@@ -3193,5 +3833,5 @@ export namespace solidit_service {
3193
3833
  }
3194
3834
 
3195
3835
  export type ClientOptions = {
3196
- baseUrl: 'https://app.sentio.xyz' | (string & {});
3836
+ baseUrl: 'https://api.sentio.xyz' | (string & {});
3197
3837
  };