provider 2506 operations 141 docs pages
@utdk/posthog
PostHog API
Generated UTDK provider client for PostHog API. Generated UTDK provider types and OpenAPI-backed client for https://us.posthog.com/api/schema/.
Evaluation Runs
Optional generated docs page for
@utdk/posthog.
Evaluation Runs
Operations
posthog.environmentsEvaluationRunsCreate
- HTTP:
POST /api/environments/{environment_id}/evaluation_runs/ - What it does: Create a new evaluation run.
This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
- OpenAPI operationId:
environments_evaluation_runs_create - Path params: None
- Query params: None
- Response codes:
200 - Transport options: None
- TypeScript: Client interface
Inputs
- Client input type:
{ [key: string]: unknown } - Client transport options: None
Outputs
- Client return type:
{ [key: string]: unknown } - OpenAPI response codes:
200
import posthog from "@utdk/posthog";
type EnvironmentsEvaluationRunsCreateInput = Parameters<typeof posthog.environmentsEvaluationRunsCreate> extends [infer T, ...unknown[]] ? T : undefined;
type EnvironmentsEvaluationRunsCreateOutput = Awaited<ReturnType<typeof posthog.environmentsEvaluationRunsCreate>>;
const result: EnvironmentsEvaluationRunsCreateOutput = await posthog.environmentsEvaluationRunsCreate();
// Result shape (from schema): { [key: string]: unknown }
posthog.evaluationRunsCreate
- HTTP:
POST /api/projects/{project_id}/evaluation_runs/ - What it does: Create a new evaluation run.
This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
- OpenAPI operationId:
evaluation_runs_create - Path params: None
- Query params: None
- Response codes:
200 - Transport options: None
- TypeScript: Client interface
Inputs
- Client input type:
{ [key: string]: unknown } - Client transport options: None
Outputs
- Client return type:
{ [key: string]: unknown } - OpenAPI response codes:
200
import posthog from "@utdk/posthog";
type EvaluationRunsCreateInput = Parameters<typeof posthog.evaluationRunsCreate> extends [infer T, ...unknown[]] ? T : undefined;
type EvaluationRunsCreateOutput = Awaited<ReturnType<typeof posthog.evaluationRunsCreate>>;
const result: EvaluationRunsCreateOutput = await posthog.evaluationRunsCreate();
// Result shape (from schema): { [key: string]: unknown }