listInvitations()
Returns paginated invitation rows with optional search/sort filters.
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 listInvitations() { const client = await wachtClient(); return client.invitations.listInvitations({ limit: 20 });}Signature
function listInvitations( options?: { limit?: number; offset?: number; sort_key?: string; sort_order?: string; search?: string; },): Promise<PaginatedResponse<DeploymentInvitation>>List options
›options.limit?: number | undefined;
options.limit?: number | undefined;Maximum page size.
›options.offset?: number | undefined;
options.offset?: number | undefined;Result offset.
›options.sort_key?: string | undefined;
options.sort_key?: string | undefined;Sort field.
›options.sort_order?: string | undefined;
options.sort_order?: string | undefined;Sort direction.
›options.search?: string | undefined;
options.search?: string | undefined;Search term.
Return value
›data?: DeploymentInvitation[] | undefined;
data?: DeploymentInvitation[] | undefined;Invitation rows for the current page.
›has_more?: boolean | undefined;
has_more?: boolean | undefined;Whether additional pages are available.
Behavior
- Returns a backend-scoped list response for this resource.
- Use pagination and filters from this method to build admin list views.