@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/dist/src/client.gen.js +1 -1
- package/dist/src/sdk.gen.d.ts +79 -13
- package/dist/src/sdk.gen.js +307 -21
- package/dist/src/sdk.gen.js.map +1 -1
- package/dist/src/types.gen.d.ts +742 -104
- package/package.json +1 -1
- package/src/client.gen.ts +1 -1
- package/src/sdk.gen.ts +322 -23
- package/src/types.gen.ts +744 -104
package/package.json
CHANGED
package/src/client.gen.ts
CHANGED
|
@@ -14,5 +14,5 @@ import { type Config, type ClientOptions as DefaultClientOptions, createClient,
|
|
|
14
14
|
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
|
|
15
15
|
|
|
16
16
|
export const client = createClient(createConfig<ClientOptions>({
|
|
17
|
-
baseUrl: 'https://
|
|
17
|
+
baseUrl: 'https://api.sentio.xyz'
|
|
18
18
|
}));
|
package/src/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
4
|
-
import type { alert_service, analytic_service, web_service, insights_service, metrics_service,
|
|
4
|
+
import type { ai_service, alert_service, analytic_service, web_service, insights_service, metrics_service, google, move_service, price_service, processor_service, solidity_service, solidit_service } from './types.gen';
|
|
5
5
|
import { client as _heyApiClient } from './client.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
@@ -18,6 +18,83 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
18
18
|
meta?: Record<string, unknown>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export class AiService {
|
|
22
|
+
/**
|
|
23
|
+
* Create Chat Session
|
|
24
|
+
* Initialize a new AI chat session. Returns a session_id that can be used with PostSessionMessage to have a conversation with the AI. Messages are generated as part of runs, with is_final indicating run completion.
|
|
25
|
+
*/
|
|
26
|
+
public static createChatSession<ThrowOnError extends boolean = false>(options: Options<ai_service.CreateChatSessionData, ThrowOnError>) {
|
|
27
|
+
return (options.client ?? _heyApiClient).post<ai_service.CreateChatSessionResponse2, unknown, ThrowOnError>({
|
|
28
|
+
security: [
|
|
29
|
+
{
|
|
30
|
+
name: 'api-key',
|
|
31
|
+
type: 'apiKey'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
in: 'query',
|
|
35
|
+
name: 'api-key',
|
|
36
|
+
type: 'apiKey'
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
url: '/api/v1/ai/chat',
|
|
40
|
+
...options,
|
|
41
|
+
headers: {
|
|
42
|
+
'Content-Type': 'application/json',
|
|
43
|
+
...options?.headers
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Query Chat Session
|
|
50
|
+
* Retrieve information about an existing chat session, returning only messages after the specified cursor position. Messages include run_id to identify generation runs.
|
|
51
|
+
*/
|
|
52
|
+
public static queryChatSession<ThrowOnError extends boolean = false>(options: Options<ai_service.QueryChatSessionData, ThrowOnError>) {
|
|
53
|
+
return (options.client ?? _heyApiClient).get<ai_service.QueryChatSessionResponse, unknown, ThrowOnError>({
|
|
54
|
+
security: [
|
|
55
|
+
{
|
|
56
|
+
name: 'api-key',
|
|
57
|
+
type: 'apiKey'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
in: 'query',
|
|
61
|
+
name: 'api-key',
|
|
62
|
+
type: 'apiKey'
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
url: '/api/v1/ai/chat/{sessionId}',
|
|
66
|
+
...options
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Post Session Message
|
|
72
|
+
* Add a new message to an existing chat session. This will trigger AI message generation as a run. check is_final to know when all messages for the run have been generated.
|
|
73
|
+
*/
|
|
74
|
+
public static postSessionMessage<ThrowOnError extends boolean = false>(options: Options<ai_service.PostSessionMessageData, ThrowOnError>) {
|
|
75
|
+
return (options.client ?? _heyApiClient).post<ai_service.PostSessionMessageResponse2, unknown, ThrowOnError>({
|
|
76
|
+
security: [
|
|
77
|
+
{
|
|
78
|
+
name: 'api-key',
|
|
79
|
+
type: 'apiKey'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
in: 'query',
|
|
83
|
+
name: 'api-key',
|
|
84
|
+
type: 'apiKey'
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
url: '/api/v1/ai/chat/{sessionId}/message',
|
|
88
|
+
...options,
|
|
89
|
+
headers: {
|
|
90
|
+
'Content-Type': 'application/json',
|
|
91
|
+
...options?.headers
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
|
|
21
98
|
export class AlertsService {
|
|
22
99
|
/**
|
|
23
100
|
* Save an alert rule
|
|
@@ -135,6 +212,76 @@ export class AlertsService {
|
|
|
135
212
|
}
|
|
136
213
|
|
|
137
214
|
export class DataService {
|
|
215
|
+
/**
|
|
216
|
+
* Save Sharing SQL
|
|
217
|
+
* Save or update sharing settings for a SQL query.
|
|
218
|
+
*/
|
|
219
|
+
public static saveSharingSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.SaveSharingSqlData, ThrowOnError>) {
|
|
220
|
+
return (options.client ?? _heyApiClient).post<analytic_service.SaveSharingSqlResponse2, unknown, ThrowOnError>({
|
|
221
|
+
security: [
|
|
222
|
+
{
|
|
223
|
+
name: 'api-key',
|
|
224
|
+
type: 'apiKey'
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
in: 'query',
|
|
228
|
+
name: 'api-key',
|
|
229
|
+
type: 'apiKey'
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
url: '/api/v1/analytics/sql/sharing',
|
|
233
|
+
...options,
|
|
234
|
+
headers: {
|
|
235
|
+
'Content-Type': 'application/json',
|
|
236
|
+
...options?.headers
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Get Sharing SQL
|
|
243
|
+
* Get sharing settings for a SQL query.
|
|
244
|
+
*/
|
|
245
|
+
public static getSharingSql<ThrowOnError extends boolean = false>(options: Options<analytic_service.GetSharingSqlData, ThrowOnError>) {
|
|
246
|
+
return (options.client ?? _heyApiClient).get<analytic_service.GetSharingSqlResponse2, unknown, ThrowOnError>({
|
|
247
|
+
security: [
|
|
248
|
+
{
|
|
249
|
+
name: 'api-key',
|
|
250
|
+
type: 'apiKey'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
in: 'query',
|
|
254
|
+
name: 'api-key',
|
|
255
|
+
type: 'apiKey'
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
url: '/api/v1/analytics/sql/sharing/{id}',
|
|
259
|
+
...options
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Query Tables
|
|
265
|
+
* Query tables in a project. use flag to control which type of tables to include.
|
|
266
|
+
*/
|
|
267
|
+
public static queryTables2<ThrowOnError extends boolean = false>(options?: Options<analytic_service.QueryTables2Data, ThrowOnError>) {
|
|
268
|
+
return (options?.client ?? _heyApiClient).get<analytic_service.QueryTables2Response, unknown, ThrowOnError>({
|
|
269
|
+
security: [
|
|
270
|
+
{
|
|
271
|
+
name: 'api-key',
|
|
272
|
+
type: 'apiKey'
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
in: 'query',
|
|
276
|
+
name: 'api-key',
|
|
277
|
+
type: 'apiKey'
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
url: '/api/v1/analytics/sql/tables',
|
|
281
|
+
...options
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
138
285
|
/**
|
|
139
286
|
* Cancel SQL Query
|
|
140
287
|
* Cancel a SQL query by execution_id.
|
|
@@ -401,6 +548,28 @@ export class DataService {
|
|
|
401
548
|
});
|
|
402
549
|
}
|
|
403
550
|
|
|
551
|
+
/**
|
|
552
|
+
* Query Tables
|
|
553
|
+
* Query tables in a project. use flag to control which type of tables to include.
|
|
554
|
+
*/
|
|
555
|
+
public static queryTables<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryTablesData, ThrowOnError>) {
|
|
556
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QueryTablesResponse2, unknown, ThrowOnError>({
|
|
557
|
+
security: [
|
|
558
|
+
{
|
|
559
|
+
name: 'api-key',
|
|
560
|
+
type: 'apiKey'
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
in: 'query',
|
|
564
|
+
name: 'api-key',
|
|
565
|
+
type: 'apiKey'
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
url: '/api/v1/analytics/{owner}/{slug}/sql/tables',
|
|
569
|
+
...options
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
|
|
404
573
|
/**
|
|
405
574
|
* Query event logs
|
|
406
575
|
*/
|
|
@@ -591,6 +760,92 @@ export class DataService {
|
|
|
591
760
|
});
|
|
592
761
|
}
|
|
593
762
|
|
|
763
|
+
/**
|
|
764
|
+
* Query Table By Name
|
|
765
|
+
* Query table schema by name.
|
|
766
|
+
*/
|
|
767
|
+
public static queryTable2<ThrowOnError extends boolean = false>(options?: Options<analytic_service.QueryTable2Data, ThrowOnError>) {
|
|
768
|
+
return (options?.client ?? _heyApiClient).get<analytic_service.QueryTable2Response, unknown, ThrowOnError>({
|
|
769
|
+
security: [
|
|
770
|
+
{
|
|
771
|
+
name: 'api-key',
|
|
772
|
+
type: 'apiKey'
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
in: 'query',
|
|
776
|
+
name: 'api-key',
|
|
777
|
+
type: 'apiKey'
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
url: '/api/v1/sql/table',
|
|
781
|
+
...options
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* List Tables
|
|
787
|
+
*/
|
|
788
|
+
public static listTables2<ThrowOnError extends boolean = false>(options?: Options<analytic_service.ListTables2Data, ThrowOnError>) {
|
|
789
|
+
return (options?.client ?? _heyApiClient).get<analytic_service.ListTables2Response, unknown, ThrowOnError>({
|
|
790
|
+
security: [
|
|
791
|
+
{
|
|
792
|
+
name: 'api-key',
|
|
793
|
+
type: 'apiKey'
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
in: 'query',
|
|
797
|
+
name: 'api-key',
|
|
798
|
+
type: 'apiKey'
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
url: '/api/v1/sql/tables',
|
|
802
|
+
...options
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Query Table By Name
|
|
808
|
+
* Query table schema by name.
|
|
809
|
+
*/
|
|
810
|
+
public static queryTable<ThrowOnError extends boolean = false>(options: Options<analytic_service.QueryTableData, ThrowOnError>) {
|
|
811
|
+
return (options.client ?? _heyApiClient).get<analytic_service.QueryTableResponse2, unknown, ThrowOnError>({
|
|
812
|
+
security: [
|
|
813
|
+
{
|
|
814
|
+
name: 'api-key',
|
|
815
|
+
type: 'apiKey'
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
in: 'query',
|
|
819
|
+
name: 'api-key',
|
|
820
|
+
type: 'apiKey'
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
url: '/api/v1/sql/{owner}/{slug}/table/{name}',
|
|
824
|
+
...options
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* List Tables
|
|
830
|
+
*/
|
|
831
|
+
public static listTables<ThrowOnError extends boolean = false>(options: Options<analytic_service.ListTablesData, ThrowOnError>) {
|
|
832
|
+
return (options.client ?? _heyApiClient).get<analytic_service.ListTablesResponse2, unknown, ThrowOnError>({
|
|
833
|
+
security: [
|
|
834
|
+
{
|
|
835
|
+
name: 'api-key',
|
|
836
|
+
type: 'apiKey'
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
in: 'query',
|
|
840
|
+
name: 'api-key',
|
|
841
|
+
type: 'apiKey'
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
url: '/api/v1/sql/{owner}/{slug}/tables',
|
|
845
|
+
...options
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
|
|
594
849
|
}
|
|
595
850
|
|
|
596
851
|
export class WebService {
|
|
@@ -682,6 +937,27 @@ export class WebService {
|
|
|
682
937
|
});
|
|
683
938
|
}
|
|
684
939
|
|
|
940
|
+
/**
|
|
941
|
+
* Get dashboard history by dashboard id
|
|
942
|
+
*/
|
|
943
|
+
public static getDashboardHistory<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboardHistoryData, ThrowOnError>) {
|
|
944
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboardHistoryResponse2, unknown, ThrowOnError>({
|
|
945
|
+
security: [
|
|
946
|
+
{
|
|
947
|
+
name: 'api-key',
|
|
948
|
+
type: 'apiKey'
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
in: 'query',
|
|
952
|
+
name: 'api-key',
|
|
953
|
+
type: 'apiKey'
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
url: '/api/v1/dashboards/{dashboardId}/history',
|
|
957
|
+
...options
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
|
|
685
961
|
/**
|
|
686
962
|
* Export a dashboard to json
|
|
687
963
|
*/
|
|
@@ -704,10 +980,10 @@ export class WebService {
|
|
|
704
980
|
}
|
|
705
981
|
|
|
706
982
|
/**
|
|
707
|
-
*
|
|
983
|
+
* List all dashboards in a project
|
|
708
984
|
*/
|
|
709
|
-
public static
|
|
710
|
-
return (options.client ?? _heyApiClient).get<web_service.
|
|
985
|
+
public static listDashboards2<ThrowOnError extends boolean = false>(options: Options<web_service.ListDashboards2Data, ThrowOnError>) {
|
|
986
|
+
return (options.client ?? _heyApiClient).get<web_service.ListDashboards2Response, unknown, ThrowOnError>({
|
|
711
987
|
security: [
|
|
712
988
|
{
|
|
713
989
|
name: 'api-key',
|
|
@@ -719,16 +995,16 @@ export class WebService {
|
|
|
719
995
|
type: 'apiKey'
|
|
720
996
|
}
|
|
721
997
|
],
|
|
722
|
-
url: '/api/v1/
|
|
998
|
+
url: '/api/v1/projects/{owner}/{slug}/dashboards',
|
|
723
999
|
...options
|
|
724
1000
|
});
|
|
725
1001
|
}
|
|
726
1002
|
|
|
727
1003
|
/**
|
|
728
|
-
* Get
|
|
1004
|
+
* Get a dashboard by id
|
|
729
1005
|
*/
|
|
730
|
-
public static
|
|
731
|
-
return (options.client ?? _heyApiClient).get<
|
|
1006
|
+
public static getDashboard2<ThrowOnError extends boolean = false>(options: Options<web_service.GetDashboard2Data, ThrowOnError>) {
|
|
1007
|
+
return (options.client ?? _heyApiClient).get<web_service.GetDashboard2Response, unknown, ThrowOnError>({
|
|
732
1008
|
security: [
|
|
733
1009
|
{
|
|
734
1010
|
name: 'api-key',
|
|
@@ -740,16 +1016,13 @@ export class WebService {
|
|
|
740
1016
|
type: 'apiKey'
|
|
741
1017
|
}
|
|
742
1018
|
],
|
|
743
|
-
url: '/api/v1/
|
|
1019
|
+
url: '/api/v1/projects/{owner}/{slug}/dashboards/{dashboardId}',
|
|
744
1020
|
...options
|
|
745
1021
|
});
|
|
746
1022
|
}
|
|
747
1023
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
*/
|
|
751
|
-
public static getProjectList<ThrowOnError extends boolean = false>(options?: Options<web_service.GetProjectListData, ThrowOnError>) {
|
|
752
|
-
return (options?.client ?? _heyApiClient).get<web_service.GetProjectListResponse2, unknown, ThrowOnError>({
|
|
1024
|
+
public static createLinkSession<ThrowOnError extends boolean = false>(options?: Options<web_service.CreateLinkSessionData, ThrowOnError>) {
|
|
1025
|
+
return (options?.client ?? _heyApiClient).get<web_service.CreateLinkSessionResponse, unknown, ThrowOnError>({
|
|
753
1026
|
security: [
|
|
754
1027
|
{
|
|
755
1028
|
name: 'api-key',
|
|
@@ -761,16 +1034,20 @@ export class WebService {
|
|
|
761
1034
|
type: 'apiKey'
|
|
762
1035
|
}
|
|
763
1036
|
],
|
|
764
|
-
url: '/api/v1/
|
|
1037
|
+
url: '/api/v1/users/link',
|
|
765
1038
|
...options
|
|
766
1039
|
});
|
|
767
1040
|
}
|
|
768
1041
|
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export class MoveService {
|
|
769
1045
|
/**
|
|
770
|
-
*
|
|
1046
|
+
* Get Aptos transaction call trace
|
|
1047
|
+
* Retrieves the detailed call trace for an Aptos transaction
|
|
771
1048
|
*/
|
|
772
|
-
public static
|
|
773
|
-
return (options
|
|
1049
|
+
public static getCallTrace<ThrowOnError extends boolean = false>(options?: Options<google.GetCallTraceData, ThrowOnError>) {
|
|
1050
|
+
return (options?.client ?? _heyApiClient).get<google.GetCallTraceResponse, unknown, ThrowOnError>({
|
|
774
1051
|
security: [
|
|
775
1052
|
{
|
|
776
1053
|
name: 'api-key',
|
|
@@ -782,16 +1059,17 @@ export class WebService {
|
|
|
782
1059
|
type: 'apiKey'
|
|
783
1060
|
}
|
|
784
1061
|
],
|
|
785
|
-
url: '/api/v1/
|
|
1062
|
+
url: '/api/v1/move/call_trace',
|
|
786
1063
|
...options
|
|
787
1064
|
});
|
|
788
1065
|
}
|
|
789
1066
|
|
|
790
1067
|
/**
|
|
791
|
-
* Get
|
|
1068
|
+
* Get Sui transaction call trace
|
|
1069
|
+
* Retrieves the detailed call trace for a Sui transaction
|
|
792
1070
|
*/
|
|
793
|
-
public static
|
|
794
|
-
return (options
|
|
1071
|
+
public static getSuiCallTrace<ThrowOnError extends boolean = false>(options?: Options<move_service.GetSuiCallTraceData, ThrowOnError>) {
|
|
1072
|
+
return (options?.client ?? _heyApiClient).get<move_service.GetSuiCallTraceResponse2, unknown, ThrowOnError>({
|
|
795
1073
|
security: [
|
|
796
1074
|
{
|
|
797
1075
|
name: 'api-key',
|
|
@@ -803,7 +1081,7 @@ export class WebService {
|
|
|
803
1081
|
type: 'apiKey'
|
|
804
1082
|
}
|
|
805
1083
|
],
|
|
806
|
-
url: '/api/v1/
|
|
1084
|
+
url: '/api/v1/move/sui_call_trace',
|
|
807
1085
|
...options
|
|
808
1086
|
});
|
|
809
1087
|
}
|
|
@@ -938,6 +1216,27 @@ export class PriceService {
|
|
|
938
1216
|
}
|
|
939
1217
|
|
|
940
1218
|
export class ProcessorService {
|
|
1219
|
+
/**
|
|
1220
|
+
* activate the pending version of a processor
|
|
1221
|
+
*/
|
|
1222
|
+
public static activatePendingVersion<ThrowOnError extends boolean = false>(options: Options<processor_service.ActivatePendingVersionData, ThrowOnError>) {
|
|
1223
|
+
return (options.client ?? _heyApiClient).put<processor_service.ActivatePendingVersionResponse, unknown, ThrowOnError>({
|
|
1224
|
+
security: [
|
|
1225
|
+
{
|
|
1226
|
+
name: 'api-key',
|
|
1227
|
+
type: 'apiKey'
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
in: 'query',
|
|
1231
|
+
name: 'api-key',
|
|
1232
|
+
type: 'apiKey'
|
|
1233
|
+
}
|
|
1234
|
+
],
|
|
1235
|
+
url: '/api/v1/processors/{owner}/{slug}/activate_pending',
|
|
1236
|
+
...options
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
|
|
941
1240
|
/**
|
|
942
1241
|
* Get processor status
|
|
943
1242
|
*/
|