diff --git a/doc/index.html b/doc/index.html
index 66f9470..59c7e55 100755
--- a/doc/index.html
+++ b/doc/index.html
@@ -1108,27 +1108,22 @@
"type" : "object",
"properties" : {
"cacheTtlSecs" : {
- "title" : "how long the cache will be stored before it is evicted",
"type" : "integer",
"format" : "int32"
},
"cacheRefreshTtlSecs" : {
- "title" : "how long the cache will be refreshed in the background",
"type" : "integer",
"format" : "int32"
},
"forceRefresh" : {
- "title" : "force refresh the cache now",
"type" : "boolean"
},
"noCache" : {
- "title" : "do not use cache",
"type" : "boolean"
}
}
};
defs["common.Channel"] = {
- "title" : "TODO, finish this",
"type" : "object",
"properties" : {
"id" : {
@@ -1484,7 +1479,6 @@
"type" : "string"
},
"alias" : {
- "title" : "bool enabled = 2;",
"type" : "string"
},
"id" : {
@@ -1702,7 +1696,6 @@
"format" : "int64"
},
"slug" : {
- "title" : "{ownerName}/{slug} is the unique name of the project",
"type" : "string"
},
"ownerId" : {
@@ -1871,15 +1864,12 @@
"type" : "object",
"properties" : {
"query" : {
- "title" : "the promql query or the metric name",
"type" : "string"
},
"alias" : {
- "title" : "the alias of the query",
"type" : "string"
},
"id" : {
- "title" : "the id of the query",
"type" : "string"
},
"labelSelector" : {
@@ -1898,7 +1888,6 @@
}
},
"disabled" : {
- "title" : "hide the result, usually used for formula, default is false",
"type" : "boolean"
}
},
@@ -1975,7 +1964,6 @@
"type" : "object",
"properties" : {
"resources" : {
- "title" : "only support 2 resources",
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/common.RetentionQuery.Resource"
@@ -2277,7 +2265,6 @@
}
};
defs["common.Selector"] = {
- "title" : "TODO maybe MetricQuery should use this as well",
"type" : "object",
"properties" : {
"key" : {
@@ -2295,7 +2282,6 @@
}
};
defs["common.SelectorExpr"] = {
- "title" : "TODO migrate segmentationQuery to use this",
"type" : "object",
"properties" : {
"selector" : {
@@ -2321,9 +2307,7 @@
}
};
defs["common.Selector.OperatorType"] = {
- "title" : "TODO add Date Value and List Value and its data type",
"type" : "string",
- "description" : "- GT: Numeric operators\n - CONTAINS: String operators",
"default" : "EQ",
"enum" : [ "EQ", "NEQ", "EXISTS", "NOT_EXISTS", "GT", "GTE", "LT", "LTE", "BETWEEN", "NOT_BETWEEN", "CONTAINS", "NOT_CONTAINS", "IN_COHORTS", "NOT_IN_COHORTS" ]
};
@@ -2331,7 +2315,6 @@
"type" : "object",
"properties" : {
"values" : {
- "title" : "JoinOperator operator = 2; // this field should implement in the future",
"type" : "array",
"items" : {
"type" : "string"
@@ -2413,7 +2396,6 @@
"type" : "string"
},
"step" : {
- "title" : "interval in seconds between each data point",
"type" : "integer",
"format" : "int32"
},
@@ -2535,8 +2517,7 @@
"username" : {
"type" : "string"
}
- },
- "description" : "The same to user but with sensitive data removed."
+ }
};
defs["evm.AccessListItem"] = {
"type" : "object",
@@ -2621,7 +2602,6 @@
"type" : "string"
},
"status" : {
- "title" : "0x0: failed, 0x1: succeed",
"type" : "string"
},
"error" : {
@@ -11234,7 +11214,7 @@
DebugAndSimulation
getCallTraceByBundle
-
Get trace by bundle simulation
+
Get Call Trace by Bundle Simulation
@@ -11381,7 +11361,7 @@
Usage and SDK Samples
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by bundle simulation
+// Get Call Trace by Bundle Simulation
[apiInstance getCallTraceByBundleWith:owner
slug:slug
chainId:chainId
@@ -11465,7 +11445,7 @@
Usage and SDK Samples
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by bundle simulation
+ // Get Call Trace by Bundle Simulation
google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -11557,7 +11537,7 @@
Usage and SDK Samples
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by bundle simulation
+ # Get Call Trace by Bundle Simulation
api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
@@ -11835,7 +11815,7 @@
getCallTraceBySimulation
-
Get trace by simulation
+
Get Call Trace by Simulation
@@ -11982,7 +11962,7 @@
Usage and SDK Samples
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by simulation
+// Get Call Trace by Simulation
[apiInstance getCallTraceBySimulationWith:owner
slug:slug
chainId:chainId
@@ -12066,7 +12046,7 @@
Usage and SDK Samples
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by simulation
+ // Get Call Trace by Simulation
google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -12158,7 +12138,7 @@
Usage and SDK Samples
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by simulation
+ # Get Call Trace by Simulation
api_response = api_instance.get_call_trace_by_simulation(owner, slug, chainId, simulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
@@ -12436,7 +12416,7 @@
getCallTraceByTransaction
-
Get trace by transaction
+
Get Call Trace by Transaction
@@ -12589,7 +12569,7 @@
Usage and SDK Samples
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by transaction
+// Get Call Trace by Transaction
[apiInstance getCallTraceByTransactionWith:owner
slug:slug
chainId:chainId
@@ -12673,7 +12653,7 @@
Usage and SDK Samples
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by transaction
+ // Get Call Trace by Transaction
google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -12765,7 +12745,7 @@
Usage and SDK Samples
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by transaction
+ # Get Call Trace by Transaction
api_response = api_instance.get_call_trace_by_transaction(owner, slug, chainId, txHash, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
@@ -13043,7 +13023,7 @@
getSimulation
-
Get simulation by ID
+
Get Simulation by ID
@@ -13174,7 +13154,7 @@
Usage and SDK Samples
String *slug = slug_example; // (default to null)
String *simulationId = simulationId_example; // (default to null)
-// Get simulation by ID
+// Get Simulation by ID
[apiInstance getSimulationWith:owner
slug:slug
simulationId:simulationId
@@ -13244,7 +13224,7 @@
Usage and SDK Samples
var simulationId = simulationId_example; // String | (default to null)
try {
- // Get simulation by ID
+ // Get Simulation by ID
solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -13324,7 +13304,7 @@
Usage and SDK Samples
simulationId = simulationId_example # String | (default to null)
try:
- # Get simulation by ID
+ # Get Simulation by ID
api_response = api_instance.get_simulation(owner, slug, simulationId)
pprint(api_response)
except ApiException as e:
@@ -13511,7 +13491,7 @@
getSimulationBundleInProject
-
Get bundle simulation by ID
+
Get Bundle Simulation by ID
@@ -13642,7 +13622,7 @@
Usage and SDK Samples
String *slug = slug_example; // (default to null)
String *bundleId = bundleId_example; // (default to null)
-// Get bundle simulation by ID
+// Get Bundle Simulation by ID
[apiInstance getSimulationBundleInProjectWith:owner
slug:slug
bundleId:bundleId
@@ -13712,7 +13692,7 @@
Usage and SDK Samples
var bundleId = bundleId_example; // String | (default to null)
try {
- // Get bundle simulation by ID
+ // Get Bundle Simulation by ID
solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -13792,7 +13772,7 @@
Usage and SDK Samples
bundleId = bundleId_example # String | (default to null)
try:
- # Get bundle simulation by ID
+ # Get Bundle Simulation by ID
api_response = api_instance.get_simulation_bundle_in_project(owner, slug, bundleId)
pprint(api_response)
except ApiException as e:
@@ -13979,7 +13959,7 @@
getSimulations
-
Get list of simulations
+
Get Existied Simulations
@@ -14118,7 +14098,7 @@
Usage and SDK Samples
Integer *page = 56; // (optional) (default to null)
Integer *pageSize = 56; // (optional) (default to null)
-// Get list of simulations
+// Get Existied Simulations
[apiInstance getSimulationsWith:owner
slug:slug
labelContains:labelContains
@@ -14196,7 +14176,7 @@
Usage and SDK Samples
var pageSize = 56; // Integer | (optional) (default to null)
try {
- // Get list of simulations
+ // Get Existied Simulations
solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -14282,7 +14262,7 @@
Usage and SDK Samples
pageSize = 56 # Integer | (optional) (default to null)
try:
- # Get list of simulations
+ # Get Existied Simulations
api_response = api_instance.get_simulations(owner, slug, labelContains=labelContains, page=page, pageSize=pageSize)
pprint(api_response)
except ApiException as e:
@@ -15374,7 +15354,7 @@
simulateTransaction
-
Run simulation
+
Run Simulation
@@ -15512,7 +15492,7 @@
Usage and SDK Samples
String *chainId = chainId_example; // (default to null)
SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; //
-// Run simulation
+// Run Simulation
[apiInstance simulateTransactionWith:owner
slug:slug
chainId:chainId
@@ -15585,7 +15565,7 @@
Usage and SDK Samples
var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody |
try {
- // Run simulation
+ // Run Simulation
solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -15668,7 +15648,7 @@
Usage and SDK Samples
body = # SolidityServiceSolidityAPIServiceSimulateTransactionBody |
try:
- # Run simulation
+ # Run Simulation
api_response = api_instance.simulate_transaction(owner, slug, chainId, body)
pprint(api_response)
except ApiException as e:
@@ -15904,7 +15884,7 @@
simulateTransactionBundle
-
Run bundle simulation
+
Run Bundle simulation
@@ -16041,7 +16021,7 @@
Usage and SDK Samples
String *chainId = chainId_example; // (default to null)
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; //
-// Run bundle simulation
+// Run Bundle simulation
[apiInstance simulateTransactionBundleWith:owner
slug:slug
chainId:chainId
@@ -16114,7 +16094,7 @@
Usage and SDK Samples
var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try {
- // Run bundle simulation
+ // Run Bundle simulation
solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -16197,7 +16177,7 @@
Usage and SDK Samples
body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try:
- # Run bundle simulation
+ # Run Bundle simulation
api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body)
pprint(api_response)
except ApiException as e:
@@ -16934,7 +16914,7 @@
deleteFork
-
Delete fork by id
+
Delete a fork by id
@@ -17065,7 +17045,7 @@
Usage and SDK Samples
String *slug = slug_example; // (default to null)
String *id = id_example; // (default to null)
-// Delete fork by id
+// Delete a fork by id
[apiInstance deleteForkWith:owner
slug:slug
id:id
@@ -17135,7 +17115,7 @@
Usage and SDK Samples
var id = id_example; // String | (default to null)
try {
- // Delete fork by id
+ // Delete a fork by id
Object result = apiInstance.deleteFork(owner, slug, id);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -17215,7 +17195,7 @@
Usage and SDK Samples
id = id_example # String | (default to null)
try:
- # Delete fork by id
+ # Delete a fork by id
api_response = api_instance.delete_fork(owner, slug, id)
pprint(api_response)
except ApiException as e:
@@ -17402,7 +17382,7 @@
getCallTraceOnForkBundle
-
Get trace by bundle simulation
+
Get Call Trace by Bundle Simulation on Fork
@@ -17549,7 +17529,7 @@
Usage and SDK Samples
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by bundle simulation
+// Get Call Trace by Bundle Simulation on Fork
[apiInstance getCallTraceOnForkBundleWith:owner
slug:slug
forkId:forkId
@@ -17633,7 +17613,7 @@
Usage and SDK Samples
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by bundle simulation
+ // Get Call Trace by Bundle Simulation on Fork
google.api.HttpBody result = apiInstance.getCallTraceOnForkBundle(owner, slug, forkId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -17725,7 +17705,7 @@
Usage and SDK Samples
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by bundle simulation
+ # Get Call Trace by Bundle Simulation on Fork
api_response = api_instance.get_call_trace_on_fork_bundle(owner, slug, forkId, bundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
@@ -18003,7 +17983,7 @@
getCallTraceOnForkSimulation
-
Get trace by simulation
+
Get Call Trace by Simulation on Fork
@@ -18150,7 +18130,7 @@
Usage and SDK Samples
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by simulation
+// Get Call Trace by Simulation on Fork
[apiInstance getCallTraceOnForkSimulationWith:owner
slug:slug
forkId:forkId
@@ -18234,7 +18214,7 @@
Usage and SDK Samples
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by simulation
+ // Get Call Trace by Simulation on Fork
google.api.HttpBody result = apiInstance.getCallTraceOnForkSimulation(owner, slug, forkId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -18326,7 +18306,7 @@
Usage and SDK Samples
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by simulation
+ # Get Call Trace by Simulation on Fork
api_response = api_instance.get_call_trace_on_fork_simulation(owner, slug, forkId, simulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
@@ -18604,7 +18584,7 @@
getCallTraceOnForkTransaction
-
Get trace by transaction
+
Get Call Trace by Transaction on Fork
@@ -18751,7 +18731,7 @@
Usage and SDK Samples
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by transaction
+// Get Call Trace by Transaction on Fork
[apiInstance getCallTraceOnForkTransactionWith:owner
slug:slug
forkId:forkId
@@ -18835,7 +18815,7 @@
Usage and SDK Samples
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by transaction
+ // Get Call Trace by Transaction on Fork
google.api.HttpBody result = apiInstance.getCallTraceOnForkTransaction(owner, slug, forkId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -18927,7 +18907,7 @@
Usage and SDK Samples
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by transaction
+ # Get Call Trace by Transaction on Fork
api_response = api_instance.get_call_trace_on_fork_transaction(owner, slug, forkId, txHash, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
@@ -19205,7 +19185,7 @@
getFork
-
Get fork by id
+
Get a fork by id
@@ -19336,7 +19316,7 @@
Usage and SDK Samples
String *slug = slug_example; // (default to null)
String *id = id_example; // (default to null)
-// Get fork by id
+// Get a fork by id
[apiInstance getForkWith:owner
slug:slug
id:id
@@ -19406,7 +19386,7 @@
Usage and SDK Samples
var id = id_example; // String | (default to null)
try {
- // Get fork by id
+ // Get a fork by id
solidity_service.GetForkResponse result = apiInstance.getFork(owner, slug, id);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -19486,7 +19466,7 @@
Usage and SDK Samples
id = id_example # String | (default to null)
try:
- # Get fork by id
+ # Get a fork by id
api_response = api_instance.get_fork(owner, slug, id)
pprint(api_response)
except ApiException as e:
@@ -20141,7 +20121,7 @@
listForks
-
List all forks
+
List all forks by project
@@ -20268,7 +20248,7 @@
Usage and SDK Samples
String *owner = owner_example; // (default to null)
String *slug = slug_example; // (default to null)
-// List all forks
+// List all forks by project
[apiInstance listForksWith:owner
slug:slug
completionHandler: ^(solidity_service.ListForksResponse output, NSError* error) {
@@ -20335,7 +20315,7 @@
Usage and SDK Samples
var slug = slug_example; // String | (default to null)
try {
- // List all forks
+ // List all forks by project
solidity_service.ListForksResponse result = apiInstance.listForks(owner, slug);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -20412,7 +20392,7 @@
Usage and SDK Samples
slug = slug_example # String | (default to null)
try:
- # List all forks
+ # List all forks by project
api_response = api_instance.list_forks(owner, slug)
pprint(api_response)
except ApiException as e:
@@ -20578,7 +20558,7 @@
simulateTransactionBundleOnFork
-
Run bundle simulation
+
Run Bundle simulation on Fork
@@ -20715,7 +20695,7 @@
Usage and SDK Samples
String *forkId = forkId_example; // (default to null)
SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody *body = ; //
-// Run bundle simulation
+// Run Bundle simulation on Fork
[apiInstance simulateTransactionBundleOnForkWith:owner
slug:slug
forkId:forkId
@@ -20788,7 +20768,7 @@
Usage and SDK Samples
var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody |
try {
- // Run bundle simulation
+ // Run Bundle simulation on Fork
solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundleOnFork(owner, slug, forkId, body);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -20871,7 +20851,7 @@
Usage and SDK Samples
body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody |
try:
- # Run bundle simulation
+ # Run Bundle simulation on Fork
api_response = api_instance.simulate_transaction_bundle_on_fork(owner, slug, forkId, body)
pprint(api_response)
except ApiException as e:
@@ -21107,7 +21087,7 @@
simulateTransactionOnFork
-
Run Simulation
+
Run Simulation on Fork
@@ -21244,7 +21224,7 @@
Usage and SDK Samples
String *forkId = forkId_example; // (default to null)
SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody *body = ; //
-// Run Simulation
+// Run Simulation on Fork
[apiInstance simulateTransactionOnForkWith:owner
slug:slug
forkId:forkId
@@ -21317,7 +21297,7 @@
Usage and SDK Samples
var body = new SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody |
try {
- // Run Simulation
+ // Run Simulation on Fork
solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransactionOnFork(owner, slug, forkId, body);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -21400,7 +21380,7 @@
Usage and SDK Samples
body = # SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody |
try:
- # Run Simulation
+ # Run Simulation on Fork
api_response = api_instance.simulate_transaction_on_fork(owner, slug, forkId, body)
pprint(api_response)
except ApiException as e:
@@ -21636,7 +21616,7 @@
updateFork
-
Update fork by id
+
Update a fork by id
@@ -21773,7 +21753,7 @@
Usage and SDK Samples
String *id = id_example; // (default to null)
SolidityServiceForkServiceUpdateForkBody *body = ; //
-// Update fork by id
+// Update a fork by id
[apiInstance updateForkWith:owner
slug:slug
id:id
@@ -21846,7 +21826,7 @@
Usage and SDK Samples
var body = new SolidityServiceForkServiceUpdateForkBody(); // SolidityServiceForkServiceUpdateForkBody |
try {
- // Update fork by id
+ // Update a fork by id
solidity_service.UpdateForkResponse result = apiInstance.updateFork(owner, slug, id, body);
Debug.WriteLine(result);
} catch (Exception e) {
@@ -21929,7 +21909,7 @@
Usage and SDK Samples
body = # SolidityServiceForkServiceUpdateForkBody |
try:
- # Update fork by id
+ # Update a fork by id
api_response = api_instance.update_fork(owner, slug, id, body)
pprint(api_response)
except ApiException as e:
diff --git a/openapi.json b/openapi.json
index 5287c59..c4f3c0b 100644
--- a/openapi.json
+++ b/openapi.json
@@ -2419,21 +2419,17 @@
"properties": {
"cacheTtlSecs": {
"type": "integer",
- "format": "int32",
- "title": "how long the cache will be stored before it is evicted"
+ "format": "int32"
},
"cacheRefreshTtlSecs": {
"type": "integer",
- "format": "int32",
- "title": "how long the cache will be refreshed in the background"
+ "format": "int32"
},
"forceRefresh": {
- "type": "boolean",
- "title": "force refresh the cache now"
+ "type": "boolean"
},
"noCache": {
- "type": "boolean",
- "title": "do not use cache"
+ "type": "boolean"
}
}
},
@@ -2482,8 +2478,7 @@
"pagerdutyConfig": {
"type": "object"
}
- },
- "title": "TODO, finish this"
+ }
},
"common.Channel.Type": {
"type": "string",
@@ -2600,8 +2595,7 @@
"type": "object",
"properties": {
"joinOperator": {
- "$ref": "#/definitions/common.JoinOperator",
- "title": "not support THEN"
+ "$ref": "#/definitions/common.JoinOperator"
},
"groups": {
"type": "array",
@@ -2829,8 +2823,7 @@
"type": "string"
},
"alias": {
- "type": "string",
- "title": "bool enabled = 2;"
+ "type": "string"
},
"id": {
"type": "string"
@@ -3063,8 +3056,7 @@
"format": "int64"
},
"slug": {
- "type": "string",
- "title": "{ownerName}/{slug} is the unique name of the project"
+ "type": "string"
},
"ownerId": {
"type": "string"
@@ -3262,16 +3254,13 @@
},
"properties": {
"query": {
- "type": "string",
- "title": "the promql query or the metric name"
+ "type": "string"
},
"alias": {
- "type": "string",
- "title": "the alias of the query"
+ "type": "string"
},
"id": {
- "type": "string",
- "title": "the id of the query"
+ "type": "string"
},
"labelSelector": {
"type": "object",
@@ -3290,8 +3279,7 @@
}
},
"disabled": {
- "type": "boolean",
- "title": "hide the result, usually used for formula, default is false"
+ "type": "boolean"
}
},
"description": "the query to fetch metrics data, promql",
@@ -3357,8 +3345,7 @@
"items": {
"type": "object",
"$ref": "#/definitions/common.RetentionQuery.Resource"
- },
- "title": "only support 2 resources"
+ }
},
"criteria": {
"$ref": "#/definitions/common.RetentionQuery.Criteria"
@@ -3695,8 +3682,7 @@
}
},
"operator": {
- "$ref": "#/definitions/common.JoinOperator",
- "title": "default is AND"
+ "$ref": "#/definitions/common.JoinOperator"
}
}
},
@@ -3716,8 +3702,7 @@
"$ref": "#/definitions/common.Any"
}
}
- },
- "title": "TODO maybe MetricQuery should use this as well"
+ }
},
"common.Selector.OperatorType": {
"type": "string",
@@ -3737,9 +3722,7 @@
"IN_COHORTS",
"NOT_IN_COHORTS"
],
- "default": "EQ",
- "description": "- GT: Numeric operators\n - CONTAINS: String operators",
- "title": "TODO add Date Value and List Value and its data type"
+ "default": "EQ"
},
"common.SelectorExpr": {
"type": "object",
@@ -3750,8 +3733,7 @@
"logicExpr": {
"$ref": "#/definitions/common.SelectorExpr.LogicExpr"
}
- },
- "title": "TODO migrate segmentationQuery to use this"
+ }
},
"common.SelectorExpr.LogicExpr": {
"type": "object",
@@ -3764,8 +3746,7 @@
}
},
"operator": {
- "$ref": "#/definitions/common.JoinOperator",
- "title": "default is AND"
+ "$ref": "#/definitions/common.JoinOperator"
}
}
},
@@ -3776,8 +3757,7 @@
"type": "array",
"items": {
"type": "string"
- },
- "title": "JoinOperator operator = 2; // this field should implement in the future"
+ }
}
}
},
@@ -3847,8 +3827,7 @@
"format": "int64"
},
"interval": {
- "$ref": "#/definitions/common.Duration",
- "title": "TODO remove step in favor of interval"
+ "$ref": "#/definitions/common.Duration"
},
"timezone": {
"type": "string"
@@ -3899,8 +3878,7 @@
},
"step": {
"type": "integer",
- "format": "int32",
- "title": "interval in seconds between each data point"
+ "format": "int32"
},
"timezone": {
"type": "string"
@@ -3998,8 +3976,7 @@
"username": {
"type": "string"
}
- },
- "description": "The same to user but with sensitive data removed."
+ }
},
"evm.AccessListItem": {
"type": "object",
@@ -4085,8 +4062,7 @@
"type": "string"
},
"status": {
- "type": "string",
- "title": "0x0: failed, 0x1: succeed"
+ "type": "string"
},
"error": {
"type": "string"
diff --git a/src/.gitattributes b/src/.gitattributes
new file mode 100755
index 0000000..7bf5a17
--- /dev/null
+++ b/src/.gitattributes
@@ -0,0 +1,8 @@
+**/* linguist-generated
+*.md linguist-documentation
+
+.gitattributes text
+.gitattributes export-ignore
+
+.gitignore text
+.gitignore export-ignore
diff --git a/src/.gitignore b/src/.gitignore
new file mode 100755
index 0000000..1521c8b
--- /dev/null
+++ b/src/.gitignore
@@ -0,0 +1 @@
+dist
diff --git a/src/DataApi.md b/src/DataApi.md
new file mode 100755
index 0000000..1baa460
--- /dev/null
+++ b/src/DataApi.md
@@ -0,0 +1,1395 @@
+# .DataApi
+
+All URIs are relative to *https://app.sentio.xyz*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**executeSQL**](DataApi.md#executeSQL) | **POST** /api/v1/analytics/{owner}/{slug}/sql/execute | Execute SQL
+[**getMetrics**](DataApi.md#getMetrics) | **GET** /api/v1/metrics | Get a list of metrics in a project
+[**listCoins**](DataApi.md#listCoins) | **GET** /api/v1/insights/{owner}/{slug}/coins | List coins
+[**listCoins2**](DataApi.md#listCoins2) | **GET** /api/v1/insights/coins | List coins
+[**query**](DataApi.md#query) | **POST** /api/v1/insights/{owner}/{slug}/query | Insight Query
+[**queryInstant**](DataApi.md#queryInstant) | **POST** /api/v1/metrics/{owner}/{slug}/query | Metric instant queries
+[**queryLog**](DataApi.md#queryLog) | **POST** /api/v1/eventlogs/{owner}/{slug} | Query event logs
+[**queryLog2**](DataApi.md#queryLog2) | **GET** /api/v1/eventlogs/{owner}/{slug}/query | Query event logs
+[**queryRange**](DataApi.md#queryRange) | **POST** /api/v1/metrics/{owner}/{slug}/query_range | Metric range queries
+[**retention**](DataApi.md#retention) | **POST** /api/v1/insights/{owner}/{slug}/retention | Retention query
+[**retention2**](DataApi.md#retention2) | **POST** /api/v1/insights/retention | Retention query
+
+
+# **executeSQL**
+> AnalyticServiceSyncExecuteSQLResponse executeSQL(body)
+
+Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png) Find more: https://docs.sentio.xyz/reference/data#sql-api
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiExecuteSQLRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiExecuteSQLRequest = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+
+ body: {
+ projectId: "projectId_example",
+ version: 1,
+ sqlQuery: {
+ sql: "sql_example",
+ size: 1,
+ parameters: {
+ fields: {
+ "key": {
+ nullValue: "NULL_VALUE",
+ intValue: 1,
+ floatValue: 3.14,
+ bytesValue: 'YQ==',
+ boolValue: true,
+ stringValue: "stringValue_example",
+ timestampValue: new Date('1970-01-01T00:00:00.00Z'),
+ bigintValue: {
+ negative: true,
+ data: 'YQ==',
+ },
+ bigdecimalValue: {
+ value: {
+ negative: true,
+ data: 'YQ==',
+ },
+ exp: 1,
+ },
+ listValue: {
+ values: [
+ ,
+ ],
+ },
+ structValue: ,
+ },
+ },
+ },
+ name: "name_example",
+ },
+ cursor: "cursor_example",
+ bypassCache: true,
+ cachePolicy: {
+ cacheTtlSecs: 1,
+ cacheRefreshTtlSecs: 1,
+ forceRefresh: true,
+ noCache: true,
+ },
+ },
+};
+
+const data = await apiInstance.executeSQL(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **AnalyticServiceAnalyticServiceExecuteSQLBody**| |
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+
+
+### Return type
+
+**AnalyticServiceSyncExecuteSQLResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getMetrics**
+> MetricsServiceGetMetricsResponse getMetrics()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiGetMetricsRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiGetMetricsRequest = {
+
+ projectId: "projectId_example",
+
+ name: "name_example",
+
+ version: 1,
+};
+
+const data = await apiInstance.getMetrics(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **projectId** | [**string**] | | (optional) defaults to undefined
+ **name** | [**string**] | | (optional) defaults to undefined
+ **version** | [**number**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**MetricsServiceGetMetricsResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **listCoins**
+> InsightsServiceListCoinsResponse listCoins()
+
+Get a list of coins in a project.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiListCoinsRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiListCoinsRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ projectId: "projectId_example",
+
+ version: 1,
+
+ limit: 1,
+
+ offset: 1,
+
+ searchQuery: "searchQuery_example",
+};
+
+const data = await apiInstance.listCoins(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **projectId** | [**string**] | | (optional) defaults to undefined
+ **version** | [**number**] | | (optional) defaults to undefined
+ **limit** | [**number**] | | (optional) defaults to undefined
+ **offset** | [**number**] | | (optional) defaults to undefined
+ **searchQuery** | [**string**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**InsightsServiceListCoinsResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **listCoins2**
+> InsightsServiceListCoinsResponse listCoins2()
+
+Get a list of coins in a project.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiListCoins2Request } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiListCoins2Request = {
+
+ projectOwner: "projectOwner_example",
+
+ projectSlug: "projectSlug_example",
+
+ projectId: "projectId_example",
+
+ version: 1,
+
+ limit: 1,
+
+ offset: 1,
+
+ searchQuery: "searchQuery_example",
+};
+
+const data = await apiInstance.listCoins2(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **projectOwner** | [**string**] | | (optional) defaults to undefined
+ **projectSlug** | [**string**] | | (optional) defaults to undefined
+ **projectId** | [**string**] | | (optional) defaults to undefined
+ **version** | [**number**] | | (optional) defaults to undefined
+ **limit** | [**number**] | | (optional) defaults to undefined
+ **offset** | [**number**] | | (optional) defaults to undefined
+ **searchQuery** | [**string**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**InsightsServiceListCoinsResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **query**
+> InsightsServiceQueryResponse query(body)
+
+Query for metrics,event logs and coin prices in a project.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiQueryRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiQueryRequest = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+
+ body: {
+ projectId: "projectId_example",
+ version: 1,
+ timeRange: {
+ start: "start_example",
+ end: "end_example",
+ step: 1,
+ timezone: "timezone_example",
+ },
+ queries: [
+ {
+ metricsQuery: {
+ query: "query_example",
+ alias: "alias_example",
+ id: "id_example",
+ labelSelector: {
+ "key": "key_example",
+ },
+ aggregate: {
+ op: "AVG",
+ grouping: [
+ "grouping_example",
+ ],
+ },
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ disabled: true,
+ },
+ eventsQuery: {
+ resource: {
+ name: "name_example",
+ type: "EVENTS",
+ cohortsId: "cohortsId_example",
+ cohortsQuery: {
+ joinOperator: "AND",
+ groups: [
+ {
+ joinOperator: "AND",
+ filters: [
+ {
+ symbol: true,
+ name: "name_example",
+ aggregation: {
+ total: {},
+ aggregateProperties: {
+ type: "SUM",
+ propertyName: "propertyName_example",
+ },
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ selectorExpr: {
+ selector: {
+ key: "key_example",
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ logicExpr: {
+ expressions: [
+ ,
+ ],
+ operator: "AND",
+ },
+ },
+ timeRange: {
+ start: "start_example",
+ end: "end_example",
+ step: 1,
+ timezone: "timezone_example",
+ },
+ },
+ ],
+ },
+ ],
+ name: "name_example",
+ id: "id_example",
+ },
+ },
+ alias: "alias_example",
+ id: "id_example",
+ aggregation: {
+ total: {},
+ unique: {},
+ countUnique: {
+ duration: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ aggregateProperties: {
+ type: "SUM",
+ propertyName: "propertyName_example",
+ },
+ },
+ selectorExpr: {
+ selector: {
+ key: "key_example",
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ logicExpr: {
+ expressions: [
+ ,
+ ],
+ operator: "AND",
+ },
+ },
+ groupBy: [
+ "groupBy_example",
+ ],
+ limit: 1,
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ disabled: true,
+ },
+ priceQuery: {
+ id: "id_example",
+ alias: "alias_example",
+ coinId: [
+ {
+ symbol: "symbol_example",
+ address: {
+ address: "address_example",
+ chain: "chain_example",
+ },
+ },
+ ],
+ disabled: true,
+ },
+ dataSource: "METRICS",
+ sourceName: "sourceName_example",
+ },
+ ],
+ formulas: [
+ {
+ expression: "expression_example",
+ alias: "alias_example",
+ id: "id_example",
+ disabled: true,
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ limit: 1,
+ offset: 1,
+ bypassCache: true,
+ cachePolicy: {
+ cacheTtlSecs: 1,
+ cacheRefreshTtlSecs: 1,
+ forceRefresh: true,
+ noCache: true,
+ },
+ },
+};
+
+const data = await apiInstance.query(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **InsightsServiceInsightsServiceQueryBody**| |
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+
+
+### Return type
+
+**InsightsServiceQueryResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **queryInstant**
+> MetricsServiceQueryValueResponse queryInstant(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiQueryInstantRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiQueryInstantRequest = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+
+ body: {
+ queries: [
+ {
+ query: "query_example",
+ alias: "alias_example",
+ id: "id_example",
+ labelSelector: {
+ "key": "key_example",
+ },
+ aggregate: {
+ op: "AVG",
+ grouping: [
+ "grouping_example",
+ ],
+ },
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ disabled: true,
+ },
+ ],
+ formulas: [
+ {
+ expression: "expression_example",
+ alias: "alias_example",
+ id: "id_example",
+ disabled: true,
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ time: "time_example",
+ samplesLimit: 1,
+ version: 1,
+ timezone: "timezone_example",
+ samplesOffset: 1,
+ },
+};
+
+const data = await apiInstance.queryInstant(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **MetricsServiceObservabilityServiceQueryBody**| |
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+
+
+### Return type
+
+**MetricsServiceQueryValueResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **queryLog**
+> AnalyticServiceLogQueryResponse queryLog(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiQueryLogRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiQueryLogRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ body: {
+ projectId: "projectId_example",
+ query: "query_example",
+ timeRange: {
+ start: {
+ relativeTime: {
+ unit: "unit_example",
+ value: 1,
+ align: "align_example",
+ },
+ absoluteTime: "absoluteTime_example",
+ },
+ end: {
+ relativeTime: {
+ unit: "unit_example",
+ value: 1,
+ align: "align_example",
+ },
+ absoluteTime: "absoluteTime_example",
+ },
+ step: "step_example",
+ interval: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ timezone: "timezone_example",
+ },
+ sorts: [
+ {
+ field: "field_example",
+ desc: true,
+ },
+ ],
+ after: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ limit: 1,
+ offset: 1,
+ filters: [
+ {
+ field: "field_example",
+ value: "value_example",
+ not: true,
+ },
+ ],
+ version: 1,
+ },
+};
+
+const data = await apiInstance.queryLog(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **AnalyticServiceSearchServiceQueryLogBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**AnalyticServiceLogQueryResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **queryLog2**
+> AnalyticServiceLogQueryResponse queryLog2()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiQueryLog2Request } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiQueryLog2Request = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ projectId: "projectId_example",
+
+ query: "query_example",
+
+ timeRangeStartRelativeTimeUnit: "timeRange.start.relativeTime.unit_example",
+
+ timeRangeStartRelativeTimeValue: 1,
+
+ timeRangeStartRelativeTimeAlign: "timeRange.start.relativeTime.align_example",
+
+ timeRangeStartAbsoluteTime: "timeRange.start.absoluteTime_example",
+
+ timeRangeEndRelativeTimeUnit: "timeRange.end.relativeTime.unit_example",
+
+ timeRangeEndRelativeTimeValue: 1,
+
+ timeRangeEndRelativeTimeAlign: "timeRange.end.relativeTime.align_example",
+
+ timeRangeEndAbsoluteTime: "timeRange.end.absoluteTime_example",
+
+ timeRangeStep: "timeRange.step_example",
+
+ timeRangeIntervalValue: 3.14,
+
+ timeRangeIntervalUnit: "timeRange.interval.unit_example",
+
+ timeRangeTimezone: "timeRange.timezone_example",
+
+ limit: 1,
+
+ offset: 1,
+
+ version: 1,
+};
+
+const data = await apiInstance.queryLog2(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **projectId** | [**string**] | | (optional) defaults to undefined
+ **query** | [**string**] | | (optional) defaults to undefined
+ **timeRangeStartRelativeTimeUnit** | [**string**] | | (optional) defaults to undefined
+ **timeRangeStartRelativeTimeValue** | [**number**] | | (optional) defaults to undefined
+ **timeRangeStartRelativeTimeAlign** | [**string**] | | (optional) defaults to undefined
+ **timeRangeStartAbsoluteTime** | [**string**] | | (optional) defaults to undefined
+ **timeRangeEndRelativeTimeUnit** | [**string**] | | (optional) defaults to undefined
+ **timeRangeEndRelativeTimeValue** | [**number**] | | (optional) defaults to undefined
+ **timeRangeEndRelativeTimeAlign** | [**string**] | | (optional) defaults to undefined
+ **timeRangeEndAbsoluteTime** | [**string**] | | (optional) defaults to undefined
+ **timeRangeStep** | [**string**] | | (optional) defaults to undefined
+ **timeRangeIntervalValue** | [**number**] | | (optional) defaults to undefined
+ **timeRangeIntervalUnit** | [**string**] | | (optional) defaults to undefined
+ **timeRangeTimezone** | [**string**] | | (optional) defaults to undefined
+ **limit** | [**number**] | | (optional) defaults to undefined
+ **offset** | [**number**] | | (optional) defaults to undefined
+ **version** | [**number**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**AnalyticServiceLogQueryResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **queryRange**
+> MetricsServiceMetricsQueryResponse queryRange(body)
+
+The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiQueryRangeRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiQueryRangeRequest = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+
+ body: {
+ queries: [
+ {
+ query: "query_example",
+ alias: "alias_example",
+ id: "id_example",
+ labelSelector: {
+ "key": "key_example",
+ },
+ aggregate: {
+ op: "AVG",
+ grouping: [
+ "grouping_example",
+ ],
+ },
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ disabled: true,
+ },
+ ],
+ formulas: [
+ {
+ expression: "expression_example",
+ alias: "alias_example",
+ id: "id_example",
+ disabled: true,
+ functions: [
+ {
+ name: "name_example",
+ arguments: [
+ {
+ stringValue: "stringValue_example",
+ intValue: 1,
+ doubleValue: 3.14,
+ boolValue: true,
+ durationValue: {
+ value: 3.14,
+ unit: "unit_example",
+ },
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ samplesLimit: 1,
+ timeRange: {
+ start: "start_example",
+ end: "end_example",
+ step: 1,
+ timezone: "timezone_example",
+ },
+ projectId: "projectId_example",
+ version: 1,
+ samplesOffset: 1,
+ },
+};
+
+const data = await apiInstance.queryRange(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **MetricsServiceObservabilityServiceQueryRangeBody**| |
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+
+
+### Return type
+
+**MetricsServiceMetricsQueryResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **retention**
+> InsightsServiceRetentionResponse retention(body)
+
+Query for retention.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiRetentionRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiRetentionRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ body: {
+ projectId: "projectId_example",
+ version: 1,
+ timeRange: {
+ start: "start_example",
+ end: "end_example",
+ step: 1,
+ timezone: "timezone_example",
+ },
+ query: {
+ resources: [
+ {
+ eventNames: [
+ "eventNames_example",
+ ],
+ filter: {
+ propertyFilter: {
+ selector: {
+ key: "key_example",
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ logicExpr: {
+ expressions: [
+ ,
+ ],
+ operator: "AND",
+ },
+ },
+ timeFilter: {
+ type: "Disable",
+ },
+ },
+ },
+ ],
+ criteria: "OnOrAfter",
+ interval: {
+ value: 1,
+ unit: "Day",
+ },
+ selectorExpr: {
+ selector: {
+ key: "key_example",
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ logicExpr: {
+ expressions: [
+ ,
+ ],
+ operator: "AND",
+ },
+ },
+ groupBy: [
+ "groupBy_example",
+ ],
+ segmentBy: [
+ {
+ cohortId: "cohortId_example",
+ allUsers: true,
+ },
+ ],
+ windowSize: 1,
+ },
+ },
+};
+
+const data = await apiInstance.retention(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **InsightsServiceInsightsServiceRetentionBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**InsightsServiceRetentionResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **retention2**
+> InsightsServiceRetentionResponse retention2(body)
+
+Query for retention.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DataApi } from '';
+import type { DataApiRetention2Request } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DataApi(configuration);
+
+const request: DataApiRetention2Request = {
+
+ body: {
+ projectOwner: "projectOwner_example",
+ projectSlug: "projectSlug_example",
+ projectId: "projectId_example",
+ version: 1,
+ timeRange: {
+ start: "start_example",
+ end: "end_example",
+ step: 1,
+ timezone: "timezone_example",
+ },
+ query: {
+ resources: [
+ {
+ eventNames: [
+ "eventNames_example",
+ ],
+ filter: {
+ propertyFilter: {
+ selector: {
+ key: "key_example",
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ logicExpr: {
+ expressions: [
+ ,
+ ],
+ operator: "AND",
+ },
+ },
+ timeFilter: {
+ type: "Disable",
+ },
+ },
+ },
+ ],
+ criteria: "OnOrAfter",
+ interval: {
+ value: 1,
+ unit: "Day",
+ },
+ selectorExpr: {
+ selector: {
+ key: "key_example",
+ operator: "EQ",
+ value: [
+ {
+ intValue: 1,
+ longValue: "longValue_example",
+ doubleValue: 3.14,
+ stringValue: "stringValue_example",
+ boolValue: true,
+ dateValue: new Date('1970-01-01T00:00:00.00Z'),
+ listValue: {
+ values: [
+ "values_example",
+ ],
+ },
+ },
+ ],
+ },
+ logicExpr: {
+ expressions: [
+ ,
+ ],
+ operator: "AND",
+ },
+ },
+ groupBy: [
+ "groupBy_example",
+ ],
+ segmentBy: [
+ {
+ cohortId: "cohortId_example",
+ allUsers: true,
+ },
+ ],
+ windowSize: 1,
+ },
+ },
+};
+
+const data = await apiInstance.retention2(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **InsightsServiceRetentionRequest**| |
+
+
+### Return type
+
+**InsightsServiceRetentionResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+
diff --git a/src/DebugAndSimulationApi.md b/src/DebugAndSimulationApi.md
new file mode 100755
index 0000000..d3e255d
--- /dev/null
+++ b/src/DebugAndSimulationApi.md
@@ -0,0 +1,824 @@
+# .DebugAndSimulationApi
+
+All URIs are relative to *https://app.sentio.xyz*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getCallTraceByBundle**](DebugAndSimulationApi.md#getCallTraceByBundle) | **GET** /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace | Get trace by bundle simulation
+[**getCallTraceBySimulation**](DebugAndSimulationApi.md#getCallTraceBySimulation) | **GET** /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace | Get trace by simulation
+[**getCallTraceByTransaction**](DebugAndSimulationApi.md#getCallTraceByTransaction) | **GET** /api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace | Get trace by transaction
+[**getSimulation**](DebugAndSimulationApi.md#getSimulation) | **GET** /api/v1/solidity/{owner}/{slug}/simulation/{simulationId} | Get simulation by ID
+[**getSimulationBundleInProject**](DebugAndSimulationApi.md#getSimulationBundleInProject) | **GET** /api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId} | Get bundle simulation by ID
+[**getSimulations**](DebugAndSimulationApi.md#getSimulations) | **GET** /api/v1/solidity/{owner}/{slug}/simulation | Get list of simulations
+[**searchTransactions**](DebugAndSimulationApi.md#searchTransactions) | **GET** /api/v1/solidity/{owner}/{slug}/search_transactions | Search transactions
+[**simulateTransaction**](DebugAndSimulationApi.md#simulateTransaction) | **POST** /api/v1/solidity/{owner}/{slug}/{chainId}/simulation | Run simulation
+[**simulateTransactionBundle**](DebugAndSimulationApi.md#simulateTransactionBundle) | **POST** /api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle | Run bundle simulation
+
+
+# **getCallTraceByBundle**
+> GoogleApiHttpBody getCallTraceByBundle()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiGetCallTraceByBundleRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiGetCallTraceByBundleRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ chainId: "chainId_example",
+
+ bundleId: "bundleId_example",
+ // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional)
+ withInternalCalls: true,
+ // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional)
+ disableOptimizer: true,
+ // Only effective when disableOptimizer=true. (optional)
+ ignoreGasCost: true,
+};
+
+const data = await apiInstance.getCallTraceByBundle(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **chainId** | [**string**] | | defaults to undefined
+ **bundleId** | [**string**] | | defaults to undefined
+ **withInternalCalls** | [**boolean**] | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. | (optional) defaults to undefined
+ **disableOptimizer** | [**boolean**] | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. | (optional) defaults to undefined
+ **ignoreGasCost** | [**boolean**] | Only effective when disableOptimizer=true. | (optional) defaults to undefined
+
+
+### Return type
+
+**GoogleApiHttpBody**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getCallTraceBySimulation**
+> GoogleApiHttpBody getCallTraceBySimulation()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiGetCallTraceBySimulationRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiGetCallTraceBySimulationRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ chainId: "chainId_example",
+
+ simulationId: "simulationId_example",
+ // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional)
+ withInternalCalls: true,
+ // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional)
+ disableOptimizer: true,
+ // Only effective when disableOptimizer=true. (optional)
+ ignoreGasCost: true,
+};
+
+const data = await apiInstance.getCallTraceBySimulation(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **chainId** | [**string**] | | defaults to undefined
+ **simulationId** | [**string**] | | defaults to undefined
+ **withInternalCalls** | [**boolean**] | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. | (optional) defaults to undefined
+ **disableOptimizer** | [**boolean**] | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. | (optional) defaults to undefined
+ **ignoreGasCost** | [**boolean**] | Only effective when disableOptimizer=true. | (optional) defaults to undefined
+
+
+### Return type
+
+**GoogleApiHttpBody**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getCallTraceByTransaction**
+> GoogleApiHttpBody getCallTraceByTransaction()
+
+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. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/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. This allows you to build chart that marks the order of fund flow. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiGetCallTraceByTransactionRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiGetCallTraceByTransactionRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ chainId: "chainId_example",
+
+ txHash: "txHash_example",
+ // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional)
+ withInternalCalls: true,
+ // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional)
+ disableOptimizer: true,
+ // Only effective when disableOptimizer=true. (optional)
+ ignoreGasCost: true,
+};
+
+const data = await apiInstance.getCallTraceByTransaction(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **chainId** | [**string**] | | defaults to undefined
+ **txHash** | [**string**] | | defaults to undefined
+ **withInternalCalls** | [**boolean**] | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. | (optional) defaults to undefined
+ **disableOptimizer** | [**boolean**] | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. | (optional) defaults to undefined
+ **ignoreGasCost** | [**boolean**] | Only effective when disableOptimizer=true. | (optional) defaults to undefined
+
+
+### Return type
+
+**GoogleApiHttpBody**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getSimulation**
+> SolidityServiceGetSimulationResponse getSimulation()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiGetSimulationRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiGetSimulationRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ simulationId: "simulationId_example",
+};
+
+const data = await apiInstance.getSimulation(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **simulationId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceGetSimulationResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getSimulationBundleInProject**
+> SolidityServiceGetSimulationBundleResponse getSimulationBundleInProject()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiGetSimulationBundleInProjectRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiGetSimulationBundleInProjectRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ bundleId: "bundleId_example",
+};
+
+const data = await apiInstance.getSimulationBundleInProject(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **bundleId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceGetSimulationBundleResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getSimulations**
+> SolidityServiceGetSimulationsResponse getSimulations()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiGetSimulationsRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiGetSimulationsRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ labelContains: "labelContains_example",
+
+ page: 1,
+
+ pageSize: 1,
+};
+
+const data = await apiInstance.getSimulations(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **labelContains** | [**string**] | | (optional) defaults to undefined
+ **page** | [**number**] | | (optional) defaults to undefined
+ **pageSize** | [**number**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**SolidityServiceGetSimulationsResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **searchTransactions**
+> TxindexEvmSearchTransactionsResponse searchTransactions()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiSearchTransactionsRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiSearchTransactionsRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ chainId: [
+ "chainId_example",
+ ],
+
+ address: [
+ "address_example",
+ ],
+
+ includeDirect: true,
+
+ includeTrace: true,
+
+ includeIn: true,
+
+ includeOut: true,
+
+ startBlock: "startBlock_example",
+
+ endBlock: "endBlock_example",
+
+ startTimestamp: "startTimestamp_example",
+
+ endTimestamp: "endTimestamp_example",
+
+ transactionStatus: [
+ 1,
+ ],
+
+ methodSignature: "methodSignature_example",
+
+ limit: 1,
+
+ pageToken: 'YQ==',
+};
+
+const data = await apiInstance.searchTransactions(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **chainId** | **Array<string>** | | (optional) defaults to undefined
+ **address** | **Array<string>** | | (optional) defaults to undefined
+ **includeDirect** | [**boolean**] | | (optional) defaults to undefined
+ **includeTrace** | [**boolean**] | | (optional) defaults to undefined
+ **includeIn** | [**boolean**] | | (optional) defaults to undefined
+ **includeOut** | [**boolean**] | | (optional) defaults to undefined
+ **startBlock** | [**string**] | | (optional) defaults to undefined
+ **endBlock** | [**string**] | | (optional) defaults to undefined
+ **startTimestamp** | [**string**] | | (optional) defaults to undefined
+ **endTimestamp** | [**string**] | | (optional) defaults to undefined
+ **transactionStatus** | **Array<number>** | | (optional) defaults to undefined
+ **methodSignature** | [**string**] | | (optional) defaults to undefined
+ **limit** | [**number**] | | (optional) defaults to undefined
+ **pageToken** | [**string**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**TxindexEvmSearchTransactionsResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **simulateTransaction**
+> SolidityServiceSimulateTransactionResponse simulateTransaction(body)
+
+Create a new transaction simulation. The simulation body should be included in the request body. 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.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiSimulateTransactionRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiSimulateTransactionRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ chainId: "chainId_example",
+
+ body: {
+ simulation: {
+ id: "id_example",
+ createAt: "createAt_example",
+ bundleId: "bundleId_example",
+ networkId: "networkId_example",
+ chainId: "chainId_example",
+ chainSpec: {
+ chainId: "chainId_example",
+ forkId: "forkId_example",
+ },
+ to: "to_example",
+ input: "input_example",
+ blockNumber: "blockNumber_example",
+ transactionIndex: "transactionIndex_example",
+ _from: "_from_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ value: "value_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ originTxHash: "originTxHash_example",
+ label: "label_example",
+ stateOverrides: {
+ "key": {
+ state: {
+ "key": "key_example",
+ },
+ balance: "balance_example",
+ code: "code_example",
+ },
+ },
+ sourceOverrides: {
+ "key": "key_example",
+ },
+ blockOverride: {
+ blockNumber: "blockNumber_example",
+ timestamp: "timestamp_example",
+ gasLimit: "gasLimit_example",
+ difficulty: "difficulty_example",
+ baseFee: "baseFee_example",
+ blockHash: {
+ "key": "key_example",
+ },
+ },
+ debugDeployment: true,
+ result: {
+ transaction: {
+ blockNumber: "blockNumber_example",
+ blockHash: "blockHash_example",
+ transactionIndex: "transactionIndex_example",
+ hash: "hash_example",
+ chainId: "chainId_example",
+ type: "type_example",
+ _from: "_from_example",
+ to: "to_example",
+ input: "input_example",
+ value: "value_example",
+ nonce: "nonce_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ },
+ transactionReceipt: {
+ gasUsed: "gasUsed_example",
+ cumulativeGasUsed: "cumulativeGasUsed_example",
+ effectiveGasPrice: "effectiveGasPrice_example",
+ status: "status_example",
+ error: "error_example",
+ revertReason: "revertReason_example",
+ logs: [
+ {},
+ ],
+ },
+ },
+ },
+ },
+};
+
+const data = await apiInstance.simulateTransaction(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **SolidityServiceSolidityAPIServiceSimulateTransactionBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **chainId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceSimulateTransactionResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **simulateTransactionBundle**
+> SolidityServiceSimulateTransactionBundleResponse simulateTransactionBundle(body)
+
+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.
+
+### Example
+
+
+```typescript
+import { createConfiguration, DebugAndSimulationApi } from '';
+import type { DebugAndSimulationApiSimulateTransactionBundleRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new DebugAndSimulationApi(configuration);
+
+const request: DebugAndSimulationApiSimulateTransactionBundleRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ chainId: "chainId_example",
+
+ body: {
+ simulations: [
+ {
+ id: "id_example",
+ createAt: "createAt_example",
+ bundleId: "bundleId_example",
+ networkId: "networkId_example",
+ chainId: "chainId_example",
+ chainSpec: {
+ chainId: "chainId_example",
+ forkId: "forkId_example",
+ },
+ to: "to_example",
+ input: "input_example",
+ blockNumber: "blockNumber_example",
+ transactionIndex: "transactionIndex_example",
+ _from: "_from_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ value: "value_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ originTxHash: "originTxHash_example",
+ label: "label_example",
+ stateOverrides: {
+ "key": {
+ state: {
+ "key": "key_example",
+ },
+ balance: "balance_example",
+ code: "code_example",
+ },
+ },
+ sourceOverrides: {
+ "key": "key_example",
+ },
+ blockOverride: {
+ blockNumber: "blockNumber_example",
+ timestamp: "timestamp_example",
+ gasLimit: "gasLimit_example",
+ difficulty: "difficulty_example",
+ baseFee: "baseFee_example",
+ blockHash: {
+ "key": "key_example",
+ },
+ },
+ debugDeployment: true,
+ result: {
+ transaction: {
+ blockNumber: "blockNumber_example",
+ blockHash: "blockHash_example",
+ transactionIndex: "transactionIndex_example",
+ hash: "hash_example",
+ chainId: "chainId_example",
+ type: "type_example",
+ _from: "_from_example",
+ to: "to_example",
+ input: "input_example",
+ value: "value_example",
+ nonce: "nonce_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ },
+ transactionReceipt: {
+ gasUsed: "gasUsed_example",
+ cumulativeGasUsed: "cumulativeGasUsed_example",
+ effectiveGasPrice: "effectiveGasPrice_example",
+ status: "status_example",
+ error: "error_example",
+ revertReason: "revertReason_example",
+ logs: [
+ {},
+ ],
+ },
+ },
+ },
+ ],
+ },
+};
+
+const data = await apiInstance.simulateTransactionBundle(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **chainId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceSimulateTransactionBundleResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+
diff --git a/src/ForksApi.md b/src/ForksApi.md
new file mode 100755
index 0000000..45b6796
--- /dev/null
+++ b/src/ForksApi.md
@@ -0,0 +1,950 @@
+# .ForksApi
+
+All URIs are relative to *https://app.sentio.xyz*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createFork**](ForksApi.md#createFork) | **POST** /api/v1/solidity/{owner}/{slug}/fork | Create a fork
+[**deleteFork**](ForksApi.md#deleteFork) | **DELETE** /api/v1/solidity/{owner}/{slug}/fork/{id} | Delete fork by id
+[**getCallTraceOnForkBundle**](ForksApi.md#getCallTraceOnForkBundle) | **GET** /api/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace | Get trace by bundle simulation
+[**getCallTraceOnForkSimulation**](ForksApi.md#getCallTraceOnForkSimulation) | **GET** /api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace | Get trace by simulation
+[**getCallTraceOnForkTransaction**](ForksApi.md#getCallTraceOnForkTransaction) | **GET** /api/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace | Get trace by transaction
+[**getFork**](ForksApi.md#getFork) | **GET** /api/v1/solidity/{owner}/{slug}/fork/{id} | Get fork by id
+[**getForkInfo**](ForksApi.md#getForkInfo) | **GET** /api/v1/solidity/{owner}/{slug}/fork/{id}/info | Get fork info by id
+[**listForks**](ForksApi.md#listForks) | **GET** /api/v1/solidity/{owner}/{slug}/fork | List all forks
+[**simulateTransactionBundleOnFork**](ForksApi.md#simulateTransactionBundleOnFork) | **POST** /api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle | Run bundle simulation
+[**simulateTransactionOnFork**](ForksApi.md#simulateTransactionOnFork) | **POST** /api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation | Run Simulation
+[**updateFork**](ForksApi.md#updateFork) | **PUT** /api/v1/solidity/{owner}/{slug}/fork/{id} | Update fork by id
+
+
+# **createFork**
+> SolidityServiceCreateForkResponse createFork(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiCreateForkRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiCreateForkRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ body: {
+ fork: {
+ id: "id_example",
+ type: "MANAGED",
+ name: "name_example",
+ extra: "extra_example",
+ managedFork: {
+ chainSpec: {
+ chainId: "chainId_example",
+ forkId: "forkId_example",
+ },
+ rpcEndpoint: "rpcEndpoint_example",
+ parentBlockNumber: 1,
+ },
+ externalFork: {
+ chainConfig: {
+ endpoint: "endpoint_example",
+ debugEndpoint: "debugEndpoint_example",
+ sourceFetcherType: "ETHERSCAN",
+ sourceFetcherEndpoint: "sourceFetcherEndpoint_example",
+ sourceFetcherTimeout: "sourceFetcherTimeout_example",
+ sourceFetcherApiKeys: [
+ "sourceFetcherApiKeys_example",
+ ],
+ oklinkChainShortName: "oklinkChainShortName_example",
+ },
+ nodeAdditionalHeaders: "nodeAdditionalHeaders_example",
+ },
+ createTime: new Date('1970-01-01T00:00:00.00Z'),
+ updateTime: new Date('1970-01-01T00:00:00.00Z'),
+ },
+ },
+};
+
+const data = await apiInstance.createFork(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **SolidityServiceForkServiceCreateForkBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceCreateForkResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **deleteFork**
+> any deleteFork()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiDeleteForkRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiDeleteForkRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ id: "id_example",
+};
+
+const data = await apiInstance.deleteFork(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **id** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**any**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getCallTraceOnForkBundle**
+> GoogleApiHttpBody getCallTraceOnForkBundle()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiGetCallTraceOnForkBundleRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiGetCallTraceOnForkBundleRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ forkId: "forkId_example",
+
+ bundleId: "bundleId_example",
+ // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional)
+ withInternalCalls: true,
+ // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional)
+ disableOptimizer: true,
+ // Only effective when disableOptimizer=true. (optional)
+ ignoreGasCost: true,
+};
+
+const data = await apiInstance.getCallTraceOnForkBundle(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **forkId** | [**string**] | | defaults to undefined
+ **bundleId** | [**string**] | | defaults to undefined
+ **withInternalCalls** | [**boolean**] | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. | (optional) defaults to undefined
+ **disableOptimizer** | [**boolean**] | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. | (optional) defaults to undefined
+ **ignoreGasCost** | [**boolean**] | Only effective when disableOptimizer=true. | (optional) defaults to undefined
+
+
+### Return type
+
+**GoogleApiHttpBody**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getCallTraceOnForkSimulation**
+> GoogleApiHttpBody getCallTraceOnForkSimulation()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiGetCallTraceOnForkSimulationRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiGetCallTraceOnForkSimulationRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ forkId: "forkId_example",
+
+ simulationId: "simulationId_example",
+ // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional)
+ withInternalCalls: true,
+ // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional)
+ disableOptimizer: true,
+ // Only effective when disableOptimizer=true. (optional)
+ ignoreGasCost: true,
+};
+
+const data = await apiInstance.getCallTraceOnForkSimulation(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **forkId** | [**string**] | | defaults to undefined
+ **simulationId** | [**string**] | | defaults to undefined
+ **withInternalCalls** | [**boolean**] | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. | (optional) defaults to undefined
+ **disableOptimizer** | [**boolean**] | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. | (optional) defaults to undefined
+ **ignoreGasCost** | [**boolean**] | Only effective when disableOptimizer=true. | (optional) defaults to undefined
+
+
+### Return type
+
+**GoogleApiHttpBody**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getCallTraceOnForkTransaction**
+> GoogleApiHttpBody getCallTraceOnForkTransaction()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiGetCallTraceOnForkTransactionRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiGetCallTraceOnForkTransactionRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ forkId: "forkId_example",
+
+ txHash: "txHash_example",
+ // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional)
+ withInternalCalls: true,
+ // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional)
+ disableOptimizer: true,
+ // Only effective when disableOptimizer=true. (optional)
+ ignoreGasCost: true,
+};
+
+const data = await apiInstance.getCallTraceOnForkTransaction(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **forkId** | [**string**] | | defaults to undefined
+ **txHash** | [**string**] | | defaults to undefined
+ **withInternalCalls** | [**boolean**] | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. | (optional) defaults to undefined
+ **disableOptimizer** | [**boolean**] | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. | (optional) defaults to undefined
+ **ignoreGasCost** | [**boolean**] | Only effective when disableOptimizer=true. | (optional) defaults to undefined
+
+
+### Return type
+
+**GoogleApiHttpBody**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getFork**
+> SolidityServiceGetForkResponse getFork()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiGetForkRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiGetForkRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ id: "id_example",
+};
+
+const data = await apiInstance.getFork(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **id** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceGetForkResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getForkInfo**
+> SolidityServiceGetForkInfoResponse getForkInfo()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiGetForkInfoRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiGetForkInfoRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ id: "id_example",
+};
+
+const data = await apiInstance.getForkInfo(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **id** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceGetForkInfoResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **listForks**
+> SolidityServiceListForksResponse listForks()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiListForksRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiListForksRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+};
+
+const data = await apiInstance.listForks(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceListForksResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **simulateTransactionBundleOnFork**
+> SolidityServiceSimulateTransactionBundleResponse simulateTransactionBundleOnFork(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiSimulateTransactionBundleOnForkRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiSimulateTransactionBundleOnForkRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ forkId: "forkId_example",
+
+ body: {
+ simulations: [
+ {
+ id: "id_example",
+ createAt: "createAt_example",
+ bundleId: "bundleId_example",
+ networkId: "networkId_example",
+ chainId: "chainId_example",
+ chainSpec: {
+ chainId: "chainId_example",
+ forkId: "forkId_example",
+ },
+ to: "to_example",
+ input: "input_example",
+ blockNumber: "blockNumber_example",
+ transactionIndex: "transactionIndex_example",
+ _from: "_from_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ value: "value_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ originTxHash: "originTxHash_example",
+ label: "label_example",
+ stateOverrides: {
+ "key": {
+ state: {
+ "key": "key_example",
+ },
+ balance: "balance_example",
+ code: "code_example",
+ },
+ },
+ sourceOverrides: {
+ "key": "key_example",
+ },
+ blockOverride: {
+ blockNumber: "blockNumber_example",
+ timestamp: "timestamp_example",
+ gasLimit: "gasLimit_example",
+ difficulty: "difficulty_example",
+ baseFee: "baseFee_example",
+ blockHash: {
+ "key": "key_example",
+ },
+ },
+ debugDeployment: true,
+ result: {
+ transaction: {
+ blockNumber: "blockNumber_example",
+ blockHash: "blockHash_example",
+ transactionIndex: "transactionIndex_example",
+ hash: "hash_example",
+ chainId: "chainId_example",
+ type: "type_example",
+ _from: "_from_example",
+ to: "to_example",
+ input: "input_example",
+ value: "value_example",
+ nonce: "nonce_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ },
+ transactionReceipt: {
+ gasUsed: "gasUsed_example",
+ cumulativeGasUsed: "cumulativeGasUsed_example",
+ effectiveGasPrice: "effectiveGasPrice_example",
+ status: "status_example",
+ error: "error_example",
+ revertReason: "revertReason_example",
+ logs: [
+ {},
+ ],
+ },
+ },
+ },
+ ],
+ },
+};
+
+const data = await apiInstance.simulateTransactionBundleOnFork(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **forkId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceSimulateTransactionBundleResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **simulateTransactionOnFork**
+> SolidityServiceSimulateTransactionResponse simulateTransactionOnFork(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiSimulateTransactionOnForkRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiSimulateTransactionOnForkRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ forkId: "forkId_example",
+
+ body: {
+ simulation: {
+ id: "id_example",
+ createAt: "createAt_example",
+ bundleId: "bundleId_example",
+ networkId: "networkId_example",
+ chainId: "chainId_example",
+ chainSpec: {
+ chainId: "chainId_example",
+ forkId: "forkId_example",
+ },
+ to: "to_example",
+ input: "input_example",
+ blockNumber: "blockNumber_example",
+ transactionIndex: "transactionIndex_example",
+ _from: "_from_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ value: "value_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ originTxHash: "originTxHash_example",
+ label: "label_example",
+ stateOverrides: {
+ "key": {
+ state: {
+ "key": "key_example",
+ },
+ balance: "balance_example",
+ code: "code_example",
+ },
+ },
+ sourceOverrides: {
+ "key": "key_example",
+ },
+ blockOverride: {
+ blockNumber: "blockNumber_example",
+ timestamp: "timestamp_example",
+ gasLimit: "gasLimit_example",
+ difficulty: "difficulty_example",
+ baseFee: "baseFee_example",
+ blockHash: {
+ "key": "key_example",
+ },
+ },
+ debugDeployment: true,
+ result: {
+ transaction: {
+ blockNumber: "blockNumber_example",
+ blockHash: "blockHash_example",
+ transactionIndex: "transactionIndex_example",
+ hash: "hash_example",
+ chainId: "chainId_example",
+ type: "type_example",
+ _from: "_from_example",
+ to: "to_example",
+ input: "input_example",
+ value: "value_example",
+ nonce: "nonce_example",
+ gas: "gas_example",
+ gasPrice: "gasPrice_example",
+ maxFeePerGas: "maxFeePerGas_example",
+ maxPriorityFeePerGas: "maxPriorityFeePerGas_example",
+ accessList: [
+ {
+ address: "address_example",
+ storageKeys: [
+ "storageKeys_example",
+ ],
+ },
+ ],
+ },
+ transactionReceipt: {
+ gasUsed: "gasUsed_example",
+ cumulativeGasUsed: "cumulativeGasUsed_example",
+ effectiveGasPrice: "effectiveGasPrice_example",
+ status: "status_example",
+ error: "error_example",
+ revertReason: "revertReason_example",
+ logs: [
+ {},
+ ],
+ },
+ },
+ },
+ },
+};
+
+const data = await apiInstance.simulateTransactionOnFork(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **forkId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceSimulateTransactionResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **updateFork**
+> SolidityServiceUpdateForkResponse updateFork(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, ForksApi } from '';
+import type { ForksApiUpdateForkRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new ForksApi(configuration);
+
+const request: ForksApiUpdateForkRequest = {
+
+ owner: "owner_example",
+
+ slug: "slug_example",
+
+ id: "id_example",
+
+ body: {
+ fork: {
+ id: "id_example",
+ type: "MANAGED",
+ name: "name_example",
+ extra: "extra_example",
+ managedFork: {
+ chainSpec: {
+ chainId: "chainId_example",
+ forkId: "forkId_example",
+ },
+ rpcEndpoint: "rpcEndpoint_example",
+ parentBlockNumber: 1,
+ },
+ externalFork: {
+ chainConfig: {
+ endpoint: "endpoint_example",
+ debugEndpoint: "debugEndpoint_example",
+ sourceFetcherType: "ETHERSCAN",
+ sourceFetcherEndpoint: "sourceFetcherEndpoint_example",
+ sourceFetcherTimeout: "sourceFetcherTimeout_example",
+ sourceFetcherApiKeys: [
+ "sourceFetcherApiKeys_example",
+ ],
+ oklinkChainShortName: "oklinkChainShortName_example",
+ },
+ nodeAdditionalHeaders: "nodeAdditionalHeaders_example",
+ },
+ createTime: new Date('1970-01-01T00:00:00.00Z'),
+ updateTime: new Date('1970-01-01T00:00:00.00Z'),
+ },
+ },
+};
+
+const data = await apiInstance.updateFork(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **SolidityServiceForkServiceUpdateForkBody**| |
+ **owner** | [**string**] | | defaults to undefined
+ **slug** | [**string**] | | defaults to undefined
+ **id** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**SolidityServiceUpdateForkResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+
diff --git a/src/PriceApi.md b/src/PriceApi.md
new file mode 100755
index 0000000..eb87553
--- /dev/null
+++ b/src/PriceApi.md
@@ -0,0 +1,249 @@
+# .PriceApi
+
+All URIs are relative to *https://app.sentio.xyz*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**batchGetPrices**](PriceApi.md#batchGetPrices) | **POST** /api/v1/prices/batch | Batch get prices
+[**checkLatestPrice**](PriceApi.md#checkLatestPrice) | **GET** /api/v1/prices/check_latest | Check latest price
+[**getPrice**](PriceApi.md#getPrice) | **GET** /api/v1/prices | Get price
+[**priceListCoins**](PriceApi.md#priceListCoins) | **GET** /api/v1/prices/coins | List coins
+
+
+# **batchGetPrices**
+> PriceServiceBatchGetPricesResponse batchGetPrices(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, PriceApi } from '';
+import type { PriceApiBatchGetPricesRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new PriceApi(configuration);
+
+const request: PriceApiBatchGetPricesRequest = {
+
+ body: {
+ timestamps: [
+ new Date('1970-01-01T00:00:00.00Z'),
+ ],
+ coinIds: [
+ {
+ symbol: "symbol_example",
+ address: {
+ address: "address_example",
+ chain: "chain_example",
+ },
+ },
+ ],
+ },
+};
+
+const data = await apiInstance.batchGetPrices(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **PriceServiceBatchGetPricesRequest**| |
+
+
+### Return type
+
+**PriceServiceBatchGetPricesResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **checkLatestPrice**
+> PriceServiceCheckLatestPriceResponse checkLatestPrice()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, PriceApi } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new PriceApi(configuration);
+
+const request = {};
+
+const data = await apiInstance.checkLatestPrice(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+This endpoint does not need any parameter.
+
+
+### Return type
+
+**PriceServiceCheckLatestPriceResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getPrice**
+> PriceServiceGetPriceResponse getPrice()
+
+GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
+
+### Example
+
+
+```typescript
+import { createConfiguration, PriceApi } from '';
+import type { PriceApiGetPriceRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new PriceApi(configuration);
+
+const request: PriceApiGetPriceRequest = {
+ // The timestamp we request the price at. Note, the price service may not have the price at the exact timestamp, in which case it will return the price at the closest timestamp. (optional)
+ timestamp: new Date('1970-01-01T00:00:00.00Z'),
+
+ coinIdSymbol: "coinId.symbol_example",
+
+ coinIdAddressAddress: "coinId.address.address_example",
+
+ coinIdAddressChain: "coinId.address.chain_example",
+
+ source: "source_example",
+};
+
+const data = await apiInstance.getPrice(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **timestamp** | [**Date**] | The timestamp we request the price at. Note, the price service may not have the price at the exact timestamp, in which case it will return the price at the closest timestamp. | (optional) defaults to undefined
+ **coinIdSymbol** | [**string**] | | (optional) defaults to undefined
+ **coinIdAddressAddress** | [**string**] | | (optional) defaults to undefined
+ **coinIdAddressChain** | [**string**] | | (optional) defaults to undefined
+ **source** | [**string**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**PriceServiceGetPriceResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **priceListCoins**
+> PriceServiceListCoinsResponse priceListCoins()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, PriceApi } from '';
+import type { PriceApiPriceListCoinsRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new PriceApi(configuration);
+
+const request: PriceApiPriceListCoinsRequest = {
+
+ limit: 1,
+
+ offset: 1,
+
+ searchQuery: "searchQuery_example",
+
+ chain: "chain_example",
+};
+
+const data = await apiInstance.priceListCoins(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | [**number**] | | (optional) defaults to undefined
+ **offset** | [**number**] | | (optional) defaults to undefined
+ **searchQuery** | [**string**] | | (optional) defaults to undefined
+ **chain** | [**string**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**PriceServiceListCoinsResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+
diff --git a/src/README.md b/src/README.md
new file mode 100755
index 0000000..f1f2196
--- /dev/null
+++ b/src/README.md
@@ -0,0 +1,80 @@
+## @
+
+This generator creates TypeScript/JavaScript client that utilizes fetch-api.
+
+### Building
+
+To build and compile the typescript sources to javascript use:
+```
+npm install
+npm run build
+```
+
+### Publishing
+
+First build the package then run ```npm publish```
+
+### Consuming
+
+Navigate to the folder of your consuming project and run one of the following commands.
+
+_published:_
+
+```
+npm install @ --save
+```
+
+_unPublished (not recommended):_
+
+```
+npm install PATH_TO_GENERATED_PACKAGE --save
+```
+
+### Usage
+
+Below code snippet shows exemplary usage of the configuration and the API based
+on the typical `PetStore` example used for OpenAPI.
+
+```
+import * as your_api from 'your_api_package'
+
+// Covers all auth methods included in your OpenAPI yaml definition
+const authConfig: your_api.AuthMethodsConfiguration = {
+ "api_key": "YOUR_API_KEY"
+}
+
+// Implements a simple middleware to modify requests before (`pre`) they are sent
+// and after (`post`) they have been received
+class Test implements your_api.Middleware {
+ pre(context: your_api.RequestContext): Promise {
+ // Modify context here and return
+ return Promise.resolve(context);
+ }
+
+ post(context: your_api.ResponseContext): Promise {
+ return Promise.resolve(context);
+ }
+
+}
+
+// Create configuration parameter object
+const configurationParameters = {
+ httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine
+ baseServer: your_api.servers[0], // First server is default
+ authMethods: authConfig, // No auth is default
+ promiseMiddleware: [new Test()],
+}
+
+// Convert to actual configuration
+const config = your_api.createConfiguration(configurationParameters);
+
+// Use configuration with your_api
+const api = new your_api.PetApi(config);
+your_api.Pet p = new your_api.Pet();
+p.name = "My new pet";
+p.photoUrls = [];
+p.tags = [];
+p.status = "available";
+Promise createdPet = api.addPet(p);
+
+```
diff --git a/src/WebApi.md b/src/WebApi.md
new file mode 100755
index 0000000..e86edac
--- /dev/null
+++ b/src/WebApi.md
@@ -0,0 +1,541 @@
+# .WebApi
+
+All URIs are relative to *https://app.sentio.xyz*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**deleteDashboard**](WebApi.md#deleteDashboard) | **DELETE** /api/v1/dashboards/{dashboardId} | Delete a dashboard by id
+[**exportDashboard**](WebApi.md#exportDashboard) | **GET** /api/v1/dashboards/{dashboardId}/json | Export a dashboard to json
+[**getDashboard**](WebApi.md#getDashboard) | **GET** /api/v1/dashboards/{dashboardId} | Get a dashboard by id
+[**getDashboard2**](WebApi.md#getDashboard2) | **GET** /api/v1/projects/{owner}/{slug}/dashboards/{dashboardId} | Get a dashboard by id
+[**getProject**](WebApi.md#getProject) | **GET** /api/v1/project/{owner}/{slug} | Get project details
+[**getProjectList**](WebApi.md#getProjectList) | **GET** /api/v1/projects | Get project list
+[**importDashboard**](WebApi.md#importDashboard) | **POST** /api/v1/dashboards/json | Import a dashboard to another dashboard
+[**listDashboards**](WebApi.md#listDashboards) | **GET** /api/v1/dashboards | List all dashboards in a project
+[**listDashboards2**](WebApi.md#listDashboards2) | **GET** /api/v1/projects/{owner}/{slug}/dashboards | List all dashboards in a project
+
+
+# **deleteDashboard**
+> WebServiceDashboard deleteDashboard()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiDeleteDashboardRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiDeleteDashboardRequest = {
+ // filter the dashboard by id
+ dashboardId: "dashboardId_example",
+ // filter the dashboard by project id (optional)
+ projectId: "projectId_example",
+ // username or organization name (optional)
+ ownerName: "ownerName_example",
+ // project slug (optional)
+ slug: "slug_example",
+};
+
+const data = await apiInstance.deleteDashboard(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **dashboardId** | [**string**] | filter the dashboard by id | defaults to undefined
+ **projectId** | [**string**] | filter the dashboard by project id | (optional) defaults to undefined
+ **ownerName** | [**string**] | username or organization name | (optional) defaults to undefined
+ **slug** | [**string**] | project slug | (optional) defaults to undefined
+
+
+### Return type
+
+**WebServiceDashboard**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **exportDashboard**
+> WebServiceExportDashboardResponse exportDashboard()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiExportDashboardRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiExportDashboardRequest = {
+
+ dashboardId: "dashboardId_example",
+};
+
+const data = await apiInstance.exportDashboard(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **dashboardId** | [**string**] | | defaults to undefined
+
+
+### Return type
+
+**WebServiceExportDashboardResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getDashboard**
+> WebServiceGetDashboardResponse getDashboard()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiGetDashboardRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiGetDashboardRequest = {
+ // filter the dashboard by id
+ dashboardId: "dashboardId_example",
+ // filter the dashboard by project id (optional)
+ projectId: "projectId_example",
+ // username or organization name (optional)
+ ownerName: "ownerName_example",
+ // project slug (optional)
+ slug: "slug_example",
+};
+
+const data = await apiInstance.getDashboard(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **dashboardId** | [**string**] | filter the dashboard by id | defaults to undefined
+ **projectId** | [**string**] | filter the dashboard by project id | (optional) defaults to undefined
+ **ownerName** | [**string**] | username or organization name | (optional) defaults to undefined
+ **slug** | [**string**] | project slug | (optional) defaults to undefined
+
+
+### Return type
+
+**WebServiceGetDashboardResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getDashboard2**
+> WebServiceGetDashboardResponse getDashboard2()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiGetDashboard2Request } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiGetDashboard2Request = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+ // filter the dashboard by id
+ dashboardId: "dashboardId_example",
+ // filter the dashboard by project id (optional)
+ projectId: "projectId_example",
+};
+
+const data = await apiInstance.getDashboard2(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+ **dashboardId** | [**string**] | filter the dashboard by id | defaults to undefined
+ **projectId** | [**string**] | filter the dashboard by project id | (optional) defaults to undefined
+
+
+### Return type
+
+**WebServiceGetDashboardResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getProject**
+> WebServiceGetProjectResponse getProject()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiGetProjectRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiGetProjectRequest = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+};
+
+const data = await apiInstance.getProject(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+
+
+### Return type
+
+**WebServiceGetProjectResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **getProjectList**
+> WebServiceGetProjectListResponse getProjectList()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiGetProjectListRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiGetProjectListRequest = {
+
+ userId: "userId_example",
+
+ organizationId: "organizationId_example",
+};
+
+const data = await apiInstance.getProjectList(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | [**string**] | | (optional) defaults to undefined
+ **organizationId** | [**string**] | | (optional) defaults to undefined
+
+
+### Return type
+
+**WebServiceGetProjectListResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **importDashboard**
+> WebServiceImportDashboardResponse importDashboard(body)
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiImportDashboardRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiImportDashboardRequest = {
+
+ body: {
+ dashboardId: "dashboardId_example",
+ dashboardJson: {},
+ overrideLayouts: true,
+ },
+};
+
+const data = await apiInstance.importDashboard(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **WebServiceImportDashboardRequest**| |
+
+
+### Return type
+
+**WebServiceImportDashboardResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **listDashboards**
+> WebServiceGetDashboardResponse listDashboards()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiListDashboardsRequest } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiListDashboardsRequest = {
+ // filter the dashboard by id (optional)
+ dashboardId: "dashboardId_example",
+ // filter the dashboard by project id (optional)
+ projectId: "projectId_example",
+ // username or organization name (optional)
+ ownerName: "ownerName_example",
+ // project slug (optional)
+ slug: "slug_example",
+};
+
+const data = await apiInstance.listDashboards(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **dashboardId** | [**string**] | filter the dashboard by id | (optional) defaults to undefined
+ **projectId** | [**string**] | filter the dashboard by project id | (optional) defaults to undefined
+ **ownerName** | [**string**] | username or organization name | (optional) defaults to undefined
+ **slug** | [**string**] | project slug | (optional) defaults to undefined
+
+
+### Return type
+
+**WebServiceGetDashboardResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+# **listDashboards2**
+> WebServiceGetDashboardResponse listDashboards2()
+
+
+### Example
+
+
+```typescript
+import { createConfiguration, WebApi } from '';
+import type { WebApiListDashboards2Request } from '';
+
+const configuration = createConfiguration();
+const apiInstance = new WebApi(configuration);
+
+const request: WebApiListDashboards2Request = {
+ // username or organization name
+ owner: "owner_example",
+ // project slug
+ slug: "slug_example",
+ // filter the dashboard by id (optional)
+ dashboardId: "dashboardId_example",
+ // filter the dashboard by project id (optional)
+ projectId: "projectId_example",
+};
+
+const data = await apiInstance.listDashboards2(request);
+console.log('API called successfully. Returned data:', data);
+```
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | [**string**] | username or organization name | defaults to undefined
+ **slug** | [**string**] | project slug | defaults to undefined
+ **dashboardId** | [**string**] | filter the dashboard by id | (optional) defaults to undefined
+ **projectId** | [**string**] | filter the dashboard by project id | (optional) defaults to undefined
+
+
+### Return type
+
+**WebServiceGetDashboardResponse**
+
+### Authorization
+
+[ApiKeyAuth](README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | A successful response. | - |
+
+[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
+
+
diff --git a/src/apis/DataApi.ts b/src/apis/DataApi.ts
index 597da65..9d4391f 100755
--- a/src/apis/DataApi.ts
+++ b/src/apis/DataApi.ts
@@ -1,814 +1,1159 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Sentio API
- * Sentio Open API for query data
- *
- * The version of the OpenAPI document: version not set
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime.js';
-import type {
- AnalyticServiceAnalyticServiceExecuteSQLBody,
- AnalyticServiceLogQueryResponse,
- AnalyticServiceSearchServiceQueryLogBody,
- AnalyticServiceSyncExecuteSQLResponse,
- InsightsServiceInsightsServiceQueryBody,
- InsightsServiceInsightsServiceRetentionBody,
- InsightsServiceListCoinsResponse,
- InsightsServiceQueryResponse,
- InsightsServiceRetentionRequest,
- InsightsServiceRetentionResponse,
- MetricsServiceGetMetricsResponse,
- MetricsServiceMetricsQueryResponse,
- MetricsServiceObservabilityServiceQueryBody,
- MetricsServiceObservabilityServiceQueryRangeBody,
- MetricsServiceQueryValueResponse,
-} from '../models/index.js';
-import {
- AnalyticServiceAnalyticServiceExecuteSQLBodyFromJSON,
- AnalyticServiceAnalyticServiceExecuteSQLBodyToJSON,
- AnalyticServiceLogQueryResponseFromJSON,
- AnalyticServiceLogQueryResponseToJSON,
- AnalyticServiceSearchServiceQueryLogBodyFromJSON,
- AnalyticServiceSearchServiceQueryLogBodyToJSON,
- AnalyticServiceSyncExecuteSQLResponseFromJSON,
- AnalyticServiceSyncExecuteSQLResponseToJSON,
- InsightsServiceInsightsServiceQueryBodyFromJSON,
- InsightsServiceInsightsServiceQueryBodyToJSON,
- InsightsServiceInsightsServiceRetentionBodyFromJSON,
- InsightsServiceInsightsServiceRetentionBodyToJSON,
- InsightsServiceListCoinsResponseFromJSON,
- InsightsServiceListCoinsResponseToJSON,
- InsightsServiceQueryResponseFromJSON,
- InsightsServiceQueryResponseToJSON,
- InsightsServiceRetentionRequestFromJSON,
- InsightsServiceRetentionRequestToJSON,
- InsightsServiceRetentionResponseFromJSON,
- InsightsServiceRetentionResponseToJSON,
- MetricsServiceGetMetricsResponseFromJSON,
- MetricsServiceGetMetricsResponseToJSON,
- MetricsServiceMetricsQueryResponseFromJSON,
- MetricsServiceMetricsQueryResponseToJSON,
- MetricsServiceObservabilityServiceQueryBodyFromJSON,
- MetricsServiceObservabilityServiceQueryBodyToJSON,
- MetricsServiceObservabilityServiceQueryRangeBodyFromJSON,
- MetricsServiceObservabilityServiceQueryRangeBodyToJSON,
- MetricsServiceQueryValueResponseFromJSON,
- MetricsServiceQueryValueResponseToJSON,
-} from '../models/index.js';
-
-export interface ExecuteSQLRequest {
- owner: string;
- slug: string;
- body: AnalyticServiceAnalyticServiceExecuteSQLBody;
-}
-
-export interface GetMetricsRequest {
- projectId?: string;
- name?: string;
- version?: number;
-}
-
-export interface ListCoinsRequest {
- owner: string;
- slug: string;
- projectId?: string;
- version?: number;
- limit?: number;
- offset?: number;
- searchQuery?: string;
-}
-
-export interface ListCoins2Request {
- projectOwner?: string;
- projectSlug?: string;
- projectId?: string;
- version?: number;
- limit?: number;
- offset?: number;
- searchQuery?: string;
-}
-
-export interface QueryRequest {
- owner: string;
- slug: string;
- body: InsightsServiceInsightsServiceQueryBody;
-}
-
-export interface QueryInstantRequest {
- owner: string;
- slug: string;
- body: MetricsServiceObservabilityServiceQueryBody;
-}
-
-export interface QueryLogRequest {
- owner: string;
- slug: string;
- body: AnalyticServiceSearchServiceQueryLogBody;
-}
-
-export interface QueryLog2Request {
- owner: string;
- slug: string;
- projectId?: string;
- query?: string;
- timeRangeStartRelativeTimeUnit?: string;
- timeRangeStartRelativeTimeValue?: number;
- timeRangeStartRelativeTimeAlign?: string;
- timeRangeStartAbsoluteTime?: string;
- timeRangeEndRelativeTimeUnit?: string;
- timeRangeEndRelativeTimeValue?: number;
- timeRangeEndRelativeTimeAlign?: string;
- timeRangeEndAbsoluteTime?: string;
- timeRangeStep?: string;
- timeRangeIntervalValue?: number;
- timeRangeIntervalUnit?: string;
- timeRangeTimezone?: string;
- limit?: number;
- offset?: number;
- version?: number;
-}
-
-export interface QueryRangeRequest {
- owner: string;
- slug: string;
- body: MetricsServiceObservabilityServiceQueryRangeBody;
-}
-
-export interface RetentionRequest {
- owner: string;
- slug: string;
- body: InsightsServiceInsightsServiceRetentionBody;
-}
-
-export interface Retention2Request {
- body: InsightsServiceRetentionRequest;
-}
+// TODO: better import syntax?
+import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js';
+import {Configuration} from '../configuration.js';
+import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js';
+import {ObjectSerializer} from '../models/ObjectSerializer.js';
+import {ApiException} from './exception.js';
+import {canConsumeForm, isCodeInRange} from '../util.js';
+import {SecurityAuthentication} from '../auth/auth.js';
+
+
+import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js';
+import { AnalyticServiceLogQueryResponse } from '../models/AnalyticServiceLogQueryResponse.js';
+import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js';
+import { AnalyticServiceSyncExecuteSQLResponse } from '../models/AnalyticServiceSyncExecuteSQLResponse.js';
+import { InsightsServiceInsightsServiceQueryBody } from '../models/InsightsServiceInsightsServiceQueryBody.js';
+import { InsightsServiceInsightsServiceRetentionBody } from '../models/InsightsServiceInsightsServiceRetentionBody.js';
+import { InsightsServiceListCoinsResponse } from '../models/InsightsServiceListCoinsResponse.js';
+import { InsightsServiceQueryResponse } from '../models/InsightsServiceQueryResponse.js';
+import { InsightsServiceRetentionRequest } from '../models/InsightsServiceRetentionRequest.js';
+import { InsightsServiceRetentionResponse } from '../models/InsightsServiceRetentionResponse.js';
+import { MetricsServiceGetMetricsResponse } from '../models/MetricsServiceGetMetricsResponse.js';
+import { MetricsServiceMetricsQueryResponse } from '../models/MetricsServiceMetricsQueryResponse.js';
+import { MetricsServiceObservabilityServiceQueryBody } from '../models/MetricsServiceObservabilityServiceQueryBody.js';
+import { MetricsServiceObservabilityServiceQueryRangeBody } from '../models/MetricsServiceObservabilityServiceQueryRangeBody.js';
+import { MetricsServiceQueryValueResponse } from '../models/MetricsServiceQueryValueResponse.js';
/**
- *
+ * no description
*/
-export class DataApi extends runtime.BaseAPI {
+export class DataApiRequestFactory extends BaseAPIRequestFactory {
/**
* Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png) Find more: https://docs.sentio.xyz/reference/data#sql-api
* Execute SQL
+ * @param owner username or organization name
+ * @param slug project slug
+ * @param body
*/
- async executeSQLRaw(requestParameters: ExecuteSQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling executeSQL().'
- );
+ public async executeSQL(owner: string, slug: string, body: AnalyticServiceAnalyticServiceExecuteSQLBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "executeSQL", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling executeSQL().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "executeSQL", "slug");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling executeSQL().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "executeSQL", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/execute'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/analytics/{owner}/{slug}/sql/execute`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: AnalyticServiceAnalyticServiceExecuteSQLBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "AnalyticServiceAnalyticServiceExecuteSQLBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => AnalyticServiceSyncExecuteSQLResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Execute SQL in a project. Go to \"Data Studio\" -> \"SQL Editor\", write your query and then click \"Export as cURL\" ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png) Find more: https://docs.sentio.xyz/reference/data#sql-api
- * Execute SQL
- */
- async executeSQL(requestParameters: ExecuteSQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.executeSQLRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Get a list of metrics in a project
+ * @param projectId
+ * @param name
+ * @param version
*/
- async getMetricsRaw(requestParameters: GetMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const queryParameters: any = {};
+ public async getMetrics(projectId?: string, name?: string, version?: number, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
- if (requestParameters['projectId'] != null) {
- queryParameters['projectId'] = requestParameters['projectId'];
- }
- if (requestParameters['name'] != null) {
- queryParameters['name'] = requestParameters['name'];
- }
- if (requestParameters['version'] != null) {
- queryParameters['version'] = requestParameters['version'];
+ // Path Params
+ const localVarPath = '/api/v1/metrics';
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (projectId !== undefined) {
+ requestContext.setQueryParam("projectId", ObjectSerializer.serialize(projectId, "string", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (name !== undefined) {
+ requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (version !== undefined) {
+ requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "number", "int32"));
}
- const response = await this.request({
- path: `/api/v1/metrics`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => MetricsServiceGetMetricsResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Get a list of metrics in a project
- */
- async getMetrics(requestParameters: GetMetricsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getMetricsRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Get a list of coins in a project.
* List coins
+ * @param owner
+ * @param slug
+ * @param projectId
+ * @param version
+ * @param limit
+ * @param offset
+ * @param searchQuery
*/
- async listCoinsRaw(requestParameters: ListCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling listCoins().'
- );
+ public async listCoins(owner: string, slug: string, projectId?: string, version?: number, limit?: number, offset?: number, searchQuery?: string, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "listCoins", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling listCoins().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "listCoins", "slug");
}
- const queryParameters: any = {};
- if (requestParameters['projectId'] != null) {
- queryParameters['projectId'] = requestParameters['projectId'];
+
+
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/insights/{owner}/{slug}/coins'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (projectId !== undefined) {
+ requestContext.setQueryParam("projectId", ObjectSerializer.serialize(projectId, "string", ""));
}
- if (requestParameters['version'] != null) {
- queryParameters['version'] = requestParameters['version'];
+ // Query Params
+ if (version !== undefined) {
+ requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "number", "int32"));
}
- if (requestParameters['limit'] != null) {
- queryParameters['limit'] = requestParameters['limit'];
+ // Query Params
+ if (limit !== undefined) {
+ requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int32"));
}
- if (requestParameters['offset'] != null) {
- queryParameters['offset'] = requestParameters['offset'];
+ // Query Params
+ if (offset !== undefined) {
+ requestContext.setQueryParam("offset", ObjectSerializer.serialize(offset, "number", "int32"));
}
- if (requestParameters['searchQuery'] != null) {
- queryParameters['searchQuery'] = requestParameters['searchQuery'];
+ // Query Params
+ if (searchQuery !== undefined) {
+ requestContext.setQueryParam("searchQuery", ObjectSerializer.serialize(searchQuery, "string", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
}
- const response = await this.request({
- path: `/api/v1/insights/{owner}/{slug}/coins`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => InsightsServiceListCoinsResponseFromJSON(jsonValue));
+ return requestContext;
}
/**
* Get a list of coins in a project.
* List coins
+ * @param projectOwner
+ * @param projectSlug
+ * @param projectId
+ * @param version
+ * @param limit
+ * @param offset
+ * @param searchQuery
*/
- async listCoins(requestParameters: ListCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.listCoinsRaw(requestParameters, initOverrides);
- return await response.value();
- }
+ public async listCoins2(projectOwner?: string, projectSlug?: string, projectId?: string, version?: number, limit?: number, offset?: number, searchQuery?: string, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- /**
- * Get a list of coins in a project.
- * List coins
- */
- async listCoins2Raw(requestParameters: ListCoins2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const queryParameters: any = {};
- if (requestParameters['projectOwner'] != null) {
- queryParameters['projectOwner'] = requestParameters['projectOwner'];
- }
- if (requestParameters['projectSlug'] != null) {
- queryParameters['projectSlug'] = requestParameters['projectSlug'];
- }
- if (requestParameters['projectId'] != null) {
- queryParameters['projectId'] = requestParameters['projectId'];
+
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/insights/coins';
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (projectOwner !== undefined) {
+ requestContext.setQueryParam("projectOwner", ObjectSerializer.serialize(projectOwner, "string", ""));
}
- if (requestParameters['version'] != null) {
- queryParameters['version'] = requestParameters['version'];
+ // Query Params
+ if (projectSlug !== undefined) {
+ requestContext.setQueryParam("projectSlug", ObjectSerializer.serialize(projectSlug, "string", ""));
}
- if (requestParameters['limit'] != null) {
- queryParameters['limit'] = requestParameters['limit'];
+ // Query Params
+ if (projectId !== undefined) {
+ requestContext.setQueryParam("projectId", ObjectSerializer.serialize(projectId, "string", ""));
}
- if (requestParameters['offset'] != null) {
- queryParameters['offset'] = requestParameters['offset'];
+ // Query Params
+ if (version !== undefined) {
+ requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "number", "int32"));
}
- if (requestParameters['searchQuery'] != null) {
- queryParameters['searchQuery'] = requestParameters['searchQuery'];
+ // Query Params
+ if (limit !== undefined) {
+ requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int32"));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (offset !== undefined) {
+ requestContext.setQueryParam("offset", ObjectSerializer.serialize(offset, "number", "int32"));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (searchQuery !== undefined) {
+ requestContext.setQueryParam("searchQuery", ObjectSerializer.serialize(searchQuery, "string", ""));
}
- const response = await this.request({
- path: `/api/v1/insights/coins`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => InsightsServiceListCoinsResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Get a list of coins in a project.
- * List coins
- */
- async listCoins2(requestParameters: ListCoins2Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.listCoins2Raw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Query for metrics,event logs and coin prices in a project.
* Insight Query
+ * @param owner username or organization name
+ * @param slug project slug
+ * @param body
*/
- async queryRaw(requestParameters: QueryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling query().'
- );
+ public async query(owner: string, slug: string, body: InsightsServiceInsightsServiceQueryBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "query", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling query().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "query", "slug");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling query().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "query", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/insights/{owner}/{slug}/query'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/insights/{owner}/{slug}/query`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: InsightsServiceInsightsServiceQueryBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "InsightsServiceInsightsServiceQueryBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => InsightsServiceQueryResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Query for metrics,event logs and coin prices in a project.
- * Insight Query
- */
- async query(requestParameters: QueryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.queryRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Metric instant queries
+ * @param owner username or organization name
+ * @param slug project slug
+ * @param body
*/
- async queryInstantRaw(requestParameters: QueryInstantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling queryInstant().'
- );
+ public async queryInstant(owner: string, slug: string, body: MetricsServiceObservabilityServiceQueryBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "queryInstant", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling queryInstant().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "queryInstant", "slug");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling queryInstant().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "queryInstant", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/metrics/{owner}/{slug}/query'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/metrics/{owner}/{slug}/query`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: MetricsServiceObservabilityServiceQueryBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "MetricsServiceObservabilityServiceQueryBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => MetricsServiceQueryValueResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Metric instant queries
- */
- async queryInstant(requestParameters: QueryInstantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.queryInstantRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Query event logs
+ * @param owner
+ * @param slug
+ * @param body
*/
- async queryLogRaw(requestParameters: QueryLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling queryLog().'
- );
+ public async queryLog(owner: string, slug: string, body: AnalyticServiceSearchServiceQueryLogBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "queryLog", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling queryLog().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "queryLog", "slug");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling queryLog().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "queryLog", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/eventlogs/{owner}/{slug}'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/eventlogs/{owner}/{slug}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: AnalyticServiceSearchServiceQueryLogBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "AnalyticServiceSearchServiceQueryLogBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => AnalyticServiceLogQueryResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Query event logs
- */
- async queryLog(requestParameters: QueryLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.queryLogRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Query event logs
+ * @param owner
+ * @param slug
+ * @param projectId
+ * @param query
+ * @param timeRangeStartRelativeTimeUnit
+ * @param timeRangeStartRelativeTimeValue
+ * @param timeRangeStartRelativeTimeAlign
+ * @param timeRangeStartAbsoluteTime
+ * @param timeRangeEndRelativeTimeUnit
+ * @param timeRangeEndRelativeTimeValue
+ * @param timeRangeEndRelativeTimeAlign
+ * @param timeRangeEndAbsoluteTime
+ * @param timeRangeStep
+ * @param timeRangeIntervalValue
+ * @param timeRangeIntervalUnit
+ * @param timeRangeTimezone
+ * @param limit
+ * @param offset
+ * @param version
*/
- async queryLog2Raw(requestParameters: QueryLog2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling queryLog2().'
- );
- }
+ public async queryLog2(owner: string, slug: string, projectId?: string, query?: string, timeRangeStartRelativeTimeUnit?: string, timeRangeStartRelativeTimeValue?: number, timeRangeStartRelativeTimeAlign?: string, timeRangeStartAbsoluteTime?: string, timeRangeEndRelativeTimeUnit?: string, timeRangeEndRelativeTimeValue?: number, timeRangeEndRelativeTimeAlign?: string, timeRangeEndAbsoluteTime?: string, timeRangeStep?: string, timeRangeIntervalValue?: number, timeRangeIntervalUnit?: string, timeRangeTimezone?: string, limit?: number, offset?: number, version?: number, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling queryLog2().'
- );
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "queryLog2", "owner");
}
- const queryParameters: any = {};
- if (requestParameters['projectId'] != null) {
- queryParameters['projectId'] = requestParameters['projectId'];
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "queryLog2", "slug");
}
- if (requestParameters['query'] != null) {
- queryParameters['query'] = requestParameters['query'];
- }
- if (requestParameters['timeRangeStartRelativeTimeUnit'] != null) {
- queryParameters['timeRange.start.relativeTime.unit'] = requestParameters['timeRangeStartRelativeTimeUnit'];
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/eventlogs/{owner}/{slug}/query'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (projectId !== undefined) {
+ requestContext.setQueryParam("projectId", ObjectSerializer.serialize(projectId, "string", ""));
}
- if (requestParameters['timeRangeStartRelativeTimeValue'] != null) {
- queryParameters['timeRange.start.relativeTime.value'] = requestParameters['timeRangeStartRelativeTimeValue'];
+ // Query Params
+ if (query !== undefined) {
+ requestContext.setQueryParam("query", ObjectSerializer.serialize(query, "string", ""));
}
- if (requestParameters['timeRangeStartRelativeTimeAlign'] != null) {
- queryParameters['timeRange.start.relativeTime.align'] = requestParameters['timeRangeStartRelativeTimeAlign'];
+ // Query Params
+ if (timeRangeStartRelativeTimeUnit !== undefined) {
+ requestContext.setQueryParam("timeRange.start.relativeTime.unit", ObjectSerializer.serialize(timeRangeStartRelativeTimeUnit, "string", ""));
}
- if (requestParameters['timeRangeStartAbsoluteTime'] != null) {
- queryParameters['timeRange.start.absoluteTime'] = requestParameters['timeRangeStartAbsoluteTime'];
+ // Query Params
+ if (timeRangeStartRelativeTimeValue !== undefined) {
+ requestContext.setQueryParam("timeRange.start.relativeTime.value", ObjectSerializer.serialize(timeRangeStartRelativeTimeValue, "number", "int32"));
}
- if (requestParameters['timeRangeEndRelativeTimeUnit'] != null) {
- queryParameters['timeRange.end.relativeTime.unit'] = requestParameters['timeRangeEndRelativeTimeUnit'];
+ // Query Params
+ if (timeRangeStartRelativeTimeAlign !== undefined) {
+ requestContext.setQueryParam("timeRange.start.relativeTime.align", ObjectSerializer.serialize(timeRangeStartRelativeTimeAlign, "string", ""));
}
- if (requestParameters['timeRangeEndRelativeTimeValue'] != null) {
- queryParameters['timeRange.end.relativeTime.value'] = requestParameters['timeRangeEndRelativeTimeValue'];
+ // Query Params
+ if (timeRangeStartAbsoluteTime !== undefined) {
+ requestContext.setQueryParam("timeRange.start.absoluteTime", ObjectSerializer.serialize(timeRangeStartAbsoluteTime, "string", "int64"));
}
- if (requestParameters['timeRangeEndRelativeTimeAlign'] != null) {
- queryParameters['timeRange.end.relativeTime.align'] = requestParameters['timeRangeEndRelativeTimeAlign'];
+ // Query Params
+ if (timeRangeEndRelativeTimeUnit !== undefined) {
+ requestContext.setQueryParam("timeRange.end.relativeTime.unit", ObjectSerializer.serialize(timeRangeEndRelativeTimeUnit, "string", ""));
}
- if (requestParameters['timeRangeEndAbsoluteTime'] != null) {
- queryParameters['timeRange.end.absoluteTime'] = requestParameters['timeRangeEndAbsoluteTime'];
+ // Query Params
+ if (timeRangeEndRelativeTimeValue !== undefined) {
+ requestContext.setQueryParam("timeRange.end.relativeTime.value", ObjectSerializer.serialize(timeRangeEndRelativeTimeValue, "number", "int32"));
}
- if (requestParameters['timeRangeStep'] != null) {
- queryParameters['timeRange.step'] = requestParameters['timeRangeStep'];
+ // Query Params
+ if (timeRangeEndRelativeTimeAlign !== undefined) {
+ requestContext.setQueryParam("timeRange.end.relativeTime.align", ObjectSerializer.serialize(timeRangeEndRelativeTimeAlign, "string", ""));
}
- if (requestParameters['timeRangeIntervalValue'] != null) {
- queryParameters['timeRange.interval.value'] = requestParameters['timeRangeIntervalValue'];
+ // Query Params
+ if (timeRangeEndAbsoluteTime !== undefined) {
+ requestContext.setQueryParam("timeRange.end.absoluteTime", ObjectSerializer.serialize(timeRangeEndAbsoluteTime, "string", "int64"));
}
- if (requestParameters['timeRangeIntervalUnit'] != null) {
- queryParameters['timeRange.interval.unit'] = requestParameters['timeRangeIntervalUnit'];
+ // Query Params
+ if (timeRangeStep !== undefined) {
+ requestContext.setQueryParam("timeRange.step", ObjectSerializer.serialize(timeRangeStep, "string", "int64"));
}
- if (requestParameters['timeRangeTimezone'] != null) {
- queryParameters['timeRange.timezone'] = requestParameters['timeRangeTimezone'];
+ // Query Params
+ if (timeRangeIntervalValue !== undefined) {
+ requestContext.setQueryParam("timeRange.interval.value", ObjectSerializer.serialize(timeRangeIntervalValue, "number", "double"));
}
- if (requestParameters['limit'] != null) {
- queryParameters['limit'] = requestParameters['limit'];
+ // Query Params
+ if (timeRangeIntervalUnit !== undefined) {
+ requestContext.setQueryParam("timeRange.interval.unit", ObjectSerializer.serialize(timeRangeIntervalUnit, "string", ""));
}
- if (requestParameters['offset'] != null) {
- queryParameters['offset'] = requestParameters['offset'];
+ // Query Params
+ if (timeRangeTimezone !== undefined) {
+ requestContext.setQueryParam("timeRange.timezone", ObjectSerializer.serialize(timeRangeTimezone, "string", ""));
}
- if (requestParameters['version'] != null) {
- queryParameters['version'] = requestParameters['version'];
+ // Query Params
+ if (limit !== undefined) {
+ requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int32"));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (offset !== undefined) {
+ requestContext.setQueryParam("offset", ObjectSerializer.serialize(offset, "number", "int32"));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (version !== undefined) {
+ requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "number", "int32"));
}
- const response = await this.request({
- path: `/api/v1/eventlogs/{owner}/{slug}/query`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => AnalyticServiceLogQueryResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Query event logs
- */
- async queryLog2(requestParameters: QueryLog2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.queryLog2Raw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)
* Metric range queries
+ * @param owner username or organization name
+ * @param slug project slug
+ * @param body
*/
- async queryRangeRaw(requestParameters: QueryRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling queryRange().'
- );
+ public async queryRange(owner: string, slug: string, body: MetricsServiceObservabilityServiceQueryRangeBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "queryRange", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling queryRange().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "queryRange", "slug");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling queryRange().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "queryRange", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/metrics/{owner}/{slug}/query_range'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/metrics/{owner}/{slug}/query_range`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: MetricsServiceObservabilityServiceQueryRangeBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "MetricsServiceObservabilityServiceQueryRangeBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => MetricsServiceMetricsQueryResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)
- * Metric range queries
- */
- async queryRange(requestParameters: QueryRangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.queryRangeRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Query for retention.
* Retention query
+ * @param owner
+ * @param slug
+ * @param body
*/
- async retentionRaw(requestParameters: RetentionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling retention().'
- );
+ public async retention(owner: string, slug: string, body: InsightsServiceInsightsServiceRetentionBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DataApi", "retention", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling retention().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DataApi", "retention", "slug");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling retention().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "retention", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/insights/{owner}/{slug}/retention'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/insights/{owner}/{slug}/retention`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: InsightsServiceInsightsServiceRetentionBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "InsightsServiceInsightsServiceRetentionBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => InsightsServiceRetentionResponseFromJSON(jsonValue));
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
+
+ return requestContext;
}
/**
* Query for retention.
* Retention query
+ * @param body
*/
- async retention(requestParameters: RetentionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.retentionRaw(requestParameters, initOverrides);
- return await response.value();
+ public async retention2(body: InsightsServiceRetentionRequest, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DataApi", "retention2", "body");
+ }
+
+
+ // Path Params
+ const localVarPath = '/api/v1/insights/retention';
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "InsightsServiceRetentionRequest", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
+
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
+
+ return requestContext;
}
+}
+
+export class DataApiResponseProcessor {
+
/**
- * Query for retention.
- * Retention query
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to executeSQL
+ * @throws ApiException if the response code was not in [200, 299]
*/
- async retention2Raw(requestParameters: Retention2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling retention2().'
- );
- }
+ public async executeSQLWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: AnalyticServiceSyncExecuteSQLResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "AnalyticServiceSyncExecuteSQLResponse", ""
+ ) as AnalyticServiceSyncExecuteSQLResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: AnalyticServiceSyncExecuteSQLResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "AnalyticServiceSyncExecuteSQLResponse", ""
+ ) as AnalyticServiceSyncExecuteSQLResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
- const queryParameters: any = {};
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getMetrics
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getMetricsWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: MetricsServiceGetMetricsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "MetricsServiceGetMetricsResponse", ""
+ ) as MetricsServiceGetMetricsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: MetricsServiceGetMetricsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "MetricsServiceGetMetricsResponse", ""
+ ) as MetricsServiceGetMetricsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
- const headerParameters: runtime.HTTPHeaders = {};
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to listCoins
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async listCoinsWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: InsightsServiceListCoinsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceListCoinsResponse", ""
+ ) as InsightsServiceListCoinsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: InsightsServiceListCoinsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceListCoinsResponse", ""
+ ) as InsightsServiceListCoinsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
- headerParameters['Content-Type'] = 'application/json';
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to listCoins2
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async listCoins2WithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: InsightsServiceListCoinsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceListCoinsResponse", ""
+ ) as InsightsServiceListCoinsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: InsightsServiceListCoinsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceListCoinsResponse", ""
+ ) as InsightsServiceListCoinsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to query
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async queryWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: InsightsServiceQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceQueryResponse", ""
+ ) as InsightsServiceQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: InsightsServiceQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceQueryResponse", ""
+ ) as InsightsServiceQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
- const response = await this.request({
- path: `/api/v1/insights/retention`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: InsightsServiceRetentionRequestToJSON(requestParameters['body']),
- }, initOverrides);
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to queryInstant
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async queryInstantWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: MetricsServiceQueryValueResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "MetricsServiceQueryValueResponse", ""
+ ) as MetricsServiceQueryValueResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: MetricsServiceQueryValueResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "MetricsServiceQueryValueResponse", ""
+ ) as MetricsServiceQueryValueResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
- return new runtime.JSONApiResponse(response, (jsonValue) => InsightsServiceRetentionResponseFromJSON(jsonValue));
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to queryLog
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async queryLogWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: AnalyticServiceLogQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "AnalyticServiceLogQueryResponse", ""
+ ) as AnalyticServiceLogQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: AnalyticServiceLogQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "AnalyticServiceLogQueryResponse", ""
+ ) as AnalyticServiceLogQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
- * Query for retention.
- * Retention query
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to queryLog2
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async queryLog2WithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: AnalyticServiceLogQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "AnalyticServiceLogQueryResponse", ""
+ ) as AnalyticServiceLogQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: AnalyticServiceLogQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "AnalyticServiceLogQueryResponse", ""
+ ) as AnalyticServiceLogQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to queryRange
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async queryRangeWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: MetricsServiceMetricsQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "MetricsServiceMetricsQueryResponse", ""
+ ) as MetricsServiceMetricsQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: MetricsServiceMetricsQueryResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "MetricsServiceMetricsQueryResponse", ""
+ ) as MetricsServiceMetricsQueryResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to retention
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async retentionWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: InsightsServiceRetentionResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceRetentionResponse", ""
+ ) as InsightsServiceRetentionResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: InsightsServiceRetentionResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceRetentionResponse", ""
+ ) as InsightsServiceRetentionResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to retention2
+ * @throws ApiException if the response code was not in [200, 299]
*/
- async retention2(requestParameters: Retention2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.retention2Raw(requestParameters, initOverrides);
- return await response.value();
+ public async retention2WithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: InsightsServiceRetentionResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceRetentionResponse", ""
+ ) as InsightsServiceRetentionResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: InsightsServiceRetentionResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "InsightsServiceRetentionResponse", ""
+ ) as InsightsServiceRetentionResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}
diff --git a/src/apis/DebugAndSimulationApi.ts b/src/apis/DebugAndSimulationApi.ts
index 4c886cc..79904b2 100755
--- a/src/apis/DebugAndSimulationApi.ts
+++ b/src/apis/DebugAndSimulationApi.ts
@@ -1,733 +1,1006 @@
-/* tslint:disable */
-/* eslint-disable */
+// TODO: better import syntax?
+import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js';
+import {Configuration} from '../configuration.js';
+import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js';
+import {ObjectSerializer} from '../models/ObjectSerializer.js';
+import {ApiException} from './exception.js';
+import {canConsumeForm, isCodeInRange} from '../util.js';
+import {SecurityAuthentication} from '../auth/auth.js';
+
+
+import { GoogleApiHttpBody } from '../models/GoogleApiHttpBody.js';
+import { SolidityServiceGetSimulationBundleResponse } from '../models/SolidityServiceGetSimulationBundleResponse.js';
+import { SolidityServiceGetSimulationResponse } from '../models/SolidityServiceGetSimulationResponse.js';
+import { SolidityServiceGetSimulationsResponse } from '../models/SolidityServiceGetSimulationsResponse.js';
+import { SolidityServiceSimulateTransactionBundleResponse } from '../models/SolidityServiceSimulateTransactionBundleResponse.js';
+import { SolidityServiceSimulateTransactionResponse } from '../models/SolidityServiceSimulateTransactionResponse.js';
+import { SolidityServiceSolidityAPIServiceSimulateTransactionBody } from '../models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js';
+import { SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody } from '../models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js';
+import { TxindexEvmSearchTransactionsResponse } from '../models/TxindexEvmSearchTransactionsResponse.js';
+
/**
- * Sentio API
- * Sentio Open API for query data
- *
- * The version of the OpenAPI document: version not set
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
+ * no description
*/
+export class DebugAndSimulationApiRequestFactory extends BaseAPIRequestFactory {
+ /**
+ * Get trace by bundle simulation
+ * @param owner
+ * @param slug
+ * @param chainId
+ * @param bundleId
+ * @param withInternalCalls Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ * @param disableOptimizer Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ * @param ignoreGasCost Only effective when disableOptimizer=true.
+ */
+ public async getCallTraceByBundle(owner: string, slug: string, chainId: string, bundleId: string, withInternalCalls?: boolean, disableOptimizer?: boolean, ignoreGasCost?: boolean, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
-import * as runtime from '../runtime.js';
-import type {
- GoogleApiHttpBody,
- SolidityServiceGetSimulationBundleResponse,
- SolidityServiceGetSimulationResponse,
- SolidityServiceGetSimulationsResponse,
- SolidityServiceSimulateTransactionBundleResponse,
- SolidityServiceSimulateTransactionResponse,
- SolidityServiceSolidityAPIServiceSimulateTransactionBody,
- SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody,
- TxindexEvmSearchTransactionsResponse,
-} from '../models/index.js';
-import {
- GoogleApiHttpBodyFromJSON,
- GoogleApiHttpBodyToJSON,
- SolidityServiceGetSimulationBundleResponseFromJSON,
- SolidityServiceGetSimulationBundleResponseToJSON,
- SolidityServiceGetSimulationResponseFromJSON,
- SolidityServiceGetSimulationResponseToJSON,
- SolidityServiceGetSimulationsResponseFromJSON,
- SolidityServiceGetSimulationsResponseToJSON,
- SolidityServiceSimulateTransactionBundleResponseFromJSON,
- SolidityServiceSimulateTransactionBundleResponseToJSON,
- SolidityServiceSimulateTransactionResponseFromJSON,
- SolidityServiceSimulateTransactionResponseToJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionBodyFromJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFromJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON,
- TxindexEvmSearchTransactionsResponseFromJSON,
- TxindexEvmSearchTransactionsResponseToJSON,
-} from '../models/index.js';
-
-export interface GetCallTraceByBundleRequest {
- owner: string;
- slug: string;
- chainId: string;
- bundleId: string;
- withInternalCalls?: boolean;
- disableOptimizer?: boolean;
- ignoreGasCost?: boolean;
-}
-
-export interface GetCallTraceBySimulationRequest {
- owner: string;
- slug: string;
- chainId: string;
- simulationId: string;
- withInternalCalls?: boolean;
- disableOptimizer?: boolean;
- ignoreGasCost?: boolean;
-}
-
-export interface GetCallTraceByTransactionRequest {
- owner: string;
- slug: string;
- chainId: string;
- txHash: string;
- withInternalCalls?: boolean;
- disableOptimizer?: boolean;
- ignoreGasCost?: boolean;
-}
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByBundle", "owner");
+ }
-export interface GetSimulationRequest {
- owner: string;
- slug: string;
- simulationId: string;
-}
-export interface GetSimulationBundleInProjectRequest {
- owner: string;
- slug: string;
- bundleId: string;
-}
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByBundle", "slug");
+ }
-export interface GetSimulationsRequest {
- owner: string;
- slug: string;
- labelContains?: string;
- page?: number;
- pageSize?: number;
-}
-export interface SearchTransactionsRequest {
- owner: string;
- slug: string;
- chainId?: Array;
- address?: Array;
- includeDirect?: boolean;
- includeTrace?: boolean;
- includeIn?: boolean;
- includeOut?: boolean;
- startBlock?: string;
- endBlock?: string;
- startTimestamp?: string;
- endTimestamp?: string;
- transactionStatus?: Array;
- methodSignature?: string;
- limit?: number;
- pageToken?: string;
-}
+ // verify required parameter 'chainId' is not null or undefined
+ if (chainId === null || chainId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByBundle", "chainId");
+ }
-export interface SimulateTransactionRequest {
- owner: string;
- slug: string;
- chainId: string;
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBody;
-}
-export interface SimulateTransactionBundleRequest {
- owner: string;
- slug: string;
- chainId: string;
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
-}
+ // verify required parameter 'bundleId' is not null or undefined
+ if (bundleId === null || bundleId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByBundle", "bundleId");
+ }
-/**
- *
- */
-export class DebugAndSimulationApi extends runtime.BaseAPI {
- /**
- * Get trace by bundle simulation
- */
- async getCallTraceByBundleRaw(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling getCallTraceByBundle().'
- );
- }
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling getCallTraceByBundle().'
- );
- }
- if (requestParameters['chainId'] == null) {
- throw new runtime.RequiredError(
- 'chainId',
- 'Required parameter "chainId" was null or undefined when calling getCallTraceByBundle().'
- );
- }
- if (requestParameters['bundleId'] == null) {
- throw new runtime.RequiredError(
- 'bundleId',
- 'Required parameter "bundleId" was null or undefined when calling getCallTraceByBundle().'
- );
- }
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'chainId' + '}', encodeURIComponent(String(chainId)))
+ .replace('{' + 'bundleId' + '}', encodeURIComponent(String(bundleId)));
- const queryParameters: any = {};
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (requestParameters['withInternalCalls'] != null) {
- queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
+ // Query Params
+ if (withInternalCalls !== undefined) {
+ requestContext.setQueryParam("withInternalCalls", ObjectSerializer.serialize(withInternalCalls, "boolean", ""));
}
- if (requestParameters['disableOptimizer'] != null) {
- queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
+ // Query Params
+ if (disableOptimizer !== undefined) {
+ requestContext.setQueryParam("disableOptimizer", ObjectSerializer.serialize(disableOptimizer, "boolean", ""));
}
- if (requestParameters['ignoreGasCost'] != null) {
- queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
+ // Query Params
+ if (ignoreGasCost !== undefined) {
+ requestContext.setQueryParam("ignoreGasCost", ObjectSerializer.serialize(ignoreGasCost, "boolean", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
- }
-
- /**
- * Get trace by bundle simulation
- */
- async getCallTraceByBundle(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Get trace by simulation
+ * @param owner
+ * @param slug
+ * @param chainId
+ * @param simulationId
+ * @param withInternalCalls Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ * @param disableOptimizer Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ * @param ignoreGasCost Only effective when disableOptimizer=true.
*/
- async getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling getCallTraceBySimulation().'
- );
- }
+ public async getCallTraceBySimulation(owner: string, slug: string, chainId: string, simulationId: string, withInternalCalls?: boolean, disableOptimizer?: boolean, ignoreGasCost?: boolean, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().'
- );
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceBySimulation", "owner");
}
- if (requestParameters['chainId'] == null) {
- throw new runtime.RequiredError(
- 'chainId',
- 'Required parameter "chainId" was null or undefined when calling getCallTraceBySimulation().'
- );
- }
- if (requestParameters['simulationId'] == null) {
- throw new runtime.RequiredError(
- 'simulationId',
- 'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().'
- );
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceBySimulation", "slug");
}
- const queryParameters: any = {};
- if (requestParameters['withInternalCalls'] != null) {
- queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
+ // verify required parameter 'chainId' is not null or undefined
+ if (chainId === null || chainId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceBySimulation", "chainId");
}
- if (requestParameters['disableOptimizer'] != null) {
- queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
+
+ // verify required parameter 'simulationId' is not null or undefined
+ if (simulationId === null || simulationId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceBySimulation", "simulationId");
}
- if (requestParameters['ignoreGasCost'] != null) {
- queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
+
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'chainId' + '}', encodeURIComponent(String(chainId)))
+ .replace('{' + 'simulationId' + '}', encodeURIComponent(String(simulationId)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (withInternalCalls !== undefined) {
+ requestContext.setQueryParam("withInternalCalls", ObjectSerializer.serialize(withInternalCalls, "boolean", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (disableOptimizer !== undefined) {
+ requestContext.setQueryParam("disableOptimizer", ObjectSerializer.serialize(disableOptimizer, "boolean", ""));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (ignoreGasCost !== undefined) {
+ requestContext.setQueryParam("ignoreGasCost", ObjectSerializer.serialize(ignoreGasCost, "boolean", ""));
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Get trace by simulation
- */
- async getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* 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. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/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. This allows you to build chart that marks the order of fund flow. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)
* Get trace by transaction
+ * @param owner
+ * @param slug
+ * @param chainId
+ * @param txHash
+ * @param withInternalCalls Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ * @param disableOptimizer Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ * @param ignoreGasCost Only effective when disableOptimizer=true.
*/
- async getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling getCallTraceByTransaction().'
- );
- }
+ public async getCallTraceByTransaction(owner: string, slug: string, chainId: string, txHash: string, withInternalCalls?: boolean, disableOptimizer?: boolean, ignoreGasCost?: boolean, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().'
- );
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByTransaction", "owner");
}
- if (requestParameters['chainId'] == null) {
- throw new runtime.RequiredError(
- 'chainId',
- 'Required parameter "chainId" was null or undefined when calling getCallTraceByTransaction().'
- );
- }
- if (requestParameters['txHash'] == null) {
- throw new runtime.RequiredError(
- 'txHash',
- 'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().'
- );
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByTransaction", "slug");
}
- const queryParameters: any = {};
- if (requestParameters['withInternalCalls'] != null) {
- queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
+ // verify required parameter 'chainId' is not null or undefined
+ if (chainId === null || chainId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByTransaction", "chainId");
}
- if (requestParameters['disableOptimizer'] != null) {
- queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
+
+ // verify required parameter 'txHash' is not null or undefined
+ if (txHash === null || txHash === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getCallTraceByTransaction", "txHash");
}
- if (requestParameters['ignoreGasCost'] != null) {
- queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
+
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'chainId' + '}', encodeURIComponent(String(chainId)))
+ .replace('{' + 'txHash' + '}', encodeURIComponent(String(txHash)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (withInternalCalls !== undefined) {
+ requestContext.setQueryParam("withInternalCalls", ObjectSerializer.serialize(withInternalCalls, "boolean", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (disableOptimizer !== undefined) {
+ requestContext.setQueryParam("disableOptimizer", ObjectSerializer.serialize(disableOptimizer, "boolean", ""));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (ignoreGasCost !== undefined) {
+ requestContext.setQueryParam("ignoreGasCost", ObjectSerializer.serialize(ignoreGasCost, "boolean", ""));
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * 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. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/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. This allows you to build chart that marks the order of fund flow. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)
- * Get trace by transaction
- */
- async getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Get simulation by ID
+ * @param owner
+ * @param slug
+ * @param simulationId
*/
- async getSimulationRaw(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling getSimulation().'
- );
+ public async getSimulation(owner: string, slug: string, simulationId: string, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulation", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling getSimulation().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulation", "slug");
}
- if (requestParameters['simulationId'] == null) {
- throw new runtime.RequiredError(
- 'simulationId',
- 'Required parameter "simulationId" was null or undefined when calling getSimulation().'
- );
+
+ // verify required parameter 'simulationId' is not null or undefined
+ if (simulationId === null || simulationId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulation", "simulationId");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/simulation/{simulationId}'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'simulationId' + '}', encodeURIComponent(String(simulationId)));
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/simulation/{simulationId}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Get simulation by ID
- */
- async getSimulation(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getSimulationRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Get bundle simulation by ID
+ * @param owner
+ * @param slug
+ * @param bundleId
*/
- async getSimulationBundleInProjectRaw(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling getSimulationBundleInProject().'
- );
+ public async getSimulationBundleInProject(owner: string, slug: string, bundleId: string, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulationBundleInProject", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling getSimulationBundleInProject().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulationBundleInProject", "slug");
}
- if (requestParameters['bundleId'] == null) {
- throw new runtime.RequiredError(
- 'bundleId',
- 'Required parameter "bundleId" was null or undefined when calling getSimulationBundleInProject().'
- );
+
+ // verify required parameter 'bundleId' is not null or undefined
+ if (bundleId === null || bundleId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulationBundleInProject", "bundleId");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'bundleId' + '}', encodeURIComponent(String(bundleId)));
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationBundleResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Get bundle simulation by ID
- */
- async getSimulationBundleInProject(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Get list of simulations
+ * @param owner
+ * @param slug
+ * @param labelContains
+ * @param page
+ * @param pageSize
*/
- async getSimulationsRaw(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling getSimulations().'
- );
- }
+ public async getSimulations(owner: string, slug: string, labelContains?: string, page?: number, pageSize?: number, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling getSimulations().'
- );
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulations", "owner");
}
- const queryParameters: any = {};
- if (requestParameters['labelContains'] != null) {
- queryParameters['labelContains'] = requestParameters['labelContains'];
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "getSimulations", "slug");
}
- if (requestParameters['page'] != null) {
- queryParameters['page'] = requestParameters['page'];
- }
- if (requestParameters['pageSize'] != null) {
- queryParameters['pageSize'] = requestParameters['pageSize'];
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/simulation'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (labelContains !== undefined) {
+ requestContext.setQueryParam("labelContains", ObjectSerializer.serialize(labelContains, "string", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (page !== undefined) {
+ requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int32"));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (pageSize !== undefined) {
+ requestContext.setQueryParam("pageSize", ObjectSerializer.serialize(pageSize, "number", "int32"));
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationsResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Get list of simulations
- */
- async getSimulations(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.getSimulationsRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Search transactions
+ * @param owner
+ * @param slug
+ * @param chainId
+ * @param address
+ * @param includeDirect
+ * @param includeTrace
+ * @param includeIn
+ * @param includeOut
+ * @param startBlock
+ * @param endBlock
+ * @param startTimestamp
+ * @param endTimestamp
+ * @param transactionStatus
+ * @param methodSignature
+ * @param limit
+ * @param pageToken
*/
- async searchTransactionsRaw(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling searchTransactions().'
- );
- }
+ public async searchTransactions(owner: string, slug: string, chainId?: Array, address?: Array, includeDirect?: boolean, includeTrace?: boolean, includeIn?: boolean, includeOut?: boolean, startBlock?: string, endBlock?: string, startTimestamp?: string, endTimestamp?: string, transactionStatus?: Array, methodSignature?: string, limit?: number, pageToken?: string, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling searchTransactions().'
- );
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "searchTransactions", "owner");
}
- const queryParameters: any = {};
- if (requestParameters['chainId'] != null) {
- queryParameters['chainId'] = requestParameters['chainId'];
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "searchTransactions", "slug");
}
- if (requestParameters['address'] != null) {
- queryParameters['address'] = requestParameters['address'];
- }
- if (requestParameters['includeDirect'] != null) {
- queryParameters['includeDirect'] = requestParameters['includeDirect'];
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/search_transactions'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+ // Query Params
+ if (chainId !== undefined) {
+ const serializedParams = ObjectSerializer.serialize(chainId, "Array", "");
+ for (const serializedParam of serializedParams) {
+ requestContext.appendQueryParam("chainId", serializedParam);
+ }
}
- if (requestParameters['includeTrace'] != null) {
- queryParameters['includeTrace'] = requestParameters['includeTrace'];
+ // Query Params
+ if (address !== undefined) {
+ const serializedParams = ObjectSerializer.serialize(address, "Array", "");
+ for (const serializedParam of serializedParams) {
+ requestContext.appendQueryParam("address", serializedParam);
+ }
}
- if (requestParameters['includeIn'] != null) {
- queryParameters['includeIn'] = requestParameters['includeIn'];
+ // Query Params
+ if (includeDirect !== undefined) {
+ requestContext.setQueryParam("includeDirect", ObjectSerializer.serialize(includeDirect, "boolean", ""));
}
- if (requestParameters['includeOut'] != null) {
- queryParameters['includeOut'] = requestParameters['includeOut'];
+ // Query Params
+ if (includeTrace !== undefined) {
+ requestContext.setQueryParam("includeTrace", ObjectSerializer.serialize(includeTrace, "boolean", ""));
}
- if (requestParameters['startBlock'] != null) {
- queryParameters['startBlock'] = requestParameters['startBlock'];
+ // Query Params
+ if (includeIn !== undefined) {
+ requestContext.setQueryParam("includeIn", ObjectSerializer.serialize(includeIn, "boolean", ""));
}
- if (requestParameters['endBlock'] != null) {
- queryParameters['endBlock'] = requestParameters['endBlock'];
+ // Query Params
+ if (includeOut !== undefined) {
+ requestContext.setQueryParam("includeOut", ObjectSerializer.serialize(includeOut, "boolean", ""));
}
- if (requestParameters['startTimestamp'] != null) {
- queryParameters['startTimestamp'] = requestParameters['startTimestamp'];
+ // Query Params
+ if (startBlock !== undefined) {
+ requestContext.setQueryParam("startBlock", ObjectSerializer.serialize(startBlock, "string", "int64"));
}
- if (requestParameters['endTimestamp'] != null) {
- queryParameters['endTimestamp'] = requestParameters['endTimestamp'];
+ // Query Params
+ if (endBlock !== undefined) {
+ requestContext.setQueryParam("endBlock", ObjectSerializer.serialize(endBlock, "string", "int64"));
}
- if (requestParameters['transactionStatus'] != null) {
- queryParameters['transactionStatus'] = requestParameters['transactionStatus'];
+ // Query Params
+ if (startTimestamp !== undefined) {
+ requestContext.setQueryParam("startTimestamp", ObjectSerializer.serialize(startTimestamp, "string", "int64"));
}
- if (requestParameters['methodSignature'] != null) {
- queryParameters['methodSignature'] = requestParameters['methodSignature'];
+ // Query Params
+ if (endTimestamp !== undefined) {
+ requestContext.setQueryParam("endTimestamp", ObjectSerializer.serialize(endTimestamp, "string", "int64"));
}
- if (requestParameters['limit'] != null) {
- queryParameters['limit'] = requestParameters['limit'];
+ // Query Params
+ if (transactionStatus !== undefined) {
+ const serializedParams = ObjectSerializer.serialize(transactionStatus, "Array", "int32");
+ for (const serializedParam of serializedParams) {
+ requestContext.appendQueryParam("transactionStatus", serializedParam);
+ }
}
- if (requestParameters['pageToken'] != null) {
- queryParameters['pageToken'] = requestParameters['pageToken'];
+ // Query Params
+ if (methodSignature !== undefined) {
+ requestContext.setQueryParam("methodSignature", ObjectSerializer.serialize(methodSignature, "string", ""));
}
- const headerParameters: runtime.HTTPHeaders = {};
+ // Query Params
+ if (limit !== undefined) {
+ requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "int32"));
+ }
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Query Params
+ if (pageToken !== undefined) {
+ requestContext.setQueryParam("pageToken", ObjectSerializer.serialize(pageToken, "string", "byte"));
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/search_transactions`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => TxindexEvmSearchTransactionsResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Search transactions
- */
- async searchTransactions(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.searchTransactionsRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Create a new transaction simulation. The simulation body should be included in the request body. 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.
* Run simulation
+ * @param owner
+ * @param slug
+ * @param chainId
+ * @param body
*/
- async simulateTransactionRaw(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling simulateTransaction().'
- );
+ public async simulateTransaction(owner: string, slug: string, chainId: string, body: SolidityServiceSolidityAPIServiceSimulateTransactionBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransaction", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling simulateTransaction().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransaction", "slug");
}
- if (requestParameters['chainId'] == null) {
- throw new runtime.RequiredError(
- 'chainId',
- 'Required parameter "chainId" was null or undefined when calling simulateTransaction().'
- );
+
+ // verify required parameter 'chainId' is not null or undefined
+ if (chainId === null || chainId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransaction", "chainId");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling simulateTransaction().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransaction", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/{chainId}/simulation'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'chainId' + '}', encodeURIComponent(String(chainId)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "SolidityServiceSolidityAPIServiceSimulateTransactionBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Create a new transaction simulation. The simulation body should be included in the request body. 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.
- * Run simulation
- */
- async simulateTransaction(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* 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.
* Run bundle simulation
+ * @param owner
+ * @param slug
+ * @param chainId
+ * @param body
*/
- async simulateTransactionBundleRaw(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().'
- );
+ public async simulateTransactionBundle(owner: string, slug: string, chainId: string, body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransactionBundle", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransactionBundle", "slug");
}
- if (requestParameters['chainId'] == null) {
- throw new runtime.RequiredError(
- 'chainId',
- 'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().'
- );
+
+ // verify required parameter 'chainId' is not null or undefined
+ if (chainId === null || chainId === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransactionBundle", "chainId");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().'
- );
+
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("DebugAndSimulationApi", "simulateTransactionBundle", "body");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'chainId' + '}', encodeURIComponent(String(chainId)));
- headerParameters['Content-Type'] = 'application/json';
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
+
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
- }, initOverrides);
+ return requestContext;
+ }
+
+}
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
+export class DebugAndSimulationApiResponseProcessor {
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getCallTraceByBundle
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getCallTraceByBundleWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: GoogleApiHttpBody = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "GoogleApiHttpBody", ""
+ ) as GoogleApiHttpBody;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: GoogleApiHttpBody = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "GoogleApiHttpBody", ""
+ ) as GoogleApiHttpBody;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
- * 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.
- * Run bundle simulation
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getCallTraceBySimulation
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getCallTraceBySimulationWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: GoogleApiHttpBody = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "GoogleApiHttpBody", ""
+ ) as GoogleApiHttpBody;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: GoogleApiHttpBody = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "GoogleApiHttpBody", ""
+ ) as GoogleApiHttpBody;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getCallTraceByTransaction
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getCallTraceByTransactionWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: GoogleApiHttpBody = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "GoogleApiHttpBody", ""
+ ) as GoogleApiHttpBody;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: GoogleApiHttpBody = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "GoogleApiHttpBody", ""
+ ) as GoogleApiHttpBody;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getSimulation
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getSimulationWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: SolidityServiceGetSimulationResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceGetSimulationResponse", ""
+ ) as SolidityServiceGetSimulationResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: SolidityServiceGetSimulationResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceGetSimulationResponse", ""
+ ) as SolidityServiceGetSimulationResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getSimulationBundleInProject
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getSimulationBundleInProjectWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: SolidityServiceGetSimulationBundleResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceGetSimulationBundleResponse", ""
+ ) as SolidityServiceGetSimulationBundleResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: SolidityServiceGetSimulationBundleResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceGetSimulationBundleResponse", ""
+ ) as SolidityServiceGetSimulationBundleResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to getSimulations
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async getSimulationsWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: SolidityServiceGetSimulationsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceGetSimulationsResponse", ""
+ ) as SolidityServiceGetSimulationsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: SolidityServiceGetSimulationsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceGetSimulationsResponse", ""
+ ) as SolidityServiceGetSimulationsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to searchTransactions
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async searchTransactionsWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: TxindexEvmSearchTransactionsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "TxindexEvmSearchTransactionsResponse", ""
+ ) as TxindexEvmSearchTransactionsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: TxindexEvmSearchTransactionsResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "TxindexEvmSearchTransactionsResponse", ""
+ ) as TxindexEvmSearchTransactionsResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to simulateTransaction
+ * @throws ApiException if the response code was not in [200, 299]
+ */
+ public async simulateTransactionWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: SolidityServiceSimulateTransactionResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceSimulateTransactionResponse", ""
+ ) as SolidityServiceSimulateTransactionResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: SolidityServiceSimulateTransactionResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceSimulateTransactionResponse", ""
+ ) as SolidityServiceSimulateTransactionResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
+ }
+
+ /**
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
+ * to the expected objects
+ *
+ * @params response Response returned by the server for a request to simulateTransactionBundle
+ * @throws ApiException if the response code was not in [200, 299]
*/
- async simulateTransactionBundle(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
- return await response.value();
+ public async simulateTransactionBundleWithHttpInfo(response: ResponseContext): Promise> {
+ const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
+ if (isCodeInRange("200", response.httpStatusCode)) {
+ const body: SolidityServiceSimulateTransactionBundleResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceSimulateTransactionBundleResponse", ""
+ ) as SolidityServiceSimulateTransactionBundleResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ // Work around for missing responses in specification, e.g. for petstore.yaml
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
+ const body: SolidityServiceSimulateTransactionBundleResponse = ObjectSerializer.deserialize(
+ ObjectSerializer.parse(await response.body.text(), contentType),
+ "SolidityServiceSimulateTransactionBundleResponse", ""
+ ) as SolidityServiceSimulateTransactionBundleResponse;
+ return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
+ }
+
+ throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}
diff --git a/src/apis/ForksApi.ts b/src/apis/ForksApi.ts
index 4c02069..a155147 100755
--- a/src/apis/ForksApi.ts
+++ b/src/apis/ForksApi.ts
@@ -1,787 +1,1078 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Sentio API
- * Sentio Open API for query data
- *
- * The version of the OpenAPI document: version not set
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime.js';
-import type {
- GoogleApiHttpBody,
- SolidityServiceCreateForkResponse,
- SolidityServiceForkServiceCreateForkBody,
- SolidityServiceForkServiceUpdateForkBody,
- SolidityServiceGetForkInfoResponse,
- SolidityServiceGetForkResponse,
- SolidityServiceListForksResponse,
- SolidityServiceSimulateTransactionBundleResponse,
- SolidityServiceSimulateTransactionResponse,
- SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody,
- SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody,
- SolidityServiceUpdateForkResponse,
-} from '../models/index.js';
-import {
- GoogleApiHttpBodyFromJSON,
- GoogleApiHttpBodyToJSON,
- SolidityServiceCreateForkResponseFromJSON,
- SolidityServiceCreateForkResponseToJSON,
- SolidityServiceForkServiceCreateForkBodyFromJSON,
- SolidityServiceForkServiceCreateForkBodyToJSON,
- SolidityServiceForkServiceUpdateForkBodyFromJSON,
- SolidityServiceForkServiceUpdateForkBodyToJSON,
- SolidityServiceGetForkInfoResponseFromJSON,
- SolidityServiceGetForkInfoResponseToJSON,
- SolidityServiceGetForkResponseFromJSON,
- SolidityServiceGetForkResponseToJSON,
- SolidityServiceListForksResponseFromJSON,
- SolidityServiceListForksResponseToJSON,
- SolidityServiceSimulateTransactionBundleResponseFromJSON,
- SolidityServiceSimulateTransactionBundleResponseToJSON,
- SolidityServiceSimulateTransactionResponseFromJSON,
- SolidityServiceSimulateTransactionResponseToJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyFromJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyToJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyFromJSON,
- SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyToJSON,
- SolidityServiceUpdateForkResponseFromJSON,
- SolidityServiceUpdateForkResponseToJSON,
-} from '../models/index.js';
-
-export interface CreateForkRequest {
- owner: string;
- slug: string;
- body: SolidityServiceForkServiceCreateForkBody;
-}
-
-export interface DeleteForkRequest {
- owner: string;
- slug: string;
- id: string;
-}
-
-export interface GetCallTraceOnForkBundleRequest {
- owner: string;
- slug: string;
- forkId: string;
- bundleId: string;
- withInternalCalls?: boolean;
- disableOptimizer?: boolean;
- ignoreGasCost?: boolean;
-}
-
-export interface GetCallTraceOnForkSimulationRequest {
- owner: string;
- slug: string;
- forkId: string;
- simulationId: string;
- withInternalCalls?: boolean;
- disableOptimizer?: boolean;
- ignoreGasCost?: boolean;
-}
-
-export interface GetCallTraceOnForkTransactionRequest {
- owner: string;
- slug: string;
- forkId: string;
- txHash: string;
- withInternalCalls?: boolean;
- disableOptimizer?: boolean;
- ignoreGasCost?: boolean;
-}
-
-export interface GetForkRequest {
- owner: string;
- slug: string;
- id: string;
-}
-
-export interface GetForkInfoRequest {
- owner: string;
- slug: string;
- id: string;
-}
-
-export interface ListForksRequest {
- owner: string;
- slug: string;
-}
-
-export interface SimulateTransactionBundleOnForkRequest {
- owner: string;
- slug: string;
- forkId: string;
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody;
-}
-
-export interface SimulateTransactionOnForkRequest {
- owner: string;
- slug: string;
- forkId: string;
- body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody;
-}
-
-export interface UpdateForkRequest {
- owner: string;
- slug: string;
- id: string;
- body: SolidityServiceForkServiceUpdateForkBody;
-}
+// TODO: better import syntax?
+import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js';
+import {Configuration} from '../configuration.js';
+import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js';
+import {ObjectSerializer} from '../models/ObjectSerializer.js';
+import {ApiException} from './exception.js';
+import {canConsumeForm, isCodeInRange} from '../util.js';
+import {SecurityAuthentication} from '../auth/auth.js';
+
+
+import { GoogleApiHttpBody } from '../models/GoogleApiHttpBody.js';
+import { SolidityServiceCreateForkResponse } from '../models/SolidityServiceCreateForkResponse.js';
+import { SolidityServiceForkServiceCreateForkBody } from '../models/SolidityServiceForkServiceCreateForkBody.js';
+import { SolidityServiceForkServiceUpdateForkBody } from '../models/SolidityServiceForkServiceUpdateForkBody.js';
+import { SolidityServiceGetForkInfoResponse } from '../models/SolidityServiceGetForkInfoResponse.js';
+import { SolidityServiceGetForkResponse } from '../models/SolidityServiceGetForkResponse.js';
+import { SolidityServiceListForksResponse } from '../models/SolidityServiceListForksResponse.js';
+import { SolidityServiceSimulateTransactionBundleResponse } from '../models/SolidityServiceSimulateTransactionBundleResponse.js';
+import { SolidityServiceSimulateTransactionResponse } from '../models/SolidityServiceSimulateTransactionResponse.js';
+import { SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody } from '../models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.js';
+import { SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody } from '../models/SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.js';
+import { SolidityServiceUpdateForkResponse } from '../models/SolidityServiceUpdateForkResponse.js';
/**
- *
+ * no description
*/
-export class ForksApi extends runtime.BaseAPI {
+export class ForksApiRequestFactory extends BaseAPIRequestFactory {
/**
* Create a fork
+ * @param owner
+ * @param slug
+ * @param body
*/
- async createForkRaw(requestParameters: CreateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling createFork().'
- );
- }
+ public async createFork(owner: string, slug: string, body: SolidityServiceForkServiceCreateForkBody, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling createFork().'
- );
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("ForksApi", "createFork", "owner");
}
- if (requestParameters['body'] == null) {
- throw new runtime.RequiredError(
- 'body',
- 'Required parameter "body" was null or undefined when calling createFork().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("ForksApi", "createFork", "slug");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // verify required parameter 'body' is not null or undefined
+ if (body === null || body === undefined) {
+ throw new RequiredError("ForksApi", "createFork", "body");
+ }
- headerParameters['Content-Type'] = 'application/json';
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/fork'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)));
+
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
+
+
+ // Body Params
+ const contentType = ObjectSerializer.getPreferredMediaType([
+ "application/json"
+ ]);
+ requestContext.setHeaderParam("Content-Type", contentType);
+ const serializedBody = ObjectSerializer.stringify(
+ ObjectSerializer.serialize(body, "SolidityServiceForkServiceCreateForkBody", ""),
+ contentType
+ );
+ requestContext.setBody(serializedBody);
+
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
}
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/fork`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: SolidityServiceForkServiceCreateForkBodyToJSON(requestParameters['body']),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceCreateForkResponseFromJSON(jsonValue));
- }
-
- /**
- * Create a fork
- */
- async createFork(requestParameters: CreateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
- const response = await this.createForkRaw(requestParameters, initOverrides);
- return await response.value();
+ return requestContext;
}
/**
* Delete fork by id
+ * @param owner
+ * @param slug
+ * @param id
*/
- async deleteForkRaw(requestParameters: DeleteForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- if (requestParameters['owner'] == null) {
- throw new runtime.RequiredError(
- 'owner',
- 'Required parameter "owner" was null or undefined when calling deleteFork().'
- );
+ public async deleteFork(owner: string, slug: string, id: string, _options?: Configuration): Promise {
+ let _config = _options || this.configuration;
+
+ // verify required parameter 'owner' is not null or undefined
+ if (owner === null || owner === undefined) {
+ throw new RequiredError("ForksApi", "deleteFork", "owner");
}
- if (requestParameters['slug'] == null) {
- throw new runtime.RequiredError(
- 'slug',
- 'Required parameter "slug" was null or undefined when calling deleteFork().'
- );
+
+ // verify required parameter 'slug' is not null or undefined
+ if (slug === null || slug === undefined) {
+ throw new RequiredError("ForksApi", "deleteFork", "slug");
}
- if (requestParameters['id'] == null) {
- throw new runtime.RequiredError(
- 'id',
- 'Required parameter "id" was null or undefined when calling deleteFork().'
- );
+
+ // verify required parameter 'id' is not null or undefined
+ if (id === null || id === undefined) {
+ throw new RequiredError("ForksApi", "deleteFork", "id");
}
- const queryParameters: any = {};
- const headerParameters: runtime.HTTPHeaders = {};
+ // Path Params
+ const localVarPath = '/api/v1/solidity/{owner}/{slug}/fork/{id}'
+ .replace('{' + 'owner' + '}', encodeURIComponent(String(owner)))
+ .replace('{' + 'slug' + '}', encodeURIComponent(String(slug)))
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
- }
+ // Make Request Context
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
- const response = await this.request({
- path: `/api/v1/solidity/{owner}/{slug}/fork/{id}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
- return new runtime.JSONApiResponse(response);
- }
+ let authMethod: SecurityAuthentication | undefined;
+ // Apply auth methods
+ authMethod = _config.authMethods["ApiKeyAuth"]
+ if (authMethod?.applySecurityAuthentication) {
+ await authMethod?.applySecurityAuthentication(requestContext);
+ }
+
+ const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
+ if (defaultAuth?.applySecurityAuthentication) {
+ await defaultAuth?.applySecurityAuthentication(requestContext);
+ }
- /**
- * Delete fork by id
- */
- async deleteFork(requestParameters: DeleteForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise