import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerMetadata, ConsumerMetadata$Outbound } from "./consumermetadata.js"; import { Links, Links$Outbound } from "./links.js"; import { Meta, Meta$Outbound } from "./meta.js"; import { RequestCountAllocation, RequestCountAllocation$Outbound } from "./requestcountallocation.js"; export type Data = { consumerId?: string | undefined; applicationId?: string | undefined; /** * The metadata of the consumer. This is used to display the consumer in the sidebar. This is optional, but recommended. */ metadata?: ConsumerMetadata | undefined; aggregatedRequestCount?: number | undefined; requestCounts?: RequestCountAllocation | undefined; created?: string | undefined; modified?: string | undefined; requestCountUpdated?: string | undefined; services?: Array | undefined; }; /** * Consumers */ export type GetConsumersResponse = { /** * HTTP Response Status Code */ statusCode: number; /** * HTTP Response Status */ status: string; data: Array; /** * Response metadata */ meta?: Meta | undefined; /** * Links to navigate to previous or next pages through the API */ links?: Links | undefined; }; /** @internal */ export declare const Data$inboundSchema: z.ZodType; /** @internal */ export type Data$Outbound = { consumer_id?: string | undefined; application_id?: string | undefined; metadata?: ConsumerMetadata$Outbound | undefined; aggregated_request_count?: number | undefined; request_counts?: RequestCountAllocation$Outbound | undefined; created?: string | undefined; modified?: string | undefined; request_count_updated?: string | undefined; services?: Array | undefined; }; /** @internal */ export declare const Data$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Data$ { /** @deprecated use `Data$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Data$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Data$Outbound` instead. */ type Outbound = Data$Outbound; } export declare function dataToJSON(data: Data): string; export declare function dataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetConsumersResponse$inboundSchema: z.ZodType; /** @internal */ export type GetConsumersResponse$Outbound = { status_code: number; status: string; data: Array; meta?: Meta$Outbound | undefined; links?: Links$Outbound | undefined; }; /** @internal */ export declare const GetConsumersResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetConsumersResponse$ { /** @deprecated use `GetConsumersResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetConsumersResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetConsumersResponse$Outbound` instead. */ type Outbound = GetConsumersResponse$Outbound; } export declare function getConsumersResponseToJSON(getConsumersResponse: GetConsumersResponse): string; export declare function getConsumersResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getconsumersresponse.d.ts.map