You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Code generated by [email protected].2 with openapi generator; DO NOT EDIT
3
+
# Code generated by [email protected].3 with openapi generator; DO NOT EDIT
4
4
#
5
5
# webrpc-gen -service=Trails -match=@public -schema=proto/trails-api.ridl -target=openapi -title=Trails API -securityAnnotation=@auth -securitySchemes={ 'ApiKeyAuth': { 'type': 'apiKey', 'in': 'header', 'description': 'Project access key for authenticating requests, get an access key at https://sequence.build', 'name': 'X-Access-Key' }, } -out=proto/docs/trails-api.gen.yaml
6
6
openapi: 3.0.0
7
7
info:
8
8
title: 'Trails API'
9
9
version: ''
10
-
servers:
11
-
- url: https://trails-api.sequence.app
12
-
description: Trails API Server
13
10
components:
14
-
securitySchemes: {'ApiKeyAuth': {'type': 'apiKey', 'in': 'header', 'description': 'apiKey for authenticating requests, get an access key at https://t.me/build_with_trails', 'name': 'X-Access-Key'}}
11
+
securitySchemes: {'ApiKeyAuth': {'type': 'apiKey', 'in': 'header', 'description': 'Project access key for authenticating requests, get an access key at https://sequence.build', 'name': 'X-Access-Key'}}
15
12
schemas:
16
13
ErrorWebrpcEndpoint:
17
14
type: object
@@ -849,6 +846,28 @@ components:
849
846
status:
850
847
type: number
851
848
example: 422
849
+
ErrorIntentsDisabled:
850
+
type: object
851
+
required:
852
+
- error
853
+
- code
854
+
- msg
855
+
- status
856
+
properties:
857
+
error:
858
+
type: string
859
+
example: "IntentsDisabled"
860
+
code:
861
+
type: number
862
+
example: 9000
863
+
msg:
864
+
type: string
865
+
example: "Intents service is currently unavailable"
866
+
cause:
867
+
type: string
868
+
status:
869
+
type: number
870
+
example: 400
852
871
TradeType:
853
872
type: string
854
873
description: Represented as string on the server side
@@ -867,12 +886,15 @@ components:
867
886
description: Represented as uint8 on the server side
868
887
enum:
869
888
- UNKNOWN
889
+
- ON_HOLD
870
890
- PENDING
871
891
- RELAYING
872
-
- RELAYED
892
+
- SENT
893
+
- ERRORED
873
894
- MINING
874
895
- SUCCEEDED
875
896
- FAILED
897
+
- ABORTED
876
898
IntentStatus:
877
899
type: string
878
900
description: Represented as uint8 on the server side
@@ -936,6 +958,7 @@ components:
936
958
type: object
937
959
required:
938
960
- id
961
+
- projectId
939
962
- intentId
940
963
- status
941
964
- quoteRequest
@@ -954,6 +977,8 @@ components:
954
977
properties:
955
978
id:
956
979
type: number
980
+
projectId:
981
+
type: number
957
982
intentId:
958
983
type: string
959
984
status:
@@ -1090,6 +1115,7 @@ components:
1090
1115
type: object
1091
1116
required:
1092
1117
- id
1118
+
- projectId
1093
1119
- intentId
1094
1120
- status
1095
1121
- ownerAddress
@@ -1099,11 +1125,11 @@ components:
1099
1125
- depositTransaction
1100
1126
- originTransactionId
1101
1127
- originTransaction
1102
-
- destinationTransactionId
1103
-
- destinationTransaction
1104
1128
properties:
1105
1129
id:
1106
1130
type: number
1131
+
projectId:
1132
+
type: number
1107
1133
intentId:
1108
1134
type: string
1109
1135
status:
@@ -1168,6 +1194,8 @@ components:
1168
1194
$ref: '#/components/schemas/DepositIntentEntry'
1169
1195
txnHash:
1170
1196
type: string
1197
+
txnMinedAt:
1198
+
type: string
1171
1199
status:
1172
1200
$ref: '#/components/schemas/TransactionStatus'
1173
1201
statusReason:
@@ -1611,6 +1639,7 @@ components:
1611
1639
- branch
1612
1640
- commitHash
1613
1641
- runnables
1642
+
- services
1614
1643
properties:
1615
1644
healthOK:
1616
1645
type: boolean
@@ -1626,6 +1655,26 @@ components:
1626
1655
type: string
1627
1656
runnables:
1628
1657
type: object
1658
+
services:
1659
+
type: array
1660
+
description: '[]ServiceStatus'
1661
+
items:
1662
+
$ref: '#/components/schemas/ServiceStatus'
1663
+
ServiceStatus:
1664
+
type: object
1665
+
required:
1666
+
- name
1667
+
- healthy
1668
+
- latency
1669
+
properties:
1670
+
name:
1671
+
type: string
1672
+
healthy:
1673
+
type: boolean
1674
+
error:
1675
+
type: string
1676
+
latency:
1677
+
type: string
1629
1678
QuoteIntentResponse:
1630
1679
type: object
1631
1680
required:
@@ -1719,12 +1768,16 @@ components:
1719
1768
SearchIntentsRequest:
1720
1769
type: object
1721
1770
properties:
1722
-
byOriginIntentAddress:
1771
+
byIntentId:
1723
1772
type: string
1724
-
byDepositTransactionHash:
1773
+
byProjectId:
1774
+
type: number
1775
+
byTransactionHash:
1725
1776
type: string
1726
1777
byOwnerAddress:
1727
1778
type: string
1779
+
byOriginIntentAddress:
1780
+
type: string
1728
1781
SearchIntentsResponse:
1729
1782
type: object
1730
1783
required:
@@ -1740,6 +1793,10 @@ components:
1740
1793
properties:
1741
1794
page:
1742
1795
$ref: '#/components/schemas/Page'
1796
+
byProjectId:
1797
+
type: number
1798
+
byOwnerAddress:
1799
+
type: string
1743
1800
GetIntentTransactionHistoryResponse:
1744
1801
type: object
1745
1802
required:
@@ -1781,181 +1838,3 @@ components:
1781
1838
order:
1782
1839
$ref: '#/components/schemas/SortOrder'
1783
1840
paths:
1784
-
/rpc/Trails/QuoteIntent:
1785
-
post:
1786
-
summary: Quote Intent
1787
-
description: Get a quote for a cross-chain intent transaction including gas fees and optimal routing
1788
-
operationId: QuoteIntent
1789
-
requestBody:
1790
-
required: true
1791
-
content:
1792
-
application/json:
1793
-
schema:
1794
-
$ref: '#/components/schemas/QuoteIntentRequest'
1795
-
responses:
1796
-
'200':
1797
-
description: Successful response
1798
-
content:
1799
-
application/json:
1800
-
schema:
1801
-
$ref: '#/components/schemas/QuoteIntentResponse'
1802
-
/rpc/Trails/CommitIntent:
1803
-
post:
1804
-
summary: Commit Intent
1805
-
description: Commit an intent to execute a cross-chain transaction
1806
-
operationId: CommitIntent
1807
-
requestBody:
1808
-
required: true
1809
-
content:
1810
-
application/json:
1811
-
schema:
1812
-
$ref: '#/components/schemas/CommitIntentRequest'
1813
-
responses:
1814
-
'200':
1815
-
description: Successful response
1816
-
content:
1817
-
application/json:
1818
-
schema:
1819
-
$ref: '#/components/schemas/CommitIntentResponse'
1820
-
/rpc/Trails/ExecuteIntent:
1821
-
post:
1822
-
summary: Execute Intent
1823
-
description: Execute a committed intent transaction
0 commit comments