import * as z from "zod/v4"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetCreditsGlobals = { /** * 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; }; export type GetCreditsRequest = { /** * 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; }; export type GetCreditsData = { /** * Total credits purchased */ totalCredits: number; /** * Total credits used */ totalUsage: number; }; /** * Total credits purchased and used */ export type GetCreditsResponse = { data: GetCreditsData; }; /** @internal */ export type GetCreditsRequest$Outbound = { "HTTP-Referer"?: string | undefined; appTitle?: string | undefined; appCategories?: string | undefined; }; /** @internal */ export declare const GetCreditsRequest$outboundSchema: z.ZodType; export declare function getCreditsRequestToJSON(getCreditsRequest: GetCreditsRequest): string; /** @internal */ export declare const GetCreditsData$inboundSchema: z.ZodType; export declare function getCreditsDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetCreditsResponse$inboundSchema: z.ZodType; export declare function getCreditsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getcredits.d.ts.map