listActorProjects()
Returns actor projects in a paginated response. You must pass the actor id.
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 listActorProjects(actorId: string) { const client = await wachtClient(); return client.ai.listActorProjects(actorId, false);}Signature
function listActorProjects( actorId: string, includeArchived?: boolean,): Promise<PaginatedResponse<ActorProject>>Parameters
›actorId?: string | undefined;
actorId?: string | undefined;Actor id that owns the projects.
›includeArchived?: boolean | undefined;
includeArchived?: boolean | undefined;When true, include archived projects.
Return value
›data?: ActorProject[] | undefined;
data?: ActorProject[] | undefined;Project rows in the current page.
›has_more?: boolean | undefined;
has_more?: boolean | undefined;Whether another page exists.
›limit?: number | undefined;
limit?: number | undefined;Effective page size from backend response.
›offset?: number | undefined;
offset?: number | undefined;Effective page offset from backend response.
Behavior
- Returns a backend-scoped list response for this resource.
- Use pagination and filters from this method to build admin list views.