Repository navigation
Fix TypeScript errors in SCIM and RLS helper functions - #242
Merged
hotlong merged 3 commits intoJan 26, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Review job action step details
Fix TypeScript errors in SCIM and RLS helper functions
Jan 26, 2026
hotlong
marked this pull request as ready for review
January 26, 2026 16:00
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes TypeScript compilation errors in the RLS (Row-Level Security) and SCIM helper factory functions that were blocking CI builds.
Changes:
- Added explicit
priority: 0to four RLS factory functions (ownerPolicy,tenantPolicy,rolePolicy,allowAllPolicy) - Added type assertion for generic
Resourcesfield in SCIMlistResponsehelper - Generated JSON schema files and documentation for RLS and SCIM types
Reviewed changes
Copilot reviewed 44 out of 44 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/spec/src/permission/rls.zod.ts | Fixed TypeScript errors by adding explicit priority: 0 to all four RLS helper factory functions |
| packages/spec/src/auth/scim.zod.ts | Fixed TypeScript error by casting generic resources parameter to union type constraint |
| packages/spec/json-schema/permission/*.json | Generated JSON schemas for RLS types (RowLevelSecurityPolicy, RLSConfig, RLSUserContext, RLSOperation, RLSEvaluationResult) |
| packages/spec/json-schema/auth/*.json | Generated JSON schemas for SCIM types (SCIMUser, SCIMGroup, SCIMListResponse, SCIMError, and related sub-types) |
| content/docs/references/permission/rls/*.mdx | Generated documentation pages for RLS schema references |
| content/docs/references/auth/scim/*.mdx | Generated documentation pages for SCIM schema references |
| content/docs/references/permission/meta.json | Added RLS to permission protocol documentation navigation |
| content/docs/references/auth/meta.json | Added SCIM to auth protocol documentation navigation |
This was referenced Aug 29, 2026
This was referenced Sep 29, 2026
This branch was successfully deployed
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.
TypeScript compilation errors in
src/auth/scim.zod.tsandsrc/permission/rls.zod.tsblocking CI builds.Changes
RLS Helpers: Added explicit
priority: 0to factory functions.default(0)doesn't make the field optional inz.infer<>typesownerPolicy,tenantPolicy,rolePolicy,allowAllPolicySCIM Helper: Type assertion for generic
Resourcesfieldresourcestoresources as Array<SCIMResource | Record<string, any>>T[]requires explicit cast to satisfy union type constraintOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.