import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Credentials = { /** * Telegram bot token issued by BotFather. It is encrypted at rest and is never returned by the API. */ botToken: string; }; export declare const CreateTelegramAgentConnectorRequestMode: { readonly Allowlist: "allowlist"; }; export type CreateTelegramAgentConnectorRequestMode = ClosedEnum; /** * The explicit Telegram chat allowlist permitted to invoke the agent. */ export type CreateTelegramAgentConnectorRequestAccess = { mode: CreateTelegramAgentConnectorRequestMode; chatIds: Array; }; export type CreateTelegramAgentConnectorRequest = { /** * Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions. */ provider: "telegram"; name?: string | undefined; credentials: Credentials; /** * The explicit Telegram chat allowlist permitted to invoke the agent. */ access: CreateTelegramAgentConnectorRequestAccess; /** * Always true: Telegram discards updates queued before this tenancy's webhook is registered. */ dropPendingUpdates?: true | undefined; }; /** @internal */ export declare const Credentials$inboundSchema: z.ZodType; /** @internal */ export type Credentials$Outbound = { bot_token: string; }; /** @internal */ export declare const Credentials$outboundSchema: z.ZodType; export declare function credentialsToJSON(credentials: Credentials): string; export declare function credentialsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateTelegramAgentConnectorRequestMode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateTelegramAgentConnectorRequestMode$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateTelegramAgentConnectorRequestAccess$inboundSchema: z.ZodType; /** @internal */ export type CreateTelegramAgentConnectorRequestAccess$Outbound = { mode: string; chat_ids: Array; }; /** @internal */ export declare const CreateTelegramAgentConnectorRequestAccess$outboundSchema: z.ZodType; export declare function createTelegramAgentConnectorRequestAccessToJSON(createTelegramAgentConnectorRequestAccess: CreateTelegramAgentConnectorRequestAccess): string; export declare function createTelegramAgentConnectorRequestAccessFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateTelegramAgentConnectorRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateTelegramAgentConnectorRequest$Outbound = { provider: "telegram"; name?: string | undefined; credentials: Credentials$Outbound; access: CreateTelegramAgentConnectorRequestAccess$Outbound; drop_pending_updates: true; }; /** @internal */ export declare const CreateTelegramAgentConnectorRequest$outboundSchema: z.ZodType; export declare function createTelegramAgentConnectorRequestToJSON(createTelegramAgentConnectorRequest: CreateTelegramAgentConnectorRequest): string; export declare function createTelegramAgentConnectorRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createtelegramagentconnectorrequest.d.ts.map