Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentio Bot committed Jun 6, 2024
1 parent ef1042c commit e8c76c2
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 2,767 deletions.
1,533 changes: 4 additions & 1,529 deletions doc/index.html

Large diffs are not rendered by default.

271 changes: 6 additions & 265 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"/api/v1/analytics/sql/execute": {
"post": {
"summary": "Execute SQL",
"description": "Execute SQL in a project.\nFind more: \"https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api\"",
"description": "Execute SQL in a project.\nFind more: https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api",
"operationId": "ExecuteSQL2",
"responses": {
"200": {
Expand All @@ -40,37 +40,14 @@
],
"externalDocs": {
"description": "find more information here",
"url": "https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api"
"url": "https://docs.sentio.xyz/docs/data-api#sql-api"
}
}
},
"/api/v1/analytics/sql/save_and_run_query": {
"post": {
"operationId": "SaveAndRunSQL2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/analytic_service.SaveAndRunSQLResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/analytic_service.SaveAndRunSQLRequest"
}
}
]
}
},
"/api/v1/analytics/{owner}/{slug}/sql/execute": {
"post": {
"summary": "Execute SQL",
"description": "Execute SQL in a project.\nFind more: \"https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api\"",
"description": "Execute SQL in a project.\nFind more: https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api",
"operationId": "ExecuteSQL",
"responses": {
"200": {
Expand Down Expand Up @@ -109,47 +86,10 @@
],
"externalDocs": {
"description": "find more information here",
"url": "https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api"
"url": "https://docs.sentio.xyz/docs/data-api#sql-api"
}
}
},
"/api/v1/analytics/{owner}/{slug}/sql/save_and_run_query": {
"post": {
"operationId": "SaveAndRunSQL",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/analytic_service.SaveAndRunSQLResponse"
}
}
},
"parameters": [
{
"name": "owner",
"description": "username or organization name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "slug",
"description": "project slug",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/analytic_service.AnalyticService.SaveAndRunSQLBody"
}
}
]
}
},
"/api/v1/eventlogs/{owner}/{slug}": {
"post": {
"summary": "Query event logs",
Expand Down Expand Up @@ -1087,37 +1027,6 @@
]
}
},
"/api/v1/solidity/universal_search": {
"get": {
"operationId": "UniversalSearch",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/solidity_service.UniversalSearchResponse"
}
}
},
"parameters": [
{
"name": "q",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
}
],
"tags": [
"Debug and Simulation"
]
}
},
"/api/v1/dashboards": {
"get": {
"summary": "List all dashboards in a project",
Expand Down Expand Up @@ -1502,65 +1411,6 @@
}
}
},
"analytic_service.AnalyticService.SaveAndRunSQLBody": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"title": "use project id if project_owner and project_slug are not provided"
},
"version": {
"type": "integer",
"format": "int32",
"title": "version of the datasource, default to the active version if not provided"
},
"sqlQuery": {
"$ref": "#/definitions/analytic_service.SQLQuery"
}
}
},
"analytic_service.ExecutionInfo": {
"type": "object",
"properties": {
"queryId": {
"type": "string"
},
"executionId": {
"type": "string"
},
"status": {
"$ref": "#/definitions/analytic_service.ExecutionStatus"
},
"scheduledAt": {
"type": "string",
"format": "date-time"
},
"startedAt": {
"type": "string",
"format": "date-time"
},
"finishedAt": {
"type": "string",
"format": "date-time"
},
"result": {
"$ref": "#/definitions/common.TabularData"
},
"error": {
"type": "string"
}
}
},
"analytic_service.ExecutionStatus": {
"type": "string",
"enum": [
"PENDING",
"RUNNING",
"FINISHED",
"KILLED"
],
"default": "PENDING"
},
"analytic_service.LogQueryRequest.Filter": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1624,43 +1474,6 @@
}
}
},
"analytic_service.SaveAndRunSQLRequest": {
"type": "object",
"properties": {
"projectOwner": {
"type": "string",
"title": "username or organization name"
},
"projectSlug": {
"type": "string",
"title": "project slug"
},
"projectId": {
"type": "string",
"title": "use project id if project_owner and project_slug are not provided"
},
"version": {
"type": "integer",
"format": "int32",
"title": "version of the datasource, default to the active version if not provided"
},
"sqlQuery": {
"$ref": "#/definitions/analytic_service.SQLQuery"
}
}
},
"analytic_service.SaveAndRunSQLResponse": {
"type": "object",
"properties": {
"queueLength": {
"type": "integer",
"format": "int32"
},
"executionInfo": {
"$ref": "#/definitions/analytic_service.ExecutionInfo"
}
}
},
"analytic_service.SearchService.QueryLogBody": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2835,11 +2648,11 @@
"type": "string"
}
},
"description": "start and end time of the time range",
"description": "start and end time of the time range, Find more: https://docs.sentio.xyz/docs/data-api#time-range-configuration-guide",
"title": "Time range",
"externalDocs": {
"description": "Find more about time range here.",
"url": "https://api.docs.sentio.xyz/docs/data-api#time-range-configuration-guide"
"url": "https://docs.sentio.xyz/docs/data-api#time-range-configuration-guide"
},
"required": [
"start",
Expand Down Expand Up @@ -4212,78 +4025,6 @@
"txHash"
]
},
"solidity_service.UniversalSearchResponse": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/solidity_service.UniversalSearchResult"
}
}
}
},
"solidity_service.UniversalSearchResult": {
"type": "object",
"properties": {
"chainId": {
"type": "string"
},
"timestampMs": {
"type": "string",
"format": "uint64"
},
"transaction": {
"$ref": "#/definitions/solidity_service.UniversalSearchResultTransaction"
},
"contract": {
"$ref": "#/definitions/solidity_service.UniversalSearchResultContract"
}
}
},
"solidity_service.UniversalSearchResultContract": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"contractName": {
"type": "string"
}
}
},
"solidity_service.UniversalSearchResultTransaction": {
"type": "object",
"properties": {
"hash": {
"type": "string"
},
"blockNumber": {
"type": "string",
"format": "uint64"
},
"blockHash": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"methodId": {
"type": "string"
},
"status": {
"type": "integer",
"format": "int32"
},
"isTrace": {
"type": "boolean"
}
}
},
"txindex.EvmRawTransaction": {
"type": "object",
"properties": {
Expand Down
8 changes: 4 additions & 4 deletions src/apis/DataApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export interface Retention2Request {
export class DataApi extends runtime.BaseAPI {

/**
* Execute SQL in a project. Find more: \"https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api\"
* Execute SQL in a project. Find more: https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api
* Execute SQL
*/
async executeSQLRaw(requestParameters: ExecuteSQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AnalyticServiceSyncExecuteSQLResponse>> {
Expand Down Expand Up @@ -219,7 +219,7 @@ export class DataApi extends runtime.BaseAPI {
}

/**
* Execute SQL in a project. Find more: \"https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api\"
* Execute SQL in a project. Find more: https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api
* Execute SQL
*/
async executeSQL(requestParameters: ExecuteSQLRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AnalyticServiceSyncExecuteSQLResponse> {
Expand All @@ -228,7 +228,7 @@ export class DataApi extends runtime.BaseAPI {
}

/**
* Execute SQL in a project. Find more: \"https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api\"
* Execute SQL in a project. Find more: https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api
* Execute SQL
*/
async executeSQL2Raw(requestParameters: ExecuteSQL2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AnalyticServiceSyncExecuteSQLResponse>> {
Expand Down Expand Up @@ -261,7 +261,7 @@ export class DataApi extends runtime.BaseAPI {
}

/**
* Execute SQL in a project. Find more: \"https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api\"
* Execute SQL in a project. Find more: https://docs.sentio.xyz/access-sentio-via-apis/data-api#sql-api
* Execute SQL
*/
async executeSQL2(requestParameters: ExecuteSQL2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AnalyticServiceSyncExecuteSQLResponse> {
Expand Down
Loading

0 comments on commit e8c76c2

Please sign in to comment.