import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ConsumerConnection, ConsumerConnection$Outbound } from "./consumerconnection.js"; import { ConsumerMetadata, ConsumerMetadata$Outbound } from "./consumermetadata.js"; import { RequestCountAllocation, RequestCountAllocation$Outbound } from "./requestcountallocation.js"; export type Consumer = { /** * Unique consumer identifier. You can freely choose a consumer ID yourself. Most of the time, this is an ID of your internal data model that represents a user or account in your system (for example account:12345). If the consumer doesn't exist yet, Vault will upsert a consumer based on your ID. */ consumerId: string; /** * ID of your Apideck Application */ 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; connections?: Array | undefined; services?: Array | undefined; aggregatedRequestCount?: number | undefined; requestCounts?: RequestCountAllocation | undefined; created?: string | undefined; modified?: string | undefined; requestCountUpdated?: string | undefined; }; /** @internal */ export declare const Consumer$inboundSchema: z.ZodType; /** @internal */ export type Consumer$Outbound = { consumer_id: string; application_id?: string | undefined; metadata?: ConsumerMetadata$Outbound | undefined; connections?: Array | undefined; services?: Array | undefined; aggregated_request_count?: number | undefined; request_counts?: RequestCountAllocation$Outbound | undefined; created?: string | undefined; modified?: string | undefined; request_count_updated?: string | undefined; }; /** @internal */ export declare const Consumer$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 Consumer$ { /** @deprecated use `Consumer$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Consumer$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Consumer$Outbound` instead. */ type Outbound = Consumer$Outbound; } export declare function consumerToJSON(consumer: Consumer): string; export declare function consumerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=consumer.d.ts.map