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 CreateWhatsAppAgentConnectorRequestCredentials = { /** * Long-lived Meta system-user access token with whatsapp_business_messaging and whatsapp_business_management permissions. It is encrypted at rest and never returned. */ accessToken: string; /** * Meta app secret used to authenticate webhook payloads. It is encrypted at rest and never returned. */ appSecret: string; }; export type Account = { /** * Meta app ID. It is used with the app secret to verify that the system-user token belongs to this app and has the required WhatsApp permissions. */ appId: string; whatsappBusinessAccountId: string; phoneNumberId: string; }; export declare const CreateWhatsAppAgentConnectorRequestMode: { readonly Allowlist: "allowlist"; }; export type CreateWhatsAppAgentConnectorRequestMode = ClosedEnum; /** * Exact WhatsApp sender IDs permitted to invoke the agent. These are digit strings without a leading plus sign. */ export type CreateWhatsAppAgentConnectorRequestAccess = { mode: CreateWhatsAppAgentConnectorRequestMode; userIds: Array; }; /** * Beta WhatsApp Cloud API connector configuration. */ export type CreateWhatsAppAgentConnectorRequest = { /** * Beta WhatsApp Cloud API connector with text, image, document, and native thumbs-reaction feedback support. */ provider: "whatsapp"; name?: string | undefined; credentials: CreateWhatsAppAgentConnectorRequestCredentials; account: Account; /** * Exact WhatsApp sender IDs permitted to invoke the agent. These are digit strings without a leading plus sign. */ access: CreateWhatsAppAgentConnectorRequestAccess; }; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequestCredentials$inboundSchema: z.ZodType; /** @internal */ export type CreateWhatsAppAgentConnectorRequestCredentials$Outbound = { access_token: string; app_secret: string; }; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequestCredentials$outboundSchema: z.ZodType; export declare function createWhatsAppAgentConnectorRequestCredentialsToJSON(createWhatsAppAgentConnectorRequestCredentials: CreateWhatsAppAgentConnectorRequestCredentials): string; export declare function createWhatsAppAgentConnectorRequestCredentialsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Account$inboundSchema: z.ZodType; /** @internal */ export type Account$Outbound = { app_id: string; whatsapp_business_account_id: string; phone_number_id: string; }; /** @internal */ export declare const Account$outboundSchema: z.ZodType; export declare function accountToJSON(account: Account): string; export declare function accountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequestMode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequestMode$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequestAccess$inboundSchema: z.ZodType; /** @internal */ export type CreateWhatsAppAgentConnectorRequestAccess$Outbound = { mode: string; user_ids: Array; }; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequestAccess$outboundSchema: z.ZodType; export declare function createWhatsAppAgentConnectorRequestAccessToJSON(createWhatsAppAgentConnectorRequestAccess: CreateWhatsAppAgentConnectorRequestAccess): string; export declare function createWhatsAppAgentConnectorRequestAccessFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateWhatsAppAgentConnectorRequest$Outbound = { provider: "whatsapp"; name?: string | undefined; credentials: CreateWhatsAppAgentConnectorRequestCredentials$Outbound; account: Account$Outbound; access: CreateWhatsAppAgentConnectorRequestAccess$Outbound; }; /** @internal */ export declare const CreateWhatsAppAgentConnectorRequest$outboundSchema: z.ZodType; export declare function createWhatsAppAgentConnectorRequestToJSON(createWhatsAppAgentConnectorRequest: CreateWhatsAppAgentConnectorRequest): string; export declare function createWhatsAppAgentConnectorRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createwhatsappagentconnectorrequest.d.ts.map