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 QueryParamGranularity: { readonly Daily: "daily"; readonly Monthly: "monthly"; }; /** * Whether to break down credit usage on a daily or monthly basis. */ export type QueryParamGranularity = ClosedEnum; export type V3AccountmanagementMemberCreditsUsageRequest = { /** * 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 ID of a Censys user. You can obtain a user's ID by listing members of an organization. */ userId: 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?: QueryParamGranularity | undefined; }; export type V3AccountmanagementMemberCreditsUsageResponse = { headers: { [k: string]: Array; }; result: components.ResponseEnvelopeCreditUsageReport; }; /** @internal */ export declare const QueryParamGranularity$outboundSchema: z.ZodNativeEnum; /** @internal */ export type V3AccountmanagementMemberCreditsUsageRequest$Outbound = { organization_id: string; user_id: string; date?: string | undefined; start_date?: string | undefined; end_date?: string | undefined; granularity: string; }; /** @internal */ export declare const V3AccountmanagementMemberCreditsUsageRequest$outboundSchema: z.ZodType; export declare function v3AccountmanagementMemberCreditsUsageRequestToJSON(v3AccountmanagementMemberCreditsUsageRequest: V3AccountmanagementMemberCreditsUsageRequest): string; /** @internal */ export declare const V3AccountmanagementMemberCreditsUsageResponse$inboundSchema: z.ZodType; export declare function v3AccountmanagementMemberCreditsUsageResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=v3accountmanagementmembercreditsusage.d.ts.map