Contributions are welcome and will be fully credited.
Please read and understand the contribution guide before creating an issue or pull request.
This project is open source, and as such, the maintainers give their free time to build and maintain the source code held within. They make the code freely available in the hope that it will be of use to other developers. It would be extremely unfair for them to suffer abuse or anger for their hard work.
Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the world that developers are civilized and selfless people.
It's the duty of the maintainer to ensure that all submissions to the project are of sufficient quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
When requesting or submitting new features, first consider whether it might be useful to others. Open source projects are used by many developers, who may have entirely different needs to your own. Think about whether or not your feature is likely to be used by other users of the project.
Before filing an issue:
- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
- Check to make sure your feature suggestion isn't already present within the project.
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
- Check the pull requests tab to ensure that the feature isn't already in progress.
Before submitting a pull request:
- Check the codebase to ensure that your feature doesn't already exist.
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
If the project maintainer has any additional requirements, you will find them listed here.
-
Add tests! - Your patch won't be accepted if it doesn't have tests.
-
Document any change in behaviour - Make sure the
README.mdand any other relevant documentation are kept up-to-date. -
Consider our release cycle - We try to follow SemVer v2.0.0. Randomly breaking public APIs is not an option.
-
One pull request per feature - If you want to do more than one thing, send multiple pull requests.
-
Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
Happy coding!
Run npm ci, npm test, npm run build, and npm run lint before publishing.
npm run test:compatibility type-checks and exercises both the class and standalone
API, including the pre-pagination delivery-attempts options argument. CI treats
missing scripts and failing tests as failures. Generated PRs must have a successful
SDK compatibility and SDK regeneration check for their exact head before automated approval; a pending
or absent check leaves the PR for human review.
The delivery-attempts class/function adapters, operation response model, and compatibility test are protected
by .genignore. Do not remove these exclusions during regeneration. Review these
adapters manually when upstream models change. Test scripts are also configured
in .speakeasy/gen.yaml, so regenerated package metadata retains the checks.
After running the normal Speakeasy generation workflow, rerun all checks above.
Legacy calls retain their array response type:
const response = await sdk.deliveryAttempts.getDeliveryAttempts(projectID, deliveryID, options);
response.data?.map(attempt => attempt.uid);Opt-in cursor pagination returns a separate page type:
const response = await sdk.deliveryAttempts.getDeliveryAttempts(projectID, deliveryID, true, before, options);
response.data?.content.map(attempt => attempt.uid);
const next = response.data?.nextCursor; // Empty string means the final page.The standalone function has the same overloads (with client first). A dynamic
boolean returns an array-or-page union; narrow with Array.isArray(response.data).
The wire key next_cursor is mapped to nextCursor, consistent with SDK naming.
Malformed pages are rejected instead of silently dropping cursor data.
The upstream OpenAPI response must describe both array and page shapes. The
hand-maintained operation model keeps the legacy exported response type stable,
so changing the upstream response to oneOf does not widen existing consumers.
SPEAKEASY_API_KEY=... OPENAPI_SCHEMA=/path/to/openapi3.yaml bash scripts/check-regeneration.sh
checks the committed HEAD in a disposable directory. It runs pinned SDK generation
twice, verifies the compatibility files are unchanged, and runs tests, build and
lint after each pass. The CI job uses a fixed upstream schema revision for
reproducibility and has read-only repository permissions. It never pushes or
publishes. Fork PRs do not receive the generator credential and therefore require
maintainer verification before approval.