import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Revision = { revision: string; }; /** * Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call. */ export type Provenance = { version?: string | undefined; buildCommit?: string | undefined; buildTimestamp?: Date | undefined; buildHost?: string | undefined; bundles?: { [k: string]: Revision; } | undefined; }; /** @internal */ export declare const Revision$inboundSchema: z.ZodType; /** @internal */ export type Revision$Outbound = { revision: string; }; /** @internal */ export declare const Revision$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 Revision$ { /** @deprecated use `Revision$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Revision$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Revision$Outbound` instead. */ type Outbound = Revision$Outbound; } export declare function revisionToJSON(revision: Revision): string; export declare function revisionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Provenance$inboundSchema: z.ZodType; /** @internal */ export type Provenance$Outbound = { version?: string | undefined; build_commit?: string | undefined; build_timestamp?: string | undefined; build_host?: string | undefined; bundles?: { [k: string]: Revision$Outbound; } | undefined; }; /** @internal */ export declare const Provenance$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 Provenance$ { /** @deprecated use `Provenance$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Provenance$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Provenance$Outbound` instead. */ type Outbound = Provenance$Outbound; } export declare function provenanceToJSON(provenance: Provenance): string; export declare function provenanceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=provenance.d.ts.map