diff --git a/docs/pages/api/trails-api/trails-api.gen.yaml b/docs/pages/api/trails-api/trails-api.gen.yaml new file mode 100644 index 00000000..91e78eb2 --- /dev/null +++ b/docs/pages/api/trails-api/trails-api.gen.yaml @@ -0,0 +1,1780 @@ +# trails-api v1.0.0 193cd6f08c65e11fee1f03aab0378d79e319e31f +# -- +# Code generated by webrpc-gen@v0.30.2 with openapi generator; DO NOT EDIT +# +# 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 +openapi: 3.0.0 +info: + title: 'Trails API' + version: '' +components: + 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'}} + schemas: + ErrorWebrpcEndpoint: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcEndpoint" + code: + type: number + example: 0 + msg: + type: string + example: "endpoint error" + cause: + type: string + status: + type: number + example: 400 + ErrorWebrpcRequestFailed: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcRequestFailed" + code: + type: number + example: -1 + msg: + type: string + example: "request failed" + cause: + type: string + status: + type: number + example: 400 + ErrorWebrpcBadRoute: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcBadRoute" + code: + type: number + example: -2 + msg: + type: string + example: "bad route" + cause: + type: string + status: + type: number + example: 404 + ErrorWebrpcBadMethod: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcBadMethod" + code: + type: number + example: -3 + msg: + type: string + example: "bad method" + cause: + type: string + status: + type: number + example: 405 + ErrorWebrpcBadRequest: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcBadRequest" + code: + type: number + example: -4 + msg: + type: string + example: "bad request" + cause: + type: string + status: + type: number + example: 400 + ErrorWebrpcBadResponse: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcBadResponse" + code: + type: number + example: -5 + msg: + type: string + example: "bad response" + cause: + type: string + status: + type: number + example: 500 + ErrorWebrpcServerPanic: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcServerPanic" + code: + type: number + example: -6 + msg: + type: string + example: "server panic" + cause: + type: string + status: + type: number + example: 500 + ErrorWebrpcInternalError: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcInternalError" + code: + type: number + example: -7 + msg: + type: string + example: "internal error" + cause: + type: string + status: + type: number + example: 500 + ErrorWebrpcClientAborted: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcClientAborted" + code: + type: number + example: -8 + msg: + type: string + example: "request aborted by client" + cause: + type: string + status: + type: number + example: 400 + ErrorWebrpcStreamLost: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcStreamLost" + code: + type: number + example: -9 + msg: + type: string + example: "stream lost" + cause: + type: string + status: + type: number + example: 400 + ErrorWebrpcStreamFinished: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "WebrpcStreamFinished" + code: + type: number + example: -10 + msg: + type: string + example: "stream finished" + cause: + type: string + status: + type: number + example: 200 + ErrorUnauthorized: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "Unauthorized" + code: + type: number + example: 1000 + msg: + type: string + example: "Unauthorized access" + cause: + type: string + status: + type: number + example: 401 + ErrorPermissionDenied: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "PermissionDenied" + code: + type: number + example: 1001 + msg: + type: string + example: "Permission denied" + cause: + type: string + status: + type: number + example: 403 + ErrorSessionExpired: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "SessionExpired" + code: + type: number + example: 1002 + msg: + type: string + example: "Session expired" + cause: + type: string + status: + type: number + example: 403 + ErrorMethodNotFound: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "MethodNotFound" + code: + type: number + example: 1003 + msg: + type: string + example: "Method not found" + cause: + type: string + status: + type: number + example: 404 + ErrorRequestConflict: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "RequestConflict" + code: + type: number + example: 1004 + msg: + type: string + example: "Conflict with target resource" + cause: + type: string + status: + type: number + example: 409 + ErrorAborted: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "Aborted" + code: + type: number + example: 1005 + msg: + type: string + example: "Request aborted" + cause: + type: string + status: + type: number + example: 400 + ErrorGeoblocked: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "Geoblocked" + code: + type: number + example: 1006 + msg: + type: string + example: "Geoblocked region" + cause: + type: string + status: + type: number + example: 451 + ErrorRateLimited: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "RateLimited" + code: + type: number + example: 1007 + msg: + type: string + example: "Rate-limited. Please slow down." + cause: + type: string + status: + type: number + example: 429 + ErrorProjectNotFound: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "ProjectNotFound" + code: + type: number + example: 1008 + msg: + type: string + example: "Project not found" + cause: + type: string + status: + type: number + example: 401 + ErrorAccessKeyNotFound: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "AccessKeyNotFound" + code: + type: number + example: 1101 + msg: + type: string + example: "Access key not found" + cause: + type: string + status: + type: number + example: 401 + ErrorAccessKeyMismatch: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "AccessKeyMismatch" + code: + type: number + example: 1102 + msg: + type: string + example: "Access key mismatch" + cause: + type: string + status: + type: number + example: 409 + ErrorInvalidOrigin: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "InvalidOrigin" + code: + type: number + example: 1103 + msg: + type: string + example: "Invalid origin for Access Key" + cause: + type: string + status: + type: number + example: 403 + ErrorInvalidService: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "InvalidService" + code: + type: number + example: 1104 + msg: + type: string + example: "Service not enabled for Access key" + cause: + type: string + status: + type: number + example: 403 + ErrorUnauthorizedUser: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "UnauthorizedUser" + code: + type: number + example: 1105 + msg: + type: string + example: "Unauthorized user" + cause: + type: string + status: + type: number + example: 403 + ErrorQuotaExceeded: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "QuotaExceeded" + code: + type: number + example: 1200 + msg: + type: string + example: "Quota request exceeded" + cause: + type: string + status: + type: number + example: 429 + ErrorQuotaRateLimit: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "QuotaRateLimit" + code: + type: number + example: 1201 + msg: + type: string + example: "Quota rate limit exceeded" + cause: + type: string + status: + type: number + example: 429 + ErrorNoDefaultKey: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "NoDefaultKey" + code: + type: number + example: 1300 + msg: + type: string + example: "No default access key found" + cause: + type: string + status: + type: number + example: 403 + ErrorMaxAccessKeys: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "MaxAccessKeys" + code: + type: number + example: 1301 + msg: + type: string + example: "Access keys limit reached" + cause: + type: string + status: + type: number + example: 403 + ErrorAtLeastOneKey: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "AtLeastOneKey" + code: + type: number + example: 1302 + msg: + type: string + example: "You need at least one Access Key" + cause: + type: string + status: + type: number + example: 403 + ErrorTimeout: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "Timeout" + code: + type: number + example: 1900 + msg: + type: string + example: "Request timed out" + cause: + type: string + status: + type: number + example: 408 + ErrorInvalidArgument: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "InvalidArgument" + code: + type: number + example: 2000 + msg: + type: string + example: "Invalid argument" + cause: + type: string + status: + type: number + example: 400 + ErrorUnexpected: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "Unexpected" + code: + type: number + example: 2001 + msg: + type: string + example: "Unexpected server error" + cause: + type: string + status: + type: number + example: 500 + ErrorUnavailable: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "Unavailable" + code: + type: number + example: 2002 + msg: + type: string + example: "Unavailable resource" + cause: + type: string + status: + type: number + example: 400 + ErrorQueryFailed: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "QueryFailed" + code: + type: number + example: 2003 + msg: + type: string + example: "Query failed" + cause: + type: string + status: + type: number + example: 400 + ErrorIntentStatus: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "IntentStatus" + code: + type: number + example: 2004 + msg: + type: string + example: "Invalid intent status" + cause: + type: string + status: + type: number + example: 422 + ErrorNotFound: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "NotFound" + code: + type: number + example: 8000 + msg: + type: string + example: "Resource not found" + cause: + type: string + status: + type: number + example: 400 + ErrorUnsupportedNetwork: + type: object + required: + - error + - code + - msg + - status + properties: + error: + type: string + example: "UnsupportedNetwork" + code: + type: number + example: 8008 + msg: + type: string + example: "Unsupported network" + cause: + type: string + status: + type: number + example: 422 + TradeType: + type: string + description: Represented as string on the server side + enum: + - EXACT_INPUT + - EXACT_OUTPUT + QuoteProviderType: + type: string + description: Represented as string on the server side + enum: + - RELAY + - CCTPV2 + - LIFI + TransactionStatus: + type: string + description: Represented as uint8 on the server side + enum: + - UNKNOWN + - PENDING + - RELAYING + - RELAYED + - MINING + - SUCCEEDED + - FAILED + IntentStatus: + type: string + description: Represented as uint8 on the server side + enum: + - QUOTED + - COMMITTED + - EXECUTING + - FAILED + - SUCCEEDED + ChainGasUsageStatus: + type: string + description: Represented as string on the server side + enum: + - NORMAL + - BUSY + - VERY_BUSY + QuoteIntentRequest: + type: object + required: + - ownerAddress + - originChainId + - originTokenAddress + - destinationChainId + - destinationTokenAddress + - destinationToAddress + properties: + ownerAddress: + type: string + originChainId: + type: number + originTokenAddress: + type: string + destinationChainId: + type: number + destinationTokenAddress: + type: string + destinationToAddress: + type: string + destinationCallData: + type: string + destinationCallValue: + type: string + originTokenAmount: + type: number + destinationTokenAmount: + type: number + tradeType: + $ref: '#/components/schemas/TradeType' + options: + $ref: '#/components/schemas/QuoteIntentRequestOptions' + QuoteIntentRequestOptions: + type: object + properties: + quoteProvider: + $ref: '#/components/schemas/QuoteProviderType' + slippageTolerance: + type: number + trailsAddressOverrides: + $ref: '#/components/schemas/TrailsAddressOverrides' + Intent: + type: object + required: + - id + - intentId + - status + - quoteRequest + - ownerAddress + - originIntentAddress + - destinationIntentAddress + - destinationSalt + - depositTransaction + - calls + - preconditions + - metaTxns + - quote + - fees + - trailsVersion + - expiresAt + properties: + id: + type: number + intentId: + type: string + status: + $ref: '#/components/schemas/IntentStatus' + quoteRequest: + $ref: '#/components/schemas/QuoteIntentRequest' + ownerAddress: + type: string + originIntentAddress: + type: string + destinationIntentAddress: + type: string + destinationSalt: + type: number + depositTransaction: + $ref: '#/components/schemas/DepositTransaction' + calls: + type: array + description: '[]IntentCalls' + items: + $ref: '#/components/schemas/IntentCalls' + preconditions: + type: array + description: '[]TransactionPrecondition' + items: + $ref: '#/components/schemas/TransactionPrecondition' + metaTxns: + type: array + description: '[]MetaTxn' + items: + $ref: '#/components/schemas/MetaTxn' + quote: + $ref: '#/components/schemas/IntentProviderQuote' + fees: + $ref: '#/components/schemas/IntentFees' + trailsVersion: + type: string + expiresAt: + type: string + updatedAt: + type: string + createdAt: + type: string + DepositTransaction: + type: object + required: + - toAddress + - tokenAddress + - amount + properties: + toAddress: + type: string + tokenAddress: + type: string + decimals: + type: number + amount: + type: number + IntentCalls: + type: object + required: + - chainId + - calls + properties: + chainId: + type: number + space: + type: number + nonce: + type: number + calls: + type: array + description: '[]TransactionCall' + items: + $ref: '#/components/schemas/TransactionCall' + TransactionCall: + type: object + required: + - to + properties: + to: + type: string + value: + type: number + data: + type: string + gasLimit: + type: number + delegateCall: + type: boolean + onlyFallback: + type: boolean + behaviorOnError: + type: number + TransactionPrecondition: + type: object + required: + - type + - chainId + - ownerAddress + - tokenAddress + - minAmount + properties: + type: + type: string + chainId: + type: number + ownerAddress: + type: string + tokenAddress: + type: string + minAmount: + type: number + MetaTxn: + type: object + required: + - id + - chainId + - walletAddress + - contract + - input + properties: + id: + type: string + chainId: + type: number + walletAddress: + type: string + contract: + type: string + input: + type: string + IntentReceipt: + type: object + required: + - id + - intentId + - status + - ownerAddress + - originChainId + - destinationChainId + - depositTransactionId + - depositTransaction + - originTransactionId + - originTransaction + - destinationTransactionId + - destinationTransaction + properties: + id: + type: number + intentId: + type: string + status: + $ref: '#/components/schemas/IntentStatus' + ownerAddress: + type: string + originChainId: + type: number + destinationChainId: + type: number + depositTransactionId: + type: number + depositTransaction: + $ref: '#/components/schemas/IntentTransaction' + originTransactionId: + type: number + originTransaction: + $ref: '#/components/schemas/IntentTransaction' + destinationTransactionId: + type: number + destinationTransaction: + $ref: '#/components/schemas/IntentTransaction' + updatedAt: + type: string + createdAt: + type: string + IntentTransaction: + type: object + required: + - id + - intentId + - chainId + - fromAddress + - toAddress + - tokenAddress + - tokenAmount + - status + properties: + id: + type: number + intentId: + type: string + chainId: + type: number + fromAddress: + type: string + toAddress: + type: string + tokenAddress: + type: string + tokenAmount: + type: number + calldata: + type: string + metaTxnId: + type: string + metaTxnFeeQuote: + type: string + precondition: + $ref: '#/components/schemas/TransactionPrecondition' + depositIntentEntry: + $ref: '#/components/schemas/DepositIntentEntry' + txnHash: + type: string + status: + $ref: '#/components/schemas/TransactionStatus' + statusReason: + type: string + updatedAt: + type: string + createdAt: + type: string + IntentProviderQuote: + type: object + required: + - quoteProvider + - quoteProviderRequestId + - quoteProviderFeeUsd + - fromAmount + - fromAmountMin + - toAmount + - toAmountMin + - maxSlippage + - priceImpact + - priceImpactUsd + properties: + quoteProvider: + type: string + quoteProviderRequestId: + type: string + quoteProviderFeeUsd: + type: number + fromAmount: + type: number + fromAmountMin: + type: number + toAmount: + type: number + toAmountMin: + type: number + maxSlippage: + type: number + priceImpact: + type: number + priceImpactUsd: + type: number + IntentFees: + type: object + required: + - originGas + - destinationGas + - provider + - feeTokenAddress + - feeTokenTotal + - totalFeeAmount + - totalFeeUsd + properties: + originGas: + $ref: '#/components/schemas/IntentTransactionGasFee' + destinationGas: + $ref: '#/components/schemas/IntentTransactionGasFee' + provider: + $ref: '#/components/schemas/IntentProviderFees' + feeTokenAddress: + type: string + feeTokenTotal: + type: number + totalFeeAmount: + type: number + totalFeeUsd: + type: number + IntentProviderFees: + type: object + required: + - quoteProvider + - quoteProviderFee + - quoteProviderFeeUsd + - trailsFee + - trailsFeeUsd + - totalFeeAmount + - totalFeeUsd + properties: + quoteProvider: + type: string + quoteProviderFee: + type: number + quoteProviderFeeUsd: + type: number + trailsFee: + type: number + trailsFeeUsd: + type: number + totalFeeAmount: + type: number + totalFeeUsd: + type: number + IntentTransactionGasFee: + type: object + required: + - chainId + - totalGasLimit + - gasPrice + - nativeTokenSymbol + - chainGasUsageStatus + - totalFeeAmount + - totalFeeUsd + - metaTxnFeeDetails + - metaTxnGasQuote + properties: + chainId: + type: number + totalGasLimit: + type: number + gasPrice: + type: number + nativeTokenSymbol: + type: string + nativeTokenPriceUsd: + type: number + chainGasUsageStatus: + $ref: '#/components/schemas/ChainGasUsageStatus' + totalFeeAmount: + type: number + totalFeeUsd: + type: string + metaTxnFeeDetails: + $ref: '#/components/schemas/MetaTxnFeeDetails' + metaTxnGasQuote: + type: string + MetaTxnFeeDetails: + type: object + required: + - metaTxnId + - estimatedGasLimit + - feeNative + properties: + metaTxnId: + type: string + estimatedGasLimit: + type: number + feeNative: + type: number + IntentSummary: + type: object + required: + - id + - intentId + - status + - ownerAddress + - originChainId + - destinationChainId + - originIntentAddress + - destinationIntentAddress + - depositTransactionStatus + - originTransactionStatus + - destinationTransactionStatus + - originTokenAddress + - originTokenAmount + - originTokenMetadata + - destinationTokenAddress + - destinationTokenAmount + - destinationTokenMetadata + - createdAt + properties: + id: + type: number + intentId: + type: string + status: + $ref: '#/components/schemas/IntentStatus' + ownerAddress: + type: string + originChainId: + type: number + destinationChainId: + type: number + originIntentAddress: + type: string + destinationIntentAddress: + type: string + depositTransactionHash: + type: string + depositTransactionStatus: + $ref: '#/components/schemas/TransactionStatus' + originTransactionHash: + type: string + originTransactionStatus: + $ref: '#/components/schemas/TransactionStatus' + destinationTransactionHash: + type: string + destinationTransactionStatus: + $ref: '#/components/schemas/TransactionStatus' + originTokenAddress: + type: string + originTokenAmount: + type: number + originTokenMetadata: + $ref: '#/components/schemas/TokenMetadata' + destinationTokenAddress: + type: string + destinationTokenAmount: + type: number + destinationTokenMetadata: + $ref: '#/components/schemas/TokenMetadata' + updatedAt: + type: string + createdAt: + type: string + ChainMetadata: + type: object + required: + - chainId + - name + properties: + chainId: + type: number + name: + type: string + logoUri: + type: string + testnet: + type: boolean + TokenMetadata: + type: object + required: + - chainId + - tokenAddress + - name + - symbol + properties: + chainId: + type: number + tokenAddress: + type: string + name: + type: string + symbol: + type: string + decimals: + type: number + logoUri: + type: string + Token: + type: object + required: + - chainId + - tokenAddress + properties: + chainId: + type: number + tokenAddress: + type: string + tokenSymbol: + type: string + TokenPrice: + type: object + required: + - token + - updatedAt + properties: + token: + $ref: '#/components/schemas/Token' + priceUsd: + type: number + updatedAt: + type: string + CCTPTransfer: + type: object + required: + - id + - sourceTxHash + - sourceChainId + - destinationChainId + - message + - attestation + - status + properties: + id: + type: string + sourceTxHash: + type: string + sourceChainId: + type: number + destinationChainId: + type: number + message: + type: string + attestation: + type: string + status: + type: string + updatedAt: + type: string + createdAt: + type: string + GasFeeOptions: + type: object + required: + - gasEstimate + - feeOptions + - expiresAt + - feeCollectorAddress + properties: + gasEstimate: + $ref: '#/components/schemas/GasEstimate' + feeOptions: + type: array + description: '[]FeeOption' + items: + $ref: '#/components/schemas/FeeOption' + expiresAt: + type: string + feeCollectorAddress: + type: string + GasEstimate: + type: object + required: + - totalGas + - gasPrice + - nativeCost + - nativeCostUsd + properties: + totalGas: + type: number + gasPrice: + type: string + nativeCost: + type: string + nativeCostUsd: + type: number + FeeOption: + type: object + required: + - tokenAddress + - tokenSymbol + - tokenDecimals + - amount + - amountUsd + - feeCollectorAddress + properties: + tokenAddress: + type: string + tokenSymbol: + type: string + tokenDecimals: + type: number + amount: + type: number + amountUsd: + type: number + feeCollectorAddress: + type: string + DepositSignature: + type: object + required: + - intentSignature + - selectedGasFeeOption + - userNonce + - deadline + properties: + intentSignature: + type: string + permitSignature: + type: string + permitDeadline: + type: number + permitAmount: + type: number + selectedGasFeeOption: + $ref: '#/components/schemas/FeeOption' + userNonce: + type: number + deadline: + type: number + DepositIntentEntry: + type: object + required: + - intentSignature + - feeAmount + - feeToken + - feeCollector + - userNonce + - deadline + properties: + intentSignature: + type: string + permitSignature: + type: string + permitDeadline: + type: number + permitAmount: + type: number + feeAmount: + type: string + feeToken: + type: string + feeCollector: + type: string + userNonce: + type: number + deadline: + type: number + TrailsAddressOverrides: + type: object + properties: + sequenceWalletFactoryAddress: + type: string + sequenceWalletMainModuleAddress: + type: string + sequenceWalletMainModuleUpgradableAddress: + type: string + sequenceWalletGuestModuleAddress: + type: string + sequenceWalletUtilsAddress: + type: string + SortOrder: + type: string + description: Represented as uint32 on the server side + enum: + - DESC + - ASC + Version: + type: object + required: + - webrpcVersion + - schemaVersion + - schemaHash + - appVersion + properties: + webrpcVersion: + type: string + schemaVersion: + type: string + schemaHash: + type: string + appVersion: + type: string + RuntimeStatus: + type: object + required: + - healthOK + - startTime + - uptime + - ver + - branch + - commitHash + - runnables + properties: + healthOK: + type: boolean + startTime: + type: string + uptime: + type: number + ver: + type: string + branch: + type: string + commitHash: + type: string + runnables: + type: object + QuoteIntentResponse: + type: object + required: + - intent + - gasFeeOptions + properties: + intent: + $ref: '#/components/schemas/Intent' + gasFeeOptions: + $ref: '#/components/schemas/GasFeeOptions' + CommitIntentRequest: + type: object + required: + - intent + properties: + intent: + $ref: '#/components/schemas/Intent' + CommitIntentResponse: + type: object + required: + - intentId + properties: + intentId: + type: string + ExecuteIntentRequest: + type: object + required: + - intentId + properties: + intentId: + type: string + depositTransactionHash: + type: string + depositSignature: + $ref: '#/components/schemas/DepositSignature' + ExecuteIntentResponse: + type: object + required: + - intentId + - intentStatus + properties: + intentId: + type: string + intentStatus: + $ref: '#/components/schemas/IntentStatus' + GetIntentReceiptRequest: + type: object + required: + - intentId + properties: + intentId: + type: string + GetIntentReceiptResponse: + type: object + required: + - intentReceipt + properties: + intentReceipt: + $ref: '#/components/schemas/IntentReceipt' + WaitIntentReceiptRequest: + type: object + required: + - intentId + properties: + intentId: + type: string + WaitIntentReceiptResponse: + type: object + required: + - intentReceipt + - done + properties: + intentReceipt: + $ref: '#/components/schemas/IntentReceipt' + done: + type: boolean + GetIntentRequest: + type: object + required: + - intentId + properties: + intentId: + type: string + GetIntentResponse: + type: object + required: + - intent + properties: + intent: + $ref: '#/components/schemas/Intent' + SearchIntentsRequest: + type: object + properties: + byOriginIntentAddress: + type: string + byDepositTransactionHash: + type: string + byOwnerAddress: + type: string + SearchIntentsResponse: + type: object + required: + - intents + properties: + intents: + type: array + description: '[]Intent' + items: + $ref: '#/components/schemas/Intent' + GetIntentTransactionHistoryRequest: + type: object + properties: + page: + $ref: '#/components/schemas/Page' + GetIntentTransactionHistoryResponse: + type: object + required: + - intents + properties: + intents: + type: array + description: '[]IntentSummary' + items: + $ref: '#/components/schemas/IntentSummary' + nextPage: + $ref: '#/components/schemas/Page' + Page: + type: object + properties: + column: + type: string + before: + type: object + after: + type: object + sort: + type: array + description: '[]SortBy' + items: + $ref: '#/components/schemas/SortBy' + pageSize: + type: number + more: + type: boolean + SortBy: + type: object + required: + - column + - order + properties: + column: + type: string + order: + $ref: '#/components/schemas/SortOrder' +paths: