import { A as DocxInjectionPlacementValues, B as InputsSchema, C as BaseTokenUsageSchema, D as DocumentMediaInjectionPlacementValues, E as DocumentMediaInjectionPlacementSchema, F as InputDefinitionSchema, G as buildInputPromptDescription, H as NunjucksFilterMap, I as InputType, J as normalizeInputDefinition, K as getInputDescription, L as InputTypeSchema, M as InputConfigSchema, N as InputDefinition, O as DocxInjectionPlacement, P as InputDefinitionObjectSchema, Q as BlobRef, R as InputTypeValues, S as PromptFunctionResult, T as CompletionTokenDetailsSchema, U as TokenUsage, V as NormalizedInputDefinition, W as VarValue, X as EnvOverrides, Y as normalizeInputs, Z as ProviderEnvOverridesSchema, _ as Prompt, a as ChatMessage, b as PromptFunction, c as ImageOutput, d as ProviderEmbeddingResponse, f as ProviderModerationResponse, g as MinimalApiProvider, h as hasFunctionToolCallValidator, i as isTransformFunction, j as InputConfig, k as DocxInjectionPlacementSchema, l as ModerationFlag, m as ProviderSimilarityResponse, n as TransformFunction, o as FunctionToolCallValidator, p as ProviderResponse, q as getInputType, r as TransformPrompt, s as GuardrailResponse, t as TransformContext, u as ProviderClassificationResponse, v as PromptConfig, w as CompletionTokenDetails, x as PromptFunctionContext, y as PromptContent, z as Inputs } from "./transform-C8OETOwh.js";
import { z } from "zod";

//#region src/contracts/api/common.d.ts
/** Standard email validation schema. */
declare const EmailSchema: z.ZodString;
/**
 * Response containing only a `message` field. Closed shape - extra properties are stripped.
 * For responses that may carry endpoint-specific metadata, use `SuccessResponseSchema` (passthrough).
 */
