Changelog
Release notes of onlinesim-swift-api.
The full history is in CHANGELOG.md.
1.0.1
- Fixed decoding against the current API: optional
NumberOperation.response(waitCodeno longer polls until its timeout), nullable payment and free-list fields,Profile.number/countrytypes,RentSms.code"0"fornotifySMS;paymentHistory().paylistis kept when it arrives as a list. waitCoderetriesTRY_AGAIN_LATER(rate limit),ERROR_UNDEFINEDandINTERVAL_CONCURRENT_REQUESTS_ERROR.MockOnlineSimfollows the backend more closely: rent reservation and confirmation,setOperationReviseandcloseRentNumanswers, missing vs wrong key — see Testing.
1.0.0
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).
OnlineSimClientwithnumbers,rent,userandfreesections;async throwsmethods;Sendableeverywhere (Swift 6 language mode ready).- Swift 5.9+, macOS 12, iOS 15, tvOS 15, watchOS 8, Linux; zero dependencies (
URLSession). - The key is sent as a Bearer header, never in the URL; injectable
Transport(your ownURLSession). - One error enum,
OnlineSimError:.api,.noNumber,.transport,.waitTimeout,.invalidPayload. numbers.waitCode: interval and timeout in seconds,keepOpen,since, retries network errors, injectableWaitClock.parseWebhookfor inbound webhooks; webhook URL set / clear / logs.MockOnlineSim: an offline fake of the API for your tests — see Testing.