stack/apps/backend/src/app
Zai Shi 0f7727b6ba
add permission webhooks (#533)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Add webhooks for team permission creation and deletion, updating CRUD
operations and tests to support this functionality.
> 
>   - **Webhooks**:
> - Add `sendTeamPermissionCreatedWebhook` and
`sendTeamPermissionDeletedWebhook` in `webhooks.tsx`.
> - Trigger `sendTeamPermissionCreatedWebhook` on permission creation in
`team-memberships/crud.tsx` and `team-permissions/crud.tsx`.
> - Trigger `sendTeamPermissionDeletedWebhook` on permission deletion in
`team-permissions/crud.tsx`.
>   - **CRUD Operations**:
> - Modify `addUserToTeam` in `team-memberships/crud.tsx` to return
permission IDs.
> - Update `onCreate` and `onDelete` handlers in
`team-permissions/crud.tsx` to handle webhooks.
>   - **Tests**:
> - Add tests in `team-memberships.test.ts` and
`team-permissions.test.ts` to verify webhook triggers for permission
creation and deletion.
> 
> <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 5067753761. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-03-13 02:43:48 +01:00
..
.well-known/jwks.json Tenancies (#418) 2025-02-07 22:54:04 -08:00
api add permission webhooks (#533) 2025-03-13 02:43:48 +01:00
health Fix Sentry setup 2024-11-22 23:16:17 +01:00
favicon.ico Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
global-error.tsx Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
layout.tsx Suppress hydration warnings on html and body of backend 2024-11-23 03:31:23 +01:00
not-found.tsx Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
page.tsx Fix indentation 2024-12-29 11:34:14 -08:00