import{isOperationName as j,JsonPointer as u}from"../utils/index.js";import{getOperation as N}from"./operation.js";import{joinWithSeparator as O}from"../services/index.js";function y(r,e,i,p,c,f,m,h){const{resolved:a}=r.deref(i),s=[];for(const n of Object.keys(a)){const o=a[n],l=Object.keys(o).filter(j);for(const t of l){const b=o[t],k=N(r,{...b,pathName:n,pointer:u.join(p,["callbacks",e,t]),httpVerb:t,pathParameters:o.parameters||[],pathServers:o.servers},m,c,f,{isCallback:!0,id:O(e,t)},h);s.push(k)}}return{name:e,operations:s}}export{y as getCallback};
