The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Rename `payout.confirmed` webhook to `external_payout.confirmed` (#4665)
Kiran K30fd353d581a
diff --git a/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/queue-external-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/queue-external-payouts.tsindex 9264a1554f..631d6f16a6 100644--- a/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/queue-external-payouts.ts+++ b/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/queue-external-payouts.ts@@ -1,5 +1,6 @@import { queueBatchEmail } from "@/lib/email/queue-batch-email";import { prisma } from "@/lib/prisma";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { sendWorkspaceWebhook } from "@/lib/webhook/publish";import { payoutWebhookEventSchema } from "@/lib/zod/schemas/payouts";import type PartnerPayoutConfirmed from "@dub/email/templates/partner-payout-confirmed";@@ -81,7 +82,7 @@ export async function queueExternalPayouts(projectId: invoice.workspaceId,disabledAt: null,triggers: {- array_contains: ["payout.confirmed"],+ array_contains: [EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER],},},select: {@@ -93,7 +94,7 @@ export async function queueExternalPayouts(if (webhooks.length === 0) {await log({- message: `No payout.confirmed webhook found for workspace ${invoice.workspaceId} (program: ${program.slug}, invoice: ${invoice.id}). Skipping external payouts...`,+ message: `No ${EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER} webhook found for workspace ${invoice.workspaceId} (program: ${program.slug}, invoice: ${invoice.id}). Skipping external payouts...`,type: "errors",mention: true,});@@ -117,7 +118,7 @@ export async function queueExternalPayouts(},webhooks,data,- trigger: "payout.confirmed",+ trigger: EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER,});} catch (error) {console.error(error.message);diff --git a/apps/web/app/api/webhooks/callback/route.ts b/apps/web/app/api/webhooks/callback/route.tsindex 41c5d534bd..ea7d8b1d63 100644--- a/apps/web/app/api/webhooks/callback/route.ts+++ b/apps/web/app/api/webhooks/callback/route.ts@@ -1,7 +1,10 @@import { verifyQstashSignature } from "@/lib/cron/verify-qstash";import { prisma } from "@/lib/prisma";import { recordWebhookEvent } from "@/lib/tinybird/record-webhook-event";-import { WEBHOOK_TRIGGERS } from "@/lib/webhook/constants";+import {+ EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER,+ WEBHOOK_TRIGGERS,+} from "@/lib/webhook/constants";import {handleWebhookFailure,resetWebhookFailureCount,@@ -84,8 +87,8 @@ export const POST = async (req: Request) => {? [resetWebhookFailureCount(webhookId)]: []),- // Handle payout events- ...(event === "payout.confirmed"+ // Handle external payout events+ ...(event === EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER? [handleExternalPayoutEvent({webhook,diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-methods.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-methods.tsxindex 2e7e034517..aa9dc05227 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-methods.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-methods.tsx@@ -5,6 +5,7 @@ import usePaymentMethods from "@/lib/swr/use-payment-methods";import useProgram from "@/lib/swr/use-program";import useWebhooks from "@/lib/swr/use-webhooks";import useWorkspace from "@/lib/swr/use-workspace";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { Badge, Button } from "@dub/ui";import { MoneyBill, Webhook } from "@dub/ui/icons";import { capitalize } from "@dub/utils";@@ -192,7 +193,7 @@ function ExternalPayoutMethods() {const { slug } = useWorkspace();const { webhooks } = useWebhooks();- // Filter webhooks with payout.confirmed trigger+ // Filter webhooks with EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGERconst externalPayoutWebhooks = useMemo(() => {if (!webhooks) return [];@@ -200,7 +201,7 @@ function ExternalPayoutMethods() {(webhook) =>webhook.triggers &&Array.isArray(webhook.triggers) &&- webhook.triggers.includes("payout.confirmed") &&+ webhook.triggers.includes(EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER) &&webhook.disabledAt === null &&webhook.installationId === null,);diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-mode-section.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-mode-section.tsxindex 5f1109a5fc..e8290192cb 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-mode-section.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-mode-section.tsx@@ -2,6 +2,7 @@import useProgram from "@/lib/swr/use-program";import useWorkspace from "@/lib/swr/use-workspace";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { Callout } from "@/ui/shared/callout";import { CircleDollarOut } from "@dub/ui";import { ProgramPayoutMode } from "@prisma/client";@@ -74,7 +75,7 @@ function WebhookInfo() {<Callout variant="warn" size={1}>Ensure webhooks are configured to listen for the{" "}<code className="rounded bg-amber-200 px-1 py-0.5 font-mono text-xs text-amber-900">- payout.confirmed+ {EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER}</code>{" "}event.{" "}<Linkdiff --git a/apps/web/lib/actions/partners/confirm-payouts.ts b/apps/web/lib/actions/partners/confirm-payouts.tsindex 6cbdc3b892..c45e717a4e 100644--- a/apps/web/lib/actions/partners/confirm-payouts.ts+++ b/apps/web/lib/actions/partners/confirm-payouts.ts@@ -22,6 +22,7 @@ import { isProductionEnvironment } from "@/lib/sandbox/environment";import { mockPaymentProvider } from "@/lib/sandbox/mock-payment-provider";import { stripe } from "@/lib/stripe";import { checkPaymentMethodMandate } from "@/lib/stripe/check-payment-method-mandate";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { getWebhooks } from "@/lib/webhook/get-webhooks";import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";import { waitUntil } from "@vercel/functions";@@ -141,7 +142,7 @@ export const confirmPayoutsAction = authActionClientgetWebhooks({workspaceId: workspace.id,- triggers: ["payout.confirmed"],+ triggers: [EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER],disabled: false,installationId: null,}),@@ -154,7 +155,7 @@ export const confirmPayoutsAction = authActionClientif (hasExternalPayouts && payoutWebhooks.length === 0) {throw new Error(- `EXTERNAL_WEBHOOK_REQUIRED: This invoice includes at least one external payout, which requires an active webhook subscribed to the "payout.confirmed" event. Please set one up before proceeding.`,+ `EXTERNAL_WEBHOOK_REQUIRED: This invoice includes at least one external payout, which requires an active webhook subscribed to the "${EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER}" event. Please set one up before proceeding.`,);}}diff --git a/apps/web/lib/integrations/slack/transform.ts b/apps/web/lib/integrations/slack/transform.tsindex 4c8c23174a..8cc01c6bcb 100644--- a/apps/web/lib/integrations/slack/transform.ts+++ b/apps/web/lib/integrations/slack/transform.ts@@ -4,6 +4,7 @@ import { getBountyRewardDescription } from "@/lib/bounty/rewards";import { APP_DOMAIN, COUNTRIES, currencyFormatter, truncate } from "@dub/utils";import { LinkWebhookEvent } from "dub/models/components";import * as z from "zod/v4";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "../../webhook/constants";import { webhookPayloadSchema } from "../../webhook/schemas";import type { WebhookTrigger } from "../../webhook/types";import {@@ -713,7 +714,7 @@ const slackTemplates: Record<WebhookTrigger, any> = {"commission.created": commissionCreatedTemplate,"bounty.created": bountyTemplates,"bounty.updated": bountyTemplates,- "payout.confirmed": payoutConfirmedTemplate,+ [EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER]: payoutConfirmedTemplate,"discount_code.created": discountCodeTemplates,"discount_code.deleted": discountCodeTemplates,};diff --git a/apps/web/lib/webhook/constants.ts b/apps/web/lib/webhook/constants.tsindex ccb73bb7c7..ede84907d6 100644--- a/apps/web/lib/webhook/constants.ts+++ b/apps/web/lib/webhook/constants.ts@@ -10,6 +10,9 @@ export const WEBHOOK_EVENT_ID_PREFIX = "evt_";export const LINK_CLICK_WEBHOOK_TRIGGER = "link.clicked" as const;+export const EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER =+ "external_payout.confirmed" as const;+export const WORKSPACE_LEVEL_WEBHOOK_TRIGGERS = ["link.created","link.updated",@@ -27,7 +30,7 @@ export const PROGRAM_LEVEL_WEBHOOK_TRIGGERS = ["commission.created","bounty.created","bounty.updated",- "payout.confirmed",+ EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER,"discount_code.created","discount_code.deleted",] as const;@@ -61,7 +64,8 @@ export const WEBHOOK_TRIGGER_DESCRIPTIONS: Record<WebhookTrigger, string> = {"Occurs whenever a commission is created for a partner (clawbacks will also trigger this event with a negative amount)","bounty.created": "Occurs whenever a bounty is created in your program","bounty.updated": "Occurs whenever a bounty in your program is updated",- "payout.confirmed": "Occurs whenever a payout in your program is confirmed",+ [EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER]:+ "Occurs whenever an external payout in your program is confirmed","discount_code.created":"Occurs whenever a discount code is created for a partner","discount_code.deleted":diff --git a/apps/web/lib/webhook/handle-external-payout-event.ts b/apps/web/lib/webhook/handle-external-payout-event.tsindex 48a1f8e6f7..e3b70d7040 100644--- a/apps/web/lib/webhook/handle-external-payout-event.ts+++ b/apps/web/lib/webhook/handle-external-payout-event.ts@@ -2,6 +2,7 @@ import { prisma } from "@/lib/prisma";import { PayoutStatus, Webhook } from "@prisma/client";import * as z from "zod/v4";import { payoutWebhookEventSchema } from "../zod/schemas/payouts";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "./constants";interface WebhookPayload {webhook: Pick<Webhook, "id" | "installationId">;@@ -9,7 +10,7 @@ interface WebhookPayload {payload: {id: string;data: z.infer<typeof payoutWebhookEventSchema>;- event: "payout.confirmed";+ event: typeof EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER;};}@@ -18,8 +19,10 @@ export async function handleExternalPayoutEvent({status,payload,}: WebhookPayload) {- if (payload.event !== "payout.confirmed") {- console.log("Event is not a payout.confirmed event. Skipping...");+ if (payload.event !== EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER) {+ console.log(+ `Event is not a ${EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER} event. Skipping...`,+ );return;}diff --git a/apps/web/lib/webhook/publish.ts b/apps/web/lib/webhook/publish.tsindex a11659a1da..8de3e0d4b6 100644--- a/apps/web/lib/webhook/publish.ts+++ b/apps/web/lib/webhook/publish.ts@@ -14,7 +14,7 @@ export const sendWorkspaceWebhook = async ({trigger: WebhookTrigger;workspace: Pick<WorkspaceProps, "id" | "webhookEnabled">;data: WebhookEventPayload;- webhooks?: Pick<Webhook, "id" | "url" | "secret">[]; // optionally accept webhooks when sending bulk webhooks (eg: payout.confirmed)+ webhooks?: Pick<Webhook, "id" | "url" | "secret">[]; // optionally accept webhooks when sending bulk webhooks (eg: EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER)}) => {if (!workspace.webhookEnabled) {return;diff --git a/apps/web/lib/webhook/sample-events/payout-confirmed.json b/apps/web/lib/webhook/sample-events/external-payout-confirmed.jsonsimilarity index 100%rename from apps/web/lib/webhook/sample-events/payout-confirmed.jsonrename to apps/web/lib/webhook/sample-events/external-payout-confirmed.jsondiff --git a/apps/web/lib/webhook/sample-events/payload.ts b/apps/web/lib/webhook/sample-events/payload.tsindex 3d8bf71d7a..541eafb46a 100644--- a/apps/web/lib/webhook/sample-events/payload.ts+++ b/apps/web/lib/webhook/sample-events/payload.ts@@ -1,9 +1,11 @@+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import type { WebhookTrigger } from "@/lib/webhook/types";import bountyCreated from "./bounty-created.json";import bountyUpdated from "./bounty-updated.json";import commissionCreated from "./commission-created.json";import discountCodeCreated from "./discount-code-created.json";import discountCodeDeleted from "./discount-code-deleted.json";+import externalPayoutConfirmed from "./external-payout-confirmed.json";import leadCreated from "./lead-created.json";import linkClicked from "./link-clicked.json";import linkCreated from "./link-created.json";@@ -11,7 +13,6 @@ import linkDeleted from "./link-deleted.json";import linkUpdated from "./link-updated.json";import partnerEnrolled from "./partner-enrolled.json";import partnerMerged from "./partner-merged.json";-import payoutConfirmed from "./payout-confirmed.json";import programApplicationCreated from "./program-application-created.json";import programApplicationSubmitted from "./program-application-submitted.json";import saleCreated from "./sale-created.json";@@ -30,7 +31,7 @@ export const samplePayload: Record<WebhookTrigger, any> = {"commission.created": commissionCreated,"bounty.created": bountyCreated,"bounty.updated": bountyUpdated,- "payout.confirmed": payoutConfirmed,+ [EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER]: externalPayoutConfirmed,"discount_code.created": discountCodeCreated,"discount_code.deleted": discountCodeDeleted,};diff --git a/apps/web/lib/webhook/utils.ts b/apps/web/lib/webhook/utils.tsindex 1dfe595798..aba109ea5e 100644--- a/apps/web/lib/webhook/utils.ts+++ b/apps/web/lib/webhook/utils.ts@@ -3,6 +3,7 @@ import type { WorkspaceProps } from "@/lib/types";import { WebhookReceiver } from "@prisma/client";import {DEPRECATED_WEBHOOK_TRIGGERS,+ EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER,PROGRAM_LEVEL_WEBHOOK_TRIGGERS,WORKSPACE_LEVEL_WEBHOOK_TRIGGERS,} from "./constants";@@ -59,7 +60,8 @@ export function getVisibleWebhookTriggers(** - Always includes workspace-level events.* - Adds program-level events when the workspace has a program;- * `payout.confirmed` only for programs in `EXTERNAL_PAYOUTS_PROGRAM_IDS`.+ * `EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER` only for programs in+ * `EXTERNAL_PAYOUTS_PROGRAM_IDS`.* - When `supportedTriggers` is passed (integrations like Zapier or Slack),* keeps only the events that integration supports.* - Applies legacy/current event visibility via `getVisibleWebhookTriggers`.@@ -76,7 +78,7 @@ export function getAvailableWebhookTriggers({const programTriggers = defaultProgramId? PROGRAM_LEVEL_WEBHOOK_TRIGGERS.filter((trigger) =>- trigger !== "payout.confirmed" ||+ trigger !== EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER ||EXTERNAL_PAYOUTS_PROGRAM_IDS.includes(defaultProgramId),): [];diff --git a/apps/web/lib/webhook/validate-webhook.ts b/apps/web/lib/webhook/validate-webhook.tsindex f80ac1961d..556a2d8eee 100644--- a/apps/web/lib/webhook/validate-webhook.ts+++ b/apps/web/lib/webhook/validate-webhook.ts@@ -7,6 +7,7 @@ import { Session } from "../auth";import { getFolders } from "../folder/get-folders";import { WorkspaceProps } from "../types";import { createWebhookSchema } from "../zod/schemas/webhooks";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "./constants";export async function validateWebhook({input,@@ -21,8 +22,11 @@ export async function validateWebhook({}) {const { url, linkScope, linkIds, folderIds, triggers } = input;- // payout.confirmed trigger requires external payouts enabled- if (triggers && triggers.includes("payout.confirmed")) {+ // EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER requires external payouts enabled+ if (+ triggers &&+ triggers.includes(EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER)+ ) {const programId = getDefaultProgramIdOrThrow(workspace);const program = await prisma.program.findUniqueOrThrow({@@ -38,7 +42,7 @@ export async function validateWebhook({if (program.payoutMode === "internal") {throw new DubApiError({code: "bad_request",- message: `The 'payout.confirmed' trigger is not currently available for your workspace.`,+ message: `The '${EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER}' trigger is not currently available for your workspace.`,});}}diff --git a/apps/web/tests/webhooks/index.test.ts b/apps/web/tests/webhooks/index.test.tsindex 158085a710..ae7cc00967 100644--- a/apps/web/tests/webhooks/index.test.ts+++ b/apps/web/tests/webhooks/index.test.ts@@ -1,5 +1,8 @@import { qstash } from "@/lib/cron";-import { WEBHOOK_TRIGGERS } from "@/lib/webhook/constants";+import {+ EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER,+ WEBHOOK_TRIGGERS,+} from "@/lib/webhook/constants";import { sendWebhooks } from "@/lib/webhook/qstash";import { samplePayload } from "@/lib/webhook/sample-events/payload";import {@@ -130,7 +133,7 @@ const eventSchemas: Record<WebhookTrigger, z.ZodSchema> = {"commission.created": commissionWebhookEventSchemaExtended,"bounty.created": bountyWebhookEventSchemaExtended,"bounty.updated": bountyWebhookEventSchemaExtended,- "payout.confirmed": payoutWebhookEventSchemaExtended,+ [EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER]: payoutWebhookEventSchemaExtended,"discount_code.created": DiscountCodeWebhookSchema,"discount_code.deleted": DiscountCodeWebhookSchema,};diff --git a/apps/web/ui/partners/confirm-payouts-sheet.tsx b/apps/web/ui/partners/confirm-payouts-sheet.tsxindex bc59435828..b8089dd31b 100644--- a/apps/web/ui/partners/confirm-payouts-sheet.tsx+++ b/apps/web/ui/partners/confirm-payouts-sheet.tsx@@ -24,6 +24,7 @@ import usePaymentMethods from "@/lib/swr/use-payment-methods";import useProgram from "@/lib/swr/use-program";import useWorkspace from "@/lib/swr/use-workspace";import { PayoutResponse } from "@/lib/types";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { useTrialLimitActivateModal } from "@/ui/modals/trial-limit-activate-modal";import { X } from "@/ui/shared/icons";import {@@ -599,7 +600,7 @@ function ConfirmPayoutsSheetContent() {<CircleArrowRight className="size-3.5 text-neutral-500" /></div>),- tooltipContent: `Payouts that are processed externally via the \`payout.confirmed\` [webhook event](${`/${slug}/settings/webhooks`}). [Learn more about external payouts](http://dub.co/docs/partners/external-payouts).`,+ tooltipContent: `Payouts that are processed externally via the \`${EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER}\` [webhook event](${`/${slug}/settings/webhooks`}). [Learn more about external payouts](http://dub.co/docs/partners/external-payouts).`,},]: []),diff --git a/apps/web/ui/partners/external-payouts-indicator.tsx b/apps/web/ui/partners/external-payouts-indicator.tsxindex 0cdfc7e74e..1f86dfc42e 100644--- a/apps/web/ui/partners/external-payouts-indicator.tsx+++ b/apps/web/ui/partners/external-payouts-indicator.tsx@@ -1,3 +1,4 @@+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { CircleArrowRight, Tooltip } from "@dub/ui";import { useParams } from "next/navigation";@@ -10,7 +11,7 @@ export function ExternalPayoutsIndicator({return (<Tooltip- content={`This payout will be processed externally via the \`payout.confirmed\` [webhook event](${`/${slug}/settings/webhooks`}). [Learn more about external payouts](http://dub.co/docs/partners/external-payouts).`}+ content={`This payout will be processed externally via the \`${EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER}\` [webhook event](${`/${slug}/settings/webhooks`}). [Learn more about external payouts](http://dub.co/docs/partners/external-payouts).`}side={side}><CircleArrowRight className="size-3.5 text-purple-800" />diff --git a/apps/web/ui/partners/partner-row-item.tsx b/apps/web/ui/partners/partner-row-item.tsxindex 533967d04a..11d423a37e 100644--- a/apps/web/ui/partners/partner-row-item.tsx+++ b/apps/web/ui/partners/partner-row-item.tsx@@ -1,5 +1,6 @@import { isProductionEnvironment } from "@/lib/sandbox/environment";import useProgram from "@/lib/swr/use-program";+import { EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER } from "@/lib/webhook/constants";import { CircleArrowRight, DynamicTooltipWrapper, GreekTemple } from "@dub/ui";import { cn, formatDateTimeSmart } from "@dub/utils";import {@@ -41,7 +42,7 @@ const PAYOUT_STATUS_CONFIG = {This program has external payouts enabled, which means partners willreceive payouts externally via the{" "}<code className="rounded-md bg-neutral-100 px-1 py-0.5 font-mono">- payout.confirmed+ {EXTERNAL_PAYOUT_CONFIRMED_WEBHOOK_TRIGGER}</code>{" "}<ahref="/settings/webhooks"