declare const MessageResponseSchema: z.ZodObject<{
  message: z.ZodString;
}, z.core.$strip>;
type MessageResponse = z.infer<typeof MessageResponseSchema>;
/** Response containing a success flag and optional message. */
declare const SuccessResponseSchema: z.ZodObject<{
  success: z.ZodBoolean;
  message: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
type SuccessResponse = z.infer<typeof SuccessResponseSchema>;
/** Shared API error shape. Routes may add endpoint-specific fields. */
declare const ErrorResponseSchema: z.ZodObject<{
  error: z.ZodString;
  details: z.ZodOptional<z.ZodUnknown>;
  suggestion: z.ZodOptional<z.ZodString>;
  success: z.ZodOptional<z.ZodLiteral<false>>;
}, z.core.$loose>;
type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
/**
 * Express query strings arrive as `string | undefined`. This schema treats only the literal
 * string `'true'` (or boolean `true`) as truthy; every other value - including `'1'`, `'yes'`,
 * and `undefined` - resolves to `false`. Tests that depend on tri-state semantics should use
 * a different schema.
 */
declare const BooleanQueryParamSchema: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean | undefined>>;
/** Generic object payload for endpoints with intentionally open data. */
declare const JsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
/** Timestamp that can be either an ISO string or Unix epoch number. */
declare const TimestampSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
//#endregion
//#region src/contracts/api/user.d.ts
/** Email status values returned by the server. */
declare const EmailStatusEnum: z.ZodEnum<{
  ok: "ok";
  exceeded_limit: "exceeded_limit";
  show_usage_warning: "show_usage_warning";
  email_verification_required: "email_verification_required";
  no_email: "no_email";
  risky_email: "risky_email";
  disposable_email: "disposable_email";
}>;
type EmailStatus = z.infer<typeof EmailStatusEnum>;
declare const GetUserResponseSchema: z.ZodObject<{
  email: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
type GetUserResponse = z.infer<typeof GetUserResponseSchema>;
declare const GetUserIdResponseSchema: z.ZodObject<{
  id: z.ZodString;
}, z.core.$strip>;
type GetUserIdResponse = z.infer<typeof GetUserIdResponseSchema>;
declare const UpdateUserRequestSchema: z.ZodObject<{
  email: z.ZodString;
}, z.core.$strip>;
declare const UpdateUserResponseSchema: z.ZodObject<{
  success: z.ZodBoolean;
  message: z.ZodString;
}, z.core.$strip>;
type UpdateUserRequest = z.infer<typeof UpdateUserRequestSchema>;
type UpdateUserResponse = z.infer<typeof UpdateUserResponseSchema>;
declare const ClearUserEmailResponseSchema: z.ZodObject<{
  success: z.ZodBoolean;
  message: z.ZodString;
}, z.core.$strip>;
type ClearUserEmailResponse = z.infer<typeof ClearUserEmailResponseSchema>;
declare const GetEmailStatusQuerySchema: z.ZodObject<{
  validate: z.ZodPipe<z.ZodOptional<z.ZodUnknown>, z.ZodTransform<boolean, unknown>>;
}, z.core.$strip>;
type GetEmailStatusQuery = z.infer<typeof GetEmailStatusQuerySchema>;
declare const GetEmailStatusResponseSchema: z.ZodObject<{
  hasEmail: z.ZodBoolean;
  email: z.ZodOptional<z.ZodString>;
  status: z.ZodEnum<{
    ok: "ok";
    exceeded_limit: "exceeded_limit";
    show_usage_warning: "show_usage_warning";
    email_verification_required: "email_verification_required";
    no_email: "no_email";
    risky_email: "risky_email";
    disposable_email: "disposable_email";
  }>;
  message: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
type GetEmailStatusResponse = z.infer<typeof GetEmailStatusResponseSchema>;
/** Request body for API key authentication. */
declare const LoginRequestSchema: z.ZodObject<{
  apiKey: z.ZodString;
  apiHost: z.ZodOptional<z.ZodURL>;
}, z.core.$strip>;
/** Response from successful login. */
declare const LoginResponseSchema: z.ZodObject<{
  success: z.ZodLiteral<true>;
  user: z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
    email: z.ZodString;
  }, z.core.$strip>;
  organization: z.ZodObject<{
    id: z.ZodString;
    name: z.ZodString;
  }, z.core.$strip>;
  app: z.ZodObject<{
    url: z.ZodString;
  }, z.core.$strip>;
}, z.core.$strip>;
type LoginRequest = z.infer<typeof LoginRequestSchema>;
type LoginResponse = z.infer<typeof LoginResponseSchema>;
/** Response from logout endpoint. */
declare const LogoutResponseSchema: z.ZodObject<{
  success: z.ZodLiteral<true>;
  message: z.ZodString;
}, z.core.$strip>;
type LogoutResponse = z.infer<typeof LogoutResponseSchema>;
/** Response from cloud config endpoint. */
declare const CloudConfigResponseSchema: z.ZodObject<{
  appUrl: z.ZodString;
  isEnabled: z.ZodBoolean;
}, z.core.$strip>;
type CloudConfigResponse = z.infer<typeof CloudConfigResponseSchema>;
/** Grouped schemas for server-side validation. */
declare const UserSchemas: {
  readonly Get: {
    readonly Response: z.ZodObject<{
      email: z.ZodNullable<z.ZodString>;
    }, z.core.$strip>;
  };
  readonly GetId: {
    readonly Response: z.ZodObject<{
      id: z.ZodString;
    }, z.core.$strip>;
  };
  readonly Update: {
    readonly Request: z.ZodObject<{
      email: z.ZodString;
    }, z.core.$strip>;
    readonly Response: z.ZodObject<{
      success: z.ZodBoolean;
      message: z.ZodString;
    }, z.core.$strip>;
  };
  readonly ClearEmail: {
    readonly Response: z.ZodObject<{
      success: z.ZodBoolean;
      message: z.ZodString;
    }, z.core.$strip>;
  };
  readonly EmailStatus: {
    readonly Query: z.ZodObject<{
      validate: z.ZodPipe<z.ZodOptional<z.ZodUnknown>, z.ZodTransform<boolean, unknown>>;
    }, z.core.$strip>;
    readonly Response: z.ZodObject<{
      hasEmail: z.ZodBoolean;
      email: z.ZodOptional<z.ZodString>;
      status: z.ZodEnum<{
        ok: "ok";
        exceeded_limit: "exceeded_limit";
        show_usage_warning: "show_usage_warning";
        email_verification_required: "email_verification_required";
        no_email: "no_email";
        risky_email: "risky_email";
        disposable_email: "disposable_email";
      }>;
      message: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>;
  };
  readonly Login: {
    readonly Request: z.ZodObject<{
      apiKey: z.ZodString;
      apiHost: z.ZodOptional<z.ZodURL>;
    }, z.core.$strip>;
    readonly Response: z.ZodObject<{
      success: z.ZodLiteral<true>;
      user: z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        email: z.ZodString;
      }, z.core.$strip>;
      organization: z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
      }, z.core.$strip>;
      app: z.ZodObject<{
        url: z.ZodString;
      }, z.core.$strip>;
    }, z.core.$strip>;
  };
  readonly Logout: {
    readonly Response: z.ZodObject<{
      success: z.ZodLiteral<true>;
      message: z.ZodString;
    }, z.core.$strip>;
  };
  readonly CloudConfig: {
    readonly Response: z.ZodObject<{
      appUrl: z.ZodString;
      isEnabled: z.ZodBoolean;
    }, z.core.$strip>;
  };
};
//#endregion
//#region src/contracts/validators/prompts.d.ts
declare const PromptConfigSchema: z.ZodObject<{
  prefix: z.ZodOptional<z.ZodString>;
  suffix: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
declare const PromptSchema: z.ZodObject<{
  id: z.ZodOptional<z.ZodString>;
  raw: z.ZodString;
  template: z.ZodOptional<z.ZodString>;
  display: z.ZodOptional<z.ZodString>;
  label: z.ZodString;
  function: z.ZodOptional<z.ZodCustom<PromptFunction, PromptFunction>>;
  config: z.ZodOptional<z.ZodAny>;
}, z.core.$strip>;
//#endregion
//#region src/contracts/validators/shared.d.ts
declare const NunjucksFilterMapSchema: z.ZodRecord<z.ZodString, z.ZodCustom<(...args: any[]) => string, (...args: any[]) => string>>;
/**
 * Zod schema accepting a string or a function.
 * Used for transform fields that accept inline JS expressions, file:// references,
 * or direct functions when using the Node.js package.
 */
declare const StringOrFunctionSchema: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<TransformFunction, TransformFunction>]>;
//#endregion
export { BaseTokenUsageSchema, BlobRef, BooleanQueryParamSchema, ChatMessage, ClearUserEmailResponse, ClearUserEmailResponseSchema, CloudConfigResponse, CloudConfigResponseSchema, CompletionTokenDetails, CompletionTokenDetailsSchema, DocumentMediaInjectionPlacementSchema, DocumentMediaInjectionPlacementValues, DocxInjectionPlacement, DocxInjectionPlacementSchema, DocxInjectionPlacementValues, EmailSchema, EmailStatus, EmailStatusEnum, EnvOverrides, ErrorResponse, ErrorResponseSchema, FunctionToolCallValidator, GetEmailStatusQuery, GetEmailStatusQuerySchema, GetEmailStatusResponse, GetEmailStatusResponseSchema, GetUserIdResponse, GetUserIdResponseSchema, GetUserResponse, GetUserResponseSchema, GuardrailResponse, ImageOutput, InputConfig, InputConfigSchema, InputDefinition, InputDefinitionObjectSchema, InputDefinitionSchema, InputType, InputTypeSchema, InputTypeValues, Inputs, InputsSchema, JsonObjectSchema, LoginRequest, LoginRequestSchema, LoginResponse, LoginResponseSchema, LogoutResponse, LogoutResponseSchema, MessageResponse, MessageResponseSchema, MinimalApiProvider, ModerationFlag, NormalizedInputDefinition, NunjucksFilterMap, NunjucksFilterMapSchema, Prompt, PromptConfig, PromptConfigSchema, PromptContent, PromptFunction, PromptFunctionContext, PromptFunctionResult, PromptSchema, ProviderClassificationResponse, ProviderEmbeddingResponse, ProviderEnvOverridesSchema, ProviderModerationResponse, ProviderResponse, ProviderSimilarityResponse, StringOrFunctionSchema, SuccessResponse, SuccessResponseSchema, TimestampSchema, TokenUsage, TransformContext, TransformFunction, TransformPrompt, UpdateUserRequest, UpdateUserRequestSchema, UpdateUserResponse, UpdateUserResponseSchema, UserSchemas, VarValue, buildInputPromptDescription, getInputDescription, getInputType, hasFunctionToolCallValidator, isTransformFunction, normalizeInputDefinition, normalizeInputs };
//# sourceMappingURL=contracts.d.ts.map