Skip to content

Latest commit

 

History

History
4229 lines (3700 loc) · 110 KB

File metadata and controls

4229 lines (3700 loc) · 110 KB

API Report File for "@google/genai"

Do not edit this file. It is a report generated by API Extractor.

/// <reference types="node" />

import type { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { GoogleAuthOptions } from 'google-auth-library';
import { ReadableStream as ReadableStream_2 } from 'stream/web';

// @public
export interface ActivityEnd {
}

// @public
export enum ActivityHandling {
    ACTIVITY_HANDLING_UNSPECIFIED = "ACTIVITY_HANDLING_UNSPECIFIED",
    NO_INTERRUPTION = "NO_INTERRUPTION",
    START_OF_ACTIVITY_INTERRUPTS = "START_OF_ACTIVITY_INTERRUPTS"
}

// @public
export interface ActivityStart {
}

// @public
export enum AdapterSize {
    ADAPTER_SIZE_EIGHT = "ADAPTER_SIZE_EIGHT",
    ADAPTER_SIZE_FOUR = "ADAPTER_SIZE_FOUR",
    ADAPTER_SIZE_ONE = "ADAPTER_SIZE_ONE",
    ADAPTER_SIZE_SIXTEEN = "ADAPTER_SIZE_SIXTEEN",
    ADAPTER_SIZE_THIRTY_TWO = "ADAPTER_SIZE_THIRTY_TWO",
    ADAPTER_SIZE_TWO = "ADAPTER_SIZE_TWO",
    ADAPTER_SIZE_UNSPECIFIED = "ADAPTER_SIZE_UNSPECIFIED"
}

// @public
export enum AggregationMetric {
    AGGREGATION_METRIC_UNSPECIFIED = "AGGREGATION_METRIC_UNSPECIFIED",
    AVERAGE = "AVERAGE",
    MAXIMUM = "MAXIMUM",
    MEDIAN = "MEDIAN",
    MINIMUM = "MINIMUM",
    MODE = "MODE",
    PERCENTILE_P90 = "PERCENTILE_P90",
    PERCENTILE_P95 = "PERCENTILE_P95",
    PERCENTILE_P99 = "PERCENTILE_P99",
    STANDARD_DEVIATION = "STANDARD_DEVIATION",
    VARIANCE = "VARIANCE"
}

// @public
export interface AggregationOutput {
    aggregationResults?: AggregationResult[];
    dataset?: EvaluationDataset;
}

// @public
export interface AggregationResult {
    aggregationMetric?: AggregationMetric;
    bleuMetricValue?: BleuMetricValue;
    customCodeExecutionResult?: CustomCodeExecutionResult;
    exactMatchMetricValue?: ExactMatchMetricValue;
    pairwiseMetricResult?: PairwiseMetricResult;
    pointwiseMetricResult?: PointwiseMetricResult;
    rougeMetricValue?: RougeMetricValue;
}

// @public
export interface ApiAuth {
    apiKeyConfig?: ApiAuthApiKeyConfig;
}

// @public
export interface ApiAuthApiKeyConfig {
    apiKeySecretVersion?: string;
    apiKeyString?: string;
}

// @public
export class ApiError extends Error {
    constructor(options: ApiErrorInfo);
    status: number;
}

// @public
export interface ApiErrorInfo {
    message: string;
    status: number;
}

// @public
export interface ApiKeyConfig {
    apiKeySecret?: string;
    apiKeyString?: string;
    httpElementLocation?: HttpElementLocation;
    name?: string;
}

// @public
export enum ApiSpec {
    API_SPEC_UNSPECIFIED = "API_SPEC_UNSPECIFIED",
    ELASTIC_SEARCH = "ELASTIC_SEARCH",
    SIMPLE_SEARCH = "SIMPLE_SEARCH"
}

// @public
export interface AudioChunk {
    data?: string;
    mimeType?: string;
    sourceMetadata?: LiveMusicSourceMetadata;
}

// @public
export interface AudioTranscriptionConfig {
    languageCodes?: string[];
}

// @public
export interface AuthConfig {
    apiKey?: string;
    apiKeyConfig?: ApiKeyConfig;
    authType?: AuthType;
    googleServiceAccountConfig?: AuthConfigGoogleServiceAccountConfig;
    httpBasicAuthConfig?: AuthConfigHttpBasicAuthConfig;
    oauthConfig?: AuthConfigOauthConfig;
    oidcConfig?: AuthConfigOidcConfig;
}

// @public
export interface AuthConfigGoogleServiceAccountConfig {
    serviceAccount?: string;
}

// @public
export interface AuthConfigHttpBasicAuthConfig {
    credentialSecret?: string;
}

// @public
export interface AuthConfigOauthConfig {
    accessToken?: string;
    serviceAccount?: string;
}

// @public
export interface AuthConfigOidcConfig {
    idToken?: string;
    serviceAccount?: string;
}

// @public
export interface AuthToken {
    name?: string;
}

// @public
export enum AuthType {
    API_KEY_AUTH = "API_KEY_AUTH",
    // (undocumented)
    AUTH_TYPE_UNSPECIFIED = "AUTH_TYPE_UNSPECIFIED",
    GOOGLE_SERVICE_ACCOUNT_AUTH = "GOOGLE_SERVICE_ACCOUNT_AUTH",
    HTTP_BASIC_AUTH = "HTTP_BASIC_AUTH",
    NO_AUTH = "NO_AUTH",
    OAUTH = "OAUTH",
    OIDC_AUTH = "OIDC_AUTH"
}

// @public
export interface AutomaticActivityDetection {
    disabled?: boolean;
    endOfSpeechSensitivity?: EndSensitivity;
    prefixPaddingMs?: number;
    silenceDurationMs?: number;
    startOfSpeechSensitivity?: StartSensitivity;
}

// @public
export interface AutomaticFunctionCallingConfig {
    disable?: boolean;
    ignoreCallHistory?: boolean;
    maximumRemoteCalls?: number;
}

// @public
export interface AvatarConfig {
    audioBitrateBps?: number;
    avatarName?: string;
    customizedAvatar?: CustomizedAvatar;
    videoBitrateBps?: number;
}

// @public
export interface BaseUrlParameters {
    // (undocumented)
    geminiUrl?: string;
    // (undocumented)
    vertexUrl?: string;
}

// Warning: (ae-forgotten-export) The symbol "BaseModule" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export class Batches extends BaseModule {
    // Warning: (ae-forgotten-export) The symbol "ApiClient" needs to be exported by the entry point index.d.ts
    constructor(apiClient: ApiClient);
    cancel(params: types.CancelBatchJobParameters): Promise<void>;
    create: (params: types.CreateBatchJobParameters) => Promise<types.BatchJob>;
    createEmbeddings: (params: types.CreateEmbeddingsBatchJobParameters) => Promise<types.BatchJob>;
    delete(params: types.DeleteBatchJobParameters): Promise<types.DeleteResourceJob>;
    get(params: types.GetBatchJobParameters): Promise<types.BatchJob>;
    // Warning: (ae-forgotten-export) The symbol "types" needs to be exported by the entry point index.d.ts
    list: (params?: types.ListBatchJobsParameters) => Promise<Pager<types.BatchJob>>;
}

// @public
export interface BatchJob {
    completionStats?: CompletionStats;
    createTime?: string;
    dest?: BatchJobDestination;
    displayName?: string;
    endTime?: string;
    error?: JobError;
    model?: string;
    name?: string;
    src?: BatchJobSource;
    startTime?: string;
    state?: JobState;
    updateTime?: string;
}

// @public
export interface BatchJobDestination {
    bigqueryUri?: string;
    fileName?: string;
    format?: string;
    gcsUri?: string;
    inlinedEmbedContentResponses?: InlinedEmbedContentResponse[];
    inlinedResponses?: InlinedResponse[];
}

// @public (undocumented)
export type BatchJobDestinationUnion = BatchJobDestination | string;

// @public
export interface BatchJobSource {
    bigqueryUri?: string;
    fileName?: string;
    format?: string;
    gcsUri?: string[];
    inlinedRequests?: InlinedRequest[];
}

// @public (undocumented)
export type BatchJobSourceUnion = BatchJobSource | InlinedRequest[] | string;

// @public
export enum Behavior {
    BLOCKING = "BLOCKING",
    NON_BLOCKING = "NON_BLOCKING",
    UNSPECIFIED = "UNSPECIFIED"
}

// @public
export interface BigQuerySource {
    inputUri?: string;
}

// @public
export interface BleuMetricValue {
    score?: number;
}

// @public
interface Blob_2 {
    data?: string;
    displayName?: string;
    mimeType?: string;
}
export { Blob_2 as Blob }

// @public (undocumented)
export type BlobImageUnion = Blob_2;

// @public
export enum BlockedReason {
    BLOCKED_REASON_UNSPECIFIED = "BLOCKED_REASON_UNSPECIFIED",
    BLOCKLIST = "BLOCKLIST",
    IMAGE_SAFETY = "IMAGE_SAFETY",
    JAILBREAK = "JAILBREAK",
    MODEL_ARMOR = "MODEL_ARMOR",
    OTHER = "OTHER",
    PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
    SAFETY = "SAFETY"
}

// @public
export interface CachedContent {
    createTime?: string;
    displayName?: string;
    expireTime?: string;
    model?: string;
    name?: string;
    updateTime?: string;
    usageMetadata?: CachedContentUsageMetadata;
}

// @public
export interface CachedContentUsageMetadata {
    audioDurationSeconds?: number;
    imageCount?: number;
    textCount?: number;
    totalTokenCount?: number;
    videoDurationSeconds?: number;
}

// @public (undocumented)
export class Caches extends BaseModule {
    constructor(apiClient: ApiClient);
    create(params: types.CreateCachedContentParameters): Promise<types.CachedContent>;
    delete(params: types.DeleteCachedContentParameters): Promise<types.DeleteCachedContentResponse>;
    get(params: types.GetCachedContentParameters): Promise<types.CachedContent>;
    list: (params?: types.ListCachedContentsParameters) => Promise<Pager<types.CachedContent>>;
    update(params: types.UpdateCachedContentParameters): Promise<types.CachedContent>;
}

// @public
export interface CallableTool {
    callTool(functionCalls: FunctionCall[]): Promise<Part[]>;
    tool(): Promise<Tool>;
}

// @public
export interface CallableToolConfig {
    behavior?: Behavior;
    timeout?: number;
}

// @public
export interface CancelBatchJobConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface CancelBatchJobParameters {
    config?: CancelBatchJobConfig;
    name: string;
}

// @public
export interface CancelTuningJobConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface CancelTuningJobParameters {
    config?: CancelTuningJobConfig;
    name: string;
}

// @public
export class CancelTuningJobResponse {
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface Candidate {
    avgLogprobs?: number;
    citationMetadata?: CitationMetadata;
    content?: Content;
    finishMessage?: string;
    finishReason?: FinishReason;
    groundingMetadata?: GroundingMetadata;
    index?: number;
    logprobsResult?: LogprobsResult;
    safetyRatings?: SafetyRating[];
    tokenCount?: number;
    urlContextMetadata?: UrlContextMetadata;
}

// @public
export class Chat {
    constructor(apiClient: ApiClient, modelsModule: Models, model: string, config?: types.GenerateContentConfig, history?: types.Content[]);
    getHistory(curated?: boolean): types.Content[];
    sendMessage(params: types.SendMessageParameters): Promise<types.GenerateContentResponse>;
    sendMessageStream(params: types.SendMessageParameters): Promise<AsyncGenerator<types.GenerateContentResponse>>;
}

// @public
export class Chats {
    constructor(modelsModule: Models, apiClient: ApiClient);
    create(params: types.CreateChatParameters): Chat;
}

// @public
export interface Checkpoint {
    checkpointId?: string;
    epoch?: string;
    step?: string;
}

// @public
export interface ChunkingConfig {
    whiteSpaceConfig?: WhiteSpaceConfig;
}

// @public
export interface Citation {
    endIndex?: number;
    license?: string;
    publicationDate?: GoogleTypeDate;
    startIndex?: number;
    title?: string;
    uri?: string;
}

// @public
export interface CitationMetadata {
    citations?: Citation[];
}

// @public
export interface CodeExecutionResult {
    id?: string;
    outcome?: Outcome;
    output?: string;
}

// @public
export interface CompletionStats {
    failedCount?: string;
    incompleteCount?: string;
    successfulCount?: string;
    successfulForecastPointCount?: string;
}

// @public
export interface ComputerUse {
    environment?: Environment;
    excludedPredefinedFunctions?: string[];
}

// @public
export interface ComputeTokensConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface ComputeTokensParameters {
    config?: ComputeTokensConfig;
    contents: ContentListUnion;
    model: string;
}

// @public
export class ComputeTokensResponse {
    sdkHttpResponse?: HttpResponse;
    tokensInfo?: TokensInfo[];
}

// @public
export interface ComputeTokensResult {
    tokensInfo?: TokensInfo[];
}

// @public
export interface Content {
    parts?: Part[];
    role?: string;
}

// @public
export interface ContentEmbedding {
    statistics?: ContentEmbeddingStatistics;
    values?: number[];
}

// @public
export interface ContentEmbeddingStatistics {
    tokenCount?: number;
    truncated?: boolean;
}

// @public (undocumented)
export type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];

// @public
export class ContentReferenceImage {
    referenceId?: number;
    referenceImage?: Image_2;
    referenceType?: string;
    // Warning: (ae-forgotten-export) The symbol "ReferenceImageAPIInternal" needs to be exported by the entry point index.d.ts
    toReferenceImageAPI(): ReferenceImageAPIInternal;
}

// @public (undocumented)
export type ContentUnion = Content | PartUnion[] | PartUnion;

// @public
export interface ContextWindowCompressionConfig {
    slidingWindow?: SlidingWindow;
    triggerTokens?: string;
}

// @public
export interface ControlReferenceConfig {
    controlType?: ControlReferenceType;
    enableControlImageComputation?: boolean;
}

// @public
export class ControlReferenceImage {
    config?: ControlReferenceConfig;
    referenceId?: number;
    referenceImage?: Image_2;
    referenceType?: string;
    toReferenceImageAPI(): ReferenceImageAPIInternal;
}

// @public
export enum ControlReferenceType {
    // (undocumented)
    CONTROL_TYPE_CANNY = "CONTROL_TYPE_CANNY",
    // (undocumented)
    CONTROL_TYPE_DEFAULT = "CONTROL_TYPE_DEFAULT",
    // (undocumented)
    CONTROL_TYPE_FACE_MESH = "CONTROL_TYPE_FACE_MESH",
    // (undocumented)
    CONTROL_TYPE_SCRIBBLE = "CONTROL_TYPE_SCRIBBLE"
}

// @public
export interface CountTokensConfig {
    abortSignal?: AbortSignal;
    generationConfig?: GenerationConfig;
    httpOptions?: HttpOptions;
    systemInstruction?: ContentUnion;
    tools?: Tool[];
}

// @public
export interface CountTokensParameters {
    config?: CountTokensConfig;
    contents: ContentListUnion;
    model: string;
}

// @public
export class CountTokensResponse {
    cachedContentTokenCount?: number;
    sdkHttpResponse?: HttpResponse;
    totalTokens?: number;
}

// @public
export interface CountTokensResult {
    totalTokens?: number;
}

// @public
export interface CreateAuthTokenConfig {
    abortSignal?: AbortSignal;
    expireTime?: string;
    httpOptions?: HttpOptions;
    liveConnectConstraints?: LiveConnectConstraints;
    lockAdditionalFields?: string[];
    newSessionExpireTime?: string;
    uses?: number;
}

// @public
export interface CreateAuthTokenParameters {
    config?: CreateAuthTokenConfig;
}

// @public
export interface CreateBatchJobConfig {
    abortSignal?: AbortSignal;
    dest?: BatchJobDestinationUnion;
    displayName?: string;
    httpOptions?: HttpOptions;
}

// @public
export interface CreateBatchJobParameters {
    config?: CreateBatchJobConfig;
    model?: string;
    src: BatchJobSourceUnion;
}

// @public
export interface CreateCachedContentConfig {
    abortSignal?: AbortSignal;
    contents?: ContentListUnion;
    displayName?: string;
    expireTime?: string;
    httpOptions?: HttpOptions;
    kmsKeyName?: string;
    systemInstruction?: ContentUnion;
    toolConfig?: ToolConfig;
    tools?: Tool[];
    ttl?: string;
}

// @public
export interface CreateCachedContentParameters {
    config?: CreateCachedContentConfig;
    model: string;
}

// @public
export interface CreateChatParameters {
    config?: GenerateContentConfig;
    history?: Content[];
    model: string;
}

// @public
export interface CreateEmbeddingsBatchJobConfig {
    abortSignal?: AbortSignal;
    displayName?: string;
    httpOptions?: HttpOptions;
}

// @public
export interface CreateEmbeddingsBatchJobParameters {
    config?: CreateEmbeddingsBatchJobConfig;
    model?: string;
    src: EmbeddingsBatchJobSource;
}

// @public
export interface CreateFileConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface CreateFileParameters {
    config?: CreateFileConfig;
    file: File_2;
}

// @public
export class CreateFileResponse {
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface CreateFileSearchStoreConfig {
    abortSignal?: AbortSignal;
    displayName?: string;
    httpOptions?: HttpOptions;
}

// @public
export interface CreateFileSearchStoreParameters {
    config?: CreateFileSearchStoreConfig;
}

// @public
export function createFunctionResponsePartFromBase64(data: string, mimeType: string): FunctionResponsePart;

// @public
export function createFunctionResponsePartFromUri(uri: string, mimeType: string): FunctionResponsePart;

// @public
export function createModelContent(partOrString: PartListUnion | string): Content;

// @public
export function createPartFromBase64(data: string, mimeType: string, mediaResolution?: PartMediaResolutionLevel): Part;

// @public
export function createPartFromCodeExecutionResult(outcome: Outcome, output: string): Part;

// @public
export function createPartFromExecutableCode(code: string, language: Language): Part;

// @public
export function createPartFromFunctionCall(name: string, args: Record<string, unknown>): Part;

// @public
export function createPartFromFunctionResponse(id: string, name: string, response: Record<string, unknown>, parts?: FunctionResponsePart[]): Part;

// @public
export function createPartFromText(text: string): Part;

// @public
export function createPartFromUri(uri: string, mimeType: string, mediaResolution?: PartMediaResolutionLevel): Part;

// @public
export interface CreateTuningJobConfig {
    abortSignal?: AbortSignal;
    adapterSize?: AdapterSize;
    baseTeacherModel?: string;
    batchSize?: number;
    beta?: number;
    customBaseModel?: string;
    description?: string;
    encryptionSpec?: EncryptionSpec;
    epochCount?: number;
    exportLastCheckpointOnly?: boolean;
    httpOptions?: HttpOptions;
    labels?: Record<string, string>;
    learningRate?: number;
    learningRateMultiplier?: number;
    method?: TuningMethod;
    outputUri?: string;
    preTunedModelCheckpointId?: string;
    sftLossWeightMultiplier?: number;
    tunedModelDisplayName?: string;
    tunedTeacherModelSource?: string;
    tuningMode?: TuningMode;
    validationDataset?: TuningValidationDataset;
}

// @public
export interface CreateTuningJobParameters {
    baseModel: string;
    config?: CreateTuningJobConfig;
    trainingDataset: TuningDataset;
}

// @public
export interface CreateTuningJobParametersPrivate {
    baseModel?: string;
    config?: CreateTuningJobConfig;
    preTunedModel?: PreTunedModel;
    trainingDataset: TuningDataset;
}

// @public
export function createUserContent(partOrString: PartListUnion | string): Content;

// @public
export interface CustomCodeExecutionResult {
    score?: number;
}

// @public
export interface CustomizedAvatar {
    imageData?: string;
    imageMimeType?: string;
}

// @public
export interface CustomMetadata {
    key?: string;
    numericValue?: number;
    stringListValue?: StringList;
    stringValue?: string;
}

// @public
export interface CustomOutput {
    rawOutputs?: RawOutput;
}

// @public
export interface DatasetDistribution {
    buckets?: DatasetDistributionDistributionBucket[];
    max?: number;
    mean?: number;
    median?: number;
    min?: number;
    p5?: number;
    p95?: number;
    sum?: number;
}

// @public
export interface DatasetDistributionDistributionBucket {
    count?: string;
    left?: number;
    right?: number;
}

// @public
export interface DatasetStats {
    droppedExampleIndices?: string[];
    droppedExampleReasons?: string[];
    totalBillableCharacterCount?: string;
    totalTuningCharacterCount?: string;
    tuningDatasetExampleCount?: string;
    tuningStepCount?: string;
    userDatasetExamples?: Content[];
    userInputTokenDistribution?: DatasetDistribution;
    userMessagePerExampleDistribution?: DatasetDistribution;
    userOutputTokenDistribution?: DatasetDistribution;
}

// @public
export interface DeleteBatchJobConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface DeleteBatchJobParameters {
    config?: DeleteBatchJobConfig;
    name: string;
}

// @public
export interface DeleteCachedContentConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface DeleteCachedContentParameters {
    config?: DeleteCachedContentConfig;
    name: string;
}

// @public
export class DeleteCachedContentResponse {
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface DeleteDocumentConfig {
    abortSignal?: AbortSignal;
    force?: boolean;
    httpOptions?: HttpOptions;
}

// @public
export interface DeleteDocumentParameters {
    config?: DeleteDocumentConfig;
    name: string;
}

// @public
export interface DeleteFileConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface DeleteFileParameters {
    config?: DeleteFileConfig;
    name: string;
}

// @public
export class DeleteFileResponse {
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface DeleteFileSearchStoreConfig {
    abortSignal?: AbortSignal;
    force?: boolean;
    httpOptions?: HttpOptions;
}

// @public
export interface DeleteFileSearchStoreParameters {
    config?: DeleteFileSearchStoreConfig;
    name: string;
}

// @public
export interface DeleteModelConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface DeleteModelParameters {
    config?: DeleteModelConfig;
    // (undocumented)
    model: string;
}

// @public (undocumented)
export class DeleteModelResponse {
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface DeleteResourceJob {
    // (undocumented)
    done?: boolean;
    // (undocumented)
    error?: JobError;
    // (undocumented)
    name?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface DistillationDataStats {
    trainingDatasetStats?: DatasetStats;
}

// @public
export interface DistillationHyperParameters {
    adapterSize?: AdapterSize;
    batchSize?: number;
    epochCount?: string;
    learningRate?: number;
    learningRateMultiplier?: number;
}

// @public
export interface DistillationSamplingSpec {
    baseTeacherModel?: string;
    tunedTeacherModelSource?: string;
    validationDatasetUri?: string;
}

// @public
export interface DistillationSpec {
    baseTeacherModel?: string;
    hyperParameters?: DistillationHyperParameters;
    pipelineRootDirectory?: string;
    promptDatasetUri?: string;
    studentModel?: string;
    trainingDatasetUri?: string;
    tunedTeacherModelSource?: string;
    tuningMode?: TuningMode;
    validationDatasetUri?: string;
}

// @public
interface Document_2 {
    createTime?: string;
    customMetadata?: CustomMetadata[];
    displayName?: string;
    mimeType?: string;
    name?: string;
    sizeBytes?: string;
    state?: DocumentState;
    updateTime?: string;
}
export { Document_2 as Document }

// @public
export enum DocumentState {
    STATE_ACTIVE = "STATE_ACTIVE",
    STATE_FAILED = "STATE_FAILED",
    STATE_PENDING = "STATE_PENDING",
    STATE_UNSPECIFIED = "STATE_UNSPECIFIED"
}

// @public (undocumented)
export type DownloadableFileUnion = string | File_2 | GeneratedVideo | Video;

// @public
export interface DownloadFileConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface DownloadFileParameters {
    config?: DownloadFileConfig;
    downloadPath: string;
    file: DownloadableFileUnion;
}

// @public
export interface DynamicRetrievalConfig {
    dynamicThreshold?: number;
    mode?: DynamicRetrievalConfigMode;
}

// @public
export enum DynamicRetrievalConfigMode {
    MODE_DYNAMIC = "MODE_DYNAMIC",
    MODE_UNSPECIFIED = "MODE_UNSPECIFIED"
}

// @public
export interface EditImageConfig {
    abortSignal?: AbortSignal;
    addWatermark?: boolean;
    aspectRatio?: string;
    baseSteps?: number;
    editMode?: EditMode;
    guidanceScale?: number;
    httpOptions?: HttpOptions;
    includeRaiReason?: boolean;
    includeSafetyAttributes?: boolean;
    labels?: Record<string, string>;
    language?: ImagePromptLanguage;
    negativePrompt?: string;
    numberOfImages?: number;
    outputCompressionQuality?: number;
    outputGcsUri?: string;
    outputMimeType?: string;
    personGeneration?: PersonGeneration;
    safetyFilterLevel?: SafetyFilterLevel;
    seed?: number;
}

// @public
export interface EditImageParameters {
    config?: EditImageConfig;
    model: string;
    prompt: string;
    referenceImages: ReferenceImage[];
}

// @public
export class EditImageResponse {
    generatedImages?: GeneratedImage[];
    sdkHttpResponse?: HttpResponse;
}

// @public
export enum EditMode {
    // (undocumented)
    EDIT_MODE_BGSWAP = "EDIT_MODE_BGSWAP",
    // (undocumented)
    EDIT_MODE_CONTROLLED_EDITING = "EDIT_MODE_CONTROLLED_EDITING",
    // (undocumented)
    EDIT_MODE_DEFAULT = "EDIT_MODE_DEFAULT",
    // (undocumented)
    EDIT_MODE_INPAINT_INSERTION = "EDIT_MODE_INPAINT_INSERTION",
    // (undocumented)
    EDIT_MODE_INPAINT_REMOVAL = "EDIT_MODE_INPAINT_REMOVAL",
    // (undocumented)
    EDIT_MODE_OUTPAINT = "EDIT_MODE_OUTPAINT",
    // (undocumented)
    EDIT_MODE_PRODUCT_IMAGE = "EDIT_MODE_PRODUCT_IMAGE",
    // (undocumented)
    EDIT_MODE_STYLE = "EDIT_MODE_STYLE"
}

// @public
export interface EmbedContentBatch {
    config?: EmbedContentConfig;
    contents?: ContentListUnion;
}

// @public
export interface EmbedContentConfig {
    abortSignal?: AbortSignal;
    audioTrackExtraction?: boolean;
    autoTruncate?: boolean;
    documentOcr?: boolean;
    httpOptions?: HttpOptions;
    mimeType?: string;
    outputDimensionality?: number;
    taskType?: string;
    title?: string;
}

// @public
export interface EmbedContentMetadata {
    billableCharacterCount?: number;
}

// @public
export interface EmbedContentParameters {
    config?: EmbedContentConfig;
    contents: ContentListUnion;
    model: string;
}

// @public
export interface EmbedContentParametersPrivate {
    config?: EmbedContentConfig;
    content?: ContentUnion;
    contents?: ContentListUnion;
    embeddingApiType?: EmbeddingApiType;
    model: string;
}

// @public
export class EmbedContentResponse {
    embeddings?: ContentEmbedding[];
    metadata?: EmbedContentMetadata;
    sdkHttpResponse?: HttpResponse;
}

// @public
export enum EmbeddingApiType {
    EMBED_CONTENT = "EMBED_CONTENT",
    PREDICT = "PREDICT"
}

// @public (undocumented)
export interface EmbeddingsBatchJobSource {
    fileName?: string;
    inlinedRequests?: EmbedContentBatch;
}

// @public
export interface EncryptionSpec {
    kmsKeyName?: string;
}

// @public
export interface Endpoint {
    deployedModelId?: string;
    name?: string;
}

// @public
export enum EndSensitivity {
    END_SENSITIVITY_HIGH = "END_SENSITIVITY_HIGH",
    END_SENSITIVITY_LOW = "END_SENSITIVITY_LOW",
    END_SENSITIVITY_UNSPECIFIED = "END_SENSITIVITY_UNSPECIFIED"
}

// @public
export interface EnterpriseWebSearch {
    blockingConfidence?: PhishBlockThreshold;
    excludeDomains?: string[];
}

// @public
export interface EntityLabel {
    label?: string;
    score?: number;
}

// @public
export enum Environment {
    ENVIRONMENT_BROWSER = "ENVIRONMENT_BROWSER",
    ENVIRONMENT_UNSPECIFIED = "ENVIRONMENT_UNSPECIFIED"
}

// @public
export class EvaluateDatasetResponse {
    aggregationOutput?: AggregationOutput;
    outputInfo?: OutputInfo;
}

// @public
export interface EvaluateDatasetRun {
    checkpointId?: string;
    error?: GoogleRpcStatus;
    evaluateDatasetResponse?: EvaluateDatasetResponse;
    evaluationRun?: string;
    operationName?: string;
}

// @public
export interface EvaluationDataset {
    bigquerySource?: BigQuerySource;
    gcsSource?: GcsSource;
}

// @public
export interface ExactMatchMetricValue {
    score?: number;
}

// @public
export interface ExecutableCode {
    code?: string;
    id?: string;
    language?: Language;
}

// @public
export interface ExternalApi {
    apiAuth?: ApiAuth;
    apiSpec?: ApiSpec;
    authConfig?: AuthConfig;
    elasticSearchParams?: ExternalApiElasticSearchParams;
    endpoint?: string;
    simpleSearchParams?: ExternalApiSimpleSearchParams;
}

// @public
export interface ExternalApiElasticSearchParams {
    index?: string;
    numHits?: number;
    searchTemplate?: string;
}

// @public
export interface ExternalApiSimpleSearchParams {
}

// @public
export enum FeatureSelectionPreference {
    // (undocumented)
    BALANCED = "BALANCED",
    // (undocumented)
    FEATURE_SELECTION_PREFERENCE_UNSPECIFIED = "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",
    // (undocumented)
    PRIORITIZE_COST = "PRIORITIZE_COST",
    // (undocumented)
    PRIORITIZE_QUALITY = "PRIORITIZE_QUALITY"
}

// @public (undocumented)
export interface FetchPredictOperationConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface FetchPredictOperationParameters {
    config?: FetchPredictOperationConfig;
    operationName: string;
    // (undocumented)
    resourceName: string;
}

// @public
interface File_2 {
    createTime?: string;
    displayName?: string;
    downloadUri?: string;
    error?: FileStatus;
    expirationTime?: string;
    mimeType?: string;
    name?: string;
    sha256Hash?: string;
    sizeBytes?: string;
    source?: FileSource;
    state?: FileState;
    updateTime?: string;
    uri?: string;
    videoMetadata?: Record<string, unknown>;
}
export { File_2 as File }

// @public
export interface FileData {
    displayName?: string;
    fileUri?: string;
    mimeType?: string;
}

// @public (undocumented)
export class Files extends BaseModule {
    constructor(apiClient: ApiClient);
    delete(params: types.DeleteFileParameters): Promise<types.DeleteFileResponse>;
    download(params: types.DownloadFileParameters): Promise<void>;
    get(params: types.GetFileParameters): Promise<types.File>;
    list: (params?: types.ListFilesParameters) => Promise<Pager<types.File>>;
    registerFiles(params: types.RegisterFilesParameters): Promise<types.RegisterFilesResponse>;
    // (undocumented)
    protected _registerFiles(params: types.InternalRegisterFilesParameters): Promise<types.RegisterFilesResponse>;
    upload(params: types.UploadFileParameters): Promise<types.File>;
}

// @public
export interface FileSearch {
    fileSearchStoreNames?: string[];
    metadataFilter?: string;
    topK?: number;
}

// @public
export interface FileSearchStore {
    activeDocumentsCount?: string;
    createTime?: string;
    displayName?: string;
    failedDocumentsCount?: string;
    name?: string;
    pendingDocumentsCount?: string;
    sizeBytes?: string;
    updateTime?: string;
}

// @public
export enum FileSource {
    // (undocumented)
    GENERATED = "GENERATED",
    // (undocumented)
    REGISTERED = "REGISTERED",
    // (undocumented)
    SOURCE_UNSPECIFIED = "SOURCE_UNSPECIFIED",
    // (undocumented)
    UPLOADED = "UPLOADED"
}

// @public
export enum FileState {
    // (undocumented)
    ACTIVE = "ACTIVE",
    // (undocumented)
    FAILED = "FAILED",
    // (undocumented)
    PROCESSING = "PROCESSING",
    // (undocumented)
    STATE_UNSPECIFIED = "STATE_UNSPECIFIED"
}

// @public
export interface FileStatus {
    code?: number;
    details?: Record<string, unknown>[];
    message?: string;
}

// @public
export enum FinishReason {
    BLOCKLIST = "BLOCKLIST",
    FINISH_REASON_UNSPECIFIED = "FINISH_REASON_UNSPECIFIED",
    IMAGE_OTHER = "IMAGE_OTHER",
    IMAGE_PROHIBITED_CONTENT = "IMAGE_PROHIBITED_CONTENT",
    IMAGE_RECITATION = "IMAGE_RECITATION",
    IMAGE_SAFETY = "IMAGE_SAFETY",
    LANGUAGE = "LANGUAGE",
    MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
    MAX_TOKENS = "MAX_TOKENS",
    NO_IMAGE = "NO_IMAGE",
    OTHER = "OTHER",
    PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
    RECITATION = "RECITATION",
    SAFETY = "SAFETY",
    SPII = "SPII",
    STOP = "STOP",
    UNEXPECTED_TOOL_CALL = "UNEXPECTED_TOOL_CALL"
}

// @public
export interface FullFineTuningSpec {
    hyperParameters?: SupervisedHyperParameters;
    trainingDatasetUri?: string;
    validationDatasetUri?: string;
}

// @public
export interface FunctionCall {
    args?: Record<string, unknown>;
    id?: string;
    name?: string;
    partialArgs?: PartialArg[];
    willContinue?: boolean;
}

// @public
export interface FunctionCallingConfig {
    allowedFunctionNames?: string[];
    mode?: FunctionCallingConfigMode;
    streamFunctionCallArguments?: boolean;
}

// @public
export enum FunctionCallingConfigMode {
    ANY = "ANY",
    AUTO = "AUTO",
    MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
    NONE = "NONE",
    VALIDATED = "VALIDATED"
}

// @public
export interface FunctionDeclaration {
    behavior?: Behavior;
    description?: string;
    name?: string;
    parameters?: Schema;
    parametersJsonSchema?: unknown;
    response?: Schema;
    responseJsonSchema?: unknown;
}

// @public
export class FunctionResponse {
    id?: string;
    name?: string;
    parts?: FunctionResponsePart[];
    response?: Record<string, unknown>;
    scheduling?: FunctionResponseScheduling;
    willContinue?: boolean;
}

// @public
export class FunctionResponseBlob {
    data?: string;
    displayName?: string;
    mimeType?: string;
}

// @public
export class FunctionResponseFileData {
    displayName?: string;
    fileUri?: string;
    mimeType?: string;
}

// @public
export class FunctionResponsePart {
    fileData?: FunctionResponseFileData;
    inlineData?: FunctionResponseBlob;
}

// @public
export enum FunctionResponseScheduling {
    INTERRUPT = "INTERRUPT",
    SCHEDULING_UNSPECIFIED = "SCHEDULING_UNSPECIFIED",
    SILENT = "SILENT",
    WHEN_IDLE = "WHEN_IDLE"
}

// @public
export interface GcsSource {
    uris?: string[];
}

// @public
export interface GeminiPreferenceExample {
    completions?: GeminiPreferenceExampleCompletion[];
    contents?: Content[];
}

// @public
export interface GeminiPreferenceExampleCompletion {
    completion?: Content;
    score?: number;
}

// @public
export interface GenerateContentConfig {
    abortSignal?: AbortSignal;
    audioTimestamp?: boolean;
    automaticFunctionCalling?: AutomaticFunctionCallingConfig;
    cachedContent?: string;
    candidateCount?: number;
    enableEnhancedCivicAnswers?: boolean;
    frequencyPenalty?: number;
    httpOptions?: HttpOptions;
    imageConfig?: ImageConfig;
    labels?: Record<string, string>;
    logprobs?: number;
    maxOutputTokens?: number;
    mediaResolution?: MediaResolution;
    modelArmorConfig?: ModelArmorConfig;
    modelSelectionConfig?: ModelSelectionConfig;
    presencePenalty?: number;
    responseJsonSchema?: unknown;
    responseLogprobs?: boolean;
    responseMimeType?: string;
    responseModalities?: string[];
    responseSchema?: SchemaUnion;
    routingConfig?: GenerationConfigRoutingConfig;
    safetySettings?: SafetySetting[];
    seed?: number;
    serviceTier?: ServiceTier;
    speechConfig?: SpeechConfigUnion;
    stopSequences?: string[];
    systemInstruction?: ContentUnion;
    temperature?: number;
    thinkingConfig?: ThinkingConfig;
    toolConfig?: ToolConfig;
    tools?: ToolListUnion;
    topK?: number;
    topP?: number;
}

// @public
export interface GenerateContentParameters {
    config?: GenerateContentConfig;
    contents: ContentListUnion;
    model: string;
}

// @public
export class GenerateContentResponse {
    automaticFunctionCallingHistory?: Content[];
    candidates?: Candidate[];
    get codeExecutionResult(): string | undefined;
    createTime?: string;
    get data(): string | undefined;
    get executableCode(): string | undefined;
    get functionCalls(): FunctionCall[] | undefined;
    modelStatus?: ModelStatus;
    modelVersion?: string;
    promptFeedback?: GenerateContentResponsePromptFeedback;
    responseId?: string;
    sdkHttpResponse?: HttpResponse;
    get text(): string | undefined;
    usageMetadata?: GenerateContentResponseUsageMetadata;
}

// @public
export class GenerateContentResponsePromptFeedback {
    blockReason?: BlockedReason;
    blockReasonMessage?: string;
    safetyRatings?: SafetyRating[];
}

// @public
export class GenerateContentResponseUsageMetadata {
    cachedContentTokenCount?: number;
    cacheTokensDetails?: ModalityTokenCount[];
    candidatesTokenCount?: number;
    candidatesTokensDetails?: ModalityTokenCount[];
    promptTokenCount?: number;
    promptTokensDetails?: ModalityTokenCount[];
    thoughtsTokenCount?: number;
    toolUsePromptTokenCount?: number;
    toolUsePromptTokensDetails?: ModalityTokenCount[];
    totalTokenCount?: number;
    trafficType?: TrafficType;
}

// @public
export interface GeneratedImage {
    enhancedPrompt?: string;
    image?: Image_2;
    raiFilteredReason?: string;
    safetyAttributes?: SafetyAttributes;
}

// @public
export interface GeneratedImageMask {
    labels?: EntityLabel[];
    mask?: Image_2;
}

// @public
export interface GeneratedVideo {
    video?: Video;
}

// @public
export interface GenerateImagesConfig {
    abortSignal?: AbortSignal;
    addWatermark?: boolean;
    aspectRatio?: string;
    enhancePrompt?: boolean;
    guidanceScale?: number;
    httpOptions?: HttpOptions;
    imageSize?: string;
    includeRaiReason?: boolean;
    includeSafetyAttributes?: boolean;
    labels?: Record<string, string>;
    language?: ImagePromptLanguage;
    negativePrompt?: string;
    numberOfImages?: number;
    outputCompressionQuality?: number;
    outputGcsUri?: string;
    outputMimeType?: string;
    personGeneration?: PersonGeneration;
    safetyFilterLevel?: SafetyFilterLevel;
    seed?: number;
}

// @public
export interface GenerateImagesParameters {
    config?: GenerateImagesConfig;
    model: string;
    prompt: string;
}

// @public
export class GenerateImagesResponse {
    generatedImages?: GeneratedImage[];
    positivePromptSafetyAttributes?: SafetyAttributes;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface GenerateVideosConfig {
    abortSignal?: AbortSignal;
    aspectRatio?: string;
    compressionQuality?: VideoCompressionQuality;
    durationSeconds?: number;
    enhancePrompt?: boolean;
    fps?: number;
    generateAudio?: boolean;
    httpOptions?: HttpOptions;
    labels?: Record<string, string>;
    lastFrame?: Image_2;
    mask?: VideoGenerationMask;
    negativePrompt?: string;
    numberOfVideos?: number;
    outputGcsUri?: string;
    personGeneration?: string;
    pubsubTopic?: string;
    referenceImages?: VideoGenerationReferenceImage[];
    resolution?: string;
    seed?: number;
}

// @public
export class GenerateVideosOperation implements Operation<GenerateVideosResponse> {
    done?: boolean;
    error?: Record<string, unknown>;
    _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse>;
    metadata?: Record<string, unknown>;
    name?: string;
    response?: GenerateVideosResponse;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface GenerateVideosParameters {
    config?: GenerateVideosConfig;
    image?: Image_2;
    model: string;
    prompt?: string;
    source?: GenerateVideosSource;
    video?: Video;
}

// @public
export class GenerateVideosResponse {
    generatedVideos?: GeneratedVideo[];
    raiMediaFilteredCount?: number;
    raiMediaFilteredReasons?: string[];
}

// @public
export interface GenerateVideosSource {
    image?: Image_2;
    prompt?: string;
    video?: Video;
}

// @public
export interface GenerationConfig {
    audioTimestamp?: boolean;
    candidateCount?: number;
    enableAffectiveDialog?: boolean;
    enableEnhancedCivicAnswers?: boolean;
    frequencyPenalty?: number;
    logprobs?: number;
    maxOutputTokens?: number;
    mediaResolution?: MediaResolution;
    modelSelectionConfig?: ModelSelectionConfig;
    presencePenalty?: number;
    responseJsonSchema?: unknown;
    responseLogprobs?: boolean;
    responseMimeType?: string;
    responseModalities?: Modality[];
    responseSchema?: Schema;
    routingConfig?: GenerationConfigRoutingConfig;
    seed?: number;
    speechConfig?: SpeechConfig;
    stopSequences?: string[];
    temperature?: number;
    thinkingConfig?: ThinkingConfig;
    topK?: number;
    topP?: number;
}

// @public
export interface GenerationConfigRoutingConfig {
    autoMode?: GenerationConfigRoutingConfigAutoRoutingMode;
    manualMode?: GenerationConfigRoutingConfigManualRoutingMode;
}

// @public
export interface GenerationConfigRoutingConfigAutoRoutingMode {
    modelRoutingPreference?: 'UNKNOWN' | 'PRIORITIZE_QUALITY' | 'BALANCED' | 'PRIORITIZE_COST';
}

// @public
export interface GenerationConfigRoutingConfigManualRoutingMode {
    modelName?: string;
}

// @public @deprecated
export interface GenerationConfigThinkingConfig extends ThinkingConfig {
}

// @public
export interface GetBatchJobConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetBatchJobParameters {
    config?: GetBatchJobConfig;
    name: string;
}

// @public
export interface GetCachedContentConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetCachedContentParameters {
    config?: GetCachedContentConfig;
    name: string;
}

// @public
export interface GetDocumentConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetDocumentParameters {
    config?: GetDocumentConfig;
    name: string;
}

// @public
export interface GetFileConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetFileParameters {
    config?: GetFileConfig;
    name: string;
}

// @public
export interface GetFileSearchStoreConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetFileSearchStoreParameters {
    config?: GetFileSearchStoreConfig;
    name: string;
}

// @public
export interface GetModelConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public (undocumented)
export interface GetModelParameters {
    config?: GetModelConfig;
    // (undocumented)
    model: string;
}

// @public (undocumented)
export interface GetOperationConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetOperationParameters {
    config?: GetOperationConfig;
    operationName: string;
}

// @public
export interface GetTuningJobConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface GetTuningJobParameters {
    config?: GetTuningJobConfig;
    // (undocumented)
    name: string;
}

// @public
export class GoogleGenAI {
    constructor(options: GoogleGenAIOptions);
    // (undocumented)
    protected readonly apiClient: ApiClient;
    // (undocumented)
    readonly authTokens: Tokens;
    // (undocumented)
    readonly batches: Batches;
    // (undocumented)
    readonly caches: Caches;
    // (undocumented)
    readonly chats: Chats;
    // (undocumented)
    readonly files: Files;
    // Warning: (ae-forgotten-export) The symbol "FileSearchStores" needs to be exported by the entry point index.d.ts
    //
    // (undocumented)
    readonly fileSearchStores: FileSearchStores;
    // (undocumented)
    get interactions(): Interactions;
    // (undocumented)
    readonly live: Live;
    // (undocumented)
    readonly models: Models;
    // (undocumented)
    readonly operations: Operations;
    // Warning: (ae-forgotten-export) The symbol "Tunings" needs to be exported by the entry point index.d.ts
    //
    // (undocumented)
    readonly tunings: Tunings;
    // (undocumented)
    readonly vertexai: boolean;
}

// @public
export interface GoogleGenAIOptions {
    apiKey?: string;
    apiVersion?: string;
    googleAuthOptions?: GoogleAuthOptions;
    httpOptions?: HttpOptions;
    location?: string;
    project?: string;
    vertexai?: boolean;
}

// @public
export interface GoogleMaps {
    authConfig?: AuthConfig;
    enableWidget?: boolean;
}

// @public
export interface GoogleRpcStatus {
    code?: number;
    details?: Record<string, unknown>[];
    message?: string;
}

// @public
export interface GoogleSearch {
    blockingConfidence?: PhishBlockThreshold;
    excludeDomains?: string[];
    searchTypes?: SearchTypes;
    timeRangeFilter?: Interval;
}

// @public
export interface GoogleSearchRetrieval {
    dynamicRetrievalConfig?: DynamicRetrievalConfig;
}

// @public
export interface GoogleTypeDate {
    day?: number;
    month?: number;
    year?: number;
}

// @public
export interface GroundingChunk {
    image?: GroundingChunkImage;
    maps?: GroundingChunkMaps;
    retrievedContext?: GroundingChunkRetrievedContext;
    web?: GroundingChunkWeb;
}

// @public
export interface GroundingChunkCustomMetadata {
    key?: string;
    numericValue?: number;
    stringListValue?: GroundingChunkStringList;
    stringValue?: string;
}

// @public
export interface GroundingChunkImage {
    domain?: string;
    imageUri?: string;
    sourceUri?: string;
    title?: string;
}

// @public
export interface GroundingChunkMaps {
    placeAnswerSources?: GroundingChunkMapsPlaceAnswerSources;
    placeId?: string;
    route?: GroundingChunkMapsRoute;
    text?: string;
    title?: string;
    uri?: string;
}

// @public
export interface GroundingChunkMapsPlaceAnswerSources {
    flagContentUri?: string;
    reviewSnippet?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
    reviewSnippets?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];
}

// @public
export interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {
    displayName?: string;
    photoUri?: string;
    uri?: string;
}

// @public
export interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
    authorAttribution?: GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;
    flagContentUri?: string;
    googleMapsUri?: string;
    relativePublishTimeDescription?: string;
    review?: string;
    reviewId?: string;
    title?: string;
}

// @public
export interface GroundingChunkMapsRoute {
    distanceMeters?: number;
    duration?: string;
    encodedPolyline?: string;
}

// @public
export interface GroundingChunkRetrievedContext {
    customMetadata?: GroundingChunkCustomMetadata[];
    documentName?: string;
    fileSearchStore?: string;
    ragChunk?: RagChunk;
    text?: string;
    title?: string;
    uri?: string;
}

// @public
export interface GroundingChunkStringList {
    values?: string[];
}

// @public
export interface GroundingChunkWeb {
    domain?: string;
    title?: string;
    uri?: string;
}

// @public
export interface GroundingMetadata {
    googleMapsWidgetContextToken?: string;
    groundingChunks?: GroundingChunk[];
    groundingSupports?: GroundingSupport[];
    imageSearchQueries?: string[];
    retrievalMetadata?: RetrievalMetadata;
    retrievalQueries?: string[];
    searchEntryPoint?: SearchEntryPoint;
    sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];
    webSearchQueries?: string[];
}

// @public
export interface GroundingMetadataSourceFlaggingUri {
    flagContentUri?: string;
    sourceId?: string;
}

// @public
export interface GroundingSupport {
    confidenceScores?: number[];
    groundingChunkIndices?: number[];
    renderedParts?: number[];
    segment?: Segment;
}

// @public
export enum HarmBlockMethod {
    HARM_BLOCK_METHOD_UNSPECIFIED = "HARM_BLOCK_METHOD_UNSPECIFIED",
    PROBABILITY = "PROBABILITY",
    SEVERITY = "SEVERITY"
}

// @public
export enum HarmBlockThreshold {
    BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
    BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
    BLOCK_NONE = "BLOCK_NONE",
    BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH",
    HARM_BLOCK_THRESHOLD_UNSPECIFIED = "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
    OFF = "OFF"
}

// @public
export enum HarmCategory {
    HARM_CATEGORY_CIVIC_INTEGRITY = "HARM_CATEGORY_CIVIC_INTEGRITY",
    HARM_CATEGORY_DANGEROUS_CONTENT = "HARM_CATEGORY_DANGEROUS_CONTENT",
    HARM_CATEGORY_HARASSMENT = "HARM_CATEGORY_HARASSMENT",
    HARM_CATEGORY_HATE_SPEECH = "HARM_CATEGORY_HATE_SPEECH",
    HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",
    HARM_CATEGORY_IMAGE_HARASSMENT = "HARM_CATEGORY_IMAGE_HARASSMENT",
    HARM_CATEGORY_IMAGE_HATE = "HARM_CATEGORY_IMAGE_HATE",
    HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",
    HARM_CATEGORY_JAILBREAK = "HARM_CATEGORY_JAILBREAK",
    HARM_CATEGORY_SEXUALLY_EXPLICIT = "HARM_CATEGORY_SEXUALLY_EXPLICIT",
    HARM_CATEGORY_UNSPECIFIED = "HARM_CATEGORY_UNSPECIFIED"
}

// @public
export enum HarmProbability {
    HARM_PROBABILITY_UNSPECIFIED = "HARM_PROBABILITY_UNSPECIFIED",
    HIGH = "HIGH",
    LOW = "LOW",
    MEDIUM = "MEDIUM",
    NEGLIGIBLE = "NEGLIGIBLE"
}

// @public
export enum HarmSeverity {
    HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH",
    HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
    HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
    HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE",
    HARM_SEVERITY_UNSPECIFIED = "HARM_SEVERITY_UNSPECIFIED"
}

// @public
export enum HttpElementLocation {
    HTTP_IN_BODY = "HTTP_IN_BODY",
    HTTP_IN_COOKIE = "HTTP_IN_COOKIE",
    HTTP_IN_HEADER = "HTTP_IN_HEADER",
    HTTP_IN_PATH = "HTTP_IN_PATH",
    HTTP_IN_QUERY = "HTTP_IN_QUERY",
    // (undocumented)
    HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED"
}

// @public
export interface HttpOptions {
    apiVersion?: string;
    baseUrl?: string;
    baseUrlResourceScope?: ResourceScope;
    extraBody?: Record<string, unknown>;
    headers?: Record<string, string>;
    retryOptions?: HttpRetryOptions;
    timeout?: number;
}

// @public
export class HttpResponse {
    constructor(response: Response);
    headers?: Record<string, string>;
    // (undocumented)
    json(): Promise<unknown>;
    responseInternal: Response;
}

// @public
export interface HttpRetryOptions {
    attempts?: number;
}

// @public
interface Image_2 {
    gcsUri?: string;
    imageBytes?: string;
    mimeType?: string;
}
export { Image_2 as Image }

// @public
export interface ImageConfig {
    aspectRatio?: string;
    imageOutputOptions?: ImageConfigImageOutputOptions;
    imageSize?: string;
    outputCompressionQuality?: number;
    outputMimeType?: string;
    personGeneration?: string;
    prominentPeople?: ProminentPeople;
}

// @public
export interface ImageConfigImageOutputOptions {
    compressionQuality?: number;
    mimeType?: string;
}

// @public
export enum ImagePromptLanguage {
    auto = "auto",
    en = "en",
    es = "es",
    hi = "hi",
    ja = "ja",
    ko = "ko",
    pt = "pt",
    zh = "zh"
}

// @public
export interface ImageSearch {
}

// @public
export interface ImportFileConfig {
    abortSignal?: AbortSignal;
    chunkingConfig?: ChunkingConfig;
    customMetadata?: CustomMetadata[];
    httpOptions?: HttpOptions;
}

// @public
export class ImportFileOperation implements Operation<ImportFileResponse> {
    done?: boolean;
    error?: Record<string, unknown>;
    _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
    metadata?: Record<string, unknown>;
    name?: string;
    response?: ImportFileResponse;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface ImportFileParameters {
    config?: ImportFileConfig;
    fileName: string;
    fileSearchStoreName: string;
}

// @public
export class ImportFileResponse {
    documentName?: string;
    parent?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export class InlinedEmbedContentResponse {
    error?: JobError;
    metadata?: Record<string, unknown>;
    response?: SingleEmbedContentResponse;
}

// @public
export interface InlinedRequest {
    config?: GenerateContentConfig;
    contents?: ContentListUnion;
    metadata?: Record<string, string>;
    model?: string;
}

// @public
export class InlinedResponse {
    error?: JobError;
    metadata?: Record<string, string>;
    response?: GenerateContentResponse;
}

// Warning: (ae-forgotten-export) The symbol "BaseInteractions" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export class Interactions extends BaseInteractions {
}

// @public (undocumented)
export namespace Interactions {
        { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallContent as CodeExecutionCallContent, export type CodeExecutionResultContent as CodeExecutionResultContent, export type Content as Content, export type ContentDelta as ContentDelta, export type ContentStart as ContentStart, export type ContentStop as ContentStop, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallContent as FileSearchCallContent, export type FileSearchResultContent as FileSearchResultContent, export type Function as Function, export type FunctionCallContent as FunctionCallContent, export type FunctionResultContent as FunctionResultContent, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallContent as GoogleMapsCallContent, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultContent as GoogleMapsResultContent, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallContent as GoogleSearchCallContent, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultContent as GoogleSearchResultContent, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type Interaction as Interaction, export type InteractionCompleteEvent as InteractionCompleteEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStartEvent as InteractionStartEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallContent as MCPServerToolCallContent, export type MCPServerToolResultContent as MCPServerToolResultContent, export type Model as Model, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type TextContent as TextContent, export type ThinkingLevel as ThinkingLevel, export type ThoughtContent as ThoughtContent, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type Turn as Turn, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallContent as URLContextCallContent, export type URLContextResult as URLContextResult, export type URLContextResultContent as URLContextResultContent, export type Usage as Usage, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
}

// @public
export interface InternalRegisterFilesParameters {
    config?: RegisterFilesConfig;
    uris: string[];
}

// @public
export interface Interval {
    endTime?: string;
    startTime?: string;
}

// @public
export interface JobError {
    code?: number;
    details?: string[];
    message?: string;
}

// @public
export enum JobState {
    JOB_STATE_CANCELLED = "JOB_STATE_CANCELLED",
    JOB_STATE_CANCELLING = "JOB_STATE_CANCELLING",
    JOB_STATE_EXPIRED = "JOB_STATE_EXPIRED",
    JOB_STATE_FAILED = "JOB_STATE_FAILED",
    JOB_STATE_PARTIALLY_SUCCEEDED = "JOB_STATE_PARTIALLY_SUCCEEDED",
    JOB_STATE_PAUSED = "JOB_STATE_PAUSED",
    JOB_STATE_PENDING = "JOB_STATE_PENDING",
    JOB_STATE_QUEUED = "JOB_STATE_QUEUED",
    JOB_STATE_RUNNING = "JOB_STATE_RUNNING",
    JOB_STATE_SUCCEEDED = "JOB_STATE_SUCCEEDED",
    JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
    JOB_STATE_UPDATING = "JOB_STATE_UPDATING"
}

// @public
export enum Language {
    LANGUAGE_UNSPECIFIED = "LANGUAGE_UNSPECIFIED",
    PYTHON = "PYTHON"
}

// @public
export interface LatLng {
    latitude?: number;
    longitude?: number;
}

// @public
export interface ListBatchJobsConfig {
    abortSignal?: AbortSignal;
    // (undocumented)
    filter?: string;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
}

// @public
export interface ListBatchJobsParameters {
    // (undocumented)
    config?: ListBatchJobsConfig;
}

// @public
export class ListBatchJobsResponse {
    // (undocumented)
    batchJobs?: BatchJob[];
    // (undocumented)
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface ListCachedContentsConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
}

// @public
export interface ListCachedContentsParameters {
    config?: ListCachedContentsConfig;
}

// @public (undocumented)
export class ListCachedContentsResponse {
    cachedContents?: CachedContent[];
    // (undocumented)
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface ListDocumentsConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
}

// @public
export interface ListDocumentsParameters {
    // (undocumented)
    config?: ListDocumentsConfig;
    parent: string;
}

// @public
export class ListDocumentsResponse {
    documents?: Document_2[];
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public (undocumented)
export interface ListFilesConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
}

// @public
export interface ListFileSearchStoresConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
}

// @public
export interface ListFileSearchStoresParameters {
    config?: ListFileSearchStoresConfig;
}

// @public
export class ListFileSearchStoresResponse {
    fileSearchStores?: FileSearchStore[];
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface ListFilesParameters {
    config?: ListFilesConfig;
}

// @public
export class ListFilesResponse {
    files?: File_2[];
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public (undocumented)
export interface ListModelsConfig {
    abortSignal?: AbortSignal;
    // (undocumented)
    filter?: string;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
    queryBase?: boolean;
}

// @public (undocumented)
export interface ListModelsParameters {
    // (undocumented)
    config?: ListModelsConfig;
}

// @public (undocumented)
export class ListModelsResponse {
    // (undocumented)
    models?: Model[];
    // (undocumented)
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface ListTuningJobsConfig {
    abortSignal?: AbortSignal;
    // (undocumented)
    filter?: string;
    httpOptions?: HttpOptions;
    // (undocumented)
    pageSize?: number;
    // (undocumented)
    pageToken?: string;
}

// @public
export interface ListTuningJobsParameters {
    // (undocumented)
    config?: ListTuningJobsConfig;
}

// @public
export class ListTuningJobsResponse {
    nextPageToken?: string;
    sdkHttpResponse?: HttpResponse;
    tuningJobs?: TuningJob[];
}

// @public
export class Live {
    // Warning: (ae-forgotten-export) The symbol "Auth" needs to be exported by the entry point index.d.ts
    // Warning: (ae-forgotten-export) The symbol "WebSocketFactory" needs to be exported by the entry point index.d.ts
    constructor(apiClient: ApiClient, auth: Auth, webSocketFactory: WebSocketFactory);
    connect(params: types.LiveConnectParameters): Promise<Session>;
    // Warning: (ae-forgotten-export) The symbol "LiveMusic" needs to be exported by the entry point index.d.ts
    //
    // (undocumented)
    readonly music: LiveMusic;
}

// @public
export interface LiveCallbacks {
    onclose?: ((e: CloseEvent) => void) | null;
    onerror?: ((e: ErrorEvent) => void) | null;
    onmessage: (e: LiveServerMessage) => void;
    onopen?: (() => void) | null;
}

// @public
export interface LiveClientContent {
    turnComplete?: boolean;
    turns?: Content[];
}

// @public
export interface LiveClientMessage {
    clientContent?: LiveClientContent;
    realtimeInput?: LiveClientRealtimeInput;
    setup?: LiveClientSetup;
    toolResponse?: LiveClientToolResponse;
}

// @public
export interface LiveClientRealtimeInput {
    activityEnd?: ActivityEnd;
    activityStart?: ActivityStart;
    audio?: Blob_2;
    audioStreamEnd?: boolean;
    mediaChunks?: Blob_2[];
    text?: string;
    video?: Blob_2;
}

// @public
export interface LiveClientSetup {
    avatarConfig?: AvatarConfig;
    contextWindowCompression?: ContextWindowCompressionConfig;
    explicitVadSignal?: boolean;
    generationConfig?: GenerationConfig;
    inputAudioTranscription?: AudioTranscriptionConfig;
    model?: string;
    outputAudioTranscription?: AudioTranscriptionConfig;
    proactivity?: ProactivityConfig;
    realtimeInputConfig?: RealtimeInputConfig;
    safetySettings?: SafetySetting[];
    sessionResumption?: SessionResumptionConfig;
    systemInstruction?: ContentUnion;
    tools?: ToolListUnion;
}

// @public
export class LiveClientToolResponse {
    functionResponses?: FunctionResponse[];
}

// @public
export interface LiveConnectConfig {
    abortSignal?: AbortSignal;
    avatarConfig?: AvatarConfig;
    contextWindowCompression?: ContextWindowCompressionConfig;
    enableAffectiveDialog?: boolean;
    explicitVadSignal?: boolean;
    generationConfig?: GenerationConfig;
    httpOptions?: HttpOptions;
    inputAudioTranscription?: AudioTranscriptionConfig;
    maxOutputTokens?: number;
    mediaResolution?: MediaResolution;
    outputAudioTranscription?: AudioTranscriptionConfig;
    proactivity?: ProactivityConfig;
    realtimeInputConfig?: RealtimeInputConfig;
    responseModalities?: Modality[];
    safetySettings?: SafetySetting[];
    seed?: number;
    sessionResumption?: SessionResumptionConfig;
    speechConfig?: SpeechConfig;
    systemInstruction?: ContentUnion;
    temperature?: number;
    thinkingConfig?: ThinkingConfig;
    tools?: ToolListUnion;
    topK?: number;
    topP?: number;
}

// @public
export interface LiveConnectConstraints {
    config?: LiveConnectConfig;
    model?: string;
}

// @public
export interface LiveConnectParameters {
    callbacks: LiveCallbacks;
    config?: LiveConnectConfig;
    model: string;
}

// @public
export interface LiveMusicCallbacks {
    onclose?: ((e: CloseEvent) => void) | null;
    onerror?: ((e: ErrorEvent) => void) | null;
    onmessage: (e: LiveMusicServerMessage) => void;
}

// @public
export interface LiveMusicClientContent {
    weightedPrompts?: WeightedPrompt[];
}

// @public
export interface LiveMusicClientMessage {
    clientContent?: LiveMusicClientContent;
    musicGenerationConfig?: LiveMusicGenerationConfig;
    playbackControl?: LiveMusicPlaybackControl;
    setup?: LiveMusicClientSetup;
}

// @public
export interface LiveMusicClientSetup {
    model?: string;
}

// @public
export interface LiveMusicConnectParameters {
    callbacks: LiveMusicCallbacks;
    model: string;
}

// @public
export interface LiveMusicFilteredPrompt {
    filteredReason?: string;
    text?: string;
}

// @public
export interface LiveMusicGenerationConfig {
    bpm?: number;
    brightness?: number;
    density?: number;
    guidance?: number;
    musicGenerationMode?: MusicGenerationMode;
    muteBass?: boolean;
    muteDrums?: boolean;
    onlyBassAndDrums?: boolean;
    scale?: Scale;
    seed?: number;
    temperature?: number;
    topK?: number;
}

// @public
export enum LiveMusicPlaybackControl {
    PAUSE = "PAUSE",
    PLAY = "PLAY",
    PLAYBACK_CONTROL_UNSPECIFIED = "PLAYBACK_CONTROL_UNSPECIFIED",
    RESET_CONTEXT = "RESET_CONTEXT",
    STOP = "STOP"
}

// @public
export interface LiveMusicServerContent {
    audioChunks?: AudioChunk[];
}

// @public
export class LiveMusicServerMessage {
    get audioChunk(): AudioChunk | undefined;
    filteredPrompt?: LiveMusicFilteredPrompt;
    serverContent?: LiveMusicServerContent;
    setupComplete?: LiveMusicServerSetupComplete;
}

// @public
export interface LiveMusicServerSetupComplete {
}

// @public
export class LiveMusicSession {
    constructor(conn: WebSocket_2, apiClient: ApiClient);
    close(): void;
    // Warning: (ae-forgotten-export) The symbol "WebSocket_2" needs to be exported by the entry point index.d.ts
    //
    // (undocumented)
    readonly conn: WebSocket_2;
    pause(): void;
    play(): void;
    resetContext(): void;
    setMusicGenerationConfig(params: types.LiveMusicSetConfigParameters): Promise<void>;
    setWeightedPrompts(params: types.LiveMusicSetWeightedPromptsParameters): Promise<void>;
    stop(): void;
}

// @public
export interface LiveMusicSetConfigParameters {
    musicGenerationConfig: LiveMusicGenerationConfig;
}

// @public
export interface LiveMusicSetWeightedPromptsParameters {
    weightedPrompts: WeightedPrompt[];
}

// @public
export interface LiveMusicSourceMetadata {
    clientContent?: LiveMusicClientContent;
    musicGenerationConfig?: LiveMusicGenerationConfig;
}

// @public
export interface LiveSendClientContentParameters {
    turnComplete?: boolean;
    turns?: ContentListUnion;
}

// @public
export interface LiveSendRealtimeInputParameters {
    activityEnd?: ActivityEnd;
    activityStart?: ActivityStart;
    audio?: Blob_2;
    audioStreamEnd?: boolean;
    media?: BlobImageUnion;
    text?: string;
    video?: BlobImageUnion;
}

// @public
export class LiveSendToolResponseParameters {
    functionResponses: FunctionResponse[] | FunctionResponse;
}

// @public
export interface LiveServerContent {
    generationComplete?: boolean;
    groundingMetadata?: GroundingMetadata;
    inputTranscription?: Transcription;
    interrupted?: boolean;
    modelTurn?: Content;
    outputTranscription?: Transcription;
    turnComplete?: boolean;
    turnCompleteReason?: TurnCompleteReason;
    urlContextMetadata?: UrlContextMetadata;
    waitingForInput?: boolean;
}

// @public
export interface LiveServerGoAway {
    timeLeft?: string;
}

// @public
export class LiveServerMessage {
    get data(): string | undefined;
    goAway?: LiveServerGoAway;
    serverContent?: LiveServerContent;
    sessionResumptionUpdate?: LiveServerSessionResumptionUpdate;
    setupComplete?: LiveServerSetupComplete;
    get text(): string | undefined;
    toolCall?: LiveServerToolCall;
    toolCallCancellation?: LiveServerToolCallCancellation;
    usageMetadata?: UsageMetadata;
    voiceActivity?: VoiceActivity;
    voiceActivityDetectionSignal?: VoiceActivityDetectionSignal;
}

// @public
export interface LiveServerSessionResumptionUpdate {
    lastConsumedClientMessageIndex?: string;
    newHandle?: string;
    resumable?: boolean;
}

// @public
export interface LiveServerSetupComplete {
    sessionId?: string;
}

// @public
export interface LiveServerToolCall {
    functionCalls?: FunctionCall[];
}

// @public
export interface LiveServerToolCallCancellation {
    ids?: string[];
}

// @public
export interface LogprobsResult {
    chosenCandidates?: LogprobsResultCandidate[];
    logProbabilitySum?: number;
    topCandidates?: LogprobsResultTopCandidates[];
}

// @public
export interface LogprobsResultCandidate {
    logProbability?: number;
    token?: string;
    tokenId?: number;
}

// @public
export interface LogprobsResultTopCandidates {
    candidates?: LogprobsResultCandidate[];
}

// @public
export interface MaskReferenceConfig {
    maskDilation?: number;
    maskMode?: MaskReferenceMode;
    segmentationClasses?: number[];
}

// @public
export class MaskReferenceImage {
    config?: MaskReferenceConfig;
    referenceId?: number;
    referenceImage?: Image_2;
    referenceType?: string;
    toReferenceImageAPI(): ReferenceImageAPIInternal;
}

// @public
export enum MaskReferenceMode {
    // (undocumented)
    MASK_MODE_BACKGROUND = "MASK_MODE_BACKGROUND",
    // (undocumented)
    MASK_MODE_DEFAULT = "MASK_MODE_DEFAULT",
    // (undocumented)
    MASK_MODE_FOREGROUND = "MASK_MODE_FOREGROUND",
    // (undocumented)
    MASK_MODE_SEMANTIC = "MASK_MODE_SEMANTIC",
    // (undocumented)
    MASK_MODE_USER_PROVIDED = "MASK_MODE_USER_PROVIDED"
}

// @public
export interface McpServer {
    name?: string;
    streamableHttpTransport?: StreamableHttpTransport;
}

// @public
export function mcpToTool(...args: [...Client[], CallableToolConfig | Client]): CallableTool;

// @public
export enum MediaModality {
    AUDIO = "AUDIO",
    DOCUMENT = "DOCUMENT",
    IMAGE = "IMAGE",
    MODALITY_UNSPECIFIED = "MODALITY_UNSPECIFIED",
    TEXT = "TEXT",
    VIDEO = "VIDEO"
}

// @public
export enum MediaResolution {
    MEDIA_RESOLUTION_HIGH = "MEDIA_RESOLUTION_HIGH",
    MEDIA_RESOLUTION_LOW = "MEDIA_RESOLUTION_LOW",
    MEDIA_RESOLUTION_MEDIUM = "MEDIA_RESOLUTION_MEDIUM",
    MEDIA_RESOLUTION_UNSPECIFIED = "MEDIA_RESOLUTION_UNSPECIFIED"
}

// @public
export enum Modality {
    AUDIO = "AUDIO",
    IMAGE = "IMAGE",
    MODALITY_UNSPECIFIED = "MODALITY_UNSPECIFIED",
    TEXT = "TEXT",
    VIDEO = "VIDEO"
}

// @public
export interface ModalityTokenCount {
    modality?: MediaModality;
    tokenCount?: number;
}

// @public
export interface Model {
    checkpoints?: Checkpoint[];
    defaultCheckpointId?: string;
    description?: string;
    displayName?: string;
    endpoints?: Endpoint[];
    inputTokenLimit?: number;
    labels?: Record<string, string>;
    maxTemperature?: number;
    name?: string;
    outputTokenLimit?: number;
    supportedActions?: string[];
    temperature?: number;
    thinking?: boolean;
    topK?: number;
    topP?: number;
    tunedModelInfo?: TunedModelInfo;
    version?: string;
}

// @public
export interface ModelArmorConfig {
    promptTemplateName?: string;
    responseTemplateName?: string;
}

// @public (undocumented)
export class Models extends BaseModule {
    constructor(apiClient: ApiClient);
    computeTokens(params: types.ComputeTokensParameters): Promise<types.ComputeTokensResponse>;
    countTokens(params: types.CountTokensParameters): Promise<types.CountTokensResponse>;
    delete(params: types.DeleteModelParameters): Promise<types.DeleteModelResponse>;
    editImage: (params: types.EditImageParameters) => Promise<types.EditImageResponse>;
    embedContent: (params: types.EmbedContentParameters) => Promise<types.EmbedContentResponse>;
    generateContent: (params: types.GenerateContentParameters) => Promise<types.GenerateContentResponse>;
    generateContentStream: (params: types.GenerateContentParameters) => Promise<AsyncGenerator<types.GenerateContentResponse>>;
    generateImages: (params: types.GenerateImagesParameters) => Promise<types.GenerateImagesResponse>;
    generateVideos: (params: types.GenerateVideosParameters) => Promise<types.GenerateVideosOperation>;
    get(params: types.GetModelParameters): Promise<types.Model>;
    // (undocumented)
    list: (params?: types.ListModelsParameters) => Promise<Pager<types.Model>>;
    recontextImage(params: types.RecontextImageParameters): Promise<types.RecontextImageResponse>;
    segmentImage(params: types.SegmentImageParameters): Promise<types.SegmentImageResponse>;
    update(params: types.UpdateModelParameters): Promise<types.Model>;
    upscaleImage: (params: types.UpscaleImageParameters) => Promise<types.UpscaleImageResponse>;
}

// @public
export interface ModelSelectionConfig {
    featureSelectionPreference?: FeatureSelectionPreference;
}

// @public
export enum ModelStage {
    DEPRECATED = "DEPRECATED",
    EXPERIMENTAL = "EXPERIMENTAL",
    LEGACY = "LEGACY",
    MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
    PREVIEW = "PREVIEW",
    RETIRED = "RETIRED",
    STABLE = "STABLE",
    UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL"
}

// @public
export interface ModelStatus {
    message?: string;
    modelStage?: ModelStage;
    retirementTime?: string;
}

// @public
export interface MultiSpeakerVoiceConfig {
    speakerVoiceConfigs?: SpeakerVoiceConfig[];
}

// @public
export enum MusicGenerationMode {
    DIVERSITY = "DIVERSITY",
    MUSIC_GENERATION_MODE_UNSPECIFIED = "MUSIC_GENERATION_MODE_UNSPECIFIED",
    QUALITY = "QUALITY",
    VOCALIZATION = "VOCALIZATION"
}

// @public
export interface Operation<T> {
    done?: boolean;
    error?: Record<string, unknown>;
    _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
    metadata?: Record<string, unknown>;
    name?: string;
    response?: T;
}

// @public
export interface OperationFromAPIResponseParameters {
    apiResponse: Record<string, unknown>;
    _isVertexAI: boolean;
}

// @public
export interface OperationGetParameters<T, U extends Operation<T>> {
    config?: GetOperationConfig;
    operation: U;
}

// @public (undocumented)
export class Operations extends BaseModule {
    constructor(apiClient: ApiClient);
    get<T, U extends types.Operation<T>>(parameters: types.OperationGetParameters<T, U>): Promise<types.Operation<T>>;
    getVideosOperation(parameters: types.OperationGetParameters<types.GenerateVideosResponse, types.GenerateVideosOperation>): Promise<types.GenerateVideosOperation>;
}

// @public
export enum Outcome {
    OUTCOME_DEADLINE_EXCEEDED = "OUTCOME_DEADLINE_EXCEEDED",
    OUTCOME_FAILED = "OUTCOME_FAILED",
    OUTCOME_OK = "OUTCOME_OK",
    OUTCOME_UNSPECIFIED = "OUTCOME_UNSPECIFIED"
}

// @public
export interface OutputInfo {
    gcsOutputDirectory?: string;
}

// @public (undocumented)
export enum PagedItem {
    // (undocumented)
    PAGED_ITEM_BATCH_JOBS = "batchJobs",
    // (undocumented)
    PAGED_ITEM_CACHED_CONTENTS = "cachedContents",
    // (undocumented)
    PAGED_ITEM_DOCUMENTS = "documents",
    // (undocumented)
    PAGED_ITEM_FILE_SEARCH_STORES = "fileSearchStores",
    // (undocumented)
    PAGED_ITEM_FILES = "files",
    // (undocumented)
    PAGED_ITEM_MODELS = "models",
    // (undocumented)
    PAGED_ITEM_TUNING_JOBS = "tuningJobs"
}

// @public
export class Pager<T> implements AsyncIterable<T> {
    [Symbol.asyncIterator](): AsyncIterator<T>;
    constructor(name: PagedItem, request: (params: PagedItemConfig) => Promise<PagedItemResponse<T>>, response: PagedItemResponse<T>, params: PagedItemConfig);
    getItem(index: number): T;
    hasNextPage(): boolean;
    // (undocumented)
    protected idxInternal: number;
    get name(): PagedItem;
    nextPage(): Promise<T[]>;
    get page(): T[];
    get pageLength(): number;
    get pageSize(): number;
    get params(): PagedItemConfig;
    // Warning: (ae-forgotten-export) The symbol "PagedItemConfig" needs to be exported by the entry point index.d.ts
    // Warning: (ae-forgotten-export) The symbol "PagedItemResponse" needs to be exported by the entry point index.d.ts
    //
    // (undocumented)
    protected requestInternal: (params: PagedItemConfig) => Promise<PagedItemResponse<T>>;
    get sdkHttpResponse(): types.HttpResponse | undefined;
}

// @public
export enum PairwiseChoice {
    BASELINE = "BASELINE",
    CANDIDATE = "CANDIDATE",
    PAIRWISE_CHOICE_UNSPECIFIED = "PAIRWISE_CHOICE_UNSPECIFIED",
    TIE = "TIE"
}

// @public
export interface PairwiseMetricResult {
    customOutput?: CustomOutput;
    explanation?: string;
    pairwiseChoice?: PairwiseChoice;
}

// @public
export interface Part {
    codeExecutionResult?: CodeExecutionResult;
    executableCode?: ExecutableCode;
    fileData?: FileData;
    functionCall?: FunctionCall;
    functionResponse?: FunctionResponse;
    inlineData?: Blob_2;
    mediaResolution?: PartMediaResolution;
    partMetadata?: Record<string, unknown>;
    text?: string;
    thought?: boolean;
    thoughtSignature?: string;
    toolCall?: ToolCall;
    toolResponse?: ToolResponse;
    videoMetadata?: VideoMetadata;
}

// @public
export interface PartialArg {
    boolValue?: boolean;
    jsonPath?: string;
    nullValue?: 'NULL_VALUE';
    numberValue?: number;
    stringValue?: string;
    willContinue?: boolean;
}

// @public (undocumented)
export type PartListUnion = PartUnion[] | PartUnion;

// @public
export interface PartMediaResolution {
    level?: PartMediaResolutionLevel;
    numTokens?: number;
}

// @public
export enum PartMediaResolutionLevel {
    MEDIA_RESOLUTION_HIGH = "MEDIA_RESOLUTION_HIGH",
    MEDIA_RESOLUTION_LOW = "MEDIA_RESOLUTION_LOW",
    MEDIA_RESOLUTION_MEDIUM = "MEDIA_RESOLUTION_MEDIUM",
    MEDIA_RESOLUTION_ULTRA_HIGH = "MEDIA_RESOLUTION_ULTRA_HIGH",
    MEDIA_RESOLUTION_UNSPECIFIED = "MEDIA_RESOLUTION_UNSPECIFIED"
}

// @public
export interface PartnerModelTuningSpec {
    hyperParameters?: Record<string, unknown>;
    trainingDatasetUri?: string;
    validationDatasetUri?: string;
}

// @public (undocumented)
export type PartUnion = Part | string;

// @public
export enum PersonGeneration {
    ALLOW_ADULT = "ALLOW_ADULT",
    ALLOW_ALL = "ALLOW_ALL",
    DONT_ALLOW = "DONT_ALLOW"
}

// @public
export enum PhishBlockThreshold {
    BLOCK_HIGH_AND_ABOVE = "BLOCK_HIGH_AND_ABOVE",
    BLOCK_HIGHER_AND_ABOVE = "BLOCK_HIGHER_AND_ABOVE",
    BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
    BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
    BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH",
    BLOCK_VERY_HIGH_AND_ABOVE = "BLOCK_VERY_HIGH_AND_ABOVE",
    PHISH_BLOCK_THRESHOLD_UNSPECIFIED = "PHISH_BLOCK_THRESHOLD_UNSPECIFIED"
}

// @public
export interface PointwiseMetricResult {
    customOutput?: CustomOutput;
    explanation?: string;
    score?: number;
}

// @public
export interface PrebuiltVoiceConfig {
    voiceName?: string;
}

// @public
export interface PreferenceOptimizationDataStats {
    droppedExampleIndices?: string[];
    droppedExampleReasons?: string[];
    scoresDistribution?: DatasetDistribution;
    scoreVariancePerExampleDistribution?: DatasetDistribution;
    totalBillableTokenCount?: string;
    tuningDatasetExampleCount?: string;
    tuningStepCount?: string;
    userDatasetExamples?: GeminiPreferenceExample[];
    userInputTokenDistribution?: DatasetDistribution;
    userOutputTokenDistribution?: DatasetDistribution;
}

// @public
export interface PreferenceOptimizationHyperParameters {
    adapterSize?: AdapterSize;
    beta?: number;
    epochCount?: string;
    learningRateMultiplier?: number;
}

// @public
export interface PreferenceOptimizationSpec {
    exportLastCheckpointOnly?: boolean;
    hyperParameters?: PreferenceOptimizationHyperParameters;
    trainingDatasetUri?: string;
    validationDatasetUri?: string;
}

// @public
export interface PreTunedModel {
    baseModel?: string;
    checkpointId?: string;
    tunedModelName?: string;
}

// @public
export interface ProactivityConfig {
    proactiveAudio?: boolean;
}

// @public
export interface ProductImage {
    productImage?: Image_2;
}

// @public
export enum ProminentPeople {
    ALLOW_PROMINENT_PEOPLE = "ALLOW_PROMINENT_PEOPLE",
    BLOCK_PROMINENT_PEOPLE = "BLOCK_PROMINENT_PEOPLE",
    PROMINENT_PEOPLE_UNSPECIFIED = "PROMINENT_PEOPLE_UNSPECIFIED"
}

// @public
export interface RagChunk {
    pageSpan?: RagChunkPageSpan;
    text?: string;
}

// @public
export interface RagChunkPageSpan {
    firstPage?: number;
    lastPage?: number;
}

// @public
export interface RagRetrievalConfig {
    filter?: RagRetrievalConfigFilter;
    hybridSearch?: RagRetrievalConfigHybridSearch;
    ranking?: RagRetrievalConfigRanking;
    topK?: number;
}

// @public
export interface RagRetrievalConfigFilter {
    metadataFilter?: string;
    vectorDistanceThreshold?: number;
    vectorSimilarityThreshold?: number;
}

// @public
export interface RagRetrievalConfigHybridSearch {
    alpha?: number;
}

// @public
export interface RagRetrievalConfigRanking {
    llmRanker?: RagRetrievalConfigRankingLlmRanker;
    rankService?: RagRetrievalConfigRankingRankService;
}

// @public
export interface RagRetrievalConfigRankingLlmRanker {
    modelName?: string;
}

// @public
export interface RagRetrievalConfigRankingRankService {
    modelName?: string;
}

// @public
export interface RawOutput {
    rawOutput?: string[];
}

// @public
export class RawReferenceImage {
    referenceId?: number;
    referenceImage?: Image_2;
    referenceType?: string;
    toReferenceImageAPI(): ReferenceImageAPIInternal;
}

// @public
export interface RealtimeInputConfig {
    activityHandling?: ActivityHandling;
    automaticActivityDetection?: AutomaticActivityDetection;
    turnCoverage?: TurnCoverage;
}

// @public
export interface RecontextImageConfig {
    abortSignal?: AbortSignal;
    addWatermark?: boolean;
    baseSteps?: number;
    enhancePrompt?: boolean;
    httpOptions?: HttpOptions;
    labels?: Record<string, string>;
    numberOfImages?: number;
    outputCompressionQuality?: number;
    outputGcsUri?: string;
    outputMimeType?: string;
    personGeneration?: PersonGeneration;
    safetyFilterLevel?: SafetyFilterLevel;
    seed?: number;
}

// @public
export interface RecontextImageParameters {
    config?: RecontextImageConfig;
    model: string;
    source: RecontextImageSource;
}

// @public
export class RecontextImageResponse {
    generatedImages?: GeneratedImage[];
}

// @public
export interface RecontextImageSource {
    personImage?: Image_2;
    productImages?: ProductImage[];
    prompt?: string;
}

// @public (undocumented)
export type ReferenceImage = RawReferenceImage | MaskReferenceImage | ControlReferenceImage | StyleReferenceImage | SubjectReferenceImage | ContentReferenceImage;

// @public
export interface RegisterFilesConfig {
    abortSignal?: AbortSignal;
    httpOptions?: HttpOptions;
}

// @public
export interface RegisterFilesParameters {
    auth?: any;
    config?: RegisterFilesConfig;
    uris: string[];
}

// @public
export class RegisterFilesResponse {
    files?: File_2[];
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface ReplayFile {
    // (undocumented)
    interactions?: ReplayInteraction[];
    // (undocumented)
    replayId?: string;
}

// @public
export interface ReplayInteraction {
    // (undocumented)
    request?: ReplayRequest;
    // (undocumented)
    response?: ReplayResponse;
}

// @public
export interface ReplayRequest {
    // (undocumented)
    bodySegments?: Record<string, unknown>[];
    // (undocumented)
    headers?: Record<string, string>;
    // (undocumented)
    method?: string;
    // (undocumented)
    url?: string;
}

// @public
export class ReplayResponse {
    // (undocumented)
    bodySegments?: Record<string, unknown>[];
    // (undocumented)
    headers?: Record<string, string>;
    // (undocumented)
    sdkResponseSegments?: Record<string, unknown>[];
    // (undocumented)
    statusCode?: number;
}

// @public
export interface ReplicatedVoiceConfig {
    mimeType?: string;
    voiceSampleAudio?: string;
}

// @public
export enum ResourceScope {
    COLLECTION = "COLLECTION"
}

// @public
export interface Retrieval {
    disableAttribution?: boolean;
    externalApi?: ExternalApi;
    vertexAiSearch?: VertexAISearch;
    vertexRagStore?: VertexRagStore;
}

// @public
export interface RetrievalConfig {
    languageCode?: string;
    latLng?: LatLng;
}

// @public
export interface RetrievalMetadata {
    googleSearchDynamicRetrievalScore?: number;
}

// @public
export interface RougeMetricValue {
    score?: number;
}

// @public
export interface SafetyAttributes {
    categories?: string[];
    contentType?: string;
    scores?: number[];
}

// @public
export enum SafetyFilterLevel {
    // (undocumented)
    BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
    // (undocumented)
    BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
    // (undocumented)
    BLOCK_NONE = "BLOCK_NONE",
    // (undocumented)
    BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH"
}

// @public
export interface SafetyRating {
    blocked?: boolean;
    category?: HarmCategory;
    overwrittenThreshold?: HarmBlockThreshold;
    probability?: HarmProbability;
    probabilityScore?: number;
    severity?: HarmSeverity;
    severityScore?: number;
}

// @public
export interface SafetySetting {
    category?: HarmCategory;
    method?: HarmBlockMethod;
    threshold?: HarmBlockThreshold;
}

// @public
export enum Scale {
    A_FLAT_MAJOR_F_MINOR = "A_FLAT_MAJOR_F_MINOR",
    A_MAJOR_G_FLAT_MINOR = "A_MAJOR_G_FLAT_MINOR",
    B_FLAT_MAJOR_G_MINOR = "B_FLAT_MAJOR_G_MINOR",
    B_MAJOR_A_FLAT_MINOR = "B_MAJOR_A_FLAT_MINOR",
    C_MAJOR_A_MINOR = "C_MAJOR_A_MINOR",
    D_FLAT_MAJOR_B_FLAT_MINOR = "D_FLAT_MAJOR_B_FLAT_MINOR",
    D_MAJOR_B_MINOR = "D_MAJOR_B_MINOR",
    E_FLAT_MAJOR_C_MINOR = "E_FLAT_MAJOR_C_MINOR",
    E_MAJOR_D_FLAT_MINOR = "E_MAJOR_D_FLAT_MINOR",
    F_MAJOR_D_MINOR = "F_MAJOR_D_MINOR",
    G_FLAT_MAJOR_E_FLAT_MINOR = "G_FLAT_MAJOR_E_FLAT_MINOR",
    G_MAJOR_E_MINOR = "G_MAJOR_E_MINOR",
    SCALE_UNSPECIFIED = "SCALE_UNSPECIFIED"
}

// @public
export interface Schema {
    anyOf?: Schema[];
    default?: unknown;
    description?: string;
    enum?: string[];
    example?: unknown;
    format?: string;
    items?: Schema;
    maximum?: number;
    maxItems?: string;
    maxLength?: string;
    maxProperties?: string;
    minimum?: number;
    minItems?: string;
    minLength?: string;
    minProperties?: string;
    nullable?: boolean;
    pattern?: string;
    properties?: Record<string, Schema>;
    propertyOrdering?: string[];
    required?: string[];
    title?: string;
    type?: Type;
}

// @public (undocumented)
export type SchemaUnion = Schema | unknown;

// @public
export interface ScribbleImage {
    image?: Image_2;
}

// @public
export interface SearchEntryPoint {
    renderedContent?: string;
    sdkBlob?: string;
}

// @public
export interface SearchTypes {
    imageSearch?: ImageSearch;
    webSearch?: WebSearch;
}

// @public
export interface Segment {
    endIndex?: number;
    partIndex?: number;
    startIndex?: number;
    text?: string;
}

// @public
export interface SegmentImageConfig {
    abortSignal?: AbortSignal;
    binaryColorThreshold?: number;
    confidenceThreshold?: number;
    httpOptions?: HttpOptions;
    labels?: Record<string, string>;
    maskDilation?: number;
    maxPredictions?: number;
    mode?: SegmentMode;
}

// @public
export interface SegmentImageParameters {
    config?: SegmentImageConfig;
    model: string;
    source: SegmentImageSource;
}

// @public
export class SegmentImageResponse {
    generatedMasks?: GeneratedImageMask[];
}

// @public
export interface SegmentImageSource {
    image?: Image_2;
    prompt?: string;
    scribbleImage?: ScribbleImage;
}

// @public
export enum SegmentMode {
    // (undocumented)
    BACKGROUND = "BACKGROUND",
    // (undocumented)
    FOREGROUND = "FOREGROUND",
    // (undocumented)
    INTERACTIVE = "INTERACTIVE",
    // (undocumented)
    PROMPT = "PROMPT",
    // (undocumented)
    SEMANTIC = "SEMANTIC"
}

// @public
export interface SendMessageParameters {
    config?: GenerateContentConfig;
    message: PartListUnion;
}

// @public
export enum ServiceTier {
    FLEX = "flex",
    PRIORITY = "priority",
    STANDARD = "standard",
    UNSPECIFIED = "unspecified"
}

// @public
export class Session {
    constructor(conn: WebSocket_2, apiClient: ApiClient);
    close(): void;
    // (undocumented)
    readonly conn: WebSocket_2;
    sendClientContent(params: types.LiveSendClientContentParameters): void;
    sendRealtimeInput(params: types.LiveSendRealtimeInputParameters): void;
    sendToolResponse(params: types.LiveSendToolResponseParameters): void;
}

// @public
export interface SessionResumptionConfig {
    handle?: string;
    transparent?: boolean;
}

// @public
export function setDefaultBaseUrls(baseUrlParams: BaseUrlParameters): void;

// @public
export class SingleEmbedContentResponse {
    embedding?: ContentEmbedding;
    tokenCount?: string;
}

// @public
export interface SlidingWindow {
    targetTokens?: string;
}

// @public
export interface SpeakerVoiceConfig {
    speaker?: string;
    voiceConfig?: VoiceConfig;
}

// @public
export interface SpeechConfig {
    languageCode?: string;
    multiSpeakerVoiceConfig?: MultiSpeakerVoiceConfig;
    voiceConfig?: VoiceConfig;
}

// @public (undocumented)
export type SpeechConfigUnion = SpeechConfig | string;

// @public
export enum StartSensitivity {
    START_SENSITIVITY_HIGH = "START_SENSITIVITY_HIGH",
    START_SENSITIVITY_LOW = "START_SENSITIVITY_LOW",
    START_SENSITIVITY_UNSPECIFIED = "START_SENSITIVITY_UNSPECIFIED"
}

// @public
export interface StreamableHttpTransport {
    headers?: Record<string, string>;
    sseReadTimeout?: string;
    terminateOnClose?: boolean;
    timeout?: string;
    url?: string;
}

// @public
export interface StringList {
    values?: string[];
}

// @public
export interface StyleReferenceConfig {
    styleDescription?: string;
}

// @public
export class StyleReferenceImage {
    config?: StyleReferenceConfig;
    referenceId?: number;
    referenceImage?: Image_2;
    referenceType?: string;
    toReferenceImageAPI(): ReferenceImageAPIInternal;
}

// @public
export interface SubjectReferenceConfig {
    subjectDescription?: string;
    subjectType?: SubjectReferenceType;
}

// @public
export class SubjectReferenceImage {
    config?: SubjectReferenceConfig;
    referenceId?: number;
    referenceImage?: Image_2;
    referenceType?: string;
    // (undocumented)
    toReferenceImageAPI(): ReferenceImageAPIInternal;
}

// @public
export enum SubjectReferenceType {
    // (undocumented)
    SUBJECT_TYPE_ANIMAL = "SUBJECT_TYPE_ANIMAL",
    // (undocumented)
    SUBJECT_TYPE_DEFAULT = "SUBJECT_TYPE_DEFAULT",
    // (undocumented)
    SUBJECT_TYPE_PERSON = "SUBJECT_TYPE_PERSON",
    // (undocumented)
    SUBJECT_TYPE_PRODUCT = "SUBJECT_TYPE_PRODUCT"
}

// @public
export interface SupervisedHyperParameters {
    adapterSize?: AdapterSize;
    batchSize?: string;
    epochCount?: string;
    learningRate?: number;
    learningRateMultiplier?: number;
}

// @public
export interface SupervisedTuningDatasetDistribution {
    billableSum?: string;
    buckets?: SupervisedTuningDatasetDistributionDatasetBucket[];
    max?: number;
    mean?: number;
    median?: number;
    min?: number;
    p5?: number;
    p95?: number;
    sum?: string;
}

// @public
export interface SupervisedTuningDatasetDistributionDatasetBucket {
    count?: number;
    left?: number;
    right?: number;
}

// @public
export interface SupervisedTuningDataStats {
    droppedExampleReasons?: string[];
    totalBillableCharacterCount?: string;
    totalBillableTokenCount?: string;
    totalTruncatedExampleCount?: string;
    totalTuningCharacterCount?: string;
    truncatedExampleIndices?: string[];
    tuningDatasetExampleCount?: string;
    tuningStepCount?: string;
    userDatasetExamples?: Content[];
    userInputTokenDistribution?: SupervisedTuningDatasetDistribution;
    userMessagePerExampleDistribution?: SupervisedTuningDatasetDistribution;
    userOutputTokenDistribution?: SupervisedTuningDatasetDistribution;
}

// @public
export interface SupervisedTuningSpec {
    exportLastCheckpointOnly?: boolean;
    hyperParameters?: SupervisedHyperParameters;
    trainingDatasetUri?: string;
    tuningMode?: TuningMode;
    validationDatasetUri?: string;
}

// @public (undocumented)
export interface TestTableFile {
    // (undocumented)
    comment?: string;
    // (undocumented)
    parameterNames?: string[];
    // (undocumented)
    testMethod?: string;
    // (undocumented)
    testTable?: TestTableItem[];
}

// @public (undocumented)
export interface TestTableItem {
    exceptionIfMldev?: string;
    exceptionIfVertex?: string;
    hasUnion?: boolean;
    ignoreKeys?: string[];
    name?: string;
    overrideReplayId?: string;
    parameters?: Record<string, unknown>;
    skipInApiMode?: string;
}

// @public
export interface ThinkingConfig {
    includeThoughts?: boolean;
    thinkingBudget?: number;
    thinkingLevel?: ThinkingLevel;
}

// @public
export enum ThinkingLevel {
    HIGH = "HIGH",
    LOW = "LOW",
    MEDIUM = "MEDIUM",
    MINIMAL = "MINIMAL",
    THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED"
}

// @public (undocumented)
export class Tokens extends BaseModule {
    constructor(apiClient: ApiClient);
    create(params: types.CreateAuthTokenParameters): Promise<types.AuthToken>;
}

// @public
export interface TokensInfo {
    role?: string;
    tokenIds?: string[];
    tokens?: string[];
}

// @public
export interface Tool {
    codeExecution?: ToolCodeExecution;
    computerUse?: ComputerUse;
    enterpriseWebSearch?: EnterpriseWebSearch;
    fileSearch?: FileSearch;
    functionDeclarations?: FunctionDeclaration[];
    googleMaps?: GoogleMaps;
    googleSearch?: GoogleSearch;
    googleSearchRetrieval?: GoogleSearchRetrieval;
    mcpServers?: McpServer[];
    parallelAiSearch?: ToolParallelAiSearch;
    retrieval?: Retrieval;
    urlContext?: UrlContext;
}

// @public
export interface ToolCall {
    args?: Record<string, unknown>;
    id?: string;
    toolType?: ToolType;
}

// @public
export interface ToolCodeExecution {
}

// @public
export interface ToolConfig {
    functionCallingConfig?: FunctionCallingConfig;
    includeServerSideToolInvocations?: boolean;
    retrievalConfig?: RetrievalConfig;
}

// @public (undocumented)
export type ToolListUnion = ToolUnion[];

// @public
export interface ToolParallelAiSearch {
    apiKey?: string;
    customConfigs?: Record<string, unknown>;
}

// @public
export class ToolResponse {
    id?: string;
    response?: Record<string, unknown>;
    toolType?: ToolType;
}

// @public
export enum ToolType {
    FILE_SEARCH = "FILE_SEARCH",
    GOOGLE_MAPS = "GOOGLE_MAPS",
    GOOGLE_SEARCH_IMAGE = "GOOGLE_SEARCH_IMAGE",
    GOOGLE_SEARCH_WEB = "GOOGLE_SEARCH_WEB",
    TOOL_TYPE_UNSPECIFIED = "TOOL_TYPE_UNSPECIFIED",
    URL_CONTEXT = "URL_CONTEXT"
}

// @public (undocumented)
export type ToolUnion = Tool | CallableTool;

// @public
export enum TrafficType {
    ON_DEMAND = "ON_DEMAND",
    ON_DEMAND_FLEX = "ON_DEMAND_FLEX",
    ON_DEMAND_PRIORITY = "ON_DEMAND_PRIORITY",
    PROVISIONED_THROUGHPUT = "PROVISIONED_THROUGHPUT",
    TRAFFIC_TYPE_UNSPECIFIED = "TRAFFIC_TYPE_UNSPECIFIED"
}

// @public
export interface Transcription {
    finished?: boolean;
    text?: string;
}

// @public
export interface TunedModel {
    checkpoints?: TunedModelCheckpoint[];
    endpoint?: string;
    model?: string;
}

// @public
export interface TunedModelCheckpoint {
    checkpointId?: string;
    endpoint?: string;
    epoch?: string;
    step?: string;
}

// @public
export interface TunedModelInfo {
    baseModel?: string;
    createTime?: string;
    updateTime?: string;
}

// @public
export interface TuningDataset {
    examples?: TuningExample[];
    gcsUri?: string;
    vertexDatasetResource?: string;
}

// @public
export interface TuningDataStats {
    distillationDataStats?: DistillationDataStats;
    preferenceOptimizationDataStats?: PreferenceOptimizationDataStats;
    supervisedTuningDataStats?: SupervisedTuningDataStats;
}

// @public
export interface TuningExample {
    output?: string;
    textInput?: string;
}

// @public
export interface TuningJob {
    baseModel?: string;
    createTime?: string;
    customBaseModel?: string;
    description?: string;
    distillationSamplingSpec?: DistillationSamplingSpec;
    distillationSpec?: DistillationSpec;
    encryptionSpec?: EncryptionSpec;
    endTime?: string;
    error?: GoogleRpcStatus;
    evaluateDatasetRuns?: EvaluateDatasetRun[];
    experiment?: string;
    fullFineTuningSpec?: FullFineTuningSpec;
    labels?: Record<string, string>;
    name?: string;
    outputUri?: string;
    partnerModelTuningSpec?: PartnerModelTuningSpec;
    pipelineJob?: string;
    preferenceOptimizationSpec?: PreferenceOptimizationSpec;
    preTunedModel?: PreTunedModel;
    sdkHttpResponse?: HttpResponse;
    serviceAccount?: string;
    startTime?: string;
    state?: JobState;
    supervisedTuningSpec?: SupervisedTuningSpec;
    tunedModel?: TunedModel;
    tunedModelDisplayName?: string;
    tuningDataStats?: TuningDataStats;
    tuningJobMetadata?: TuningJobMetadata;
    tuningJobState?: TuningJobState;
    updateTime?: string;
    veoTuningSpec?: VeoTuningSpec;
}

// @public
export interface TuningJobMetadata {
    completedEpochCount?: string;
    completedStepCount?: string;
}

// @public
export enum TuningJobState {
    TUNING_JOB_STATE_POST_PROCESSING = "TUNING_JOB_STATE_POST_PROCESSING",
    TUNING_JOB_STATE_PROCESSING_DATASET = "TUNING_JOB_STATE_PROCESSING_DATASET",
    TUNING_JOB_STATE_TUNING = "TUNING_JOB_STATE_TUNING",
    TUNING_JOB_STATE_UNSPECIFIED = "TUNING_JOB_STATE_UNSPECIFIED",
    TUNING_JOB_STATE_WAITING_FOR_CAPACITY = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY",
    TUNING_JOB_STATE_WAITING_FOR_QUOTA = "TUNING_JOB_STATE_WAITING_FOR_QUOTA"
}

// @public
export enum TuningMethod {
    DISTILLATION = "DISTILLATION",
    PREFERENCE_TUNING = "PREFERENCE_TUNING",
    SUPERVISED_FINE_TUNING = "SUPERVISED_FINE_TUNING"
}

// @public
export enum TuningMode {
    TUNING_MODE_FULL = "TUNING_MODE_FULL",
    TUNING_MODE_PEFT_ADAPTER = "TUNING_MODE_PEFT_ADAPTER",
    TUNING_MODE_UNSPECIFIED = "TUNING_MODE_UNSPECIFIED"
}

// @public
export interface TuningOperation {
    done?: boolean;
    error?: Record<string, unknown>;
    metadata?: Record<string, unknown>;
    name?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export enum TuningTask {
    TUNING_TASK_I2V = "TUNING_TASK_I2V",
    TUNING_TASK_R2V = "TUNING_TASK_R2V",
    TUNING_TASK_T2V = "TUNING_TASK_T2V",
    TUNING_TASK_UNSPECIFIED = "TUNING_TASK_UNSPECIFIED"
}

// @public (undocumented)
export interface TuningValidationDataset {
    gcsUri?: string;
    vertexDatasetResource?: string;
}

// @public
export enum TurnCompleteReason {
    BLOCKLIST = "BLOCKLIST",
    GENERATED_AUDIO_SAFETY = "GENERATED_AUDIO_SAFETY",
    GENERATED_CONTENT_BLOCKLIST = "GENERATED_CONTENT_BLOCKLIST",
    GENERATED_CONTENT_PROHIBITED = "GENERATED_CONTENT_PROHIBITED",
    GENERATED_CONTENT_SAFETY = "GENERATED_CONTENT_SAFETY",
    GENERATED_IMAGE_CELEBRITY = "GENERATED_IMAGE_CELEBRITY",
    GENERATED_IMAGE_IDENTIFIABLE_PEOPLE = "GENERATED_IMAGE_IDENTIFIABLE_PEOPLE",
    GENERATED_IMAGE_MINORS = "GENERATED_IMAGE_MINORS",
    GENERATED_IMAGE_PROHIBITED = "GENERATED_IMAGE_PROHIBITED",
    GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER = "GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER",
    GENERATED_IMAGE_SAFETY = "GENERATED_IMAGE_SAFETY",
    GENERATED_OTHER = "GENERATED_OTHER",
    GENERATED_VIDEO_SAFETY = "GENERATED_VIDEO_SAFETY",
    IMAGE_PROHIBITED_INPUT_CONTENT = "IMAGE_PROHIBITED_INPUT_CONTENT",
    INPUT_IMAGE_CELEBRITY = "INPUT_IMAGE_CELEBRITY",
    INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED = "INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED",
    INPUT_IP_PROHIBITED = "INPUT_IP_PROHIBITED",
    INPUT_OTHER = "INPUT_OTHER",
    INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED = "INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED",
    INPUT_TEXT_NCII_PROHIBITED = "INPUT_TEXT_NCII_PROHIBITED",
    MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
    MAX_REGENERATION_REACHED = "MAX_REGENERATION_REACHED",
    NEED_MORE_INPUT = "NEED_MORE_INPUT",
    OUTPUT_IMAGE_IP_PROHIBITED = "OUTPUT_IMAGE_IP_PROHIBITED",
    PROHIBITED_INPUT_CONTENT = "PROHIBITED_INPUT_CONTENT",
    RESPONSE_REJECTED = "RESPONSE_REJECTED",
    TURN_COMPLETE_REASON_UNSPECIFIED = "TURN_COMPLETE_REASON_UNSPECIFIED",
    UNSAFE_PROMPT_FOR_IMAGE_GENERATION = "UNSAFE_PROMPT_FOR_IMAGE_GENERATION"
}

// @public
export enum TurnCoverage {
    TURN_COVERAGE_UNSPECIFIED = "TURN_COVERAGE_UNSPECIFIED",
    TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
    TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO",
    TURN_INCLUDES_ONLY_ACTIVITY = "TURN_INCLUDES_ONLY_ACTIVITY"
}

// @public
export enum Type {
    ARRAY = "ARRAY",
    BOOLEAN = "BOOLEAN",
    INTEGER = "INTEGER",
    NULL = "NULL",
    NUMBER = "NUMBER",
    OBJECT = "OBJECT",
    STRING = "STRING",
    TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED"
}

// @public
export interface UpdateCachedContentConfig {
    abortSignal?: AbortSignal;
    expireTime?: string;
    httpOptions?: HttpOptions;
    ttl?: string;
}

// @public (undocumented)
export interface UpdateCachedContentParameters {
    config?: UpdateCachedContentConfig;
    name: string;
}

// @public
export interface UpdateModelConfig {
    abortSignal?: AbortSignal;
    // (undocumented)
    defaultCheckpointId?: string;
    // (undocumented)
    description?: string;
    // (undocumented)
    displayName?: string;
    httpOptions?: HttpOptions;
}

// @public
export interface UpdateModelParameters {
    // (undocumented)
    config?: UpdateModelConfig;
    // (undocumented)
    model: string;
}

// @public
export interface UploadFileConfig {
    abortSignal?: AbortSignal;
    displayName?: string;
    httpOptions?: HttpOptions;
    mimeType?: string;
    name?: string;
}

// @public
export interface UploadFileParameters {
    config?: UploadFileConfig;
    file: string | globalThis.Blob;
}

// @public
export interface UploadToFileSearchStoreConfig {
    abortSignal?: AbortSignal;
    chunkingConfig?: ChunkingConfig;
    customMetadata?: CustomMetadata[];
    displayName?: string;
    httpOptions?: HttpOptions;
    mimeType?: string;
}

// @public
export class UploadToFileSearchStoreOperation implements Operation<UploadToFileSearchStoreResponse> {
    done?: boolean;
    error?: Record<string, unknown>;
    _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
    metadata?: Record<string, unknown>;
    name?: string;
    response?: UploadToFileSearchStoreResponse;
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface UploadToFileSearchStoreParameters {
    config?: UploadToFileSearchStoreConfig;
    fileSearchStoreName: string;
}

// @public
export interface UploadToFileSearchStoreParameters {
    config?: UploadToFileSearchStoreConfig;
    file: string | globalThis.Blob;
    fileSearchStoreName: string;
}

// @public
export class UploadToFileSearchStoreResponse {
    documentName?: string;
    parent?: string;
    sdkHttpResponse?: HttpResponse;
}

// @public
export class UploadToFileSearchStoreResumableResponse {
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface UpscaleImageConfig {
    abortSignal?: AbortSignal;
    enhanceInputImage?: boolean;
    httpOptions?: HttpOptions;
    imagePreservationFactor?: number;
    includeRaiReason?: boolean;
    labels?: Record<string, string>;
    outputCompressionQuality?: number;
    outputGcsUri?: string;
    outputMimeType?: string;
    personGeneration?: PersonGeneration;
    safetyFilterLevel?: SafetyFilterLevel;
}

// @public
export interface UpscaleImageParameters {
    config?: UpscaleImageConfig;
    image: Image_2;
    model: string;
    upscaleFactor: string;
}

// @public (undocumented)
export class UpscaleImageResponse {
    generatedImages?: GeneratedImage[];
    sdkHttpResponse?: HttpResponse;
}

// @public
export interface UrlContext {
}

// @public
export interface UrlContextMetadata {
    urlMetadata?: UrlMetadata[];
}

// @public
export interface UrlMetadata {
    retrievedUrl?: string;
    urlRetrievalStatus?: UrlRetrievalStatus;
}

// @public
export enum UrlRetrievalStatus {
    URL_RETRIEVAL_STATUS_ERROR = "URL_RETRIEVAL_STATUS_ERROR",
    URL_RETRIEVAL_STATUS_PAYWALL = "URL_RETRIEVAL_STATUS_PAYWALL",
    URL_RETRIEVAL_STATUS_SUCCESS = "URL_RETRIEVAL_STATUS_SUCCESS",
    URL_RETRIEVAL_STATUS_UNSAFE = "URL_RETRIEVAL_STATUS_UNSAFE",
    URL_RETRIEVAL_STATUS_UNSPECIFIED = "URL_RETRIEVAL_STATUS_UNSPECIFIED"
}

// @public
export interface UsageMetadata {
    cachedContentTokenCount?: number;
    cacheTokensDetails?: ModalityTokenCount[];
    promptTokenCount?: number;
    promptTokensDetails?: ModalityTokenCount[];
    responseTokenCount?: number;
    responseTokensDetails?: ModalityTokenCount[];
    thoughtsTokenCount?: number;
    toolUsePromptTokenCount?: number;
    toolUsePromptTokensDetails?: ModalityTokenCount[];
    totalTokenCount?: number;
    trafficType?: TrafficType;
}

// @public
export enum VadSignalType {
    VAD_SIGNAL_TYPE_EOS = "VAD_SIGNAL_TYPE_EOS",
    VAD_SIGNAL_TYPE_SOS = "VAD_SIGNAL_TYPE_SOS",
    VAD_SIGNAL_TYPE_UNSPECIFIED = "VAD_SIGNAL_TYPE_UNSPECIFIED"
}

// @public
export interface VeoHyperParameters {
    epochCount?: string;
    learningRateMultiplier?: number;
    tuningTask?: TuningTask;
    veoDataMixtureRatio?: number;
}

// @public
export interface VeoTuningSpec {
    hyperParameters?: VeoHyperParameters;
    trainingDatasetUri?: string;
    validationDatasetUri?: string;
}

// @public
export interface VertexAISearch {
    datastore?: string;
    dataStoreSpecs?: VertexAISearchDataStoreSpec[];
    engine?: string;
    filter?: string;
    maxResults?: number;
}

// @public
export interface VertexAISearchDataStoreSpec {
    dataStore?: string;
    filter?: string;
}

// @public
export interface VertexRagStore {
    ragCorpora?: string[];
    ragResources?: VertexRagStoreRagResource[];
    ragRetrievalConfig?: RagRetrievalConfig;
    similarityTopK?: number;
    storeContext?: boolean;
    vectorDistanceThreshold?: number;
}

// @public
export interface VertexRagStoreRagResource {
    ragCorpus?: string;
    ragFileIds?: string[];
}

// @public
export interface Video {
    mimeType?: string;
    uri?: string;
    videoBytes?: string;
}

// @public
export enum VideoCompressionQuality {
    LOSSLESS = "LOSSLESS",
    OPTIMIZED = "OPTIMIZED"
}

// @public
export interface VideoGenerationMask {
    image?: Image_2;
    maskMode?: VideoGenerationMaskMode;
}

// @public
export enum VideoGenerationMaskMode {
    INSERT = "INSERT",
    OUTPAINT = "OUTPAINT",
    REMOVE = "REMOVE",
    REMOVE_STATIC = "REMOVE_STATIC"
}

// @public
export interface VideoGenerationReferenceImage {
    image?: Image_2;
    referenceType?: VideoGenerationReferenceType;
}

// @public
export enum VideoGenerationReferenceType {
    ASSET = "ASSET",
    STYLE = "STYLE"
}

// @public
export interface VideoMetadata {
    endOffset?: string;
    fps?: number;
    startOffset?: string;
}

// @public
export interface VoiceActivity {
    voiceActivityType?: VoiceActivityType;
}

// @public (undocumented)
export interface VoiceActivityDetectionSignal {
    vadSignalType?: VadSignalType;
}

// @public
export enum VoiceActivityType {
    ACTIVITY_END = "ACTIVITY_END",
    ACTIVITY_START = "ACTIVITY_START",
    TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED"
}

// @public
export interface VoiceConfig {
    prebuiltVoiceConfig?: PrebuiltVoiceConfig;
    replicatedVoiceConfig?: ReplicatedVoiceConfig;
}

// @public
export interface WebSearch {
}

// @public
export interface WeightedPrompt {
    text?: string;
    weight?: number;
}

// @public
export interface WhiteSpaceConfig {
    maxOverlapTokens?: number;
    maxTokensPerChunk?: number;
}

// (No @packageDocumentation comment for this package)