@sentio/api 1.0.5-rc.8 → 2.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1678 +0,0 @@
1
- "use strict";
2
- // This file is auto-generated by @hey-api/openapi-ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DebugAndSimulationService = exports.ForksService = exports.ProcessorExtService = exports.ProcessorService = exports.PriceService = exports.MoveService = exports.WebService = exports.DataService = exports.AlertsService = exports.AiService = void 0;
5
- const client_gen_1 = require("./client.gen");
6
- class AiService {
7
- /**
8
- * Create Chat Session
9
- * 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.
10
- */
11
- static createChatSession(options) {
12
- return (options.client ?? client_gen_1.client).post({
13
- security: [
14
- {
15
- name: 'api-key',
16
- type: 'apiKey'
17
- },
18
- {
19
- in: 'query',
20
- name: 'api-key',
21
- type: 'apiKey'
22
- }
23
- ],
24
- url: '/v1/ai/chat',
25
- ...options,
26
- headers: {
27
- 'Content-Type': 'application/json',
28
- ...options?.headers
29
- }
30
- });
31
- }
32
- /**
33
- * Query Chat Session
34
- * Retrieve information about an existing chat session, returning only messages after the specified cursor position. Messages include run_id to identify generation runs.
35
- */
36
- static queryChatSession(options) {
37
- return (options.client ?? client_gen_1.client).get({
38
- security: [
39
- {
40
- name: 'api-key',
41
- type: 'apiKey'
42
- },
43
- {
44
- in: 'query',
45
- name: 'api-key',
46
- type: 'apiKey'
47
- }
48
- ],
49
- url: '/v1/ai/chat/{sessionId}',
50
- ...options
51
- });
52
- }
53
- /**
54
- * Post Session Message
55
- * 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.
56
- */
57
- static postSessionMessage(options) {
58
- return (options.client ?? client_gen_1.client).post({
59
- security: [
60
- {
61
- name: 'api-key',
62
- type: 'apiKey'
63
- },
64
- {
65
- in: 'query',
66
- name: 'api-key',
67
- type: 'apiKey'
68
- }
69
- ],
70
- url: '/v1/ai/chat/{sessionId}/message',
71
- ...options,
72
- headers: {
73
- 'Content-Type': 'application/json',
74
- ...options?.headers
75
- }
76
- });
77
- }
78
- /**
79
- * Healthz provides a health check endpoint for monitoring
80
- */
81
- static healthz(options) {
82
- return (options?.client ?? client_gen_1.client).get({
83
- security: [
84
- {
85
- name: 'api-key',
86
- type: 'apiKey'
87
- },
88
- {
89
- in: 'query',
90
- name: 'api-key',
91
- type: 'apiKey'
92
- }
93
- ],
94
- url: '/v1/ai/healthz',
95
- ...options
96
- });
97
- }
98
- }
99
- exports.AiService = AiService;
100
- class AlertsService {
101
- /**
102
- * Save an alert rule
103
- */
104
- static saveAlertRule(options) {
105
- return (options.client ?? client_gen_1.client).post({
106
- security: [
107
- {
108
- name: 'api-key',
109
- type: 'apiKey'
110
- },
111
- {
112
- in: 'query',
113
- name: 'api-key',
114
- type: 'apiKey'
115
- }
116
- ],
117
- url: '/v1/alerts/rule',
118
- ...options,
119
- headers: {
120
- 'Content-Type': 'application/json',
121
- ...options?.headers
122
- }
123
- });
124
- }
125
- /**
126
- * List all alert rules for a project
127
- */
128
- static getAlertRules(options) {
129
- return (options.client ?? client_gen_1.client).get({
130
- security: [
131
- {
132
- name: 'api-key',
133
- type: 'apiKey'
134
- },
135
- {
136
- in: 'query',
137
- name: 'api-key',
138
- type: 'apiKey'
139
- }
140
- ],
141
- url: '/v1/alerts/rule/project/{projectId}',
142
- ...options
143
- });
144
- }
145
- /**
146
- * Delete an alert rule
147
- */
148
- static deleteAlertRule(options) {
149
- return (options.client ?? client_gen_1.client).delete({
150
- security: [
151
- {
152
- name: 'api-key',
153
- type: 'apiKey'
154
- },
155
- {
156
- in: 'query',
157
- name: 'api-key',
158
- type: 'apiKey'
159
- }
160
- ],
161
- url: '/v1/alerts/rule/{id}',
162
- ...options
163
- });
164
- }
165
- /**
166
- * Save an alert rule
167
- */
168
- static saveAlertRule2(options) {
169
- return (options.client ?? client_gen_1.client).put({
170
- security: [
171
- {
172
- name: 'api-key',
173
- type: 'apiKey'
174
- },
175
- {
176
- in: 'query',
177
- name: 'api-key',
178
- type: 'apiKey'
179
- }
180
- ],
181
- url: '/v1/alerts/rule/{id}',
182
- ...options,
183
- headers: {
184
- 'Content-Type': 'application/json',
185
- ...options?.headers
186
- }
187
- });
188
- }
189
- /**
190
- * Find an alert rule by id, and list all alerts for this rule
191
- */
192
- static getAlert(options) {
193
- return (options.client ?? client_gen_1.client).get({
194
- security: [
195
- {
196
- name: 'api-key',
197
- type: 'apiKey'
198
- },
199
- {
200
- in: 'query',
201
- name: 'api-key',
202
- type: 'apiKey'
203
- }
204
- ],
205
- url: '/v1/alerts/{ruleId}',
206
- ...options
207
- });
208
- }
209
- }
210
- exports.AlertsService = AlertsService;
211
- class DataService {
212
- /**
213
- * Save Sharing SQL
214
- * Save or update sharing settings for a SQL query.
215
- */
216
- static saveSharingSql(options) {
217
- return (options.client ?? client_gen_1.client).post({
218
- security: [
219
- {
220
- name: 'api-key',
221
- type: 'apiKey'
222
- },
223
- {
224
- in: 'query',
225
- name: 'api-key',
226
- type: 'apiKey'
227
- }
228
- ],
229
- url: '/v1/analytics/sql/sharing',
230
- ...options,
231
- headers: {
232
- 'Content-Type': 'application/json',
233
- ...options?.headers
234
- }
235
- });
236
- }
237
- /**
238
- * Get Sharing SQL
239
- * Get sharing settings for a SQL query.
240
- */
241
- static getSharingSql(options) {
242
- return (options.client ?? client_gen_1.client).get({
243
- security: [
244
- {
245
- name: 'api-key',
246
- type: 'apiKey'
247
- },
248
- {
249
- in: 'query',
250
- name: 'api-key',
251
- type: 'apiKey'
252
- }
253
- ],
254
- url: '/v1/analytics/sql/sharing/{id}',
255
- ...options
256
- });
257
- }
258
- /**
259
- * Query Tables
260
- * Query tables in a project. use flag to control which type of tables to include.
261
- */
262
- static queryTables2(options) {
263
- return (options?.client ?? client_gen_1.client).get({
264
- security: [
265
- {
266
- name: 'api-key',
267
- type: 'apiKey'
268
- },
269
- {
270
- in: 'query',
271
- name: 'api-key',
272
- type: 'apiKey'
273
- }
274
- ],
275
- url: '/v1/analytics/sql/tables',
276
- ...options
277
- });
278
- }
279
- /**
280
- * Cancel SQL Query
281
- * Cancel a SQL query by execution_id.
282
- */
283
- static cancelSqlQuery(options) {
284
- return (options.client ?? client_gen_1.client).put({
285
- security: [
286
- {
287
- name: 'api-key',
288
- type: 'apiKey'
289
- },
290
- {
291
- in: 'query',
292
- name: 'api-key',
293
- type: 'apiKey'
294
- }
295
- ],
296
- url: '/v1/analytics/{owner}/{slug}/sql/cancel_query/{executionId}',
297
- ...options
298
- });
299
- }
300
- /**
301
- * Execute SQL
302
- * Execute SQL in a project. Go to "Data Studio" -> "SQL Editor", write your query and then click "Export as cURL"
303
- *
304
- * ![screenshot](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/assets/image%20(102).png)
305
- *
306
- * Find more: https://docs.sentio.xyz/reference/data#sql-api
307
- */
308
- static executeSql(options) {
309
- return (options.client ?? client_gen_1.client).post({
310
- security: [
311
- {
312
- name: 'api-key',
313
- type: 'apiKey'
314
- },
315
- {
316
- in: 'query',
317
- name: 'api-key',
318
- type: 'apiKey'
319
- }
320
- ],
321
- url: '/v1/analytics/{owner}/{slug}/sql/execute',
322
- ...options,
323
- headers: {
324
- 'Content-Type': 'application/json',
325
- ...options?.headers
326
- }
327
- });
328
- }
329
- /**
330
- * Execute SQL by Async
331
- * Execute SQL in a project asynchronously.
332
- */
333
- static executeSqlAsync(options) {
334
- return (options.client ?? client_gen_1.client).post({
335
- security: [
336
- {
337
- name: 'api-key',
338
- type: 'apiKey'
339
- },
340
- {
341
- in: 'query',
342
- name: 'api-key',
343
- type: 'apiKey'
344
- }
345
- ],
346
- url: '/v1/analytics/{owner}/{slug}/sql/execute/async',
347
- ...options,
348
- headers: {
349
- 'Content-Type': 'application/json',
350
- ...options?.headers
351
- }
352
- });
353
- }
354
- /**
355
- * Query SQL Execution Detail
356
- * Query the execution detail of a SQL query by execution_id.
357
- */
358
- static querySqlExecutionDetail(options) {
359
- return (options.client ?? client_gen_1.client).get({
360
- security: [
361
- {
362
- name: 'api-key',
363
- type: 'apiKey'
364
- },
365
- {
366
- in: 'query',
367
- name: 'api-key',
368
- type: 'apiKey'
369
- }
370
- ],
371
- url: '/v1/analytics/{owner}/{slug}/sql/query_execution_detail/{executionId}',
372
- ...options
373
- });
374
- }
375
- /**
376
- * Query SQL Result
377
- * Query the result of a SQL query by execution_id.
378
- */
379
- static querySqlResult(options) {
380
- return (options.client ?? client_gen_1.client).get({
381
- security: [
382
- {
383
- name: 'api-key',
384
- type: 'apiKey'
385
- },
386
- {
387
- in: 'query',
388
- name: 'api-key',
389
- type: 'apiKey'
390
- }
391
- ],
392
- url: '/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}',
393
- ...options
394
- });
395
- }
396
- /**
397
- * Save Refreshable Materialized View
398
- * Save or update a refreshable materialized view in a project.
399
- */
400
- static saveRefreshableMaterializedView(options) {
401
- return (options.client ?? client_gen_1.client).post({
402
- security: [
403
- {
404
- name: 'api-key',
405
- type: 'apiKey'
406
- },
407
- {
408
- in: 'query',
409
- name: 'api-key',
410
- type: 'apiKey'
411
- }
412
- ],
413
- url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_view',
414
- ...options,
415
- headers: {
416
- 'Content-Type': 'application/json',
417
- ...options?.headers
418
- }
419
- });
420
- }
421
- /**
422
- * Delete Refreshable Materialized View
423
- * Delete a refreshable materialized view in a project.
424
- */
425
- static deleteRefreshableMaterializedView(options) {
426
- return (options.client ?? client_gen_1.client).delete({
427
- security: [
428
- {
429
- name: 'api-key',
430
- type: 'apiKey'
431
- },
432
- {
433
- in: 'query',
434
- name: 'api-key',
435
- type: 'apiKey'
436
- }
437
- ],
438
- url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_view/{name}',
439
- ...options
440
- });
441
- }
442
- /**
443
- * Get Refreshable Materialized View Status
444
- * Get the status of a refreshable materialized view in a project.
445
- */
446
- static getRefreshableMaterializedStatus(options) {
447
- return (options.client ?? client_gen_1.client).get({
448
- security: [
449
- {
450
- name: 'api-key',
451
- type: 'apiKey'
452
- },
453
- {
454
- in: 'query',
455
- name: 'api-key',
456
- type: 'apiKey'
457
- }
458
- ],
459
- url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_view/{name}',
460
- ...options
461
- });
462
- }
463
- /**
464
- * List Refreshable Materialized Views
465
- * List all refreshable materialized views in a project.
466
- */
467
- static listRefreshableMaterializedViews(options) {
468
- return (options.client ?? client_gen_1.client).get({
469
- security: [
470
- {
471
- name: 'api-key',
472
- type: 'apiKey'
473
- },
474
- {
475
- in: 'query',
476
- name: 'api-key',
477
- type: 'apiKey'
478
- }
479
- ],
480
- url: '/v1/analytics/{owner}/{slug}/sql/refreshable_materialized_views',
481
- ...options
482
- });
483
- }
484
- /**
485
- * Save SQL
486
- * Save or update a SQL query in a project.
487
- */
488
- static saveSql(options) {
489
- return (options.client ?? client_gen_1.client).post({
490
- security: [
491
- {
492
- name: 'api-key',
493
- type: 'apiKey'
494
- },
495
- {
496
- in: 'query',
497
- name: 'api-key',
498
- type: 'apiKey'
499
- }
500
- ],
501
- url: '/v1/analytics/{owner}/{slug}/sql/save',
502
- ...options,
503
- headers: {
504
- 'Content-Type': 'application/json',
505
- ...options?.headers
506
- }
507
- });
508
- }
509
- /**
510
- * Save SQL
511
- * Save or update a SQL query in a project.
512
- */
513
- static saveSql2(options) {
514
- return (options.client ?? client_gen_1.client).put({
515
- security: [
516
- {
517
- name: 'api-key',
518
- type: 'apiKey'
519
- },
520
- {
521
- in: 'query',
522
- name: 'api-key',
523
- type: 'apiKey'
524
- }
525
- ],
526
- url: '/v1/analytics/{owner}/{slug}/sql/save',
527
- ...options,
528
- headers: {
529
- 'Content-Type': 'application/json',
530
- ...options?.headers
531
- }
532
- });
533
- }
534
- /**
535
- * Query Tables
536
- * Query tables in a project. use flag to control which type of tables to include.
537
- */
538
- static queryTables(options) {
539
- return (options.client ?? client_gen_1.client).get({
540
- security: [
541
- {
542
- name: 'api-key',
543
- type: 'apiKey'
544
- },
545
- {
546
- in: 'query',
547
- name: 'api-key',
548
- type: 'apiKey'
549
- }
550
- ],
551
- url: '/v1/analytics/{owner}/{slug}/sql/tables',
552
- ...options
553
- });
554
- }
555
- /**
556
- * Query event logs
557
- */
558
- static queryLog(options) {
559
- return (options.client ?? client_gen_1.client).post({
560
- security: [
561
- {
562
- name: 'api-key',
563
- type: 'apiKey'
564
- },
565
- {
566
- in: 'query',
567
- name: 'api-key',
568
- type: 'apiKey'
569
- }
570
- ],
571
- url: '/v1/eventlogs/{owner}/{slug}',
572
- ...options,
573
- headers: {
574
- 'Content-Type': 'application/json',
575
- ...options?.headers
576
- }
577
- });
578
- }
579
- /**
580
- * Query event logs
581
- */
582
- static queryLog2(options) {
583
- return (options.client ?? client_gen_1.client).get({
584
- security: [
585
- {
586
- name: 'api-key',
587
- type: 'apiKey'
588
- },
589
- {
590
- in: 'query',
591
- name: 'api-key',
592
- type: 'apiKey'
593
- }
594
- ],
595
- url: '/v1/eventlogs/{owner}/{slug}/query',
596
- ...options
597
- });
598
- }
599
- /**
600
- * List coins
601
- * Get a list of coins in a project.
602
- */
603
- static listCoins2(options) {
604
- return (options?.client ?? client_gen_1.client).get({
605
- security: [
606
- {
607
- name: 'api-key',
608
- type: 'apiKey'
609
- },
610
- {
611
- in: 'query',
612
- name: 'api-key',
613
- type: 'apiKey'
614
- }
615
- ],
616
- url: '/v1/insights/coins',
617
- ...options
618
- });
619
- }
620
- /**
621
- * List coins
622
- * Get a list of coins in a project.
623
- */
624
- static listCoins(options) {
625
- return (options.client ?? client_gen_1.client).get({
626
- security: [
627
- {
628
- name: 'api-key',
629
- type: 'apiKey'
630
- },
631
- {
632
- in: 'query',
633
- name: 'api-key',
634
- type: 'apiKey'
635
- }
636
- ],
637
- url: '/v1/insights/{owner}/{slug}/coins',
638
- ...options
639
- });
640
- }
641
- /**
642
- * Insight Query
643
- * Query for metrics,event logs and coin prices in a project.
644
- */
645
- static query(options) {
646
- return (options.client ?? client_gen_1.client).post({
647
- security: [
648
- {
649
- name: 'api-key',
650
- type: 'apiKey'
651
- },
652
- {
653
- in: 'query',
654
- name: 'api-key',
655
- type: 'apiKey'
656
- }
657
- ],
658
- url: '/v1/insights/{owner}/{slug}/query',
659
- ...options,
660
- headers: {
661
- 'Content-Type': 'application/json',
662
- ...options?.headers
663
- }
664
- });
665
- }
666
- /**
667
- * Get a list of metrics in a project
668
- */
669
- static getMetrics(options) {
670
- return (options?.client ?? client_gen_1.client).get({
671
- security: [
672
- {
673
- name: 'api-key',
674
- type: 'apiKey'
675
- },
676
- {
677
- in: 'query',
678
- name: 'api-key',
679
- type: 'apiKey'
680
- }
681
- ],
682
- url: '/v1/metrics',
683
- ...options
684
- });
685
- }
686
- /**
687
- * Metric instant queries
688
- */
689
- static queryInstant(options) {
690
- return (options.client ?? client_gen_1.client).post({
691
- security: [
692
- {
693
- name: 'api-key',
694
- type: 'apiKey'
695
- },
696
- {
697
- in: 'query',
698
- name: 'api-key',
699
- type: 'apiKey'
700
- }
701
- ],
702
- url: '/v1/metrics/{owner}/{slug}/query',
703
- ...options,
704
- headers: {
705
- 'Content-Type': 'application/json',
706
- ...options?.headers
707
- }
708
- });
709
- }
710
- /**
711
- * Metric range queries
712
- * The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**.
713
- *
714
- * ![screenshot](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/assets/image%20(101).png)
715
- */
716
- static queryRange(options) {
717
- return (options.client ?? client_gen_1.client).post({
718
- security: [
719
- {
720
- name: 'api-key',
721
- type: 'apiKey'
722
- },
723
- {
724
- in: 'query',
725
- name: 'api-key',
726
- type: 'apiKey'
727
- }
728
- ],
729
- url: '/v1/metrics/{owner}/{slug}/query_range',
730
- ...options,
731
- headers: {
732
- 'Content-Type': 'application/json',
733
- ...options?.headers
734
- }
735
- });
736
- }
737
- /**
738
- * Query Table By Name
739
- * Query table schema by name.
740
- */
741
- static queryTable2(options) {
742
- return (options?.client ?? client_gen_1.client).get({
743
- security: [
744
- {
745
- name: 'api-key',
746
- type: 'apiKey'
747
- },
748
- {
749
- in: 'query',
750
- name: 'api-key',
751
- type: 'apiKey'
752
- }
753
- ],
754
- url: '/v1/sql/table',
755
- ...options
756
- });
757
- }
758
- /**
759
- * List Tables
760
- */
761
- static listTables2(options) {
762
- return (options?.client ?? client_gen_1.client).get({
763
- security: [
764
- {
765
- name: 'api-key',
766
- type: 'apiKey'
767
- },
768
- {
769
- in: 'query',
770
- name: 'api-key',
771
- type: 'apiKey'
772
- }
773
- ],
774
- url: '/v1/sql/tables',
775
- ...options
776
- });
777
- }
778
- /**
779
- * Query Table By Name
780
- * Query table schema by name.
781
- */
782
- static queryTable(options) {
783
- return (options.client ?? client_gen_1.client).get({
784
- security: [
785
- {
786
- name: 'api-key',
787
- type: 'apiKey'
788
- },
789
- {
790
- in: 'query',
791
- name: 'api-key',
792
- type: 'apiKey'
793
- }
794
- ],
795
- url: '/v1/sql/{owner}/{slug}/table/{name}',
796
- ...options
797
- });
798
- }
799
- /**
800
- * List Tables
801
- */
802
- static listTables(options) {
803
- return (options.client ?? client_gen_1.client).get({
804
- security: [
805
- {
806
- name: 'api-key',
807
- type: 'apiKey'
808
- },
809
- {
810
- in: 'query',
811
- name: 'api-key',
812
- type: 'apiKey'
813
- }
814
- ],
815
- url: '/v1/sql/{owner}/{slug}/tables',
816
- ...options
817
- });
818
- }
819
- }
820
- exports.DataService = DataService;
821
- class WebService {
822
- /**
823
- * List all dashboards in a project
824
- */
825
- static listDashboards(options) {
826
- return (options?.client ?? client_gen_1.client).get({
827
- security: [
828
- {
829
- name: 'api-key',
830
- type: 'apiKey'
831
- },
832
- {
833
- in: 'query',
834
- name: 'api-key',
835
- type: 'apiKey'
836
- }
837
- ],
838
- url: '/v1/dashboards',
839
- ...options
840
- });
841
- }
842
- /**
843
- * Import a dashboard
844
- */
845
- static importDashboard(options) {
846
- return (options.client ?? client_gen_1.client).post({
847
- security: [
848
- {
849
- name: 'api-key',
850
- type: 'apiKey'
851
- },
852
- {
853
- in: 'query',
854
- name: 'api-key',
855
- type: 'apiKey'
856
- }
857
- ],
858
- url: '/v1/dashboards/json',
859
- ...options,
860
- headers: {
861
- 'Content-Type': 'application/json',
862
- ...options?.headers
863
- }
864
- });
865
- }
866
- /**
867
- * Delete a dashboard by id
868
- */
869
- static deleteDashboard(options) {
870
- return (options.client ?? client_gen_1.client).delete({
871
- security: [
872
- {
873
- name: 'api-key',
874
- type: 'apiKey'
875
- },
876
- {
877
- in: 'query',
878
- name: 'api-key',
879
- type: 'apiKey'
880
- }
881
- ],
882
- url: '/v1/dashboards/{dashboardId}',
883
- ...options
884
- });
885
- }
886
- /**
887
- * Get a dashboard by id
888
- */
889
- static getDashboard(options) {
890
- return (options.client ?? client_gen_1.client).get({
891
- security: [
892
- {
893
- name: 'api-key',
894
- type: 'apiKey'
895
- },
896
- {
897
- in: 'query',
898
- name: 'api-key',
899
- type: 'apiKey'
900
- }
901
- ],
902
- url: '/v1/dashboards/{dashboardId}',
903
- ...options
904
- });
905
- }
906
- /**
907
- * Get dashboard history by dashboard id
908
- */
909
- static getDashboardHistory(options) {
910
- return (options.client ?? client_gen_1.client).get({
911
- security: [
912
- {
913
- name: 'api-key',
914
- type: 'apiKey'
915
- },
916
- {
917
- in: 'query',
918
- name: 'api-key',
919
- type: 'apiKey'
920
- }
921
- ],
922
- url: '/v1/dashboards/{dashboardId}/history',
923
- ...options
924
- });
925
- }
926
- /**
927
- * Export a dashboard to json
928
- */
929
- static exportDashboard(options) {
930
- return (options.client ?? client_gen_1.client).get({
931
- security: [
932
- {
933
- name: 'api-key',
934
- type: 'apiKey'
935
- },
936
- {
937
- in: 'query',
938
- name: 'api-key',
939
- type: 'apiKey'
940
- }
941
- ],
942
- url: '/v1/dashboards/{dashboardId}/json',
943
- ...options
944
- });
945
- }
946
- /**
947
- * List all dashboards in a project
948
- */
949
- static listDashboards2(options) {
950
- return (options.client ?? client_gen_1.client).get({
951
- security: [
952
- {
953
- name: 'api-key',
954
- type: 'apiKey'
955
- },
956
- {
957
- in: 'query',
958
- name: 'api-key',
959
- type: 'apiKey'
960
- }
961
- ],
962
- url: '/v1/projects/{owner}/{slug}/dashboards',
963
- ...options
964
- });
965
- }
966
- /**
967
- * Get a dashboard by id
968
- */
969
- static getDashboard2(options) {
970
- return (options.client ?? client_gen_1.client).get({
971
- security: [
972
- {
973
- name: 'api-key',
974
- type: 'apiKey'
975
- },
976
- {
977
- in: 'query',
978
- name: 'api-key',
979
- type: 'apiKey'
980
- }
981
- ],
982
- url: '/v1/projects/{owner}/{slug}/dashboards/{dashboardId}',
983
- ...options
984
- });
985
- }
986
- static createLinkSession(options) {
987
- return (options?.client ?? client_gen_1.client).get({
988
- security: [
989
- {
990
- name: 'api-key',
991
- type: 'apiKey'
992
- },
993
- {
994
- in: 'query',
995
- name: 'api-key',
996
- type: 'apiKey'
997
- }
998
- ],
999
- url: '/v1/users/link',
1000
- ...options
1001
- });
1002
- }
1003
- }
1004
- exports.WebService = WebService;
1005
- class MoveService {
1006
- /**
1007
- * Get Aptos transaction call trace
1008
- * Retrieves the detailed call trace for an Aptos transaction
1009
- */
1010
- static getCallTrace(options) {
1011
- return (options?.client ?? client_gen_1.client).get({
1012
- security: [
1013
- {
1014
- name: 'api-key',
1015
- type: 'apiKey'
1016
- },
1017
- {
1018
- in: 'query',
1019
- name: 'api-key',
1020
- type: 'apiKey'
1021
- }
1022
- ],
1023
- url: '/v1/move/call_trace',
1024
- ...options
1025
- });
1026
- }
1027
- /**
1028
- * Get Sui transaction call trace
1029
- * Retrieves the detailed call trace for a Sui transaction
1030
- */
1031
- static getSuiCallTrace(options) {
1032
- return (options?.client ?? client_gen_1.client).get({
1033
- security: [
1034
- {
1035
- name: 'api-key',
1036
- type: 'apiKey'
1037
- },
1038
- {
1039
- in: 'query',
1040
- name: 'api-key',
1041
- type: 'apiKey'
1042
- }
1043
- ],
1044
- url: '/v1/move/sui_call_trace',
1045
- ...options
1046
- });
1047
- }
1048
- }
1049
- exports.MoveService = MoveService;
1050
- class PriceService {
1051
- /**
1052
- * Get price
1053
- * GetPrice returns the price of a given coin identifier, in a best effort way.
1054
- * If we do not have any price data for the given coin, we will return NOT_FOUND error.
1055
- * If we have at least one price data for the given coin, we will return it with the actual timestamp.
1056
- * Client is responsible for checking the timestamp and decide whether to use the price or not.
1057
- */
1058
- static getPrice(options) {
1059
- return (options?.client ?? client_gen_1.client).get({
1060
- security: [
1061
- {
1062
- name: 'api-key',
1063
- type: 'apiKey'
1064
- },
1065
- {
1066
- in: 'query',
1067
- name: 'api-key',
1068
- type: 'apiKey'
1069
- }
1070
- ],
1071
- url: '/v1/prices',
1072
- ...options
1073
- });
1074
- }
1075
- /**
1076
- * Add coin by Gecko
1077
- * adds a coin by its coingecko id.
1078
- *
1079
- * coingecko id the API ID of the coin in coingecko web page.
1080
- *
1081
- * please AWARE that the coingecko id is NOT the same as the symbol of the coin.
1082
- *
1083
- * ![screenshot](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/assets/coingecko_apiid.png)
1084
- */
1085
- static addCoinByGecko(options) {
1086
- return (options.client ?? client_gen_1.client).post({
1087
- security: [
1088
- {
1089
- name: 'api-key',
1090
- type: 'apiKey'
1091
- },
1092
- {
1093
- in: 'query',
1094
- name: 'api-key',
1095
- type: 'apiKey'
1096
- }
1097
- ],
1098
- url: '/v1/prices/add_coin_by_gecko',
1099
- ...options,
1100
- headers: {
1101
- 'Content-Type': 'application/json',
1102
- ...options?.headers
1103
- }
1104
- });
1105
- }
1106
- /**
1107
- * Batch get prices
1108
- */
1109
- static batchGetPrices(options) {
1110
- return (options.client ?? client_gen_1.client).post({
1111
- security: [
1112
- {
1113
- name: 'api-key',
1114
- type: 'apiKey'
1115
- },
1116
- {
1117
- in: 'query',
1118
- name: 'api-key',
1119
- type: 'apiKey'
1120
- }
1121
- ],
1122
- url: '/v1/prices/batch',
1123
- ...options,
1124
- headers: {
1125
- 'Content-Type': 'application/json',
1126
- ...options?.headers
1127
- }
1128
- });
1129
- }
1130
- /**
1131
- * Check latest price
1132
- */
1133
- static checkLatestPrice(options) {
1134
- return (options?.client ?? client_gen_1.client).get({
1135
- security: [
1136
- {
1137
- name: 'api-key',
1138
- type: 'apiKey'
1139
- },
1140
- {
1141
- in: 'query',
1142
- name: 'api-key',
1143
- type: 'apiKey'
1144
- }
1145
- ],
1146
- url: '/v1/prices/check_latest',
1147
- ...options
1148
- });
1149
- }
1150
- /**
1151
- * List coins
1152
- */
1153
- static priceListCoins(options) {
1154
- return (options?.client ?? client_gen_1.client).get({
1155
- security: [
1156
- {
1157
- name: 'api-key',
1158
- type: 'apiKey'
1159
- },
1160
- {
1161
- in: 'query',
1162
- name: 'api-key',
1163
- type: 'apiKey'
1164
- }
1165
- ],
1166
- url: '/v1/prices/coins',
1167
- ...options
1168
- });
1169
- }
1170
- }
1171
- exports.PriceService = PriceService;
1172
- class ProcessorService {
1173
- /**
1174
- * activate the pending version of a processor
1175
- */
1176
- static activatePendingVersion(options) {
1177
- return (options.client ?? client_gen_1.client).put({
1178
- security: [
1179
- {
1180
- name: 'api-key',
1181
- type: 'apiKey'
1182
- },
1183
- {
1184
- in: 'query',
1185
- name: 'api-key',
1186
- type: 'apiKey'
1187
- }
1188
- ],
1189
- url: '/v1/processors/{owner}/{slug}/activate_pending',
1190
- ...options
1191
- });
1192
- }
1193
- /**
1194
- * Get processor status
1195
- */
1196
- static getProcessorStatusV2(options) {
1197
- return (options.client ?? client_gen_1.client).get({
1198
- security: [
1199
- {
1200
- name: 'api-key',
1201
- type: 'apiKey'
1202
- },
1203
- {
1204
- in: 'query',
1205
- name: 'api-key',
1206
- type: 'apiKey'
1207
- }
1208
- ],
1209
- url: '/v1/processors/{owner}/{slug}/status',
1210
- ...options
1211
- });
1212
- }
1213
- }
1214
- exports.ProcessorService = ProcessorService;
1215
- class ProcessorExtService {
1216
- /**
1217
- * Get the source files of a processor
1218
- */
1219
- static getProcessorSourceFiles(options) {
1220
- return (options.client ?? client_gen_1.client).get({
1221
- security: [
1222
- {
1223
- name: 'api-key',
1224
- type: 'apiKey'
1225
- },
1226
- {
1227
- in: 'query',
1228
- name: 'api-key',
1229
- type: 'apiKey'
1230
- }
1231
- ],
1232
- url: '/v1/processors/{owner}/{slug}/source_files',
1233
- ...options
1234
- });
1235
- }
1236
- }
1237
- exports.ProcessorExtService = ProcessorExtService;
1238
- class ForksService {
1239
- /**
1240
- * List all forks
1241
- */
1242
- static listForks(options) {
1243
- return (options.client ?? client_gen_1.client).get({
1244
- security: [
1245
- {
1246
- name: 'api-key',
1247
- type: 'apiKey'
1248
- },
1249
- {
1250
- in: 'query',
1251
- name: 'api-key',
1252
- type: 'apiKey'
1253
- }
1254
- ],
1255
- url: '/v1/solidity/{owner}/{slug}/fork',
1256
- ...options
1257
- });
1258
- }
1259
- /**
1260
- * Create a fork
1261
- */
1262
- static createFork(options) {
1263
- return (options.client ?? client_gen_1.client).post({
1264
- security: [
1265
- {
1266
- name: 'api-key',
1267
- type: 'apiKey'
1268
- },
1269
- {
1270
- in: 'query',
1271
- name: 'api-key',
1272
- type: 'apiKey'
1273
- }
1274
- ],
1275
- url: '/v1/solidity/{owner}/{slug}/fork',
1276
- ...options,
1277
- headers: {
1278
- 'Content-Type': 'application/json',
1279
- ...options?.headers
1280
- }
1281
- });
1282
- }
1283
- /**
1284
- * Get trace by bundle simulation
1285
- */
1286
- static getCallTraceOnForkBundle(options) {
1287
- return (options.client ?? client_gen_1.client).get({
1288
- security: [
1289
- {
1290
- name: 'api-key',
1291
- type: 'apiKey'
1292
- },
1293
- {
1294
- in: 'query',
1295
- name: 'api-key',
1296
- type: 'apiKey'
1297
- }
1298
- ],
1299
- url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace',
1300
- ...options
1301
- });
1302
- }
1303
- /**
1304
- * Run Simulation
1305
- */
1306
- static simulateTransactionOnFork(options) {
1307
- return (options.client ?? client_gen_1.client).post({
1308
- security: [
1309
- {
1310
- name: 'api-key',
1311
- type: 'apiKey'
1312
- },
1313
- {
1314
- in: 'query',
1315
- name: 'api-key',
1316
- type: 'apiKey'
1317
- }
1318
- ],
1319
- url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation',
1320
- ...options,
1321
- headers: {
1322
- 'Content-Type': 'application/json',
1323
- ...options?.headers
1324
- }
1325
- });
1326
- }
1327
- /**
1328
- * Get trace by simulation
1329
- */
1330
- static getCallTraceOnForkSimulation(options) {
1331
- return (options.client ?? client_gen_1.client).get({
1332
- security: [
1333
- {
1334
- name: 'api-key',
1335
- type: 'apiKey'
1336
- },
1337
- {
1338
- in: 'query',
1339
- name: 'api-key',
1340
- type: 'apiKey'
1341
- }
1342
- ],
1343
- url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace',
1344
- ...options
1345
- });
1346
- }
1347
- /**
1348
- * Run bundle simulation
1349
- */
1350
- static simulateTransactionBundleOnFork(options) {
1351
- return (options.client ?? client_gen_1.client).post({
1352
- security: [
1353
- {
1354
- name: 'api-key',
1355
- type: 'apiKey'
1356
- },
1357
- {
1358
- in: 'query',
1359
- name: 'api-key',
1360
- type: 'apiKey'
1361
- }
1362
- ],
1363
- url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle',
1364
- ...options,
1365
- headers: {
1366
- 'Content-Type': 'application/json',
1367
- ...options?.headers
1368
- }
1369
- });
1370
- }
1371
- /**
1372
- * Get trace by transaction
1373
- */
1374
- static getCallTraceOnForkTransaction(options) {
1375
- return (options.client ?? client_gen_1.client).get({
1376
- security: [
1377
- {
1378
- name: 'api-key',
1379
- type: 'apiKey'
1380
- },
1381
- {
1382
- in: 'query',
1383
- name: 'api-key',
1384
- type: 'apiKey'
1385
- }
1386
- ],
1387
- url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace',
1388
- ...options
1389
- });
1390
- }
1391
- /**
1392
- * Delete fork by id
1393
- */
1394
- static deleteFork(options) {
1395
- return (options.client ?? client_gen_1.client).delete({
1396
- security: [
1397
- {
1398
- name: 'api-key',
1399
- type: 'apiKey'
1400
- },
1401
- {
1402
- in: 'query',
1403
- name: 'api-key',
1404
- type: 'apiKey'
1405
- }
1406
- ],
1407
- url: '/v1/solidity/{owner}/{slug}/fork/{id}',
1408
- ...options
1409
- });
1410
- }
1411
- /**
1412
- * Get fork by id
1413
- */
1414
- static getFork(options) {
1415
- return (options.client ?? client_gen_1.client).get({
1416
- security: [
1417
- {
1418
- name: 'api-key',
1419
- type: 'apiKey'
1420
- },
1421
- {
1422
- in: 'query',
1423
- name: 'api-key',
1424
- type: 'apiKey'
1425
- }
1426
- ],
1427
- url: '/v1/solidity/{owner}/{slug}/fork/{id}',
1428
- ...options
1429
- });
1430
- }
1431
- /**
1432
- * Update fork by id
1433
- */
1434
- static updateFork(options) {
1435
- return (options.client ?? client_gen_1.client).put({
1436
- security: [
1437
- {
1438
- name: 'api-key',
1439
- type: 'apiKey'
1440
- },
1441
- {
1442
- in: 'query',
1443
- name: 'api-key',
1444
- type: 'apiKey'
1445
- }
1446
- ],
1447
- url: '/v1/solidity/{owner}/{slug}/fork/{id}',
1448
- ...options,
1449
- headers: {
1450
- 'Content-Type': 'application/json',
1451
- ...options?.headers
1452
- }
1453
- });
1454
- }
1455
- /**
1456
- * Get fork info by id
1457
- */
1458
- static getForkInfo(options) {
1459
- return (options.client ?? client_gen_1.client).get({
1460
- security: [
1461
- {
1462
- name: 'api-key',
1463
- type: 'apiKey'
1464
- },
1465
- {
1466
- in: 'query',
1467
- name: 'api-key',
1468
- type: 'apiKey'
1469
- }
1470
- ],
1471
- url: '/v1/solidity/{owner}/{slug}/fork/{id}/info',
1472
- ...options
1473
- });
1474
- }
1475
- }
1476
- exports.ForksService = ForksService;
1477
- class DebugAndSimulationService {
1478
- /**
1479
- * Search transactions
1480
- */
1481
- static searchTransactions(options) {
1482
- return (options.client ?? client_gen_1.client).get({
1483
- security: [
1484
- {
1485
- name: 'api-key',
1486
- type: 'apiKey'
1487
- },
1488
- {
1489
- in: 'query',
1490
- name: 'api-key',
1491
- type: 'apiKey'
1492
- }
1493
- ],
1494
- url: '/v1/solidity/{owner}/{slug}/search_transactions',
1495
- ...options
1496
- });
1497
- }
1498
- /**
1499
- * Get list of simulations
1500
- */
1501
- static getSimulations(options) {
1502
- return (options.client ?? client_gen_1.client).get({
1503
- security: [
1504
- {
1505
- name: 'api-key',
1506
- type: 'apiKey'
1507
- },
1508
- {
1509
- in: 'query',
1510
- name: 'api-key',
1511
- type: 'apiKey'
1512
- }
1513
- ],
1514
- url: '/v1/solidity/{owner}/{slug}/simulation',
1515
- ...options
1516
- });
1517
- }
1518
- /**
1519
- * Get simulation by ID
1520
- */
1521
- static getSimulation(options) {
1522
- return (options.client ?? client_gen_1.client).get({
1523
- security: [
1524
- {
1525
- name: 'api-key',
1526
- type: 'apiKey'
1527
- },
1528
- {
1529
- in: 'query',
1530
- name: 'api-key',
1531
- type: 'apiKey'
1532
- }
1533
- ],
1534
- url: '/v1/solidity/{owner}/{slug}/simulation/{simulationId}',
1535
- ...options
1536
- });
1537
- }
1538
- /**
1539
- * Get bundle simulation by ID
1540
- */
1541
- static getSimulationBundleInProject(options) {
1542
- return (options.client ?? client_gen_1.client).get({
1543
- security: [
1544
- {
1545
- name: 'api-key',
1546
- type: 'apiKey'
1547
- },
1548
- {
1549
- in: 'query',
1550
- name: 'api-key',
1551
- type: 'apiKey'
1552
- }
1553
- ],
1554
- url: '/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}',
1555
- ...options
1556
- });
1557
- }
1558
- /**
1559
- * Get trace by bundle simulation
1560
- */
1561
- static getCallTraceByBundle(options) {
1562
- return (options.client ?? client_gen_1.client).get({
1563
- security: [
1564
- {
1565
- name: 'api-key',
1566
- type: 'apiKey'
1567
- },
1568
- {
1569
- in: 'query',
1570
- name: 'api-key',
1571
- type: 'apiKey'
1572
- }
1573
- ],
1574
- url: '/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace',
1575
- ...options
1576
- });
1577
- }
1578
- /**
1579
- * Run simulation
1580
- * Create a new transaction simulation. The simulation body should be included in the request body.
1581
- * Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.
1582
- */
1583
- static simulateTransaction(options) {
1584
- return (options.client ?? client_gen_1.client).post({
1585
- security: [
1586
- {
1587
- name: 'api-key',
1588
- type: 'apiKey'
1589
- },
1590
- {
1591
- in: 'query',
1592
- name: 'api-key',
1593
- type: 'apiKey'
1594
- }
1595
- ],
1596
- url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation',
1597
- ...options,
1598
- headers: {
1599
- 'Content-Type': 'application/json',
1600
- ...options?.headers
1601
- }
1602
- });
1603
- }
1604
- /**
1605
- * Get trace by simulation
1606
- */
1607
- static getCallTraceBySimulation(options) {
1608
- return (options.client ?? client_gen_1.client).get({
1609
- security: [
1610
- {
1611
- name: 'api-key',
1612
- type: 'apiKey'
1613
- },
1614
- {
1615
- in: 'query',
1616
- name: 'api-key',
1617
- type: 'apiKey'
1618
- }
1619
- ],
1620
- url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace',
1621
- ...options
1622
- });
1623
- }
1624
- /**
1625
- * Run bundle simulation
1626
- * You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.
1627
- */
1628
- static simulateTransactionBundle(options) {
1629
- return (options.client ?? client_gen_1.client).post({
1630
- security: [
1631
- {
1632
- name: 'api-key',
1633
- type: 'apiKey'
1634
- },
1635
- {
1636
- in: 'query',
1637
- name: 'api-key',
1638
- type: 'apiKey'
1639
- }
1640
- ],
1641
- url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle',
1642
- ...options,
1643
- headers: {
1644
- 'Content-Type': 'application/json',
1645
- ...options?.headers
1646
- }
1647
- });
1648
- }
1649
- /**
1650
- * Get trace by transaction
1651
- * API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.
1652
- *
1653
- * The results looks very similar to the normal [Ethereum call trace](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace.
1654
- *
1655
- * This allows you to build chart that marks the order of fund flow.
1656
- *
1657
- * ![screenshot](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/assets/image%20(2)%20(1)%20(1)%20(1).png)
1658
- */
1659
- static getCallTraceByTransaction(options) {
1660
- return (options.client ?? client_gen_1.client).get({
1661
- security: [
1662
- {
1663
- name: 'api-key',
1664
- type: 'apiKey'
1665
- },
1666
- {
1667
- in: 'query',
1668
- name: 'api-key',
1669
- type: 'apiKey'
1670
- }
1671
- ],
1672
- url: '/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace',
1673
- ...options
1674
- });
1675
- }
1676
- }
1677
- exports.DebugAndSimulationService = DebugAndSimulationService;
1678
- //# sourceMappingURL=sdk.gen.js.map