Skip to content

fix: preserve SDK compatibility and support paginated delivery attempts - #66

Merged
mekilis merged 5 commits into
speakeasy-sdk-regen-20261102from
fix/delivery-attempts-compatibility
Nov 10, 2026
Merged

mekilis merged 5 commits into
speakeasy-sdk-regen-20261102from
fix/delivery-attempts-compatibility

Conversation

@mekilis

@mekilis mekilis commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #65 and upstream schema fix frain-dev/convoy#2897.

  • Preserve legacy RequestOptions calls and their array response type for class and standalone APIs.
  • Add overload-specific cursor-page responses for literal true and a safely narrowable union for dynamic booleans. Map wire next_cursor to nextCursor; reject malformed pages.
  • Add 28 type-checked compatibility cases covering old/new options, populated and last pages, malformed responses, and return-type compatibility.
  • Make missing/failing npm test scripts fatal. Execute the protected compatibility suite directly, independently of generated package scripts.
  • Require successful exact-head SDK compatibility and SDK regeneration checks before bot approval. Missing, pending, skipped or failed checks leave human review.
  • Preserve adapters, operation model, and tests with .genignore; persist test commands in generator configuration.

Verification

Locally: npm ci; all 59 tests pass; build and lint pass; git diff --check, YAML parsing, and workflow bash syntax pass. Independent code review found no remaining SDK defects.

A read-only same-repository PR CI job uses pinned/checksummed Speakeasy 1.790.2 to regenerate twice against upstream fixed schema commit 088fe3ba5642aa40899374e091e83720349f3747 in a disposable directory. Each pass must write a fresh generation lock, preserve compatibility-file hashes, and pass tests/build/lint. No-op/auth-timeout, missing-key, and overwritten-file failure guards were tested locally. Credentialed CI passed on commit 869e451: both regeneration passes preserved all protected file hashes and each passed 59 tests, the 28-case compatibility suite, build, and lint. Full CI: https://github.com/frain-dev/convoy.js/actions/runs/42713044300 . Snapshot pushes were explicitly disabled; verification did not publish generated commits.

Integration and release notes

Upstream #2897 must land before the normal SDK workflow consumes the corrected main-branch schema. The CI schema pin is a reproducible regression fixture, not a change to the normal generation source. Hand-maintained compatibility files require deliberate review when upstream models change.

This remains a draft targeting the bot regeneration branch. Review release versioning before release. No merge, auto-merge enablement, or publication is requested.

@mekilis mekilis changed the title fix: preserve delivery attempts options and require compatibility checks fix: preserve SDK compatibility and support paginated delivery attempts Nov 9, 2026
@mekilis
mekilis marked this pull request as ready for review November 10, 2026 07:02
@mekilis
mekilis merged commit c149d73 into speakeasy-sdk-regen-20261102 Nov 10, 2026
3 checks passed
@mekilis
mekilis deleted the fix/delivery-attempts-compatibility branch November 10, 2026 07:04
mekilis added a commit that referenced this pull request Nov 10, 2026
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.790.2

* fix: preserve SDK compatibility and support paginated delivery attempts (#66)

* fix: preserve delivery attempts options and gate SDK approval on compatibility

* fix: support typed delivery attempt pages and verify regeneration twice

* fix: initialize disposable repository for persistent generation edits

* fix: allow read-only retrieval of generator snapshot refs

* fix: align package scripts with generated metadata order

---------

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: Smart Mekiliuwa <st.nonso@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant