stack/packages/stack-shared/src/utils
CactusBlue 1ffd1e3e5b
User permissions (#573)
<!-- ELLIPSIS_HIDDEN -->


> [!IMPORTANT]
> Adds user permissions management, including models, API endpoints, and
tests, alongside existing team permissions.
> 
>   - **Behavior**:
> - Adds user permissions alongside team permissions, allowing for
user-specific permission management.
> - Introduces `ProjectUserDirectPermission` model in `schema.prisma`
for direct user permissions.
>     - Updates `PermissionScope` enum from `GLOBAL` to `USER`.
>   - **API**:
> - Adds CRUD endpoints for user permissions in `user-permissions` and
`user-permission-definitions`.
> - Updates existing team permission endpoints to support user
permissions.
>   - **Tests**:
> - Adds e2e tests for user permissions in `user-permissions.test.ts`
and `user-permission-definitions.test.ts`.
> - Updates existing tests to include user permissions where applicable.
>   - **Misc**:
> - Updates `adminInterface.ts` and `server-app-impl.ts` to handle user
permissions.
> - Modifies `known-errors.tsx` to include `UserPermissionRequired`
error.
> - Adjusts `project-configs` and `projects` to include user default
permissions.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 8b73e668e2. It will automatically
update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->
2025-03-25 02:20:53 +01:00
..
arrays.tsx User permissions (#573) 2025-03-25 02:20:53 +01:00
base64.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
booleans.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
browser-compat.tsx Better specs for Docker GH Action 2024-12-11 19:02:49 -08:00
bytes.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
caches.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
compile-time.tsx Split stack-app.ts file into multiple files (#492) 2025-03-02 21:20:42 -08:00
crypto.tsx TOTP MFA components 2024-08-10 09:45:49 -07:00
dates.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
dom.tsx Fix lint errors 2024-06-06 13:35:29 +02:00
env.tsx JS lib docs (#444) 2025-02-20 00:48:05 +01:00
errors.tsx Tenancies (#418) 2025-02-07 22:54:04 -08:00
fs.tsx added writeFileSyncIfChanged to all the codegen 2025-02-19 12:11:17 -08:00
functions.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
geo.tsx Active Sessions Page (#528) 2025-03-12 22:35:32 +01:00
globals.tsx Set target to ES2021 2024-07-07 17:28:14 -07:00
hashes.tsx Identity Provider/External OAuth (#323) 2024-11-30 23:27:55 -08:00
html.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
http.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
ips.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
json.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
jwt.tsx Disallow kid audience 2024-12-12 09:41:37 -08:00
locks.tsx Added sign out lock (#374) 2024-12-20 18:38:04 +01:00
maps.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
math.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
node-http.tsx Force dynamic 2024-12-01 01:31:22 -08:00
numbers.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
oauth.tsx remove slack oauth, allow no email in oauth 2024-09-19 16:35:17 -07:00
objects.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
passkey.tsx Passkey support (#321) 2024-10-28 16:56:46 -07:00
promises.tsx Fix tests 2025-03-02 21:34:49 -08:00
proxies.tsx Reduce test flakeyness (#517) 2025-03-07 13:34:50 -08:00
react.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
results.tsx Make 10% of all transactions serializable 2025-03-02 17:15:20 -08:00
sentry.tsx Increase Sentry maxValueLength 2024-12-11 18:56:42 -08:00
stores.tsx Added sign out lock (#374) 2024-12-20 18:38:04 +01:00
strings.test.ts In-source unit tests (#429) 2025-02-14 11:47:52 -08:00
strings.tsx Demo page now centers sign in component 2025-03-12 10:07:43 -07:00
types.tsx Events (#142) 2024-07-21 18:31:42 -07:00
unicode.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
urls.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
uuids.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00