{"version":3,"file":"webhooks.cjs","names":["makeRestApiRequest"],"sources":["../src/api/webhooks.ts"],"sourcesContent":["import type { IHttpRequestMethods } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\ntype WebhookData = {\n\tworkflowId: string;\n\twebhookPath: string;\n\tmethod: IHttpRequestMethods;\n\tnode: string;\n};\n\nexport const findWebhook = async (\n\tcontext: IRestApiContext,\n\tdata: { path: string; method: string },\n): Promise<WebhookData | null> => {\n\treturn await makeRestApiRequest(context, 'POST', '/webhooks/find', data);\n};\n"],"mappings":";;;AAYA,MAAa,cAAc,OAC1B,SACA,SACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,kBAAkB,KAAK"}