import { z } from "zod"; import type { CommandChoice as ProtoCommandChoice, CommandConfig as ProtoCommandConfig, CommandGetCommandsOutput as ProtoGetCommandsOutput, CommandNameDescI18n as ProtoCommandNameDescI18n, CommandNameI18n as ProtoCommandNameI18n, CommandParamDefI18n as ProtoCommandParamDefI18n, CommandParamDefinition as ProtoCommandParamDefinition, CommandResult as ProtoCommandResult } from "../gen/channel/app/sdk/v1/extension.js"; type ProtoBacked = T & Proto; /** * Command scope */ export declare const CommandScopeSchema: z.ZodEnum<["front", "desk"]>; export type CommandScope = z.infer; /** * ALF mode for commands */ export declare const CommandAlfModeSchema: z.ZodEnum<["disable", "recommend"]>; export type CommandAlfMode = z.infer; /** * Parameter type for command inputs */ export declare const CommandParamTypeSchema: z.ZodEnum<["string", "float", "int", "bool"]>; export type CommandParamType = z.infer; /** * I18n name schema */ export declare const CommandNameI18nSchema: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; export type CommandNameI18n = ProtoBacked, ProtoCommandNameI18n>; /** * I18n name and description schema */ export declare const CommandNameDescI18nSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; description: string; }, { name: string; description: string; }>; export type CommandNameDescI18n = ProtoBacked, ProtoCommandNameDescI18n>; /** * I18n schema for parameter definitions */ export declare const CommandParamDefI18nSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; description: string; }, { name: string; description: string; }>; export type CommandParamDefI18n = ProtoBacked, ProtoCommandParamDefI18n>; /** * Choice option schema for command parameters */ export declare const CommandChoiceSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>; nameDescI18nMap: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }>; export type CommandChoice = ProtoBacked, ProtoCommandChoice>; /** * Parameter definition schema for command metadata */ export declare const CommandParamDefinitionSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<["string", "float", "int", "bool"]>; required: z.ZodBoolean; description: z.ZodOptional; choices: z.ZodOptional; nameDescI18nMap: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }>, "many">>; nameDescI18nMap: z.ZodOptional>>; autoComplete: z.ZodOptional; alfDescription: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }, { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }>; export type CommandParamDefinition = ProtoBacked, ProtoCommandParamDefinition>; /** * Command metadata schema returned from extension.command.metadata.getCommands */ export declare const CommandConfigSchema: z.ZodObject<{ name: z.ZodString; scope: z.ZodEnum<["front", "desk"]>; buttonName: z.ZodOptional; buttonNameI18nMap: z.ZodOptional>>; description: z.ZodOptional; nameDescI18nMap: z.ZodOptional>>; actionFunctionName: z.ZodString; autoCompleteFunctionName: z.ZodOptional; systemVersion: z.ZodOptional; alfMode: z.ZodEnum<["disable", "recommend"]>; alfDescription: z.ZodOptional; paramDefinitions: z.ZodOptional; required: z.ZodBoolean; description: z.ZodOptional; choices: z.ZodOptional; nameDescI18nMap: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }>, "many">>; nameDescI18nMap: z.ZodOptional>>; autoComplete: z.ZodOptional; alfDescription: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }, { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }>, "many">>; enabledByDefault: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; scope: "front" | "desk"; actionFunctionName: string; alfMode: "disable" | "recommend"; systemVersion?: string | undefined; description?: string | undefined; nameDescI18nMap?: Record | undefined; alfDescription?: string | undefined; buttonName?: string | undefined; buttonNameI18nMap?: Record | undefined; autoCompleteFunctionName?: string | undefined; paramDefinitions?: { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }[] | undefined; enabledByDefault?: boolean | undefined; }, { name: string; scope: "front" | "desk"; actionFunctionName: string; alfMode: "disable" | "recommend"; systemVersion?: string | undefined; description?: string | undefined; nameDescI18nMap?: Record | undefined; alfDescription?: string | undefined; buttonName?: string | undefined; buttonNameI18nMap?: Record | undefined; autoCompleteFunctionName?: string | undefined; paramDefinitions?: { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }[] | undefined; enabledByDefault?: boolean | undefined; }>; export type CommandConfig = ProtoBacked, ProtoCommandConfig>; /** * Metadata response schema for command registration */ export declare const GetCommandsOutputSchema: z.ZodObject<{ commands: z.ZodArray; buttonName: z.ZodOptional; buttonNameI18nMap: z.ZodOptional>>; description: z.ZodOptional; nameDescI18nMap: z.ZodOptional>>; actionFunctionName: z.ZodString; autoCompleteFunctionName: z.ZodOptional; systemVersion: z.ZodOptional; alfMode: z.ZodEnum<["disable", "recommend"]>; alfDescription: z.ZodOptional; paramDefinitions: z.ZodOptional; required: z.ZodBoolean; description: z.ZodOptional; choices: z.ZodOptional; nameDescI18nMap: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }, { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }>, "many">>; nameDescI18nMap: z.ZodOptional>>; autoComplete: z.ZodOptional; alfDescription: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }, { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }>, "many">>; enabledByDefault: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; scope: "front" | "desk"; actionFunctionName: string; alfMode: "disable" | "recommend"; systemVersion?: string | undefined; description?: string | undefined; nameDescI18nMap?: Record | undefined; alfDescription?: string | undefined; buttonName?: string | undefined; buttonNameI18nMap?: Record | undefined; autoCompleteFunctionName?: string | undefined; paramDefinitions?: { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }[] | undefined; enabledByDefault?: boolean | undefined; }, { name: string; scope: "front" | "desk"; actionFunctionName: string; alfMode: "disable" | "recommend"; systemVersion?: string | undefined; description?: string | undefined; nameDescI18nMap?: Record | undefined; alfDescription?: string | undefined; buttonName?: string | undefined; buttonNameI18nMap?: Record | undefined; autoCompleteFunctionName?: string | undefined; paramDefinitions?: { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }[] | undefined; enabledByDefault?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { commands: { name: string; scope: "front" | "desk"; actionFunctionName: string; alfMode: "disable" | "recommend"; systemVersion?: string | undefined; description?: string | undefined; nameDescI18nMap?: Record | undefined; alfDescription?: string | undefined; buttonName?: string | undefined; buttonNameI18nMap?: Record | undefined; autoCompleteFunctionName?: string | undefined; paramDefinitions?: { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }[] | undefined; enabledByDefault?: boolean | undefined; }[]; }, { commands: { name: string; scope: "front" | "desk"; actionFunctionName: string; alfMode: "disable" | "recommend"; systemVersion?: string | undefined; description?: string | undefined; nameDescI18nMap?: Record | undefined; alfDescription?: string | undefined; buttonName?: string | undefined; buttonNameI18nMap?: Record | undefined; autoCompleteFunctionName?: string | undefined; paramDefinitions?: { type: "string" | "float" | "int" | "bool"; name: string; required: boolean; description?: string | undefined; choices?: { value: string | number | boolean; name: string; nameDescI18nMap?: Record | undefined; }[] | undefined; nameDescI18nMap?: Record | undefined; autoComplete?: boolean | undefined; alfDescription?: string | undefined; }[] | undefined; enabledByDefault?: boolean | undefined; }[]; }>; export type GetCommandsOutput = ProtoBacked, ProtoGetCommandsOutput>; /** * Command result schema — matches Channel App platform Action format. * * `type` is a free-form string (no enum constraint), just like * app-store's `ActionType string` and desk's type guards. */ export declare const CommandResultSchema: z.ZodObject<{ type: z.ZodString; attributes: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: string; attributes?: Record | undefined; }, { type: string; attributes?: Record | undefined; }>; export type CommandResult = ProtoBacked, ProtoCommandResult>; export {}; //# sourceMappingURL=command.d.ts.map