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"; export type ConsumerInput = { /** * 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; /** * The metadata of the consumer. This is used to display the consumer in the sidebar. This is optional, but recommended. */ metadata?: ConsumerMetadata | undefined; }; /** @internal */ export declare const ConsumerInput$inboundSchema: z.ZodType; /** @internal */ export type ConsumerInput$Outbound = { consumer_id: string; metadata?: ConsumerMetadata$Outbound | undefined; }; /** @internal */ export declare const ConsumerInput$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 ConsumerInput$ { /** @deprecated use `ConsumerInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ConsumerInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ConsumerInput$Outbound` instead. */ type Outbound = ConsumerInput$Outbound; } export declare function consumerInputToJSON(consumerInput: ConsumerInput): string; export declare function consumerInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=consumerinput.d.ts.map