Skip to content

Conversation

@deepjyoti30-st
Copy link
Contributor

@deepjyoti30-st deepjyoti30-st commented Apr 30, 2025

Summary of change

This PR adds support for inferring the querier request body and response body types based on the path entered. It uses the core driver interface spec file to achieve this.

There is a script that generates the updated schema and can be run with the following command, whenever necessary (i.e. whenever the API spec is updated):

npm run build-core-types

Related issues

Test Plan

All tests should pass

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

  • Changelog has been updated
  • coreDriverInterfaceSupported.json file has been updated (if needed)
    • Along with the associated array in lib/ts/version.ts
  • frontendDriverInterfaceSupported.json file has been updated (if needed)
  • Changes to the version if needed
    • In package.json
    • In package-lock.json
    • In lib/ts/version.ts
  • Had run npm run build-pretty
  • Had installed and ran the pre-commit hook
  • If new thirdparty provider is added,
    • update switch statement in recipe/thirdparty/providers/configUtils.ts file, createProvider function.
    • add an icon on the user management dashboard.
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • If have added a new web framework, update the add-ts-no-check.js file to include that
  • If added a new recipe / api interface, then make sure that the implementation of it uses NON arrow functions only (like someFunc: function () {..}).
  • If added a new recipe, then make sure to expose it inside the recipe folder present in the root of this repo. We also need to expose its types.
  • If added a new entry point, then make sure that it is importable by adding it to the exports in package.json

@deepjyoti30-st deepjyoti30-st requested a review from porcellus June 3, 2025 06:30
@deepjyoti30-st deepjyoti30-st requested a review from porcellus June 5, 2025 07:14
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 6, 2025

Deploying supertokens-node-pr-check-for-edge-function-compat with  Cloudflare Pages  Cloudflare Pages

Latest commit: b4cd8d7
Status: ✅  Deploy successful!
Preview URL: https://27b63c59.supertokens-node-b95.pages.dev

View logs

@deepjyoti30-st deepjyoti30-st requested a review from porcellus June 11, 2025 15:16
@deepjyoti30-st deepjyoti30-st requested a review from porcellus June 12, 2025 06:57
porcellus and others added 3 commits June 13, 2025 16:04
* fix: handle optional recipeUserId in getUserFromRecoverAccountToken response

* rebuilt code

* fix: update WebAuthn types to use number for createdAt, expiresAt and timout fields and made email optional in for register options

* changelog updates

---------

Co-authored-by: Victor Bojica <[email protected]>
Copy link
Collaborator

porcellus commented Jun 16, 2025

Merge activity

  • Jun 16, 6:46 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 16, 6:46 PM UTC: @porcellus merged this pull request with Graphite.

@porcellus porcellus merged commit 8cd073e into 22.1 Jun 16, 2025
323 of 324 checks passed
@porcellus porcellus deleted the feat/dynamically-inferred-core-types branch June 16, 2025 18:46
porcellus added a commit that referenced this pull request Jun 19, 2025
porcellus added a commit that referenced this pull request Jun 26, 2025
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.

6 participants