import { z } from 'zod'; /** * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * ReflectionRegisterSchema is the payload for the 'register' method. */ declare const ReflectionRegisterParamsSchema: z.ZodObject<{ id: z.ZodString; pid: z.ZodNumber; name: z.ZodOptional; genkitVersion: z.ZodOptional; reflectionApiSpecVersion: z.ZodOptional; envs: z.ZodOptional>; /** Value of GENKIT_REFLECTION_SECRET_TOKEN, when the runtime has one. */ secret: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; pid: number; name?: string | undefined; genkitVersion?: string | undefined; reflectionApiSpecVersion?: number | undefined; envs?: string[] | undefined; secret?: string | undefined; }, { id: string; pid: number; name?: string | undefined; genkitVersion?: string | undefined; reflectionApiSpecVersion?: number | undefined; envs?: string[] | undefined; secret?: string | undefined; }>; type ReflectionRegisterParams = z.infer; /** * ReflectionStreamChunkSchema is the payload for the 'streamChunk' method. */ declare const ReflectionStreamChunkParamsSchema: z.ZodObject<{ requestId: z.ZodString; chunk: z.ZodAny; }, "strip", z.ZodTypeAny, { requestId: string; chunk?: any; }, { requestId: string; chunk?: any; }>; type ReflectionStreamChunkParams = z.infer; /** * ReflectionRunActionStateSchema is the payload for the 'runActionState' method. */ declare const ReflectionRunActionStateParamsSchema: z.ZodObject<{ requestId: z.ZodString; state: z.ZodOptional; }, "strip", z.ZodTypeAny, { traceId?: string | undefined; }, { traceId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { requestId: string; state?: { traceId?: string | undefined; } | undefined; }, { requestId: string; state?: { traceId?: string | undefined; } | undefined; }>; type ReflectionRunActionStateParams = z.infer; /** * ReflectionConfigureSchema is the payload for the 'configure' method. */ declare const ReflectionConfigureParamsSchema: z.ZodObject<{ telemetryServerUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { telemetryServerUrl?: string | undefined; }, { telemetryServerUrl?: string | undefined; }>; type ReflectionConfigureParams = z.infer; /** * ReflectionListValuesSchema is the payload for the 'listValues' method. */ declare const ReflectionListValuesParamsSchema: z.ZodObject<{ type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; }, { type: string; }>; type ReflectionListValuesParams = z.infer; /** * ReflectionRunActionSchema is the payload for the 'runAction' method. */ declare const ReflectionRunActionParamsSchema: z.ZodObject<{ key: z.ZodString; input: z.ZodOptional; init: z.ZodOptional; context: z.ZodOptional; telemetryLabels: z.ZodOptional>; stream: z.ZodOptional; streamInput: z.ZodOptional; }, "strip", z.ZodTypeAny, { key: string; context?: any; init?: any; input?: any; stream?: boolean | undefined; telemetryLabels?: Record | undefined; streamInput?: boolean | undefined; }, { key: string; context?: any; init?: any; input?: any; stream?: boolean | undefined; telemetryLabels?: Record | undefined; streamInput?: boolean | undefined; }>; type ReflectionRunActionParams = z.infer; /** * ReflectionCancelActionSchema is the payload for the 'cancelAction' method. */ declare const ReflectionCancelActionParamsSchema: z.ZodObject<{ traceId: z.ZodString; }, "strip", z.ZodTypeAny, { traceId: string; }, { traceId: string; }>; type ReflectionCancelActionParams = z.infer; /** * ReflectionSendInputStreamChunkSchema is the payload for the 'sendInputStreamChunk' method. */ declare const ReflectionSendInputStreamChunkParamsSchema: z.ZodObject<{ requestId: z.ZodString; chunk: z.ZodAny; }, "strip", z.ZodTypeAny, { requestId: string; chunk?: any; }, { requestId: string; chunk?: any; }>; type ReflectionSendInputStreamChunkParams = z.infer; /** * ReflectionEndInputStreamSchema is the payload for the 'endInputStream' method. */ declare const ReflectionEndInputStreamParamsSchema: z.ZodObject<{ requestId: z.ZodString; }, "strip", z.ZodTypeAny, { requestId: string; }, { requestId: string; }>; type ReflectionEndInputStreamParams = z.infer; /** * ReflectionListActionsResponseSchema is the result for the 'listActions' method. */ declare const ReflectionListActionsResponseSchema: z.ZodObject<{ actions: z.ZodRecord; actionType: z.ZodOptional; name: z.ZodString; description: z.ZodOptional; inputSchema: z.ZodOptional; inputJsonSchema: z.ZodOptional>; outputSchema: z.ZodOptional; outputJsonSchema: z.ZodOptional>; streamSchema: z.ZodOptional; initSchema: z.ZodOptional; initJsonSchema: z.ZodOptional>; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; metadata?: Record | undefined; description?: string | undefined; key?: string | undefined; actionType?: string | undefined; inputSchema?: unknown; inputJsonSchema?: {} | undefined; outputSchema?: unknown; outputJsonSchema?: {} | undefined; streamSchema?: unknown; initSchema?: unknown; initJsonSchema?: {} | undefined; }, { name: string; metadata?: Record | undefined; description?: string | undefined; key?: string | undefined; actionType?: string | undefined; inputSchema?: unknown; inputJsonSchema?: {} | undefined; outputSchema?: unknown; outputJsonSchema?: {} | undefined; streamSchema?: unknown; initSchema?: unknown; initJsonSchema?: {} | undefined; }>>; }, "strip", z.ZodTypeAny, { actions: Record | undefined; description?: string | undefined; key?: string | undefined; actionType?: string | undefined; inputSchema?: unknown; inputJsonSchema?: {} | undefined; outputSchema?: unknown; outputJsonSchema?: {} | undefined; streamSchema?: unknown; initSchema?: unknown; initJsonSchema?: {} | undefined; }>; }, { actions: Record | undefined; description?: string | undefined; key?: string | undefined; actionType?: string | undefined; inputSchema?: unknown; inputJsonSchema?: {} | undefined; outputSchema?: unknown; outputJsonSchema?: {} | undefined; streamSchema?: unknown; initSchema?: unknown; initJsonSchema?: {} | undefined; }>; }>; type ReflectionListActionsResponse = z.infer; /** * ReflectionListValuesResponseSchema is the result for the 'listValues' method. */ declare const ReflectionListValuesResponseSchema: z.ZodObject<{ values: z.ZodRecord; }, "strip", z.ZodTypeAny, { values: Record; }, { values: Record; }>; type ReflectionListValuesResponse = z.infer; /** * ReflectionCancelActionResponseSchema is the result for the 'cancelAction' method. */ declare const ReflectionCancelActionResponseSchema: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; type ReflectionCancelActionResponse = z.infer; export { type ReflectionCancelActionParams, ReflectionCancelActionParamsSchema, type ReflectionCancelActionResponse, ReflectionCancelActionResponseSchema, type ReflectionConfigureParams, ReflectionConfigureParamsSchema, type ReflectionEndInputStreamParams, ReflectionEndInputStreamParamsSchema, type ReflectionListActionsResponse, ReflectionListActionsResponseSchema, type ReflectionListValuesParams, ReflectionListValuesParamsSchema, type ReflectionListValuesResponse, ReflectionListValuesResponseSchema, type ReflectionRegisterParams, ReflectionRegisterParamsSchema, type ReflectionRunActionParams, ReflectionRunActionParamsSchema, type ReflectionRunActionStateParams, ReflectionRunActionStateParamsSchema, type ReflectionSendInputStreamChunkParams, ReflectionSendInputStreamChunkParamsSchema, type ReflectionStreamChunkParams, ReflectionStreamChunkParamsSchema };