diff --git a/package.json b/package.json index 728d06bfb..4d27b6f04 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "dev:worker": "nodemon --watch 'src/worker/**/*.ts' --watch 'core/**/*.ts' --watch 'src/**/*.ts' --exec 'npx tsx ./src/worker/index.ts' --files src/worker/index.ts", "dev:infra": "docker compose -f ./docker-compose-infra.yml up -d", "build": "yarn && rm -rf dist && tsc -p ./tsconfig.json --outDir dist", + "generate:sdk": "npx tsx ./src/scripts/generate-sdk", "prisma:setup:dev": "npx tsx ./src/db/scripts/setup.ts", "prisma:setup:prod": "npx tsx ./dist/src/db/scripts/setup.js", "start": "yarn prisma:setup:prod && (yarn start:server & yarn start:worker)", @@ -92,6 +93,7 @@ "eslint-config-prettier": "^8.7.0", "hardhat": "^2.1.2", "nodemon": "^2.0.21", + "openapi-typescript-codegen": "^0.25.0", "prettier": "^2.8.7", "prompts": "^2.4.2", "supertest": "^6.3.3", diff --git a/server/api/auth/access-tokens/create.ts b/server/api/auth/access-tokens/create.ts index e4f382de7..fe88cff89 100644 --- a/server/api/auth/access-tokens/create.ts +++ b/server/api/auth/access-tokens/create.ts @@ -32,7 +32,7 @@ export async function createAccessToken(fastify: FastifyInstance) { summary: "Create a new access token", description: "Create a new access token", tags: ["Access Tokens"], - operationId: "createAccessToken", + operationId: "create", body: BodySchema, response: { [StatusCodes.OK]: ReplySchema, diff --git a/server/api/auth/access-tokens/getAll.ts b/server/api/auth/access-tokens/getAll.ts index ee361a61c..7d83d94d2 100644 --- a/server/api/auth/access-tokens/getAll.ts +++ b/server/api/auth/access-tokens/getAll.ts @@ -26,7 +26,7 @@ export async function getAllAccessTokens(fastify: FastifyInstance) { summary: "Get all access tokens", description: "Get all access tokens", tags: ["Access Tokens"], - operationId: "getAllAccessTokens", + operationId: "getAll", response: { [StatusCodes.OK]: ReplySchema, }, diff --git a/server/api/auth/access-tokens/revoke.ts b/server/api/auth/access-tokens/revoke.ts index 98c733464..d7c5da705 100644 --- a/server/api/auth/access-tokens/revoke.ts +++ b/server/api/auth/access-tokens/revoke.ts @@ -24,7 +24,7 @@ export async function revokeAccessToken(fastify: FastifyInstance) { summary: "Revoke an access token", description: "Revoke an access token", tags: ["Access Tokens"], - operationId: "revokeAccessToken", + operationId: "revoke", body: BodySchema, response: { [StatusCodes.OK]: ReplySchema, diff --git a/server/api/auth/permissions/getAll.ts b/server/api/auth/permissions/getAll.ts index 2c02c9fa5..4572e421f 100644 --- a/server/api/auth/permissions/getAll.ts +++ b/server/api/auth/permissions/getAll.ts @@ -23,7 +23,7 @@ export async function getAllPermissions(fastify: FastifyInstance) { summary: "Get all permissions", description: "Get all users with their corresponding permissions", tags: ["Permissions"], - operationId: "getAllPermissions", + operationId: "getAll", response: { [StatusCodes.OK]: ReplySchema, }, diff --git a/server/api/auth/permissions/grant.ts b/server/api/auth/permissions/grant.ts index 7e6bece85..6620083e6 100644 --- a/server/api/auth/permissions/grant.ts +++ b/server/api/auth/permissions/grant.ts @@ -27,7 +27,7 @@ export async function grantPermissions(fastify: FastifyInstance) { summary: "Grant permissions to user", description: "Grant permissions to a user", tags: ["Permissions"], - operationId: "grantPermissions", + operationId: "grant", body: BodySchema, response: { [StatusCodes.OK]: ReplySchema, diff --git a/server/api/auth/permissions/revoke.ts b/server/api/auth/permissions/revoke.ts index dae1ac136..c36cd0f08 100644 --- a/server/api/auth/permissions/revoke.ts +++ b/server/api/auth/permissions/revoke.ts @@ -24,7 +24,7 @@ export async function revokePermissions(fastify: FastifyInstance) { summary: "Revoke permissions from user", description: "Revoke a user's permissions", tags: ["Permissions"], - operationId: "revokePermissions", + operationId: "revoke", body: BodySchema, response: { [StatusCodes.OK]: ReplySchema, diff --git a/server/api/backend-wallet/create.ts b/server/api/backend-wallet/create.ts index 4d6f0cf27..9f5070b2b 100644 --- a/server/api/backend-wallet/create.ts +++ b/server/api/backend-wallet/create.ts @@ -37,7 +37,7 @@ export const createWallet = async (fastify: FastifyInstance) => { summary: "Create backend wallet", description: "Create a backend wallet.", tags: ["Backend Wallet"], - operationId: "backendWallet_create", + operationId: "create", body: BodySchema, response: { ...standardResponseSchema, diff --git a/server/api/backend-wallet/getAll.ts b/server/api/backend-wallet/getAll.ts index d6698ca43..b42f4b258 100644 --- a/server/api/backend-wallet/getAll.ts +++ b/server/api/backend-wallet/getAll.ts @@ -38,7 +38,7 @@ export async function getAll(fastify: FastifyInstance) { summary: "Get all backend wallets", description: "Get all backend wallets.", tags: ["Backend Wallet"], - operationId: "backendWallet_getAll", + operationId: "getAll", response: { ...standardResponseSchema, [StatusCodes.OK]: responseSchema, diff --git a/server/api/backend-wallet/getBalance.ts b/server/api/backend-wallet/getBalance.ts index 844533aec..e3cb261d8 100644 --- a/server/api/backend-wallet/getBalance.ts +++ b/server/api/backend-wallet/getBalance.ts @@ -42,7 +42,7 @@ export async function getBalance(fastify: FastifyInstance) { summary: "Get balance", description: "Get the native balance for a backend wallet.", tags: ["Backend Wallet"], - operationId: "backendWallet_getBalance", + operationId: "getBalance", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/backend-wallet/import.ts b/server/api/backend-wallet/import.ts index 3488ac42e..cad9db335 100644 --- a/server/api/backend-wallet/import.ts +++ b/server/api/backend-wallet/import.ts @@ -102,7 +102,7 @@ export const importWallet = async (fastify: FastifyInstance) => { summary: "Import backend wallet", description: "Import an existing wallet as a backend wallet.", tags: ["Backend Wallet"], - operationId: "backendWallet_import", + operationId: "import", body: RequestBodySchema, response: { ...standardResponseSchema, diff --git a/server/api/backend-wallet/send.ts b/server/api/backend-wallet/send.ts index 51f4798ee..47b0e5d66 100644 --- a/server/api/backend-wallet/send.ts +++ b/server/api/backend-wallet/send.ts @@ -47,7 +47,7 @@ export async function sendTransaction(fastify: FastifyInstance) { summary: "Send a raw transaction", description: "Send a raw transaction with transaction parameters", tags: ["Backend Wallet"], - operationId: "walletSendTransaction", + operationId: "sendTransaction", params: ParamsSchema, body: requestBodySchema, headers: Type.Omit(walletAuthSchema, ["x-account-address"]), diff --git a/server/api/backend-wallet/transfer.ts b/server/api/backend-wallet/transfer.ts index 6fa6b5640..665d63f7a 100644 --- a/server/api/backend-wallet/transfer.ts +++ b/server/api/backend-wallet/transfer.ts @@ -46,7 +46,7 @@ export async function transfer(fastify: FastifyInstance) { description: "Transfer native or ERC20 tokens from this wallet to another wallet", tags: ["Backend Wallet"], - operationId: "backendWallet_transfer", + operationId: "transfer", params: requestSchema, body: requestBodySchema, headers: Type.Omit(walletAuthSchema, ["x-account-address"]), diff --git a/server/api/chain/get.ts b/server/api/chain/get.ts index 0808eb5e8..613307c52 100644 --- a/server/api/chain/get.ts +++ b/server/api/chain/get.ts @@ -45,7 +45,7 @@ export async function getChainData(fastify: FastifyInstance) { summary: "Get chain details", description: "Get details about a chain.", tags: ["Chain"], - operationId: "chain", + operationId: "get", querystring: chainRequestQuerystringSchema, response: { ...standardResponseSchema, diff --git a/server/api/chain/getAll.ts b/server/api/chain/getAll.ts index 9e45edc92..3dd479332 100644 --- a/server/api/chain/getAll.ts +++ b/server/api/chain/getAll.ts @@ -56,7 +56,7 @@ export async function getAllChainData(fastify: FastifyInstance) { summary: "Get all chain details", description: "Get details about all supported chains.", tags: ["Chain"], - operationId: "getAllChainData", + operationId: "getAll", response: { ...standardResponseSchema, [StatusCodes.OK]: responseSchema, diff --git a/server/api/contract/extensions/account/read/getAllAdmins.ts b/server/api/contract/extensions/account/read/getAllAdmins.ts index ea303cbc5..4102d93c5 100644 --- a/server/api/contract/extensions/account/read/getAllAdmins.ts +++ b/server/api/contract/extensions/account/read/getAllAdmins.ts @@ -25,7 +25,7 @@ export const getAllAdmins = async (fastify: FastifyInstance) => { summary: "Get all admins", description: "Get all admins for a smart account.", tags: ["Account"], - operationId: "account:get-all-admins", + operationId: "getAllAdmins", params: contractParamSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/account/read/getAllSessions.ts b/server/api/contract/extensions/account/read/getAllSessions.ts index 5f215715b..2b155fd3b 100644 --- a/server/api/contract/extensions/account/read/getAllSessions.ts +++ b/server/api/contract/extensions/account/read/getAllSessions.ts @@ -24,7 +24,7 @@ export const getAllSessions = async (fastify: FastifyInstance) => { summary: "Get all session keys", description: "Get all session keys for a smart account.", tags: ["Account"], - operationId: "account:get-all-sessions", + operationId: "getAllSessions", params: contractParamSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/account/write/grantAdmin.ts b/server/api/contract/extensions/account/write/grantAdmin.ts index 0b92c7e6d..076a89ad3 100644 --- a/server/api/contract/extensions/account/write/grantAdmin.ts +++ b/server/api/contract/extensions/account/write/grantAdmin.ts @@ -35,7 +35,7 @@ export const grantAdmin = async (fastify: FastifyInstance) => { summary: "Grant admin", description: "Grant a smart account's admin permission.", tags: ["Account"], - operationId: "account:grant-admin", + operationId: "grantAdmin", headers: walletAuthSchema, params: contractParamSchema, body: BodySchema, diff --git a/server/api/contract/extensions/account/write/grantSession.ts b/server/api/contract/extensions/account/write/grantSession.ts index 06026f666..c83a5035f 100644 --- a/server/api/contract/extensions/account/write/grantSession.ts +++ b/server/api/contract/extensions/account/write/grantSession.ts @@ -36,7 +36,7 @@ export const grantSession = async (fastify: FastifyInstance) => { summary: "Create session key", description: "Create a session key for a smart account.", tags: ["Account"], - operationId: "account:grant-session", + operationId: "grantSession", params: contractParamSchema, headers: walletAuthSchema, body: BodySchema, diff --git a/server/api/contract/extensions/account/write/revokeAdmin.ts b/server/api/contract/extensions/account/write/revokeAdmin.ts index f63877831..b89decc37 100644 --- a/server/api/contract/extensions/account/write/revokeAdmin.ts +++ b/server/api/contract/extensions/account/write/revokeAdmin.ts @@ -35,7 +35,7 @@ export const revokeAdmin = async (fastify: FastifyInstance) => { summary: "Revoke admin", description: "Revoke a smart account's admin permission.", tags: ["Account"], - operationId: "account:revoke-admin", + operationId: "revokeAdmin", headers: walletAuthSchema, params: contractParamSchema, body: BodySchema, diff --git a/server/api/contract/extensions/account/write/revokeSession.ts b/server/api/contract/extensions/account/write/revokeSession.ts index 13c20260f..6bf782197 100644 --- a/server/api/contract/extensions/account/write/revokeSession.ts +++ b/server/api/contract/extensions/account/write/revokeSession.ts @@ -35,7 +35,7 @@ export const revokeSession = async (fastify: FastifyInstance) => { summary: "Revoke session key", description: "Revoke a session key for a smart account.", tags: ["Account"], - operationId: "account:revoke-session", + operationId: "revokeSession", params: contractParamSchema, headers: walletAuthSchema, body: BodySchema, diff --git a/server/api/contract/extensions/account/write/updateSession.ts b/server/api/contract/extensions/account/write/updateSession.ts index 93d26d8b6..b6e64c764 100644 --- a/server/api/contract/extensions/account/write/updateSession.ts +++ b/server/api/contract/extensions/account/write/updateSession.ts @@ -38,7 +38,7 @@ export const updateSession = async (fastify: FastifyInstance) => { summary: "Update session key", description: "Update a session key for a smart account.", tags: ["Account"], - operationId: "account:update-session", + operationId: "updateSession", params: contractParamSchema, headers: walletAuthSchema, body: BodySchema, diff --git a/server/api/contract/extensions/accountFactory/read/getAllAccounts.ts b/server/api/contract/extensions/accountFactory/read/getAllAccounts.ts index a1522e8d7..2cfc9fb56 100644 --- a/server/api/contract/extensions/accountFactory/read/getAllAccounts.ts +++ b/server/api/contract/extensions/accountFactory/read/getAllAccounts.ts @@ -25,7 +25,7 @@ export const getAllAccounts = async (fastify: FastifyInstance) => { summary: "Get all smart accounts", description: "Get all the smart accounts for this account factory.", tags: ["Account Factory"], - operationId: "account-factory:get-all-accounts", + operationId: "getAllAccounts", params: contractParamSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/accountFactory/read/getAssociatedAccounts.ts b/server/api/contract/extensions/accountFactory/read/getAssociatedAccounts.ts index d23de5993..db8b54d8a 100644 --- a/server/api/contract/extensions/accountFactory/read/getAssociatedAccounts.ts +++ b/server/api/contract/extensions/accountFactory/read/getAssociatedAccounts.ts @@ -34,7 +34,7 @@ export const getAssociatedAccounts = async (fastify: FastifyInstance) => { description: "Get all the smart accounts for this account factory associated with the specific admin wallet.", tags: ["Account Factory"], - operationId: "account-factory:get-associated-accounts", + operationId: "getAssociatedAccounts", params: contractParamSchema, querystring: QuerySchema, response: { diff --git a/server/api/contract/extensions/accountFactory/read/isAccountDeployed.ts b/server/api/contract/extensions/accountFactory/read/isAccountDeployed.ts index 118d3b752..7e0c6a87f 100644 --- a/server/api/contract/extensions/accountFactory/read/isAccountDeployed.ts +++ b/server/api/contract/extensions/accountFactory/read/isAccountDeployed.ts @@ -39,7 +39,7 @@ export const isAccountDeployed = async (fastify: FastifyInstance) => { description: "Check if a smart account has been deployed to the blockchain.", tags: ["Account Factory"], - operationId: "account-factory:is-account-deployed", + operationId: "isAccountDeployed", params: contractParamSchema, querystring: QuerySchema, response: { diff --git a/server/api/contract/extensions/accountFactory/read/predictAccountAddress.ts b/server/api/contract/extensions/accountFactory/read/predictAccountAddress.ts index ee910a914..c43bdd9ef 100644 --- a/server/api/contract/extensions/accountFactory/read/predictAccountAddress.ts +++ b/server/api/contract/extensions/accountFactory/read/predictAccountAddress.ts @@ -37,7 +37,7 @@ export const predictAccountAddress = async (fastify: FastifyInstance) => { summary: "Predict smart account address", description: "Get the counterfactual address of a smart account.", tags: ["Account Factory"], - operationId: "account-factory:predict-account-address", + operationId: "predictAccountAddress", params: contractParamSchema, querystring: QuerySchema, response: { diff --git a/server/api/contract/extensions/accountFactory/write/createAccount.ts b/server/api/contract/extensions/accountFactory/write/createAccount.ts index f711fd24c..b56fad164 100644 --- a/server/api/contract/extensions/accountFactory/write/createAccount.ts +++ b/server/api/contract/extensions/accountFactory/write/createAccount.ts @@ -40,7 +40,7 @@ export const createAccount = async (fastify: FastifyInstance) => { summary: "Create smart account", description: "Create a smart account for this account factory.", tags: ["Account Factory"], - operationId: "account-factory:create-account", + operationId: "createAccount", params: contractParamSchema, headers: walletAuthSchema, body: BodySchema, diff --git a/server/api/contract/extensions/erc1155/read/balanceOf.ts b/server/api/contract/extensions/erc1155/read/balanceOf.ts index f2f04eb83..d481e4c25 100644 --- a/server/api/contract/extensions/erc1155/read/balanceOf.ts +++ b/server/api/contract/extensions/erc1155/read/balanceOf.ts @@ -47,7 +47,7 @@ export async function erc1155BalanceOf(fastify: FastifyInstance) { description: "Get the balance of a specific wallet address for this ERC-1155 contract.", tags: ["ERC1155"], - operationId: "erc1155_balanceOf", + operationId: "balanceOf", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc1155/read/get.ts b/server/api/contract/extensions/erc1155/read/get.ts index 8b77fbddf..5c4c5ae56 100644 --- a/server/api/contract/extensions/erc1155/read/get.ts +++ b/server/api/contract/extensions/erc1155/read/get.ts @@ -56,7 +56,7 @@ export async function erc1155Get(fastify: FastifyInstance) { summary: "Get details", description: "Get the details for a token in an ERC-1155 contract.", tags: ["ERC1155"], - operationId: "erc1155_get", + operationId: "get", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc1155/read/getAll.ts b/server/api/contract/extensions/erc1155/read/getAll.ts index 648121a5b..82b81a992 100644 --- a/server/api/contract/extensions/erc1155/read/getAll.ts +++ b/server/api/contract/extensions/erc1155/read/getAll.ts @@ -65,7 +65,7 @@ export async function erc1155GetAll(fastify: FastifyInstance) { summary: "Get all details", description: "Get details for all tokens in an ERC-1155 contract.", tags: ["ERC1155"], - operationId: "erc1155_getAll", + operationId: "getAll", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc1155/read/getOwned.ts b/server/api/contract/extensions/erc1155/read/getOwned.ts index 6c42a83a7..d48e40235 100644 --- a/server/api/contract/extensions/erc1155/read/getOwned.ts +++ b/server/api/contract/extensions/erc1155/read/getOwned.ts @@ -64,7 +64,7 @@ export async function erc1155GetOwned(fastify: FastifyInstance) { description: "Get all tokens in an ERC-1155 contract owned by a specific wallet.", tags: ["ERC1155"], - operationId: "erc1155_getOwned", + operationId: "getOwned", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc1155/read/isApproved.ts b/server/api/contract/extensions/erc1155/read/isApproved.ts index 3453b64c5..5b9563ab1 100644 --- a/server/api/contract/extensions/erc1155/read/isApproved.ts +++ b/server/api/contract/extensions/erc1155/read/isApproved.ts @@ -47,7 +47,7 @@ export async function erc1155IsApproved(fastify: FastifyInstance) { description: "Check if the specific wallet has approved transfers from a specific operator wallet.", tags: ["ERC1155"], - operationId: "erc1155_isApproved", + operationId: "isApproved", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc1155/read/signatureGenerate.ts b/server/api/contract/extensions/erc1155/read/signatureGenerate.ts index 916094dac..b74dc42a2 100644 --- a/server/api/contract/extensions/erc1155/read/signatureGenerate.ts +++ b/server/api/contract/extensions/erc1155/read/signatureGenerate.ts @@ -44,7 +44,7 @@ export async function erc1155SignatureGenerate(fastify: FastifyInstance) { description: "Generate a signature granting access for another wallet to mint tokens from this ERC-721 contract. This method is typically called by the token contract owner.", tags: ["ERC1155"], - operationId: "erc1155_signature_generate", + operationId: "signatureGenerate", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/erc1155/read/totalCount.ts b/server/api/contract/extensions/erc1155/read/totalCount.ts index 31dda4b77..95924a5de 100644 --- a/server/api/contract/extensions/erc1155/read/totalCount.ts +++ b/server/api/contract/extensions/erc1155/read/totalCount.ts @@ -33,7 +33,7 @@ export async function erc1155TotalCount(fastify: FastifyInstance) { description: "Get the total supply in circulation for this ERC-1155 contract.", tags: ["ERC1155"], - operationId: "erc1155_totalCount", + operationId: "totalCount", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/erc1155/read/totalSupply.ts b/server/api/contract/extensions/erc1155/read/totalSupply.ts index 6c08b4a17..b2baf49d7 100644 --- a/server/api/contract/extensions/erc1155/read/totalSupply.ts +++ b/server/api/contract/extensions/erc1155/read/totalSupply.ts @@ -42,7 +42,7 @@ export async function erc1155TotalSupply(fastify: FastifyInstance) { description: "Get the total supply in circulation for this ERC-1155 contract.", tags: ["ERC1155"], - operationId: "erc1155_totalSupply", + operationId: "totalSupply", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc1155/write/airdrop.ts b/server/api/contract/extensions/erc1155/write/airdrop.ts index efae694a9..a8e5972f5 100644 --- a/server/api/contract/extensions/erc1155/write/airdrop.ts +++ b/server/api/contract/extensions/erc1155/write/airdrop.ts @@ -60,7 +60,7 @@ export async function erc1155airdrop(fastify: FastifyInstance) { summary: "Airdrop tokens", description: "Airdrop ERC-1155 tokens to specific wallets.", tags: ["ERC1155"], - operationId: "erc1155_airdrop", + operationId: "airdrop", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/burn.ts b/server/api/contract/extensions/erc1155/write/burn.ts index d6648c219..9e0b17df8 100644 --- a/server/api/contract/extensions/erc1155/write/burn.ts +++ b/server/api/contract/extensions/erc1155/write/burn.ts @@ -43,7 +43,7 @@ export async function erc1155burn(fastify: FastifyInstance) { summary: "Burn token", description: "Burn ERC-1155 tokens in the caller wallet.", tags: ["ERC1155"], - operationId: "erc1155_burn", + operationId: "burn", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/burnBatch.ts b/server/api/contract/extensions/erc1155/write/burnBatch.ts index b4a1b2470..31db4810b 100644 --- a/server/api/contract/extensions/erc1155/write/burnBatch.ts +++ b/server/api/contract/extensions/erc1155/write/burnBatch.ts @@ -49,7 +49,7 @@ export async function erc1155burnBatch(fastify: FastifyInstance) { summary: "Burn tokens (batch)", description: "Burn a batch of ERC-1155 tokens in the caller wallet.", tags: ["ERC1155"], - operationId: "erc1155_burnBatch", + operationId: "burnBatch", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/claimTo.ts b/server/api/contract/extensions/erc1155/write/claimTo.ts index f235d005a..f3c28d800 100644 --- a/server/api/contract/extensions/erc1155/write/claimTo.ts +++ b/server/api/contract/extensions/erc1155/write/claimTo.ts @@ -47,7 +47,7 @@ export async function erc1155claimTo(fastify: FastifyInstance) { summary: "Claim tokens to wallet", description: "Claim ERC-1155 tokens to a specific wallet.", tags: ["ERC1155"], - operationId: "erc1155_claimTo", + operationId: "claimTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/lazyMint.ts b/server/api/contract/extensions/erc1155/write/lazyMint.ts index 5aa2181c8..b0e8c89ed 100644 --- a/server/api/contract/extensions/erc1155/write/lazyMint.ts +++ b/server/api/contract/extensions/erc1155/write/lazyMint.ts @@ -49,7 +49,7 @@ export async function erc1155lazyMint(fastify: FastifyInstance) { summary: "Lazy mint", description: "Lazy mint ERC-1155 tokens to be claimed in the future.", tags: ["ERC1155"], - operationId: "erc1155_lazyMint", + operationId: "lazyMint", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/mintBatchTo.ts b/server/api/contract/extensions/erc1155/write/mintBatchTo.ts index 0b01ddb71..bed908af0 100644 --- a/server/api/contract/extensions/erc1155/write/mintBatchTo.ts +++ b/server/api/contract/extensions/erc1155/write/mintBatchTo.ts @@ -64,7 +64,7 @@ export async function erc1155mintBatchTo(fastify: FastifyInstance) { description: "Mint ERC-1155 tokens to multiple wallets in one transaction.", tags: ["ERC1155"], - operationId: "erc1155_mintBatchTo", + operationId: "mintBatchTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/mintTo.ts b/server/api/contract/extensions/erc1155/write/mintTo.ts index 7ddc854b8..43988f21e 100644 --- a/server/api/contract/extensions/erc1155/write/mintTo.ts +++ b/server/api/contract/extensions/erc1155/write/mintTo.ts @@ -51,7 +51,7 @@ export async function erc1155mintTo(fastify: FastifyInstance) { summary: "Mint tokens", description: "Mint ERC-1155 tokens to a specific wallet.", tags: ["ERC1155"], - operationId: "erc1155_mintTo", + operationId: "mintTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/setApprovalForAll.ts b/server/api/contract/extensions/erc1155/write/setApprovalForAll.ts index f9caac72d..a17023d58 100644 --- a/server/api/contract/extensions/erc1155/write/setApprovalForAll.ts +++ b/server/api/contract/extensions/erc1155/write/setApprovalForAll.ts @@ -46,7 +46,7 @@ export async function erc1155SetApprovalForAll(fastify: FastifyInstance) { description: "Approve or remove operator as an operator for the caller. Operators can call transferFrom or safeTransferFrom for any token owned by the caller.", tags: ["ERC1155"], - operationId: "erc1155_setApprovalForAll", + operationId: "setApprovalForAll", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/signatureMint.ts b/server/api/contract/extensions/erc1155/write/signatureMint.ts index c739767ee..d20579df9 100644 --- a/server/api/contract/extensions/erc1155/write/signatureMint.ts +++ b/server/api/contract/extensions/erc1155/write/signatureMint.ts @@ -42,7 +42,7 @@ export async function erc1155SignatureMint(fastify: FastifyInstance) { summary: "Signature mint", description: "Mint ERC-1155 tokens from a generated signature.", tags: ["ERC1155"], - operationId: "erc1155_signature_mint", + operationId: "signatureMint", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc1155/write/transfer.ts b/server/api/contract/extensions/erc1155/write/transfer.ts index e61662a21..f99a97cbb 100644 --- a/server/api/contract/extensions/erc1155/write/transfer.ts +++ b/server/api/contract/extensions/erc1155/write/transfer.ts @@ -47,7 +47,7 @@ export async function erc1155transfer(fastify: FastifyInstance) { summary: "Transfer token", description: "Transfer an ERC-1155 token from the caller wallet.", tags: ["ERC1155"], - operationId: "erc1155_transfer", + operationId: "transfer", params: requestSchema, headers: walletAuthSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/erc1155/write/transferFrom.ts b/server/api/contract/extensions/erc1155/write/transferFrom.ts index e17d159c9..48ef29475 100644 --- a/server/api/contract/extensions/erc1155/write/transferFrom.ts +++ b/server/api/contract/extensions/erc1155/write/transferFrom.ts @@ -54,7 +54,7 @@ export async function erc1155transferFrom(fastify: FastifyInstance) { description: "Transfer an ERC-1155 token from the connected wallet to another wallet. Requires allowance.", tags: ["ERC1155"], - operationId: "erc1155_transferFrom", + operationId: "transferFrom", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/read/allowanceOf.ts b/server/api/contract/extensions/erc20/read/allowanceOf.ts index 567d0d466..bda75cec9 100644 --- a/server/api/contract/extensions/erc20/read/allowanceOf.ts +++ b/server/api/contract/extensions/erc20/read/allowanceOf.ts @@ -52,7 +52,7 @@ export async function erc20AllowanceOf(fastify: FastifyInstance) { description: "Get the allowance of a specific wallet for an ERC-20 contract.", tags: ["ERC20"], - operationId: "erc20_allowanceOf", + operationId: "allowanceOf", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc20/read/balanceOf.ts b/server/api/contract/extensions/erc20/read/balanceOf.ts index b99b6ca4c..3e83ae490 100644 --- a/server/api/contract/extensions/erc20/read/balanceOf.ts +++ b/server/api/contract/extensions/erc20/read/balanceOf.ts @@ -50,7 +50,7 @@ export async function erc20BalanceOf(fastify: FastifyInstance) { description: "Get the balance of a specific wallet address for this ERC-20 contract.", tags: ["ERC20"], - operationId: "erc20_balanceOf", + operationId: "balanceOf", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc20/read/get.ts b/server/api/contract/extensions/erc20/read/get.ts index 0cc167adb..f117a5b3a 100644 --- a/server/api/contract/extensions/erc20/read/get.ts +++ b/server/api/contract/extensions/erc20/read/get.ts @@ -40,7 +40,7 @@ export async function erc20GetMetadata(fastify: FastifyInstance) { summary: "Get token details", description: "Get details for this ERC-20 contract.", tags: ["ERC20"], - operationId: "erc20_get", + operationId: "get", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/erc20/read/signatureGenerate.ts b/server/api/contract/extensions/erc20/read/signatureGenerate.ts index a639a51b5..b42a3c767 100644 --- a/server/api/contract/extensions/erc20/read/signatureGenerate.ts +++ b/server/api/contract/extensions/erc20/read/signatureGenerate.ts @@ -44,7 +44,7 @@ export async function erc20SignatureGenerate(fastify: FastifyInstance) { description: "Generate a signature granting access for another wallet to mint tokens from this ERC-20 contract. This method is typically called by the token contract owner.", tags: ["ERC20"], - operationId: "erc20_signature_generate", + operationId: "signatureGenerate", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/erc20/read/totalSupply.ts b/server/api/contract/extensions/erc20/read/totalSupply.ts index e02ab24bc..e45176b44 100644 --- a/server/api/contract/extensions/erc20/read/totalSupply.ts +++ b/server/api/contract/extensions/erc20/read/totalSupply.ts @@ -42,7 +42,7 @@ export async function erc20TotalSupply(fastify: FastifyInstance) { description: "Get the total supply in circulation for this ERC-20 contract.", tags: ["ERC20"], - operationId: "erc20_totalSupply", + operationId: "totalSupply", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/erc20/write/burn.ts b/server/api/contract/extensions/erc20/write/burn.ts index c75013282..e33d1ab3f 100644 --- a/server/api/contract/extensions/erc20/write/burn.ts +++ b/server/api/contract/extensions/erc20/write/burn.ts @@ -40,7 +40,7 @@ export async function erc20burn(fastify: FastifyInstance) { summary: "Burn token", description: "Burn ERC-20 tokens in the caller wallet.", tags: ["ERC20"], - operationId: "erc20_burn", + operationId: "burn", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/burnFrom.ts b/server/api/contract/extensions/erc20/write/burnFrom.ts index 81e14a7be..2497904d7 100644 --- a/server/api/contract/extensions/erc20/write/burnFrom.ts +++ b/server/api/contract/extensions/erc20/write/burnFrom.ts @@ -45,7 +45,7 @@ export async function erc20burnFrom(fastify: FastifyInstance) { description: "Burn ERC-20 tokens in a specific wallet. Requires allowance.", tags: ["ERC20"], - operationId: "erc20_burnFrom", + operationId: "burnFrom", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/claimTo.ts b/server/api/contract/extensions/erc20/write/claimTo.ts index 54bd13e7f..7de998b2f 100644 --- a/server/api/contract/extensions/erc20/write/claimTo.ts +++ b/server/api/contract/extensions/erc20/write/claimTo.ts @@ -44,7 +44,7 @@ export async function erc20claimTo(fastify: FastifyInstance) { summary: "Claim tokens to wallet", description: "Claim ERC-20 tokens to a specific wallet.", tags: ["ERC20"], - operationId: "erc20_claimTo", + operationId: "claimTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/mintBatchTo.ts b/server/api/contract/extensions/erc20/write/mintBatchTo.ts index 63fe2cca9..c0f8f7854 100644 --- a/server/api/contract/extensions/erc20/write/mintBatchTo.ts +++ b/server/api/contract/extensions/erc20/write/mintBatchTo.ts @@ -55,7 +55,7 @@ export async function erc20mintBatchTo(fastify: FastifyInstance) { summary: "Mint tokens (batch)", description: "Mint ERC-20 tokens to multiple wallets in one transaction.", tags: ["ERC20"], - operationId: "erc20_mintBatchTo", + operationId: "mintBatchTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/mintTo.ts b/server/api/contract/extensions/erc20/write/mintTo.ts index 2e7d08475..44167b3a6 100644 --- a/server/api/contract/extensions/erc20/write/mintTo.ts +++ b/server/api/contract/extensions/erc20/write/mintTo.ts @@ -44,7 +44,7 @@ export async function erc20mintTo(fastify: FastifyInstance) { summary: "Mint tokens", description: "Mint ERC-20 tokens to a specific wallet.", tags: ["ERC20"], - operationId: "erc20_mintTo", + operationId: "mintTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/setAllowance.ts b/server/api/contract/extensions/erc20/write/setAllowance.ts index 58378b788..f8dabfed4 100644 --- a/server/api/contract/extensions/erc20/write/setAllowance.ts +++ b/server/api/contract/extensions/erc20/write/setAllowance.ts @@ -44,7 +44,7 @@ export async function erc20SetAlowance(fastify: FastifyInstance) { description: "Grant a specific wallet address to transfer ERC-20 tokens from the caller wallet.", tags: ["ERC20"], - operationId: "erc20_setAllowance", + operationId: "setAllowance", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/signatureMint.ts b/server/api/contract/extensions/erc20/write/signatureMint.ts index 7febf9d0c..518c4ff30 100644 --- a/server/api/contract/extensions/erc20/write/signatureMint.ts +++ b/server/api/contract/extensions/erc20/write/signatureMint.ts @@ -42,7 +42,7 @@ export async function erc20SignatureMint(fastify: FastifyInstance) { summary: "Signature mint", description: "Mint ERC-20 tokens from a generated signature.", tags: ["ERC20"], - operationId: "erc20_signature_mint", + operationId: "signatureMint", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/transfer.ts b/server/api/contract/extensions/erc20/write/transfer.ts index e0a3c50e7..2d1c46534 100644 --- a/server/api/contract/extensions/erc20/write/transfer.ts +++ b/server/api/contract/extensions/erc20/write/transfer.ts @@ -46,7 +46,7 @@ export async function erc20Transfer(fastify: FastifyInstance) { description: "Transfer ERC-20 tokens from the caller wallet to a specific wallet.", tags: ["ERC20"], - operationId: "erc20_transfer", + operationId: "transfer", body: requestBodySchema, params: requestSchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc20/write/transferFrom.ts b/server/api/contract/extensions/erc20/write/transferFrom.ts index 126af2018..729b013b1 100644 --- a/server/api/contract/extensions/erc20/write/transferFrom.ts +++ b/server/api/contract/extensions/erc20/write/transferFrom.ts @@ -51,7 +51,7 @@ export async function erc20TransferFrom(fastify: FastifyInstance) { description: "Transfer ERC-20 tokens from the connected wallet to another wallet. Requires allowance.", tags: ["ERC20"], - operationId: "erc20_transferFrom", + operationId: "transferFrom", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/read/balanceOf.ts b/server/api/contract/extensions/erc721/read/balanceOf.ts index b299429ef..bb22a7527 100644 --- a/server/api/contract/extensions/erc721/read/balanceOf.ts +++ b/server/api/contract/extensions/erc721/read/balanceOf.ts @@ -41,7 +41,7 @@ export async function erc721BalanceOf(fastify: FastifyInstance) { description: "Get the balance of a specific wallet address for this ERC-721 contract.", tags: ["ERC721"], - operationId: "erc721_balanceOf", + operationId: "balanceOf", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc721/read/get.ts b/server/api/contract/extensions/erc721/read/get.ts index fad0f1e12..ad505abbb 100644 --- a/server/api/contract/extensions/erc721/read/get.ts +++ b/server/api/contract/extensions/erc721/read/get.ts @@ -53,7 +53,7 @@ export async function erc721Get(fastify: FastifyInstance) { summary: "Get details", description: "Get the details for a token in an ERC-721 contract.", tags: ["ERC721"], - operationId: "erc721_get", + operationId: "get", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc721/read/getAll.ts b/server/api/contract/extensions/erc721/read/getAll.ts index e7b7a06cf..2618bc00b 100644 --- a/server/api/contract/extensions/erc721/read/getAll.ts +++ b/server/api/contract/extensions/erc721/read/getAll.ts @@ -61,7 +61,7 @@ export async function erc721GetAll(fastify: FastifyInstance) { summary: "Get all details", description: "Get details for all tokens in an ERC-721 contract.", tags: ["ERC721"], - operationId: "erc721_getAll", + operationId: "getAll", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc721/read/getOwned.ts b/server/api/contract/extensions/erc721/read/getOwned.ts index 17ce36032..ed5ab38f7 100644 --- a/server/api/contract/extensions/erc721/read/getOwned.ts +++ b/server/api/contract/extensions/erc721/read/getOwned.ts @@ -57,7 +57,7 @@ export async function erc721GetOwned(fastify: FastifyInstance) { description: "Get all tokens in an ERC-721 contract owned by a specific wallet.", tags: ["ERC721"], - operationId: "erc721_getOwned", + operationId: "getOwned", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc721/read/isApproved.ts b/server/api/contract/extensions/erc721/read/isApproved.ts index 516716d31..696e4c686 100644 --- a/server/api/contract/extensions/erc721/read/isApproved.ts +++ b/server/api/contract/extensions/erc721/read/isApproved.ts @@ -45,7 +45,7 @@ export async function erc721IsApproved(fastify: FastifyInstance) { description: "Check if the specific wallet has approved transfers from a specific operator wallet.", tags: ["ERC721"], - operationId: "erc721_isApproved", + operationId: "isApproved", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/extensions/erc721/read/signatureGenerate.ts b/server/api/contract/extensions/erc721/read/signatureGenerate.ts index 6a668abb1..1a91deb71 100644 --- a/server/api/contract/extensions/erc721/read/signatureGenerate.ts +++ b/server/api/contract/extensions/erc721/read/signatureGenerate.ts @@ -69,7 +69,7 @@ export async function erc721SignatureGenerate(fastify: FastifyInstance) { description: "Generate a signature granting access for another wallet to mint tokens from this ERC-721 contract. This method is typically called by the token contract owner.", tags: ["ERC721"], - operationId: "erc721_signature_generate", + operationId: "signatureGenerate", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/read/totalClaimedSupply.ts b/server/api/contract/extensions/erc721/read/totalClaimedSupply.ts index 277e1975e..2a2ef9e45 100644 --- a/server/api/contract/extensions/erc721/read/totalClaimedSupply.ts +++ b/server/api/contract/extensions/erc721/read/totalClaimedSupply.ts @@ -28,7 +28,7 @@ export async function erc721TotalClaimedSupply(fastify: FastifyInstance) { summary: "Get claimed supply", description: "Get the claimed supply for this ERC-721 contract.", tags: ["ERC721"], - operationId: "erc721_totalClaimedSupply", + operationId: "totalClaimedSupply", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/erc721/read/totalCount.ts b/server/api/contract/extensions/erc721/read/totalCount.ts index 19ecc4aff..6c62df3fd 100644 --- a/server/api/contract/extensions/erc721/read/totalCount.ts +++ b/server/api/contract/extensions/erc721/read/totalCount.ts @@ -35,7 +35,7 @@ export async function erc721TotalCount(fastify: FastifyInstance) { description: "Get the total supply in circulation for this ERC-721 contract.", tags: ["ERC721"], - operationId: "erc721_totalCount", + operationId: "totalCount", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/erc721/read/totalUnclaimedSupply.ts b/server/api/contract/extensions/erc721/read/totalUnclaimedSupply.ts index cfe02e2e1..2354a6a95 100644 --- a/server/api/contract/extensions/erc721/read/totalUnclaimedSupply.ts +++ b/server/api/contract/extensions/erc721/read/totalUnclaimedSupply.ts @@ -28,7 +28,7 @@ export async function erc721TotalUnclaimedSupply(fastify: FastifyInstance) { summary: "Get unclaimed supply", description: "Get the unclaimed supply for this ERC-721 contract.", tags: ["ERC721"], - operationId: "erc721_totalUnclaimedSupply", + operationId: "totalUnclaimedSupply", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/erc721/write/burn.ts b/server/api/contract/extensions/erc721/write/burn.ts index c7e4bb3cf..78be0513c 100644 --- a/server/api/contract/extensions/erc721/write/burn.ts +++ b/server/api/contract/extensions/erc721/write/burn.ts @@ -39,7 +39,7 @@ export async function erc721burn(fastify: FastifyInstance) { summary: "Burn token", description: "Burn ERC-721 tokens in the caller wallet.", tags: ["ERC721"], - operationId: "erc721_burn", + operationId: "burn", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/claimTo.ts b/server/api/contract/extensions/erc721/write/claimTo.ts index ae1f8d636..f0446282b 100644 --- a/server/api/contract/extensions/erc721/write/claimTo.ts +++ b/server/api/contract/extensions/erc721/write/claimTo.ts @@ -43,7 +43,7 @@ export async function erc721claimTo(fastify: FastifyInstance) { summary: "Claim tokens to wallet", description: "Claim ERC-721 tokens to a specific wallet.", tags: ["ERC721"], - operationId: "erc721_claimTo", + operationId: "claimTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/lazyMint.ts b/server/api/contract/extensions/erc721/write/lazyMint.ts index 1ee2374d7..f5003ce59 100644 --- a/server/api/contract/extensions/erc721/write/lazyMint.ts +++ b/server/api/contract/extensions/erc721/write/lazyMint.ts @@ -49,7 +49,7 @@ export async function erc721lazyMint(fastify: FastifyInstance) { summary: "Lazy mint", description: "Lazy mint ERC-721 tokens to be claimed in the future.", tags: ["ERC721"], - operationId: "erc721_lazyMint", + operationId: "lazyMint", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/mintBatchTo.ts b/server/api/contract/extensions/erc721/write/mintBatchTo.ts index c52b183f6..693bcb45a 100644 --- a/server/api/contract/extensions/erc721/write/mintBatchTo.ts +++ b/server/api/contract/extensions/erc721/write/mintBatchTo.ts @@ -54,7 +54,7 @@ export async function erc721mintBatchTo(fastify: FastifyInstance) { description: "Mint ERC-721 tokens to multiple wallets in one transaction.", tags: ["ERC721"], - operationId: "erc721_mintBatchTo", + operationId: "mintBatchTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/mintTo.ts b/server/api/contract/extensions/erc721/write/mintTo.ts index 047ae4042..237ffabf2 100644 --- a/server/api/contract/extensions/erc721/write/mintTo.ts +++ b/server/api/contract/extensions/erc721/write/mintTo.ts @@ -46,7 +46,7 @@ export async function erc721mintTo(fastify: FastifyInstance) { summary: "Mint tokens", description: "Mint ERC-721 tokens to a specific wallet.", tags: ["ERC721"], - operationId: "erc721_mintTo", + operationId: "mintTo", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/setApprovalForAll.ts b/server/api/contract/extensions/erc721/write/setApprovalForAll.ts index 509636f7b..04a60e3bd 100644 --- a/server/api/contract/extensions/erc721/write/setApprovalForAll.ts +++ b/server/api/contract/extensions/erc721/write/setApprovalForAll.ts @@ -44,7 +44,7 @@ export async function erc721SetApprovalForAll(fastify: FastifyInstance) { description: "Approve or remove operator as an operator for the caller. Operators can call transferFrom or safeTransferFrom for any token owned by the caller.", tags: ["ERC721"], - operationId: "erc721_setApprovalForAll", + operationId: "setApprovalForAll", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/setApprovalForToken.ts b/server/api/contract/extensions/erc721/write/setApprovalForToken.ts index a3aa669f6..e21947e33 100644 --- a/server/api/contract/extensions/erc721/write/setApprovalForToken.ts +++ b/server/api/contract/extensions/erc721/write/setApprovalForToken.ts @@ -44,7 +44,7 @@ export async function erc721SetApprovalForToken(fastify: FastifyInstance) { description: "Approve an operator for the NFT owner. Operators can call transferFrom or safeTransferFrom for the specific token.", tags: ["ERC721"], - operationId: "erc721_setApprovalForToken", + operationId: "setApprovalForToken", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/signatureMint.ts b/server/api/contract/extensions/erc721/write/signatureMint.ts index 7509f57e4..ae876e408 100644 --- a/server/api/contract/extensions/erc721/write/signatureMint.ts +++ b/server/api/contract/extensions/erc721/write/signatureMint.ts @@ -59,7 +59,7 @@ export async function erc721SignatureMint(fastify: FastifyInstance) { summary: "Signature mint", description: "Mint ERC-721 tokens from a generated signature.", tags: ["ERC721"], - operationId: "erc721_signature_mint", + operationId: "signatureMint", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/transfer.ts b/server/api/contract/extensions/erc721/write/transfer.ts index d035effaa..5268734c2 100644 --- a/server/api/contract/extensions/erc721/write/transfer.ts +++ b/server/api/contract/extensions/erc721/write/transfer.ts @@ -43,7 +43,7 @@ export async function erc721transfer(fastify: FastifyInstance) { summary: "Transfer token", description: "Transfer an ERC-721 token from the caller wallet.", tags: ["ERC721"], - operationId: "erc721_transfer", + operationId: "transfer", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/erc721/write/transferFrom.ts b/server/api/contract/extensions/erc721/write/transferFrom.ts index 09df090d5..4ce05b4f8 100644 --- a/server/api/contract/extensions/erc721/write/transferFrom.ts +++ b/server/api/contract/extensions/erc721/write/transferFrom.ts @@ -48,7 +48,7 @@ export async function erc721transferFrom(fastify: FastifyInstance) { description: "Transfer an ERC-721 token from the connected wallet to another wallet. Requires allowance.", tags: ["ERC721"], - operationId: "erc721_transferFrom", + operationId: "transferFrom", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/read/getAll.ts b/server/api/contract/extensions/marketplaceV3/directListings/read/getAll.ts index 51ffccb4f..65c1c31c1 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/read/getAll.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/read/getAll.ts @@ -72,7 +72,7 @@ export async function directListingsGetAll(fastify: FastifyInstance) { summary: "Get all listings", description: "Get all direct listings for this marketplace contract.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_getAll", + operationId: "getAll", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts b/server/api/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts index 9ef8631df..87bd23637 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/read/getAllValid.ts @@ -73,7 +73,7 @@ export async function directListingsGetAllValid(fastify: FastifyInstance) { description: "Get all the valid direct listings for this marketplace contract. A valid listing is where the listing is active, and the creator still owns & has approved Marketplace to transfer the listed NFTs.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_getAllValid", + operationId: "getAllValid", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/directListings/read/getListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/read/getListing.ts index 376db2533..e93084690 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/read/getListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/read/getListing.ts @@ -57,7 +57,7 @@ export async function directListingsGetListing(fastify: FastifyInstance) { summary: "Get direct listing", description: "Gets a direct listing on this marketplace contract.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_getListing", + operationId: "getListing", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts b/server/api/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts index add818a29..853ef0ae7 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/read/getTotalCount.ts @@ -35,7 +35,7 @@ export async function directListingsGetTotalCount(fastify: FastifyInstance) { description: "Get the total number of direct listings on this marketplace contract.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_getTotalCount", + operationId: "getTotalCount", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts index 3cdf7cdb1..e10616453 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/read/isBuyerApprovedForListing.ts @@ -47,7 +47,7 @@ export async function directListingsIsBuyerApprovedForListing( description: "Check if a buyer is approved to purchase a specific direct listing.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_isBuyerApprovedForListing", + operationId: "isBuyerApprovedForListing", headers: walletAuthSchema, params: requestSchema, querystring: requestQuerySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts index 02273ac04..ba225ef5b 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/read/isCurrencyApprovedForListing.ts @@ -46,7 +46,7 @@ export async function directListingsIsCurrencyApprovedForListing( description: "Check if a currency is approved for a specific direct listing.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_isCurrencyApprovedForListing", + operationId: "isCurrencyApprovedForListing", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts index 3dc80a208..1b7d71016 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/approveBuyerForReservedListing.ts @@ -44,7 +44,7 @@ export async function directListingsApproveBuyerForReservedListing( summary: "Approve buyer for reserved listing", description: "Approve a wallet address to buy from a reserved listing.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_approveBuyerForReservedListing", + operationId: "approveBuyerForReservedListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts index 237aecbba..111ac4759 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/buyFromListing.ts @@ -47,7 +47,7 @@ export async function directListingsBuyFromListing(fastify: FastifyInstance) { description: "Buy from a specific direct listing from this marketplace contract.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_buyFromListing", + operationId: "buyFromListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts index 7727cba73..2456860f9 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/cancelListing.ts @@ -39,7 +39,7 @@ export async function directListingsCancelListing(fastify: FastifyInstance) { description: "Cancel a direct listing from this marketplace contract. Only the creator of the listing can cancel it.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_cancelListing", + operationId: "cancelListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/createListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/createListing.ts index 6f6f2ff95..304707b74 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/createListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/createListing.ts @@ -41,7 +41,7 @@ export async function directListingsCreateListing(fastify: FastifyInstance) { summary: "Create direct listing", description: "Create a direct listing on this marketplace contract.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_createListing", + operationId: "createListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts index 490f08c10..9a2785935 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/revokeBuyerApprovalForReservedListing.ts @@ -45,8 +45,7 @@ export async function directListingsRevokeBuyerApprovalForReservedListing( description: "Revoke approval for a buyer to purchase a reserved listing.", tags: ["Marketplace-DirectListings"], - operationId: - "mktpv3_directListings_revokeBuyerApprovalForReservedListing", + operationId: "revokeBuyerApprovalForReservedListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts index 80f2f0ca1..34a9f0977 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/revokeCurrencyApprovalForListing.ts @@ -44,7 +44,7 @@ export async function directListingsRevokeCurrencyApprovalForListing( summary: "Revoke currency approval for reserved listing", description: "Revoke approval of a currency for a reserved listing.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_revokeCurrencyApprovalForListing", + operationId: "revokeCurrencyApprovalForListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/directListings/write/updateListing.ts b/server/api/contract/extensions/marketplaceV3/directListings/write/updateListing.ts index d5a106a51..86d2023d9 100644 --- a/server/api/contract/extensions/marketplaceV3/directListings/write/updateListing.ts +++ b/server/api/contract/extensions/marketplaceV3/directListings/write/updateListing.ts @@ -42,7 +42,7 @@ export async function directListingsUpdateListing(fastify: FastifyInstance) { summary: "Update direct listing", description: "Update a direct listing on this marketplace contract.", tags: ["Marketplace-DirectListings"], - operationId: "mktpv3_directListings_updateListing", + operationId: "updateListing", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts index e0ac14acc..f31b7fe5e 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAll.ts @@ -75,7 +75,7 @@ export async function englishAuctionsGetAll(fastify: FastifyInstance) { description: "Get all English auction listings on this marketplace contract.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_getAll", + operationId: "getAll", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts index 9dec25ee8..2df62a44a 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAllValid.ts @@ -75,7 +75,7 @@ export async function englishAuctionsGetAllValid(fastify: FastifyInstance) { description: "Get all valid English auction listings on this marketplace contract.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_getAllValid", + operationId: "getAllValid", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts index 99cb96516..1a70b2e9b 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getAuction.ts @@ -58,7 +58,7 @@ export async function englishAuctionsGetAuction(fastify: FastifyInstance) { description: "Get a specific English auction listing on this marketplace contract.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_GetAuction", + operationId: "getAuction", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts index b83777405..cdcb57667 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getBidBufferBps.ts @@ -46,7 +46,7 @@ This is the percentage higher that a new bid must be than the current highest bi If there is no current bid, the bid must be at least the minimum bid amount. Returns the value in percentage format, e.g. 100 = 1%.`, tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_getBidBufferBps", + operationId: "getBidBufferBps", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts index 20374afd7..1750bab1b 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getMinimumNextBid.ts @@ -45,7 +45,7 @@ export async function englishAuctionsGetMinimumNextBid( If there is no current bid, the bid must be at least the minimum bid amount. If there is a current bid, the bid must be at least the current bid amount + the bid buffer.`, tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_getMinimumNextBid", + operationId: "getMinimumNextBid", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts index dc26d2fc8..0d5e51136 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getTotalCount.ts @@ -35,7 +35,7 @@ export async function englishAuctionsGetTotalCount(fastify: FastifyInstance) { description: "Get the count of English auction listings on this marketplace contract.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_getTotalCount", + operationId: "getTotalCount", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts index eb4b83b44..8d6d6373f 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinner.ts @@ -41,7 +41,7 @@ export async function englishAuctionsGetWinner(fastify: FastifyInstance) { description: "Get the winner of an English auction. Can only be called after the auction has ended.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_getWinner", + operationId: "getWinner", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts index 68b3990a8..e2c3a2663 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/getWinningBid.ts @@ -41,7 +41,7 @@ export async function englishAuctionsGetWinningBid(fastify: FastifyInstance) { summary: "Get winning bid", description: "Get the current highest bid of an active auction.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_GetWinningBid", + operationId: "getWinningBid", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts index b2a24e3be..c8522ddac 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/read/isWinningBid.ts @@ -44,7 +44,7 @@ export async function englishAuctionsIsWinningBid(fastify: FastifyInstance) { description: "Check if a bid is or will be the winning bid for an auction.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_isWinningBid", + operationId: "isWinningBid", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts index 58ce431e0..c61160bed 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/buyoutAuction.ts @@ -37,7 +37,7 @@ export async function englishAuctionsBuyoutAuction(fastify: FastifyInstance) { summary: "Buyout English auction", description: "Buyout the listing for this auction.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_buyoutAuction", + operationId: "buyoutAuction", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts index 70f27f960..bbdd9fd00 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/cancelAuction.ts @@ -38,7 +38,7 @@ export async function englishAuctionsCancelAuction(fastify: FastifyInstance) { description: "Cancel an existing auction listing. Only the creator of the listing can cancel it. Auctions cannot be canceled once a bid has been made.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_cancelAuction", + operationId: "cancelAuction", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts index 0c9d968fa..7177e51a8 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForBidder.ts @@ -42,7 +42,7 @@ execute the sale for the buyer, meaning the buyer receives the NFT(s). You must also call closeAuctionForSeller to execute the sale for the seller, meaning the seller receives the payment from the highest bid.`, tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_closeAuctionForBidder", + operationId: "closeAuctionForBidder", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts index 7a8d904cd..293321cfc 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/closeAuctionForSeller.ts @@ -41,7 +41,7 @@ export async function englishAuctionsCloseAuctionForSeller( execute the sale for the seller, meaning the seller receives the payment from the highest bid. You must also call closeAuctionForBidder to execute the sale for the buyer, meaning the buyer receives the NFT(s).`, tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_closeAuctionForSeller", + operationId: "closeAuctionForSeller", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts index 0aa3695a3..8feb6d92a 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/createAuction.ts @@ -44,7 +44,7 @@ export async function englishAuctionsCreateAuction(fastify: FastifyInstance) { description: "Create an English auction listing on this marketplace contract.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_createAuction", + operationId: "createAuction", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts index 5da512330..f3cfeb4b7 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/executeSale.ts @@ -39,7 +39,7 @@ export async function englishAuctionsExecuteSale(fastify: FastifyInstance) { This means the NFT(s) will be transferred to the buyer and the seller will receive the funds. This function can only be called after the auction has ended.`, tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_executeSale", + operationId: "executeSale", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts index 6729830b5..59b64597a 100644 --- a/server/api/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts +++ b/server/api/contract/extensions/marketplaceV3/englishAuctions/write/makeBid.ts @@ -42,7 +42,7 @@ export async function englishAuctionsMakeBid(fastify: FastifyInstance) { summary: "Make bid", description: "Place a bid on an English auction listing.", tags: ["Marketplace-EnglishAuctions"], - operationId: "mktpv3_englishAuctions_makeBid", + operationId: "makeBid", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/offers/read/getAll.ts b/server/api/contract/extensions/marketplaceV3/offers/read/getAll.ts index d48cafc69..434cfcc4c 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/read/getAll.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/read/getAll.ts @@ -71,7 +71,7 @@ export async function offersGetAll(fastify: FastifyInstance) { summary: "Get all offers", description: "Get all offers on this marketplace contract.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offers_getAll", + operationId: "getAll", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/offers/read/getAllValid.ts b/server/api/contract/extensions/marketplaceV3/offers/read/getAllValid.ts index 8b49d70af..fdfb35bad 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/read/getAllValid.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/read/getAllValid.ts @@ -72,7 +72,7 @@ export async function offersGetAllValid(fastify: FastifyInstance) { description: "Get all valid offers on this marketplace contract. Valid offers are offers that have not expired, been canceled, or been accepted.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offers_getAllValid", + operationId: "getAllValid", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/offers/read/getOffer.ts b/server/api/contract/extensions/marketplaceV3/offers/read/getOffer.ts index 5821d4b22..ab0143f09 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/read/getOffer.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/read/getOffer.ts @@ -57,7 +57,7 @@ export async function offersGetOffer(fastify: FastifyInstance) { summary: "Get offer", description: "Get details about an offer.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offers_getOffer", + operationId: "getOffer", params: requestSchema, querystring: requestQuerySchema, response: { diff --git a/server/api/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts b/server/api/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts index af8ac1e13..1a6f54474 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/read/getTotalCount.ts @@ -35,7 +35,7 @@ export async function offersGetTotalCount(fastify: FastifyInstance) { description: "Get the total number of offers on this marketplace contract.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offers_getTotalCount", + operationId: "getTotalCount", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts b/server/api/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts index 64cb0fb07..ef6248882 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/write/acceptOffer.ts @@ -39,7 +39,7 @@ export async function offersAcceptOffer(fastify: FastifyInstance) { summary: "Accept offer", description: "Accept a valid offer.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offer_acceptOffer", + operationId: "acceptOffer", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts b/server/api/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts index 81b1c87c9..c9e8b44d5 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/write/cancelOffer.ts @@ -39,7 +39,7 @@ export async function offersCancelOffer(fastify: FastifyInstance) { summary: "Cancel offer", description: "Cancel a valid offer made by the caller wallet.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offer_cancelOffer", + operationId: "cancelOffer", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/extensions/marketplaceV3/offers/write/makeOffer.ts b/server/api/contract/extensions/marketplaceV3/offers/write/makeOffer.ts index 747f8c559..d2da00173 100644 --- a/server/api/contract/extensions/marketplaceV3/offers/write/makeOffer.ts +++ b/server/api/contract/extensions/marketplaceV3/offers/write/makeOffer.ts @@ -40,7 +40,7 @@ export async function offersMakeOffer(fastify: FastifyInstance) { summary: "Make offer", description: "Make an offer on a token. A valid listing is not required.", tags: ["Marketplace-Offers"], - operationId: "mktpv3_offer_makeOffer", + operationId: "makeOffer", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/metadata/abi.ts b/server/api/contract/metadata/abi.ts index d94d6dc32..bd92e9f89 100644 --- a/server/api/contract/metadata/abi.ts +++ b/server/api/contract/metadata/abi.ts @@ -68,7 +68,7 @@ export async function getABI(fastify: FastifyInstance) { summary: "Get ABI", description: "Get the ABI of a contract.", tags: ["Contract-Metadata"], - operationId: "abi", + operationId: "getAbi", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/metadata/events.ts b/server/api/contract/metadata/events.ts index 457aa05f6..02e162f67 100644 --- a/server/api/contract/metadata/events.ts +++ b/server/api/contract/metadata/events.ts @@ -68,7 +68,7 @@ export async function extractEvents(fastify: FastifyInstance) { summary: "Get events", description: "Get details of all events implemented by a contract.", tags: ["Contract-Metadata"], - operationId: "extractEvents", + operationId: "getEvents", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/metadata/functions.ts b/server/api/contract/metadata/functions.ts index 85d2a092c..6b00284c7 100644 --- a/server/api/contract/metadata/functions.ts +++ b/server/api/contract/metadata/functions.ts @@ -65,7 +65,7 @@ export async function extractFunctions(fastify: FastifyInstance) { summary: "Get functions", description: "Get details of all functions implemented by the contract.", tags: ["Contract-Metadata"], - operationId: "extractFunctions", + operationId: "getFunctions", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/roles/read/get.ts b/server/api/contract/roles/read/get.ts index e555dc60b..cbccf3082 100644 --- a/server/api/contract/roles/read/get.ts +++ b/server/api/contract/roles/read/get.ts @@ -38,7 +38,7 @@ export async function getRoles(fastify: FastifyInstance) { summary: "Get wallets for role", description: "Get all wallets with a specific role for a contract.", tags: ["Contract-Roles"], - operationId: "roles_getRole", + operationId: "getRole", params: requestSchema, querystring: querystringSchema, response: { diff --git a/server/api/contract/roles/read/getAll.ts b/server/api/contract/roles/read/getAll.ts index 2c176f095..f52b6186c 100644 --- a/server/api/contract/roles/read/getAll.ts +++ b/server/api/contract/roles/read/getAll.ts @@ -46,7 +46,7 @@ export async function getAllRoles(fastify: FastifyInstance) { summary: "Get wallets for all roles", description: "Get all wallets in each role for a contract.", tags: ["Contract-Roles"], - operationId: "roles_getAll", + operationId: "getAll", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/roles/write/grant.ts b/server/api/contract/roles/write/grant.ts index c1323299b..3f4bd8c3f 100644 --- a/server/api/contract/roles/write/grant.ts +++ b/server/api/contract/roles/write/grant.ts @@ -37,7 +37,7 @@ export async function grantRole(fastify: FastifyInstance) { summary: "Grant role", description: "Grant a role to a specific wallet.", tags: ["Contract-Roles"], - operationId: "roles_grant", + operationId: "grant", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/roles/write/revoke.ts b/server/api/contract/roles/write/revoke.ts index bb2bdc291..bae4d090b 100644 --- a/server/api/contract/roles/write/revoke.ts +++ b/server/api/contract/roles/write/revoke.ts @@ -37,7 +37,7 @@ export async function revokeRole(fastify: FastifyInstance) { summary: "Revoke role", description: "Revoke a role from a specific wallet.", tags: ["Contract-Roles"], - operationId: "roles_revoke", + operationId: "revoke", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/royalties/read/getDefaultRoyaltyInfo.ts b/server/api/contract/royalties/read/getDefaultRoyaltyInfo.ts index 6fcecf8e7..aa5567b45 100644 --- a/server/api/contract/royalties/read/getDefaultRoyaltyInfo.ts +++ b/server/api/contract/royalties/read/getDefaultRoyaltyInfo.ts @@ -37,7 +37,7 @@ export async function getDefaultRoyaltyInfo(fastify: FastifyInstance) { description: "Gets the royalty recipient and BPS (basis points) of the smart contract.", tags: ["Contract-Royalties"], - operationId: "royalties_getDefaultRoyaltyInfo", + operationId: "getDefaultRoyaltyInfo", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/royalties/read/getTokenRoyaltyInfo.ts b/server/api/contract/royalties/read/getTokenRoyaltyInfo.ts index 0da6029e9..f78c4cd01 100644 --- a/server/api/contract/royalties/read/getTokenRoyaltyInfo.ts +++ b/server/api/contract/royalties/read/getTokenRoyaltyInfo.ts @@ -39,7 +39,7 @@ export async function getTokenRoyaltyInfo(fastify: FastifyInstance) { description: "Gets the royalty recipient and BPS (basis points) of a particular token in the contract.", tags: ["Contract-Royalties"], - operationId: "royalties_getTokenRoyaltyInfo", + operationId: "getTokenRoyaltyInfo", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/contract/royalties/write/setDefaultRoyaltyInfo.ts b/server/api/contract/royalties/write/setDefaultRoyaltyInfo.ts index 431a262fe..a306b7ab9 100644 --- a/server/api/contract/royalties/write/setDefaultRoyaltyInfo.ts +++ b/server/api/contract/royalties/write/setDefaultRoyaltyInfo.ts @@ -38,7 +38,7 @@ export async function setDefaultRoyaltyInfo(fastify: FastifyInstance) { summary: "Set Default Royalty Info", description: "Set the royalty recipient and fee for the smart contract.", tags: ["Contract-Royalties"], - operationId: "royalties_setDefaultRoyaltyInfo", + operationId: "setDefaultRoyaltyInfo", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/contract/royalties/write/setTokenRoyaltyInfo.ts b/server/api/contract/royalties/write/setTokenRoyaltyInfo.ts index 3105b7041..afb18fa3c 100644 --- a/server/api/contract/royalties/write/setTokenRoyaltyInfo.ts +++ b/server/api/contract/royalties/write/setTokenRoyaltyInfo.ts @@ -45,7 +45,7 @@ export async function setTokenRoyaltyInfo(fastify: FastifyInstance) { description: "Set the royalty recipient and fee for a particular token in the contract.", tags: ["Contract-Royalties"], - operationId: "royalties_setTokenRoyaltyInfo", + operationId: "setTokenRoyaltyInfo", headers: walletAuthSchema, params: requestSchema, body: requestBodySchema, diff --git a/server/api/deploy/contractTypes.ts b/server/api/deploy/contractTypes.ts index 4b1c24e3f..8a0ad7f24 100644 --- a/server/api/deploy/contractTypes.ts +++ b/server/api/deploy/contractTypes.ts @@ -19,7 +19,7 @@ export async function contractTypes(fastify: FastifyInstance) { summary: "Get contract types", description: "Get all prebuilt contract types.", tags: ["Deploy"], - operationId: "deployContractTypes", + operationId: "contractTypes", response: { ...standardResponseSchema, [StatusCodes.OK]: responseBodySchema, diff --git a/server/api/deploy/prebuilts/edition.ts b/server/api/deploy/prebuilts/edition.ts index 05e2ecaef..899b3802e 100644 --- a/server/api/deploy/prebuilts/edition.ts +++ b/server/api/deploy/prebuilts/edition.ts @@ -64,7 +64,7 @@ export async function deployPrebuiltEdition(fastify: FastifyInstance) { summary: "Deploy Edition", description: "Deploy an Edition contract.", tags: ["Deploy"], - operationId: "deployPrebuiltEdition", + operationId: "deployEdition", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/editionDrop.ts b/server/api/deploy/prebuilts/editionDrop.ts index 2000927a7..b9c61dacd 100644 --- a/server/api/deploy/prebuilts/editionDrop.ts +++ b/server/api/deploy/prebuilts/editionDrop.ts @@ -64,7 +64,7 @@ export async function deployPrebuiltEditionDrop(fastify: FastifyInstance) { summary: "Deploy Edition Drop", description: "Deploy an Edition Drop contract.", tags: ["Deploy"], - operationId: "deployPrebuiltEditionDrop", + operationId: "deployEditionDrop", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/marketplaceV3.ts b/server/api/deploy/prebuilts/marketplaceV3.ts index 80077f369..a4c1a5bbf 100644 --- a/server/api/deploy/prebuilts/marketplaceV3.ts +++ b/server/api/deploy/prebuilts/marketplaceV3.ts @@ -55,7 +55,7 @@ export async function deployPrebuiltMarketplaceV3(fastify: FastifyInstance) { summary: "Deploy Marketplace", description: "Deploy a Marketplace contract.", tags: ["Deploy"], - operationId: "deployPrebuiltMarketplaceV3", + operationId: "deployMarketplaceV3", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/multiwrap.ts b/server/api/deploy/prebuilts/multiwrap.ts index 68392bc00..9f41ef5e7 100644 --- a/server/api/deploy/prebuilts/multiwrap.ts +++ b/server/api/deploy/prebuilts/multiwrap.ts @@ -58,7 +58,7 @@ export async function deployPrebuiltMultiwrap(fastify: FastifyInstance) { summary: "Deploy Multiwrap", description: "Deploy a Multiwrap contract.", tags: ["Deploy"], - operationId: "deployPrebuiltMultiwrap", + operationId: "deployMultiwrap", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/nftCollection.ts b/server/api/deploy/prebuilts/nftCollection.ts index 5174aa5c4..46d0aee2c 100644 --- a/server/api/deploy/prebuilts/nftCollection.ts +++ b/server/api/deploy/prebuilts/nftCollection.ts @@ -61,7 +61,7 @@ export async function deployPrebuiltNFTCollection(fastify: FastifyInstance) { summary: "Deploy NFT Collection", description: "Deploy an NFT Collection contract.", tags: ["Deploy"], - operationId: "deployPrebuiltNFTCollection", + operationId: "deployNFTCollection", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/nftDrop.ts b/server/api/deploy/prebuilts/nftDrop.ts index 39ea6bfe9..64239d12e 100644 --- a/server/api/deploy/prebuilts/nftDrop.ts +++ b/server/api/deploy/prebuilts/nftDrop.ts @@ -64,7 +64,7 @@ export async function deployPrebuiltNFTDrop(fastify: FastifyInstance) { summary: "Deploy NFT Drop", description: "Deploy an NFT Drop contract.", tags: ["Deploy"], - operationId: "deployPrebuiltNFTDrop", + operationId: "deployNFTDrop", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/pack.ts b/server/api/deploy/prebuilts/pack.ts index c3d314380..ce111b4c5 100644 --- a/server/api/deploy/prebuilts/pack.ts +++ b/server/api/deploy/prebuilts/pack.ts @@ -60,7 +60,7 @@ export async function deployPrebuiltPack(fastify: FastifyInstance) { summary: "Deploy Pack", description: "Deploy a Pack contract.", tags: ["Deploy"], - operationId: "deployPrebuiltPack", + operationId: "deployPack", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/signatureDrop.ts b/server/api/deploy/prebuilts/signatureDrop.ts index d600c7050..ea037945b 100644 --- a/server/api/deploy/prebuilts/signatureDrop.ts +++ b/server/api/deploy/prebuilts/signatureDrop.ts @@ -65,7 +65,7 @@ export async function deployPrebuiltSignatureDrop(fastify: FastifyInstance) { summary: "Deploy Signature Drop", description: "Deploy a Signature Drop contract.", tags: ["Deploy"], - operationId: "deployPrebuiltSignatureDrop", + operationId: "deploySignatureDrop", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/split.ts b/server/api/deploy/prebuilts/split.ts index e5ffe71d2..55960089a 100644 --- a/server/api/deploy/prebuilts/split.ts +++ b/server/api/deploy/prebuilts/split.ts @@ -64,7 +64,7 @@ export async function deployPrebuiltSplit(fastify: FastifyInstance) { summary: "Deploy Split", description: "Deploy a Split contract.", tags: ["Deploy"], - operationId: "deployPrebuiltSplit", + operationId: "deploySplit", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/token.ts b/server/api/deploy/prebuilts/token.ts index 54bdc9f66..fd368da3d 100644 --- a/server/api/deploy/prebuilts/token.ts +++ b/server/api/deploy/prebuilts/token.ts @@ -61,7 +61,7 @@ export async function deployPrebuiltToken(fastify: FastifyInstance) { summary: "Deploy Token", description: "Deploy a Token contract.", tags: ["Deploy"], - operationId: "deployPrebuiltToken", + operationId: "deployToken", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/tokenDrop.ts b/server/api/deploy/prebuilts/tokenDrop.ts index 8afd2bf2a..71f55b6b2 100644 --- a/server/api/deploy/prebuilts/tokenDrop.ts +++ b/server/api/deploy/prebuilts/tokenDrop.ts @@ -63,7 +63,7 @@ export async function deployPrebuiltTokenDrop(fastify: FastifyInstance) { summary: "Deploy Token Drop", description: "Deploy a Token Drop contract.", tags: ["Deploy"], - operationId: "deployPrebuiltTokenDrop", + operationId: "deployTokenDrop", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/deploy/prebuilts/vote.ts b/server/api/deploy/prebuilts/vote.ts index 13dfde097..0270a9e0b 100644 --- a/server/api/deploy/prebuilts/vote.ts +++ b/server/api/deploy/prebuilts/vote.ts @@ -55,7 +55,7 @@ export async function deployPrebuiltVote(fastify: FastifyInstance) { summary: "Deploy Vote", description: "Deploy a Vote contract.", tags: ["Deploy"], - operationId: "deployPrebuiltVote", + operationId: "deployVote", params: requestSchema, body: requestBodySchema, headers: walletAuthSchema, diff --git a/server/api/transaction/cancel.ts b/server/api/transaction/cancel.ts index 884738c69..be03b7b85 100644 --- a/server/api/transaction/cancel.ts +++ b/server/api/transaction/cancel.ts @@ -61,7 +61,7 @@ export async function cancelTransaction(fastify: FastifyInstance) { schema: { description: "Cancel Transaction", tags: ["Transaction"], - operationId: "cancelTransaction", + operationId: "cancel", body: requestBodySchema, response: { ...standardResponseSchema, diff --git a/server/api/transaction/getAll.ts b/server/api/transaction/getAll.ts index 076a0faac..8be61e662 100644 --- a/server/api/transaction/getAll.ts +++ b/server/api/transaction/getAll.ts @@ -102,7 +102,7 @@ export async function getAllTx(fastify: FastifyInstance) { summary: "Get all transactions", description: "Get all transaction requests.", tags: ["Transaction"], - operationId: "getAllTx", + operationId: "getAll", querystring: requestQuerySchema, response: { ...standardResponseSchema, diff --git a/server/api/transaction/retry.ts b/server/api/transaction/retry.ts index 5fca8377d..3abfe708a 100644 --- a/server/api/transaction/retry.ts +++ b/server/api/transaction/retry.ts @@ -45,7 +45,7 @@ export async function retryTransaction(fastify: FastifyInstance) { summary: "Retry transaction", description: "Retry a transaction with updated gas settings.", tags: ["Transaction"], - operationId: "txRetry", + operationId: "retry", params: requestSchema, body: requestBodySchema, response: { diff --git a/server/api/transaction/status.ts b/server/api/transaction/status.ts index d6de9cd52..e2a5cddb5 100644 --- a/server/api/transaction/status.ts +++ b/server/api/transaction/status.ts @@ -68,7 +68,7 @@ export async function checkTxStatus(fastify: FastifyInstance) { summary: "Get transaction status", description: "Get the status for a transaction request.", tags: ["Transaction"], - operationId: "txStatus", + operationId: "status", params: requestSchema, response: { ...standardResponseSchema, diff --git a/server/api/webhooks/create.ts b/server/api/webhooks/create.ts index 463f1fe14..4d40a8872 100644 --- a/server/api/webhooks/create.ts +++ b/server/api/webhooks/create.ts @@ -102,7 +102,7 @@ export async function createWebhook(fastify: FastifyInstance) { summary: "Create a new webhook", description: "Create a new webhook", tags: ["Webhooks"], - operationId: "createWebhooks", + operationId: "create", body: BodySchema, response: { ...standardResponseSchema, diff --git a/server/api/webhooks/events.ts b/server/api/webhooks/events.ts index e1a29f5c4..8471bdb30 100644 --- a/server/api/webhooks/events.ts +++ b/server/api/webhooks/events.ts @@ -18,7 +18,7 @@ export async function getWebhooksEventTypes(fastify: FastifyInstance) { summary: "Get webhooks event types", description: "Get the all the webhooks event types", tags: ["Webhooks"], - operationId: "getWebhooksEventTypes", + operationId: "getEventTypes", response: { ...standardResponseSchema, [StatusCodes.OK]: ReplySchema, diff --git a/server/api/webhooks/getAll.ts b/server/api/webhooks/getAll.ts index ed4b5ff26..ca9a16d74 100644 --- a/server/api/webhooks/getAll.ts +++ b/server/api/webhooks/getAll.ts @@ -28,7 +28,7 @@ export async function getAllWebhooksData(fastify: FastifyInstance) { summary: "Get all webhooks configured", description: "Get all webhooks configuration data set up on Engine", tags: ["Webhooks"], - operationId: "getAllWebhooksData", + operationId: "getAll", response: { ...standardResponseSchema, [StatusCodes.OK]: ReplySchema, diff --git a/server/api/webhooks/revoke.ts b/server/api/webhooks/revoke.ts index 0c3a948d7..e0016d741 100644 --- a/server/api/webhooks/revoke.ts +++ b/server/api/webhooks/revoke.ts @@ -25,7 +25,7 @@ export async function revokeWebhook(fastify: FastifyInstance) { summary: "Revoke webhook", description: "Revoke a Webhook", tags: ["Webhooks"], - operationId: "revokeWebhooks", + operationId: "revoke", body: BodySchema, response: { ...standardResponseSchema, diff --git a/server/index.ts b/server/index.ts index aa85fdc3c..8a17922db 100644 --- a/server/index.ts +++ b/server/index.ts @@ -64,6 +64,11 @@ const main = async () => { } }, ); + + fs.writeFileSync( + "./dist/openapi.json", + JSON.stringify(server.swagger(), undefined, 2), + ); }; main(); diff --git a/src/scripts/generate-sdk.ts b/src/scripts/generate-sdk.ts new file mode 100644 index 000000000..523c8feab --- /dev/null +++ b/src/scripts/generate-sdk.ts @@ -0,0 +1,27 @@ +import { execSync, spawn } from "child_process"; +import fs from "fs"; + +async function main() { + const child = spawn("yarn", ["dev:server"], { detached: true }); + if (!child.pid) return; + + await new Promise((resolve) => setTimeout(resolve, 10000)); + process.kill(-child.pid); + + execSync( + "yarn openapi --input ./dist/openapi.json --output ./dist/sdk --name Engine", + ); + + const code = fs + .readFileSync("./dist/sdk/Engine.ts", "utf-8") + .replace(`export class Engine`, `class EngineLogic`).concat(` +export class Engine extends EngineLogic { + constructor(config: { url: string; accessToken: string; }) { + super({ BASE: config.url, TOKEN: config.accessToken }); + } +} +`); + fs.writeFileSync("./dist/sdk/Engine.ts", code); +} + +main(); diff --git a/yarn.lock b/yarn.lock index 54944fe1d..0d2d5e805 100644 --- a/yarn.lock +++ b/yarn.lock @@ -40,6 +40,16 @@ resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.9.4.tgz#aae21cb858bbb0411949d5b7b3051f4209043f62" integrity sha512-UK0bHA7hh9cR39V+4gl2/NnBBjoXIxkuWAPCaY4X7fbH4L/azIi7ilWOCjMUYfpJgraLUAqkRi2BqrjME8Rynw== +"@apidevtools/json-schema-ref-parser@9.0.9": + version "9.0.9" + resolved "https://registry.yarnpkg.com/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz#d720f9256e3609621280584f2b47ae165359268b" + integrity sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w== + dependencies: + "@jsdevtools/ono" "^7.1.3" + "@types/json-schema" "^7.0.6" + call-me-maybe "^1.0.1" + js-yaml "^4.1.0" + "@assemblyscript/loader@^0.19.21": version "0.19.23" resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.19.23.tgz#7fccae28d0a2692869f1d1219d36093bc24d5e72" @@ -1502,6 +1512,11 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jsdevtools/ono@^7.1.3": + version "7.1.3" + resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" + integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== + "@jsdoc/salty@^0.2.1": version "0.2.5" resolved "https://registry.yarnpkg.com/@jsdoc/salty/-/salty-0.2.5.tgz#1b2fa5bb8c66485b536d86eee877c263d322f692" @@ -3154,6 +3169,11 @@ "@types/minimatch" "^5.1.2" "@types/node" "*" +"@types/json-schema@^7.0.6": + version "7.0.14" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.14.tgz#74a97a5573980802f32c8e47b663530ab3b6b7d1" + integrity sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw== + "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" @@ -4445,6 +4465,11 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-me-maybe@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" + integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -4455,7 +4480,7 @@ camelcase@^5.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -camelcase@^6.0.0: +camelcase@^6.0.0, camelcase@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== @@ -5942,6 +5967,15 @@ fs-extra@^0.30.0: path-is-absolute "^1.0.0" rimraf "^2.2.8" +fs-extra@^11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.1.tgz#da69f7c39f3b002378b0954bb6ae7efdc0876e2d" + integrity sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs-extra@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" @@ -6193,7 +6227,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -6220,6 +6254,18 @@ gtoken@^7.0.0: gaxios "^6.0.0" jws "^4.0.0" +handlebars@^4.7.7: + version "4.7.8" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" + integrity sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ== + dependencies: + minimist "^1.2.5" + neo-async "^2.6.2" + source-map "^0.6.1" + wordwrap "^1.0.0" + optionalDependencies: + uglify-js "^3.1.4" + hardhat@^2.1.2: version "2.16.1" resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.16.1.tgz#fd2288ce44f6846a70ba332b3d8158522447262a" @@ -6753,6 +6799,13 @@ json-rpc-random-id@^1.0.0, json-rpc-random-id@^1.0.1: resolved "https://registry.yarnpkg.com/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz#ba49d96aded1444dbb8da3d203748acbbcdec8c8" integrity sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA== +json-schema-ref-parser@^9.0.9: + version "9.0.9" + resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz#66ea538e7450b12af342fa3d5b8458bc1e1e013f" + integrity sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q== + dependencies: + "@apidevtools/json-schema-ref-parser" "9.0.9" + json-schema-resolver@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/json-schema-resolver/-/json-schema-resolver-2.0.0.tgz#d17fdf53560e6bc9af084b930fee27f6ce4a03b6" @@ -6796,6 +6849,15 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + jsonparse@^1.2.0: version "1.3.1" resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" @@ -7252,7 +7314,7 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" -minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.6: +minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== @@ -7389,6 +7451,11 @@ negotiator@0.6.3: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== +neo-async@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + next-tick@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" @@ -7535,6 +7602,17 @@ openapi-types@^12.0.0, openapi-types@^12.0.2: resolved "https://registry.yarnpkg.com/openapi-types/-/openapi-types-12.1.3.tgz#471995eb26c4b97b7bd356aacf7b91b73e777dd3" integrity sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw== +openapi-typescript-codegen@^0.25.0: + version "0.25.0" + resolved "https://registry.yarnpkg.com/openapi-typescript-codegen/-/openapi-typescript-codegen-0.25.0.tgz#0cb028f54b33b0a63bd9da3756c1c41b4e1a70e2" + integrity sha512-nN/TnIcGbP58qYgwEEy5FrAAjePcYgfMaCe3tsmYyTgI3v4RR9v8os14L+LEWDvV50+CmqiyTzRkKKtJeb6Ybg== + dependencies: + camelcase "^6.3.0" + commander "^11.0.0" + fs-extra "^11.1.1" + handlebars "^4.7.7" + json-schema-ref-parser "^9.0.9" + optionator@^0.8.1: version "0.8.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" @@ -8638,7 +8716,7 @@ source-map-support@^0.5.13: buffer-from "^1.0.0" source-map "^0.6.0" -source-map@^0.6.0, source-map@~0.6.1: +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== @@ -9054,7 +9132,7 @@ uc.micro@^1.0.1, uc.micro@^1.0.5: resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA== -uglify-js@^3.7.7: +uglify-js@^3.1.4, uglify-js@^3.7.7: version "3.17.4" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== @@ -9100,6 +9178,11 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -9513,6 +9596,11 @@ word-wrap@~1.2.3: resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== + workerpool@6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343"