From 64f5211fd0d83bb82ed9a6cb0206ba22edc12941 Mon Sep 17 00:00:00 2001 From: byeongminP <42824048+byeongminP@users.noreply.github.com> Date: Thu, 30 Jul 2026 22:07:13 +0000 Subject: [PATCH] chore: update OpenAPI specs from 0x-labs --- fern/openapi.json | 184 +++++++++++++--------------------------------- 1 file changed, 51 insertions(+), 133 deletions(-) diff --git a/fern/openapi.json b/fern/openapi.json index 4f9dec8f..f6a6b8b5 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -7428,11 +7428,8 @@ "properties": { "type": { "type": "string", - "enum": [ - "settler_metatransaction", - "settler_intent" - ], - "description": "The transaction type determined by the trade route. This is currently just `settler_metatransaction` and could expand to more types in the future" + "enum": ["settler_metatransaction"], + "description": "The transaction type for a Gasless trade" }, "hash": { "type": "string", @@ -8082,7 +8079,7 @@ "properties": { "type": { "type": "string", - "enum": ["settler_metatransaction", "settler_intent"], + "enum": ["settler_metatransaction"], "description": "The `trade.type` from the quote endpoint" }, "eip712": { @@ -8116,163 +8113,84 @@ "additionalProperties": false }, "message": { - "anyOf": [ - { + "type": "object", + "properties": { + "permitted": { "type": "object", "properties": { - "permitted": { - "type": "object", - "properties": { - "token": { - "type": "string", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "amount": { - "anyOf": [ - { "type": "string" }, - { "type": "number" }, - {} - ] - } - }, - "required": ["token", "amount"], - "additionalProperties": false - }, - "spender": { + "token": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" }, - "nonce": { - "anyOf": [ - { "type": "string" }, - { "type": "number" }, - {} - ] - }, - "deadline": { + "amount": { "anyOf": [ { "type": "string" }, { "type": "number" }, {} ] - }, - "slippageAndActions": { - "type": "object", - "properties": { - "recipient": { - "type": "string", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "buyToken": { - "type": "string", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "minAmountOut": { - "anyOf": [ - { "type": "string" }, - { "type": "number" }, - {} - ] - }, - "actions": { - "type": "array", - "items": { "type": "string" } - } - }, - "required": [ - "recipient", - "buyToken", - "minAmountOut", - "actions" - ], - "additionalProperties": false } }, - "required": [ - "permitted", - "spender", - "nonce", - "deadline", - "slippageAndActions" - ], + "required": ["token", "amount"], "additionalProperties": false }, - { + "spender": { + "type": "string", + "pattern": "^0x[a-fA-F0-9]{40}$" + }, + "nonce": { + "anyOf": [ + { "type": "string" }, + { "type": "number" }, + {} + ] + }, + "deadline": { + "anyOf": [ + { "type": "string" }, + { "type": "number" }, + {} + ] + }, + "slippageAndActions": { "type": "object", "properties": { - "permitted": { - "type": "object", - "properties": { - "token": { - "type": "string", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "amount": { - "anyOf": [ - { "type": "string" }, - { "type": "number" }, - {} - ] - } - }, - "required": ["token", "amount"], - "additionalProperties": false - }, - "spender": { + "recipient": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" }, - "nonce": { - "anyOf": [ - { "type": "string" }, - { "type": "number" }, - {} - ] + "buyToken": { + "type": "string", + "pattern": "^0x[a-fA-F0-9]{40}$" }, - "deadline": { + "minAmountOut": { "anyOf": [ { "type": "string" }, { "type": "number" }, {} ] }, - "slippage": { - "type": "object", - "properties": { - "recipient": { - "type": "string", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "buyToken": { - "type": "string", - "pattern": "^0x[a-fA-F0-9]{40}$" - }, - "minAmountOut": { - "anyOf": [ - { "type": "string" }, - { "type": "number" }, - {} - ] - } - }, - "required": [ - "recipient", - "buyToken", - "minAmountOut" - ], - "additionalProperties": false + "actions": { + "type": "array", + "items": { "type": "string" } } }, "required": [ - "permitted", - "spender", - "nonce", - "deadline", - "slippage" + "recipient", + "buyToken", + "minAmountOut", + "actions" ], "additionalProperties": false } - ] + }, + "required": [ + "permitted", + "spender", + "nonce", + "deadline", + "slippageAndActions" + ], + "additionalProperties": false } }, "required": [ @@ -8462,8 +8380,8 @@ }, "type": { "type": "string", - "enum": ["settler_metatransaction", "settler_intent"], - "description": "The transaction type determined by the trade route. This is currently just `settler_metatransaction` and could expand to more types in the future" + "enum": ["settler_metatransaction"], + "description": "The transaction type for a Gasless trade" }, "zid": { "type": "string",