import { z } from "zod"; import type { ApiKeyField as ProtoApiKeyField, ApiKeyGetAuthConfigOutput as ProtoGetAuthConfigOutput, ApiKeyValidateCredentialsOutput as ProtoValidateCredentialsOutput } from "../gen/channel/app/sdk/v1/extension.js"; type ProtoBacked = T & Proto; /** * API Key field schema * * @deprecated Prefer the config extension for new setup surfaces. AppStore * keeps API key registration for backward compatibility and may normalize it * into config-backed storage. */ export declare const ApiKeyFieldSchema: z.ZodObject<{ name: z.ZodString; displayName: z.ZodString; description: z.ZodOptional; required: z.ZodBoolean; sensitive: z.ZodBoolean; maskType: z.ZodOptional; placeholder: z.ZodOptional; validationRegex: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; required: boolean; displayName: string; sensitive: boolean; description?: string | undefined; placeholder?: string | undefined; maskType?: string | undefined; validationRegex?: string | undefined; }, { name: string; required: boolean; displayName: string; sensitive: boolean; description?: string | undefined; placeholder?: string | undefined; maskType?: string | undefined; validationRegex?: string | undefined; }>; /** * @deprecated Prefer config extension fields for new setup surfaces. */ export type ApiKeyField = ProtoBacked, ProtoApiKeyField>; /** * Auth scope for API Key extension * * @deprecated Prefer `ConfigScope` from the config extension. */ export declare const ApiKeyAuthScope: z.ZodEnum<["channel", "manager"]>; /** * @deprecated Prefer `ConfigScope` from the config extension. */ export type ApiKeyAuthScope = z.infer; /** * Output schema for extension.apikey.metadata.getAuthConfig * * @deprecated Prefer `extension.config.metadata.getConfigSchema` for new apps. */ export declare const GetAuthConfigOutputSchema: z.ZodObject<{ authType: z.ZodLiteral<"apiKey">; authScope: z.ZodEnum<["channel", "manager"]>; fields: z.ZodArray; required: z.ZodBoolean; sensitive: z.ZodBoolean; maskType: z.ZodOptional; placeholder: z.ZodOptional; validationRegex: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; required: boolean; displayName: string; sensitive: boolean; description?: string | undefined; placeholder?: string | undefined; maskType?: string | undefined; validationRegex?: string | undefined; }, { name: string; required: boolean; displayName: string; sensitive: boolean; description?: string | undefined; placeholder?: string | undefined; maskType?: string | undefined; validationRegex?: string | undefined; }>, "many">; providerName: z.ZodString; }, "strip", z.ZodTypeAny, { authScope: "manager" | "channel"; providerName: string; authType: "apiKey"; fields: { name: string; required: boolean; displayName: string; sensitive: boolean; description?: string | undefined; placeholder?: string | undefined; maskType?: string | undefined; validationRegex?: string | undefined; }[]; }, { authScope: "manager" | "channel"; providerName: string; authType: "apiKey"; fields: { name: string; required: boolean; displayName: string; sensitive: boolean; description?: string | undefined; placeholder?: string | undefined; maskType?: string | undefined; validationRegex?: string | undefined; }[]; }>; /** * @deprecated Prefer `GetConfigSchemaOutput` from the config extension. */ export type GetAuthConfigOutput = ProtoBacked, ProtoGetAuthConfigOutput>; /** * Output schema for extension.apikey.validation.validateCredentials * * @deprecated Prefer config validation hooks or * `extension.config.validation.validateStoredConfig`. */ export declare const ValidateCredentialsOutputSchema: z.ZodObject<{ valid: z.ZodBoolean; error_message: z.ZodOptional; user_info: z.ZodOptional; name: z.ZodOptional; user_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { name?: string | undefined; email?: string | undefined; user_id?: string | undefined; }, { name?: string | undefined; email?: string | undefined; user_id?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { valid: boolean; error_message?: string | undefined; user_info?: { name?: string | undefined; email?: string | undefined; user_id?: string | undefined; } | undefined; }, { valid: boolean; error_message?: string | undefined; user_info?: { name?: string | undefined; email?: string | undefined; user_id?: string | undefined; } | undefined; }>; /** * @deprecated Prefer `ValidateStoredConfigOutput` from the config extension. */ export type ValidateCredentialsOutput = ProtoBacked, ProtoValidateCredentialsOutput>; export {}; //# sourceMappingURL=apikey.d.ts.map