[{"data":1,"prerenderedAt":235},["ShallowReactive",2],{"navigation":3,"\u002Fchangelog":43,"\u002Fchangelog-surround":231},[4,8,13,18,23,28,33,38],{"title":5,"path":6,"stem":7},"Getting started","\u002F","index",{"title":9,"path":10,"stem":11,"order":12},"Numbers","\u002Fnumbers","numbers",1,{"title":14,"path":15,"stem":16,"order":17},"Rent","\u002Frent","rent",2,{"title":19,"path":20,"stem":21,"order":22},"User","\u002Fuser","user",3,{"title":24,"path":25,"stem":26,"order":27},"Free numbers","\u002Ffree","free",4,{"title":29,"path":30,"stem":31,"order":32},"Webhooks","\u002Fwebhooks","webhooks",5,{"title":34,"path":35,"stem":36,"order":37},"Testing","\u002Ftesting","testing",6,{"title":39,"path":40,"stem":41,"order":42},"Changelog","\u002Fchangelog","changelog",7,{"id":44,"title":39,"body":45,"description":225,"extension":226,"meta":227,"navigation":228,"path":40,"seo":229,"stem":41,"__hash__":230},"docs\u002Fchangelog.md",{"type":46,"value":47,"toc":220},"minimark",[48,60,65,91,95,98],[49,50,51,52,59],"p",{},"The full history is in ",[53,54,58],"a",{"href":55,"rel":56},"https:\u002F\u002Fgithub.com\u002Fs00d\u002Fonlinesim-js-api\u002Fblob\u002Fmaster\u002FCHANGELOG.md",[57],"nofollow","CHANGELOG.md",".",[61,62,64],"h2",{"id":63},"_210","2.1.0",[66,67,68,79],"ul",{},[69,70,71,72,76,77,59],"li",{},"New: ",[73,74,75],"code",{},"MockOnlineSim",", an offline fake of the API for your tests — see ",[53,78,34],{"href":35},[69,80,81,84,85,88,89,59],{},[73,82,83],{},"exports"," includes ",[73,86,87],{},"\".\u002Fpackage.json\"","; the package ships ",[73,90,58],{},[61,92,94],{"id":93},"_200","2.0.0",[49,96,97],{},"A rewrite with a new API; v1 code does not run unchanged.",[66,99,100,120,127,130,145,162,172,187],{},[69,101,102,103,106,107,110,111,110,114,110,117,59],{},"One client, ",[73,104,105],{},"new OnlineSim({ apiKey })",", with the sections as properties: ",[73,108,109],{},"client.numbers",", ",[73,112,113],{},"client.rent",[73,115,116],{},"client.user",[73,118,119],{},"client.free",[69,121,122,123,126],{},"Zero runtime dependencies (global ",[73,124,125],{},"fetch",", Node.js 18+), ESM + CommonJS + types.",[69,128,129],{},"The key is sent as a Bearer header, never in the URL.",[69,131,132,133,110,136,110,139,110,142,59],{},"Typed errors: ",[73,134,135],{},"ApiError",[73,137,138],{},"NoNumberError",[73,140,141],{},"TransportError",[73,143,144],{},"TimeoutError",[69,146,147,150,151,154,155,110,158,161],{},[73,148,149],{},"numbers.waitCode"," replaces ",[73,152,153],{},"wait_code",": real interval and timeout, ",[73,156,157],{},"keepOpen",[73,159,160],{},"since",", retries network errors.",[69,163,164,167,168,171],{},[73,165,166],{},"rent.get"," creates extendable rents by default (",[73,169,170],{},"extension = true",").",[69,173,71,174,177,178,177,181,110,184,59],{},[73,175,176],{},"user.setWebhookUrl"," \u002F ",[73,179,180],{},"clearWebhookUrl",[73,182,183],{},"webhookLogs",[73,185,186],{},"parseWebhook",[69,188,189,190,110,193,110,196,110,199,110,202,110,205,110,208,177,211,177,213,216,217,171],{},"Removed: the proxy API, ",[73,191,192],{},"onlineProxy",[73,194,195],{},"numbers.repeat",[73,197,198],{},"numbers.service",[73,200,201],{},"numbers.serviceNumber",[73,203,204],{},"rent.portReload",[73,206,207],{},"user.createEmpty",[73,209,210],{},"free.countries",[73,212,11],{},[73,214,215],{},"messages"," (use ",[73,218,219],{},"free.list",{"title":221,"searchDepth":17,"depth":17,"links":222},"",[223,224],{"id":63,"depth":17,"text":64},{"id":93,"depth":17,"text":94},"Release notes of onlinesim-js-api.","md",{},{"order":42},{"title":39,"description":225},"1YXlBNurEBCrw7o3Hn30FEaLHJkaV2YlWtguBUJQVaI",[232,233],null,{"title":24,"path":25,"stem":26,"description":234,"order":27,"children":-1},"Public numbers and their SMS — client.free. No API key needed.",1795107813176]