import { ResetValue } from "../common/options"; import { Expression } from "../params"; import { WireParamSpec, SecretParam } from "../params/types"; /** * A definition of an extension as appears in the Manifest. * Exactly one of ref or localPath must be present. */ export interface ManifestExtension { params: Record; ref?: string; localPath?: string; events: string[]; } /** * A definition of a function as appears in the Manifest. * * @alpha */ export interface ManifestEndpoint { entryPoint?: string; region?: string[]; omit?: boolean | Expression; platform?: string; availableMemoryMb?: number | Expression | ResetValue; maxInstances?: number | Expression | ResetValue; minInstances?: number | Expression | ResetValue; concurrency?: number | Expression | ResetValue; timeoutSeconds?: number | Expression | ResetValue; vpc?: { connector: string | Expression; egressSettings?: string | Expression | ResetValue; } | ResetValue; serviceAccountEmail?: string | Expression | ResetValue; cpu?: number | "gcf_gen1"; labels?: Record; ingressSettings?: string | Expression | ResetValue; environmentVariables?: Record; secretEnvironmentVariables?: Array<{ key: string; secret?: string; }>; httpsTrigger?: { invoker?: string[]; }; callableTrigger?: { genkitAction?: string; }; eventTrigger?: { eventFilters: Record>; eventFilterPathPatterns?: Record>; channel?: string; eventType: string; retry: boolean | Expression | ResetValue; region?: string; serviceAccountEmail?: string | ResetValue; }; taskQueueTrigger?: { retryConfig?: { maxAttempts?: number | Expression | ResetValue; maxRetrySeconds?: number | Expression | ResetValue; maxBackoffSeconds?: number | Expression | ResetValue; maxDoublings?: number | Expression | ResetValue; minBackoffSeconds?: number | Expression | ResetValue; }; rateLimits?: { maxConcurrentDispatches?: number | Expression | ResetValue; maxDispatchesPerSecond?: number | Expression | ResetValue; }; }; scheduleTrigger?: { schedule: string | Expression; timeZone?: string | Expression | ResetValue; retryConfig?: { retryCount?: number | Expression | ResetValue; maxRetrySeconds?: string | Expression | ResetValue; minBackoffSeconds?: string | Expression | ResetValue; maxBackoffSeconds?: string | Expression | ResetValue; maxDoublings?: number | Expression | ResetValue; maxRetryDuration?: string | Expression | ResetValue; minBackoffDuration?: string | Expression | ResetValue; maxBackoffDuration?: string | Expression | ResetValue; }; }; blockingTrigger?: { eventType: string; options?: Record; }; } /** * Description of API required for this stack. * @alpha */ export interface ManifestRequiredAPI { api: string; reason: string; } /** * A definition of a function/extension deployment as appears in the Manifest. * * @alpha */ export interface ManifestStack { specVersion: "v1alpha1"; params?: WireParamSpec[]; requiredAPIs: ManifestRequiredAPI[]; endpoints: Record; extensions?: Record; } /** * Returns the JSON representation of a ManifestStack, which has CEL * expressions in its options as object types, with its expressions * transformed into the actual CEL strings. * * @alpha */ export declare function stackToWire(stack: ManifestStack): Record;