import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; export type GetUserActivityGlobals = { /** * The app identifier should be your app's URL and is used as the primary identifier for rankings. * * @remarks * This is used to track API usage per application. */ httpReferer?: string | undefined; /** * The app display name allows you to customize how your app appears in OpenRouter's dashboard. * * @remarks */ appTitle?: string | undefined; /** * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. * * @remarks */ appCategories?: string | undefined; }; /** * Set to 'workspace' to split each row per workspace and include `workspace_id` on every item. Omitted by default, in which case rows are aggregated across workspaces (by date, model, and endpoint) and `workspace_id` is not returned — preserving the historical response shape. */ export declare const GroupBy: { readonly Workspace: "workspace"; }; /** * Set to 'workspace' to split each row per workspace and include `workspace_id` on every item. Omitted by default, in which case rows are aggregated across workspaces (by date, model, and endpoint) and `workspace_id` is not returned — preserving the historical response shape. */ export type GroupBy = ClosedEnum; export type GetUserActivityRequest = { /** * The app identifier should be your app's URL and is used as the primary identifier for rankings. * * @remarks * This is used to track API usage per application. */ httpReferer?: string | undefined; /** * The app display name allows you to customize how your app appears in OpenRouter's dashboard. * * @remarks */ appTitle?: string | undefined; /** * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. * * @remarks */ appCategories?: string | undefined; /** * Filter by a single UTC date in the last 30 days (YYYY-MM-DD format). */ date?: string | undefined; /** * Filter by API key hash (SHA-256 hex string, as returned by the keys API). */ apiKeyHash?: string | undefined; /** * Filter by org member user ID. Only applicable for organization accounts. */ userId?: string | undefined; /** * Set to 'workspace' to split each row per workspace and include `workspace_id` on every item. Omitted by default, in which case rows are aggregated across workspaces (by date, model, and endpoint) and `workspace_id` is not returned — preserving the historical response shape. */ groupBy?: GroupBy | undefined; /** * Filter by workspace ID (UUID). Returns only activity attributed to that workspace. The workspace must belong to the authenticated account. */ workspaceId?: string | undefined; }; /** @internal */ export declare const GroupBy$outboundSchema: z.ZodEnum; /** @internal */ export type GetUserActivityRequest$Outbound = { "HTTP-Referer"?: string | undefined; appTitle?: string | undefined; appCategories?: string | undefined; date?: string | undefined; api_key_hash?: string | undefined; user_id?: string | undefined; group_by?: string | undefined; workspace_id?: string | undefined; }; /** @internal */ export declare const GetUserActivityRequest$outboundSchema: z.ZodType; export declare function getUserActivityRequestToJSON(getUserActivityRequest: GetUserActivityRequest): string; //# sourceMappingURL=getuseractivity.d.ts.map