From a7679f862e42d7b7f793be911faa99974b6e23c4 Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Mon, 7 Apr 2025 17:15:49 -0700 Subject: [PATCH 1/5] added webhook docs --- docs/fern/docs/pages-template/concepts/webhooks.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/fern/docs/pages-template/concepts/webhooks.mdx b/docs/fern/docs/pages-template/concepts/webhooks.mdx index 6138d5bc9..357615cd3 100644 --- a/docs/fern/docs/pages-template/concepts/webhooks.mdx +++ b/docs/fern/docs/pages-template/concepts/webhooks.mdx @@ -60,6 +60,10 @@ Please refer to the webhook endpoint API reference for more details on the avail - [team.created](/rest-api/webhooks/teams/team-created) - [team.updated](/rest-api/webhooks/teams/team-updated) - [team.deleted](/rest-api/webhooks/teams/team-deleted) +- [team_membership.created](/rest-api/webhooks/teams/team-membership-created) +- [team_membership.deleted](/rest-api/webhooks/teams/team-membership-deleted) +- [team_permission.created](/rest-api/webhooks/teams/team-permission-created) +- [team_permission.deleted](/rest-api/webhooks/teams/team-permission-deleted) ## Examples From 7df6191dc4777bc6ca02437ff6cd02cdbe2d4c83 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Mon, 7 Apr 2025 18:08:26 -0700 Subject: [PATCH 2/5] Update API key regex --- .vscode/settings.json | 1 + packages/stack-shared/src/utils/api-keys.tsx | 21 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d1137aca8..a0bbee998 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,6 +11,7 @@ "backlinks", "Cancelation", "Cdfc", + "checksummable", "chinthakagodawita", "cjsx", "clsx", diff --git a/packages/stack-shared/src/utils/api-keys.tsx b/packages/stack-shared/src/utils/api-keys.tsx index 19b1017ce..3db541186 100644 --- a/packages/stack-shared/src/utils/api-keys.tsx +++ b/packages/stack-shared/src/utils/api-keys.tsx @@ -11,7 +11,8 @@ const API_KEY_LENGTHS = { SECRET_PART: 45, ID_PART: 32, TYPE_PART: 4, - SCANNER_AND_MARKER: 10, + SCANNER: 1, + MARKER: 9, CHECKSUM: 8, } as const; @@ -59,12 +60,13 @@ function createApiKeyParts(options: Pick Date: Tue, 8 Apr 2025 16:34:47 -0700 Subject: [PATCH 3/5] Init script analytics (#611) --- apps/dashboard/package.json | 2 +- .../src/app/(main)/wizard-congrats/page.tsx | 2 + .../app/(main)/wizard-congrats/posthog.tsx | 32 +++++++ packages/init-stack/package.json | 3 +- packages/init-stack/src/index.ts | 86 +++++++++++++++++-- pnpm-lock.yaml | 37 +++++--- 6 files changed, 143 insertions(+), 19 deletions(-) create mode 100644 apps/dashboard/src/app/(main)/wizard-congrats/posthog.tsx diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index 4fee7da84..349c6745e 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -36,7 +36,7 @@ "lucide-react": "^0.378.0", "next": "15.2.3", "next-themes": "^0.2.1", - "posthog-js": "^1.149.1", + "posthog-js": "^1.234.9", "react": "19.0.0", "react-dom": "19.0.0", "react-globe.gl": "^2.28.2", diff --git a/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx b/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx index 5bfb75fd9..ea2b7ed9e 100644 --- a/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx +++ b/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx @@ -1,6 +1,7 @@ import { Confetti } from "@/components/confetti"; import { Card, CardContent, CardFooter, CardHeader, InlineCode, Typography } from "@stackframe/stack-ui"; import Actions from "./actions"; +import PostHog from "./posthog"; export const metadata = { title: "Setup complete!", @@ -9,6 +10,7 @@ export const metadata = { export default function WizardCongratsPage() { return ( <> +