fix(types): remove non-existent updatedAt from tailor.idp.User#180
Merged
Conversation
The `updatedAt` field is declared on the `User` interface but is not returned by the IDP service, so any type-driven access yielded `undefined` and misled consumers. Drop it from the type so the declaration matches the runtime response.
There was a problem hiding this comment.
Pull request overview
Removes the misleading updatedAt?: string property from the tailor.idp.User ambient type so TypeScript consumers don’t assume an IDP field that is never present.
Changes:
- Remove
updatedAt?: stringfromtailor.idp.Userin the types declaration file. - Add a Changesets entry to publish the fix as a patch release of
@tailor-platform/function-types.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/types/tailor.d.ts | Removes the non-existent updatedAt field from tailor.idp.User. |
| .changeset/remove-user-updated-at.md | Adds a patch changeset describing the types fix for release notes/versioning. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
k1LoW
added a commit
to tailor-platform/sdk
that referenced
this pull request
Jun 3, 2026
The IDP service does not return an `updatedAt` field, but the `idp.User` interface declared `updatedAt?: string`. Consumers were misled into expecting an optional timestamp that was always `undefined` at runtime. Mirrors tailor-platform/function#180, which removed the same field from `tailor.idp.User` in the function-types package.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
updatedAt?: stringfromtailor.idp.Userbecause the IDP service does not return this fieldundefined