[{"data":1,"prerenderedAt":250},["ShallowReactive",2],{"navigation":3,"\u002Fchangelog":43,"\u002Fchangelog-surround":246},[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":240,"extension":241,"meta":242,"navigation":243,"path":40,"seo":244,"stem":41,"__hash__":245},"docs\u002Fchangelog.md",{"type":46,"value":47,"toc":235},"minimark",[48,60,65,135,139,142],[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-swift-api\u002Fblob\u002Fmain\u002FCHANGELOG.md",[57],"nofollow","CHANGELOG.md",".",[61,62,64],"h2",{"id":63},"_101","1.0.1",[66,67,68,104,120],"ul",{},[69,70,71,72,76,77,80,81,6,84,87,88,91,92,95,96,99,100,103],"li",{},"Fixed decoding against the current API: optional ",[73,74,75],"code",{},"NumberOperation.response"," (",[73,78,79],{},"waitCode"," no longer polls until its timeout), nullable payment and free-list fields, ",[73,82,83],{},"Profile.number",[73,85,86],{},"country"," types, ",[73,89,90],{},"RentSms.code"," ",[73,93,94],{},"\"0\""," for ",[73,97,98],{},"notify"," SMS; ",[73,101,102],{},"paymentHistory().paylist"," is kept when it arrives as a list.",[69,105,106,108,109,112,113,116,117,59],{},[73,107,79],{}," retries ",[73,110,111],{},"TRY_AGAIN_LATER"," (rate limit), ",[73,114,115],{},"ERROR_UNDEFINED"," and ",[73,118,119],{},"INTERVAL_CONCURRENT_REQUESTS_ERROR",[69,121,122,125,126,116,129,132,133,59],{},[73,123,124],{},"MockOnlineSim"," follows the backend more closely: rent reservation and confirmation, ",[73,127,128],{},"setOperationRevise",[73,130,131],{},"closeRentNum"," answers, missing vs wrong key — see ",[53,134,34],{"href":35},[61,136,138],{"id":137},"_100","1.0.0",[49,140,141],{},"First release of the Swift SDK, on the same contract as the other OnlineSim SDKs (JS 2.1.0, PHP, Python, Go, Rust, Java, Ruby, .NET).",[66,143,144,168,175,184,206,222,228],{},[69,145,146,149,150,152,153,152,155,116,157,159,160,163,164,167],{},[73,147,148],{},"OnlineSimClient"," with ",[73,151,11],{},", ",[73,154,16],{},[73,156,21],{},[73,158,26],{}," sections; ",[73,161,162],{},"async throws"," methods; ",[73,165,166],{},"Sendable"," everywhere (Swift 6 language mode ready).",[69,169,170,171,174],{},"Swift 5.9+, macOS 12, iOS 15, tvOS 15, watchOS 8, Linux; zero dependencies (",[73,172,173],{},"URLSession",").",[69,176,177,178,181,182,174],{},"The key is sent as a Bearer header, never in the URL; injectable ",[73,179,180],{},"Transport"," (your own ",[73,183,173],{},[69,185,186,187,190,191,152,194,152,197,152,200,152,203,59],{},"One error enum, ",[73,188,189],{},"OnlineSimError",": ",[73,192,193],{},".api",[73,195,196],{},".noNumber",[73,198,199],{},".transport",[73,201,202],{},".waitTimeout",[73,204,205],{},".invalidPayload",[69,207,208,211,212,152,215,218,219,59],{},[73,209,210],{},"numbers.waitCode",": interval and timeout in seconds, ",[73,213,214],{},"keepOpen",[73,216,217],{},"since",", retries network errors, injectable ",[73,220,221],{},"WaitClock",[69,223,224,227],{},[73,225,226],{},"parseWebhook"," for inbound webhooks; webhook URL set \u002F clear \u002F logs.",[69,229,230,232,233,59],{},[73,231,124],{},": an offline fake of the API for your tests — see ",[53,234,34],{"href":35},{"title":236,"searchDepth":17,"depth":17,"links":237},"",[238,239],{"id":63,"depth":17,"text":64},{"id":137,"depth":17,"text":138},"Release notes of onlinesim-swift-api.","md",{},{"order":42},{"title":39,"description":240},"j6bw2O_YaNkEnCTejFMKm7RmNSkGUgjuPQF_dd9W-Jo",[247,248],null,{"title":24,"path":25,"stem":26,"description":249,"order":27},"Public numbers and their SMS — client.free. No API key needed.",1795164593469]