Skip to content

v1.2.0 — SMS evidence + revision-aware waits

Choose a tag to compare

@dzevs dzevs released this 05 Aug 11:26
308caad

Additive release for both @smscode/sdk (TypeScript/JavaScript) and smscode
(Python).

Added

  • Order reads and SMS webhooks expose otp_message and the monotonic
    sms_revision, allowing clients to retain text/link-only SMS deliveries and
    reject older aggregate snapshots.
  • waitForOtp accepts afterRevision, and wait_for_otp accepts
    after_revision, alongside the existing code baseline. Resend waits can now
    observe identical-code or text/link-only follow-up SMS deliveries.

Changed

  • sms_revision is required on order-read response types because the API always
    emits it. Consumers with hand-built response mocks may need to add this field
    when upgrading.
  • A delivered SMS without a classified code remains delivery evidence. Use the
    server-authoritative can_cancel capability before attempting cancellation.

Install: npm @smscode/sdk@1.2.0 · PyPI smscode==1.2.0