NewWacht Bench is live — AI-assisted development for Wacht

approveWaitlistUser()

Approves a waitlist entry and returns the generated invitation.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function approveWaitlistUser(waitlistUserId: string) {  const client = await wachtClient();  return client.invitations.approveWaitlistUser(waitlistUserId);}

Signature

function approveWaitlistUser(  waitlistUserId: string,): Promise<DeploymentInvitation>

Parameters

waitlistUserId: string;
Waitlist user id to approve.

Return value

result?: DeploymentInvitation | undefined;
Operation result payload.

Behavior

  • Wraps the corresponding backend endpoint for this capability.
  • Use the returned payload as canonical backend state for follow-up operations.

On this page