import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Whether to break down credit usage on a daily or monthly basis. */ export declare const Granularity: { readonly Daily: "daily"; readonly Monthly: "monthly"; }; /** * Whether to break down credit usage on a daily or monthly basis. */ export type Granularity = ClosedEnum; export type V3AccountmanagementOrgCreditsUsageRequest = { /** * The ID of a Censys organization. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information. */ organizationId: string; /** * The date for the credit usage report in YYYY-MM-DD format (e.g., 2025-11-06). This field is deprecated and will be removed in a future version. Use start_date and end_date instead. The date must be on or after 2025-01-01 (the earliest date available for credit usage reports). */ date?: string | undefined; /** * The start date for the credit usage report in YYYY-MM-DD format (e.g., 2025-11-01). Must be on or after 2025-01-01 (the earliest date available for credit usage reports). */ startDate?: RFCDate | undefined; /** * The end date for the credit usage report in YYYY-MM-DD format (e.g., 2025-12-01). If omitted, will default to today's date. The date range (end_date - start_date) cannot exceed 365 days (1 year). */ endDate?: RFCDate | undefined; /** * Whether to break down credit usage on a daily or monthly basis. */ granularity?: Granularity | undefined; /** * Whether to include a breakdown of individual users' consumption in the credit usage report. */ includeConsumerBreakdown?: boolean | undefined; }; export type V3AccountmanagementOrgCreditsUsageResponse = { headers: { [k: string]: Array; }; result: components.ResponseEnvelopeCreditUsageReport; }; /** @internal */ export declare const Granularity$outboundSchema: z.ZodNativeEnum; /** @internal */ export type V3AccountmanagementOrgCreditsUsageRequest$Outbound = { organization_id: string; date?: string | undefined; start_date?: string | undefined; end_date?: string | undefined; granularity: string; include_consumer_breakdown: boolean; }; /** @internal */ export declare const V3AccountmanagementOrgCreditsUsageRequest$outboundSchema: z.ZodType; export declare function v3AccountmanagementOrgCreditsUsageRequestToJSON(v3AccountmanagementOrgCreditsUsageRequest: V3AccountmanagementOrgCreditsUsageRequest): string; /** @internal */ export declare const V3AccountmanagementOrgCreditsUsageResponse$inboundSchema: z.ZodType; export declare function v3AccountmanagementOrgCreditsUsageResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=v3accountmanagementorgcreditsusage.d.ts.map