@botozap/sdk 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -34,9 +34,9 @@ interface SendResult {
34
34
  }[];
35
35
  /**
36
36
  * Tipo do envio. WhatsApp: só em `"reaction"`. Instagram: `"text"` ou o tipo
37
- * da mídia; ausente em reação.
37
+ * da mídia ou `"interactive"`; ausente em reação.
38
38
  */
39
- type?: "reaction" | "text" | "image" | "video" | "audio" | "document" | (string & {});
39
+ type?: "reaction" | "interactive" | "text" | "image" | "video" | "audio" | "document" | (string & {});
40
40
  /** Só em reação: alvo e ação (`react`/`unreact`). */
41
41
  reaction?: SendReactionResult;
42
42
  }
@@ -303,7 +303,8 @@ interface BotoZapEvent {
303
303
  * `instagram.message.received`). No Instagram, `instagram.message.edited`
304
304
  * traz o texto novo em `data.edit` e o conteúdo atualizado (com
305
305
  * `content.edited`) em `data.message`; `instagram.message.revoked` traz
306
- * `data.message.revoked_at`, sem o conteúdo apagado. Valores novos podem surgir.
306
+ * `data.message.revoked_at`, sem o conteúdo apagado. `instagram.message_rule.failed` registra uma falha
307
+ * de automação de Regra de mensagem. Valores novos podem surgir.
307
308
  */
308
309
  type: string;
309
310
  /**
@@ -1446,7 +1447,14 @@ type AiInferenceSummary = {
1446
1447
  };
1447
1448
  type AiKnowledgeHit = AiKnowledgeChunk & {
1448
1449
  source_name: string;
1449
- similarity: number;
1450
+ /** Similaridade vetorial (0–1); `null` quando o trecho veio só da busca textual. */
1451
+ similarity: number | null;
1452
+ /** Pontuação da fusão híbrida (Reciprocal Rank Fusion, k=60); não é percentual. */
1453
+ score: number;
1454
+ /** Posição na busca vetorial; `null` quando não apareceu nela. */
1455
+ vector_rank: number | null;
1456
+ /** Posição na busca textual; `null` quando não apareceu nela. */
1457
+ text_rank: number | null;
1450
1458
  };
1451
1459
  type AiKnowledgeSearchDiagnostics = {
1452
1460
  hits: AiKnowledgeHit[];
@@ -3636,12 +3644,51 @@ interface InteractiveCtaUrlPayload extends InteractiveBase {
3636
3644
  };
3637
3645
  };
3638
3646
  }
3639
- /** Objeto `interactive` no formato da Cloud API (validado pela API). */
3640
- type InteractivePayload = InteractiveButtonPayload | InteractiveListPayload | InteractiveCtaUrlPayload;
3647
+ /** Botão do Instagram: abrir link ou enviar postback (até 3 por mensagem/card). */
3648
+ type InstagramInteractiveButton = {
3649
+ type: "web_url";
3650
+ title: string;
3651
+ url: string;
3652
+ } | {
3653
+ type: "postback";
3654
+ title: string;
3655
+ payload: string;
3656
+ };
3657
+ /** Instagram: texto (até 640 caracteres) e 1–3 botões. */
3658
+ interface InstagramInteractiveButtonPayload {
3659
+ type: "button";
3660
+ body: {
3661
+ text: string;
3662
+ };
3663
+ action: {
3664
+ buttons: InstagramInteractiveButton[];
3665
+ };
3666
+ }
3667
+ /** Card Instagram: título e ao menos uma propriedade adicional. */
3668
+ interface InstagramGenericElement {
3669
+ title: string;
3670
+ subtitle?: string;
3671
+ image_url?: string;
3672
+ default_action?: {
3673
+ type: "web_url";
3674
+ url: string;
3675
+ };
3676
+ buttons?: InstagramInteractiveButton[];
3677
+ }
3678
+ /** Instagram: card único ou galeria com 1–10 elementos. */
3679
+ interface InstagramInteractiveGenericPayload {
3680
+ type: "generic";
3681
+ elements: InstagramGenericElement[];
3682
+ }
3683
+ type InstagramInteractivePayload = InstagramInteractiveButtonPayload | InstagramInteractiveGenericPayload;
3684
+ /** Objeto `interactive` por canal; os limites são validados pela API. */
3685
+ type InteractivePayload = InteractiveButtonPayload | InteractiveListPayload | InteractiveCtaUrlPayload | InstagramInteractivePayload;
3641
3686
  interface SendInteractiveParams {
3642
3687
  to: string;
3643
3688
  interactive: InteractivePayload;
3644
3689
  from?: string;
3690
+ /** Instagram: exceção human_agent, sujeita à flag e janela da API. */
3691
+ tag?: "human_agent";
3645
3692
  }
3646
3693
  interface SendLocationParams {
3647
3694
  to: string;
@@ -3677,8 +3724,8 @@ declare class Messages {
3677
3724
  /** Envia mídia por URL pública. */
3678
3725
  sendMedia(params: SendMediaParams, options?: SendOptions): Promise<SendResult>;
3679
3726
  /**
3680
- * Envia botões de resposta, lista ou botão de link (WhatsApp; mensagem livre,
3681
- * exige janela de 24h aberta).
3727
+ * Envia button/list/cta_url no WhatsApp ou button/generic no Instagram.
3728
+ * Mensagem livre sujeita à janela do canal.
3682
3729
  */
3683
3730
  sendInteractive(params: SendInteractiveParams, options?: SendOptions): Promise<SendResult>;
3684
3731
  /** Envia uma localização (WhatsApp; mensagem livre). */
@@ -4190,16 +4237,29 @@ type CommentRuleStatus = "active" | "inactive" | "paused_plan" | (string & {});
4190
4237
  /**
4191
4238
  * Regra de comentário do Instagram: um comentário que casa `keyword` (ou
4192
4239
  * qualquer comentário, quando `null`) no post `media_id` (ou em todos, quando
4193
- * `null`) recebe o direct `dm_text` e, opcionalmente, a resposta pública
4194
- * `reply_text`.
4240
+ * `null`) recebe a abertura `dm_text` e, opcionalmente, a resposta pública
4241
+ * `reply_text`. Com `dm_button_title`, o toque entrega texto/imagem.
4195
4242
  */
4196
4243
  interface CommentRule {
4197
4244
  id: string;
4198
4245
  channel_account_id: string;
4199
4246
  /** Palavra-chave (até 60 caracteres); `null` = qualquer comentário. */
4200
4247
  keyword: string | null;
4201
- /** Texto do direct (até 1000 bytes). */
4248
+ /** Expressões alternativas; lista vazia = qualquer comentário. */
4249
+ keywords?: string[];
4250
+ excluded_keywords?: string[];
4251
+ reply_variations?: string[];
4252
+ /** Aguarda o próximo post quando true e media_id é null. */
4253
+ next_post?: boolean;
4254
+ next_post_activated_at?: string | null;
4255
+ /** Abertura: 1000 bytes sem botão; 640 caracteres com botão. */
4202
4256
  dm_text: string;
4257
+ /** Título do botão (20 caracteres); null mantém direct simples. */
4258
+ dm_button_title?: string | null;
4259
+ /** Texto entregue após o toque (1000 bytes). */
4260
+ delivery_text?: string | null;
4261
+ /** URL HTTPS pública de imagem entregue após o toque. */
4262
+ delivery_media?: string | null;
4203
4263
  /** Resposta pública ao comentário (até 2200 caracteres); `null` = sem resposta. */
4204
4264
  reply_text: string | null;
4205
4265
  /** Id numérico do post (`media.id`); `null` = todos os posts. */
@@ -4219,8 +4279,22 @@ interface CommentRule {
4219
4279
  interface CreateCommentRuleParams {
4220
4280
  /** Texto do direct enviado a quem comentou (obrigatório). */
4221
4281
  dm_text: string;
4282
+ /** Botão de até 20 caracteres; com botão dm_text aceita até 640 caracteres. */
4283
+ dm_button_title?: string | null;
4284
+ /** Obrigatório com botão; até 1000 bytes. null remove. */
4285
+ delivery_text?: string | null;
4286
+ /** Imagem HTTPS pública sem credenciais; null remove. */
4287
+ delivery_media?: string | null;
4222
4288
  /** Palavra-chave; `null`/vazio = qualquer comentário. */
4223
4289
  keyword?: string | null;
4290
+ /** Até 20 expressões (60 caracteres cada); prevalece sobre keyword. */
4291
+ keywords?: string[];
4292
+ /** Até 20 exclusões (60 caracteres cada). */
4293
+ excluded_keywords?: string[];
4294
+ /** Até 10 respostas públicas (2200 caracteres cada); prevalece sobre reply_text. */
4295
+ reply_variations?: string[];
4296
+ /** Próximo post; não combinar com media_id explícito. */
4297
+ next_post?: boolean;
4224
4298
  /** Resposta pública ao comentário; `null`/vazio = sem resposta. */
4225
4299
  reply_text?: string | null;
4226
4300
  /** Id numérico do post; `null`/vazio = todos os posts. */
@@ -4230,7 +4304,145 @@ interface CreateCommentRuleParams {
4230
4304
  }
4231
4305
  /** Corpo de `updateCommentRule` (PATCH): só os campos enviados mudam. */
4232
4306
  type UpdateCommentRuleParams = Partial<CreateCommentRuleParams>;
4233
- /** Contas de canal (WhatsApp e Instagram) e Regras de comentário do Instagram. */
4307
+ /** Resultado da exclusão de uma Regra de comentário. */
4308
+ interface DeleteCommentRuleResult {
4309
+ id: string;
4310
+ deleted: true;
4311
+ }
4312
+ /** Gatilhos aceitos pelas Regras de mensagem do Instagram. */
4313
+ type MessageRuleTrigger = "keyword" | "story_reply" | "story_mention" | "share" | "ref" | "ad";
4314
+ type FixedRuleMessage = {
4315
+ type: "text";
4316
+ text: string;
4317
+ quick_replies?: QuickReply[];
4318
+ } | {
4319
+ type: "image" | "video" | "audio" | "document";
4320
+ link: string;
4321
+ filename?: string;
4322
+ } | {
4323
+ type: "interactive";
4324
+ interactive: InstagramInteractivePayload;
4325
+ };
4326
+ type MessageRuleAction = {
4327
+ type: "message";
4328
+ message: FixedRuleMessage;
4329
+ } | {
4330
+ type: "agent";
4331
+ agent_id: string;
4332
+ router_id?: never;
4333
+ } | {
4334
+ type: "agent";
4335
+ router_id: string;
4336
+ agent_id?: never;
4337
+ } | {
4338
+ type: "stage";
4339
+ stage_id: string | null;
4340
+ } | {
4341
+ type: "tags";
4342
+ add?: string[];
4343
+ remove?: string[];
4344
+ } | {
4345
+ type: "assign";
4346
+ user_id: string;
4347
+ };
4348
+ /** POST: a API valida combinações de gatilho e ações. */
4349
+ interface CreateMessageRuleParams {
4350
+ /** 1–100 caracteres. */
4351
+ name: string;
4352
+ trigger: MessageRuleTrigger;
4353
+ /** Até 20 expressões de 60 caracteres; keyword exige ao menos uma. */
4354
+ keywords?: string[];
4355
+ excluded_keywords?: string[];
4356
+ /** Só em story_reply, até 200 caracteres. */
4357
+ story_contains?: string | null;
4358
+ /** Só em ref; ausente/null gera ref no servidor. */
4359
+ ref?: string | null;
4360
+ /** Só em ad, até 32 dígitos. */
4361
+ ad_id?: string | null;
4362
+ /** Inteiro 0–1000; padrão 100. Menor prioridade vence. */
4363
+ priority?: number;
4364
+ is_active?: boolean;
4365
+ /** 1–5 ações; no máximo uma de cada tipo. */
4366
+ actions: MessageRuleAction[];
4367
+ }
4368
+ type UpdateMessageRuleParams = Partial<CreateMessageRuleParams>;
4369
+ interface MessageRule {
4370
+ id: string;
4371
+ account_id: string;
4372
+ channel_account_id: string;
4373
+ name: string;
4374
+ trigger: MessageRuleTrigger;
4375
+ keywords: string[];
4376
+ excluded_keywords: string[];
4377
+ story_contains: string | null;
4378
+ ref: string | null;
4379
+ ad_id: string | null;
4380
+ priority: number;
4381
+ is_active: boolean;
4382
+ actions: MessageRuleAction[];
4383
+ created_at: string;
4384
+ updated_at: string;
4385
+ }
4386
+ interface DeleteMessageRuleResult {
4387
+ id: string;
4388
+ deleted: true;
4389
+ }
4390
+ interface CommentRuleMetricsParams {
4391
+ /** ISO 8601 com fuso; from deve ser anterior a to. */
4392
+ from: string;
4393
+ to: string;
4394
+ }
4395
+ interface CommentRuleCounters {
4396
+ comments_matched: number;
4397
+ dms_delivered: number;
4398
+ public_replies: number;
4399
+ dm_touches: number;
4400
+ conversations_opened: number;
4401
+ /** Razão, não percentual; null sem DM entregue. Pode superar 1. */
4402
+ touch_rate: number | null;
4403
+ }
4404
+ interface CommentRuleMetrics extends CommentRuleMetricsParams {
4405
+ rule_id: string;
4406
+ channel_account_id: string;
4407
+ totals: CommentRuleCounters;
4408
+ posts: (CommentRuleCounters & {
4409
+ media_id: string | null;
4410
+ })[];
4411
+ }
4412
+ interface InstagramIceBreaker {
4413
+ question: string;
4414
+ payload: string;
4415
+ }
4416
+ type InstagramPersistentMenuItem = {
4417
+ type: "postback";
4418
+ title: string;
4419
+ payload: string;
4420
+ } | {
4421
+ type: "web_url";
4422
+ title: string;
4423
+ url: string;
4424
+ };
4425
+ /** Até 4 perguntas e 5 itens no menu. */
4426
+ interface MessengerProfileConfig {
4427
+ ice_breakers: InstagramIceBreaker[];
4428
+ persistent_menu: InstagramPersistentMenuItem[];
4429
+ }
4430
+ /** Ausente preserva a seção; null ou [] remove. */
4431
+ interface UpdateMessengerProfileParams {
4432
+ ice_breakers?: InstagramIceBreaker[] | null;
4433
+ persistent_menu?: InstagramPersistentMenuItem[] | null;
4434
+ }
4435
+ /** Espelho desejado e confirmação de aplicação na Meta. */
4436
+ interface MessengerProfile {
4437
+ channel_account_id: string;
4438
+ config: MessengerProfileConfig;
4439
+ revision: number;
4440
+ sync_status: string;
4441
+ synced_at: string | null;
4442
+ last_error_code: number | null;
4443
+ updated_at: string | null;
4444
+ }
4445
+ /** Contas de canal e configurações do Instagram. */
4234
4446
  declare class ChannelAccounts {
4235
4447
  private readonly client;
4236
4448
  constructor(client: BotoZap);
@@ -4250,9 +4462,31 @@ declare class ChannelAccounts {
4250
4462
  createCommentRule(channelAccountId: string, params: CreateCommentRuleParams): Promise<CommentRule>;
4251
4463
  /**
4252
4464
  * Altera uma Regra de comentário (só os campos enviados). comment-rules:write.
4253
- * `is_active: false` desliga a regra; não há exclusão pela API.
4465
+ * `is_active: false` desliga a regra.
4254
4466
  */
4255
4467
  updateCommentRule(channelAccountId: string, ruleId: string, params: UpdateCommentRuleParams): Promise<CommentRule>;
4468
+ /** Exclui uma Regra de comentário. comment-rules:write. */
4469
+ deleteCommentRule(channelAccountId: string, ruleId: string): Promise<DeleteCommentRuleResult>;
4470
+ /** Resultados da Regra por período e post. comment-rules:read. */
4471
+ getCommentRuleMetrics(channelAccountId: string, ruleId: string, params: CommentRuleMetricsParams): Promise<CommentRuleMetrics>;
4472
+ /** Lista Regras de mensagem com paginação offset. message-rules:read. */
4473
+ listMessageRules(channelAccountId: string, params?: OffsetParams): Promise<OffsetList<MessageRule>>;
4474
+ /** Busca uma Regra de mensagem. message-rules:read. */
4475
+ getMessageRule(channelAccountId: string, ruleId: string): Promise<MessageRule>;
4476
+ /** Cria uma Regra de mensagem. message-rules:write. */
4477
+ createMessageRule(channelAccountId: string, params: CreateMessageRuleParams): Promise<MessageRule>;
4478
+ /** PATCH parcial; a API valida o estado final. message-rules:write. */
4479
+ updateMessageRule(channelAccountId: string, ruleId: string, params: UpdateMessageRuleParams): Promise<MessageRule>;
4480
+ /** Exclui a Regra preservando Disparos e Eventos. message-rules:write. */
4481
+ deleteMessageRule(channelAccountId: string, ruleId: string): Promise<DeleteMessageRuleResult>;
4482
+ /** Lê o espelho salvo (sem consultar a Meta). messenger-profile:read; sem sandbox. */
4483
+ getMessengerProfile(channelAccountId: string): Promise<MessengerProfile>;
4484
+ /** Salva/aplica apenas as seções enviadas. messenger-profile:write; sem sandbox. */
4485
+ updateMessengerProfile(channelAccountId: string, params: UpdateMessengerProfileParams): Promise<MessengerProfile>;
4486
+ /** Remove perguntas e menu, conservando configuração vazia. messenger-profile:write. */
4487
+ deleteMessengerProfile(channelAccountId: string): Promise<MessengerProfile>;
4488
+ /** Verifica/reaplica explicitamente o desejado salvo. messenger-profile:write. */
4489
+ syncMessengerProfile(channelAccountId: string): Promise<MessengerProfile>;
4256
4490
  }
4257
4491
 
4258
4492
  /** Corpo do `POST /v1/media` — espelha o contrato real da rota. */
@@ -4614,4 +4848,4 @@ declare const PLAN_ERROR_CODES: readonly ["plan_restricted", "free_form_limit_re
4614
4848
  /** True quando o erro é recusa por plano (upgrade resolve; retry não). */
4615
4849
  declare function isPlanError(error: unknown): error is BotoZapError;
4616
4850
 
4617
- export { AI_CONFIGURABLE_PURPOSES, AI_CREDENTIAL_PROVIDERS, AI_OPERATIONS, AI_PURPOSES, type AddRecipientsError, type AddRecipientsResult, AgendaConfiguration, AgendaExceptions, type AgendaRecord, Ai, type AiAgent, type AiAgentConfig, type AiAgentCoverage, type AiAgentInput, type AiAgentVersion, AiAgentsResource, type AiAlert, type AiAlertBulkFilters, type AiAlertListItem, AiAlertsResource, type AiArtifactUploadInput, type AiAudioPricing, type AiBinding, type AiBindingTarget, type AiBudget, type AiBudgetInput, type AiCapabilitySignal, type AiCapabilityUsage, type AiCapabilityUsageList, type AiCase, type AiCaseChat, type AiCaseEvent, type AiCaseKind, type AiCaseReply, type AiCaseReplyInput, type AiCaseSource, AiCasesResource, type AiCatalogItems, type AiCatalogModel, type AiCatalogProduct, type AiCatalogSyncInput, type AiCatalogSyncResult, type AiChannelGate, type AiCommercialDecision, type AiCommercialEffect, type AiCommercialJob, type AiCommercialProposal, AiCommercialProposalsResource, type AiCommercialRequest, type AiCommercialSettings, type AiConfigurablePurpose, type AiContactAuthorization, type AiConversationCheckpoint, type AiCredential, AiCredentialsResource, type AiDraftResult, type AiEligibilityOverview, AiEligibilityResource, type AiEligibilitySettings, type AiEnrollment, type AiEvolution, AiEvolutionResource, type AiEvolutionSource, type AiExecution, type AiExecutionCitations, type AiExecutionSecurity, AiExecutionsResource, type AiField, type AiFlow, type AiFlowGraph, type AiFlowInput, type AiFlowSettings, type AiFlowVersion, type AiFollowupEffect, type AiFollowupEvent, AiFollowupFlowsResource, type AiFollowupPromise, type AiFollowupPromiseDetail, type AiFollowupPromiseStatus, type AiFollowupQueueFilters, type AiFollowupQueuePage, type AiFollowupQueueRow, AiFollowupsResource, type AiGateMode, type AiInference, type AiInferenceOrigin, type AiInferenceOutcome, type AiInferenceSummary, AiInferencesResource, type AiKnowledgeChunk, type AiKnowledgeCitation, type AiKnowledgeConversation, type AiKnowledgeHit, type AiKnowledgeImport, type AiKnowledgePreview, AiKnowledgeResource, type AiKnowledgeSearchDiagnostics, type AiKnowledgeSource, type AiMemory, type AiMemoryEntry, type AiMemoryEntryEvent, AiMemoryResource, type AiModelCatalogSnapshot, type AiModelCatalogSync, type AiNoticeCheck, type AiNoticeEffect, type AiNoticeField, type AiNoticeJob, type AiNoticeSettings, AiNoticesResource, type AiOperation, type AiOperatorMetrics, AiOperatorResource, type AiPage, type AiPlatformSkill, type AiPlatformSkillComposition, type AiPreparedUpload, type AiProposal, AiProposalsResource, type AiProvider, type AiProviderInfo, type AiProviderModel, AiProvidersResource, type AiPurpose, type AiRate, type AiRateInput, type AiRecord, type AiRevision, type AiRouter, type AiRouterConfig, type AiRouterTest, AiRoutersResource, type AiScope, type AiSkill, type AiSkillInput, type AiSkillNearMiss, type AiSkillVersion, AiSkillsResource, type AiSourceKind, type AiStyleAdjustment, type AiStyleAdjustmentId, AiStyleAdjustmentsResource, type AiToolId, type AiTurnPromise, type AiUploadReceiptCallback, AiUploadsResource, AiUsageResource, type AiUsageSummary, type AiUsageTokens, type AiWindow, type ApiLog, type Appointment, type AppointmentAvailability, type AppointmentExceptionInput, type AppointmentFields, type AppointmentHistory, type AppointmentQuery, type AppointmentScheduleInput, type AppointmentServiceInput, type AppointmentStatus, Appointments, type Assignment, type AvailabilityQuery, BotoZap, BotoZapError, type BotoZapErrorCode, type BotoZapEvent, type BotoZapOptions, type Broadcast, type BroadcastRecipient, type BroadcastRecipientInput, Calendar, type CalendarConnection, type CalendarJob, type CalendarSelection, type ChannelAccount, type ChannelAccountRef, ChannelAccounts, type CommentRule, type CommentRuleStatus, type Contact, type ContactField, ContactFields, type ContactStage, ContactStages, type Conversation, type ConversationEntryPoint, type ConversationNote, type ConversationReferral, type ConversationReminder, type CreateAppointment, type CreateAssignmentParams, type CreateBroadcastParams, type CreateCommentRuleParams, type CreateContactParams, type CreateCustomerParams, type CreateDemand, type CreateOpportunity, type CreateSetupLinkParams, type CreateTemplateParams, type CreateWebhookParams, type CrmActivity, type CrmConversation, type CrmFields, type CrmMetadata, type CrmQuery, type CrmRecord, CrmResource, type CursorList, type CursorPaging, type CursorParams, type Customer, type Demand, type DemandFields, type EventList, type EventPaging, Inbox, type InboxMutation, type InboxMutationResult, type InboxState, type InboxTools, type InstagramTokenStatus, type InteractiveButtonPayload, type InteractiveCtaUrlPayload, type InteractiveHeader, type InteractiveListPayload, type InteractivePayload, type Journey, type JourneyConfig, type JourneyEnrollment, type JourneyQuery, type JourneyRun, type JourneyStep, Journeys, type ListApiLogsParams, type ListBroadcastsParams, type ListChannelAccountsParams, type ListContactsParams, type ListConversationsParams, type ListEventsParams, type ListMessagesParams, type ListPhoneNumbersParams, type ListRecipientsParams, type ListTemplatesParams, type ListWebhookDeliveriesParams, type Me, type MediaAsset, type MediaUploadResult, type Message, type MessageChannel, type MessageContent, type MessageEdit, type MessageSort, type MessageSource, type MessageStatus, type MetaCostCategory, type MetaCostDay, type MetaCostEstimate, type MetaCostGroup, type MetaCostReport, type MetaCostSource, type MetaCostSync, type MetaCostUnavailableReason, type MetaCostsParams, type OffsetList, type OffsetMeta, type OffsetParams, type Opportunity, type OpportunityFields, PLAN_ERROR_CODES, type PhoneNumber, type QuickReply, Radar, type RadarEntry, type RadarPage, type RadarQuery, type ReplyConversationParams, type RequestOptions, SavedReplies, type SavedReply, type SavedReplyInput, type SavedReplyQuery, type ScheduleBroadcastParams, type SendAudioParams, type SendDocumentParams, type SendFailureDetails, type SendImageParams, type SendInteractiveParams, type SendLocationParams, type SendMediaParams, type SendOptions, type SendReactionParams, type SendReactionResult, type SendResult, type SendTemplateParams, type SendTextParams, type SendVideoParams, type SetupLink, type StageColor, type StageRule, type StageRuleInput, type Template, type TemplatePayload, type UpdateAppointment, type UpdateBroadcastParams, type UpdateCommentRuleParams, type UpdateContactParams, type UpdateCustomerParams, type UpdatePhoneNumberParams, type UpdateSetupLinkParams, type UpdateWebhookParams, type UploadMediaParams, type User, WEBHOOK_CATEGORIES, type Webhook, type WebhookAuthorizationHeaders, type WebhookCategory, type WebhookDelivery, type WebhookDeliveryStatus, isPlanError };
4851
+ export { AI_CONFIGURABLE_PURPOSES, AI_CREDENTIAL_PROVIDERS, AI_OPERATIONS, AI_PURPOSES, type AddRecipientsError, type AddRecipientsResult, AgendaConfiguration, AgendaExceptions, type AgendaRecord, Ai, type AiAgent, type AiAgentConfig, type AiAgentCoverage, type AiAgentInput, type AiAgentVersion, AiAgentsResource, type AiAlert, type AiAlertBulkFilters, type AiAlertListItem, AiAlertsResource, type AiArtifactUploadInput, type AiAudioPricing, type AiBinding, type AiBindingTarget, type AiBudget, type AiBudgetInput, type AiCapabilitySignal, type AiCapabilityUsage, type AiCapabilityUsageList, type AiCase, type AiCaseChat, type AiCaseEvent, type AiCaseKind, type AiCaseReply, type AiCaseReplyInput, type AiCaseSource, AiCasesResource, type AiCatalogItems, type AiCatalogModel, type AiCatalogProduct, type AiCatalogSyncInput, type AiCatalogSyncResult, type AiChannelGate, type AiCommercialDecision, type AiCommercialEffect, type AiCommercialJob, type AiCommercialProposal, AiCommercialProposalsResource, type AiCommercialRequest, type AiCommercialSettings, type AiConfigurablePurpose, type AiContactAuthorization, type AiConversationCheckpoint, type AiCredential, AiCredentialsResource, type AiDraftResult, type AiEligibilityOverview, AiEligibilityResource, type AiEligibilitySettings, type AiEnrollment, type AiEvolution, AiEvolutionResource, type AiEvolutionSource, type AiExecution, type AiExecutionCitations, type AiExecutionSecurity, AiExecutionsResource, type AiField, type AiFlow, type AiFlowGraph, type AiFlowInput, type AiFlowSettings, type AiFlowVersion, type AiFollowupEffect, type AiFollowupEvent, AiFollowupFlowsResource, type AiFollowupPromise, type AiFollowupPromiseDetail, type AiFollowupPromiseStatus, type AiFollowupQueueFilters, type AiFollowupQueuePage, type AiFollowupQueueRow, AiFollowupsResource, type AiGateMode, type AiInference, type AiInferenceOrigin, type AiInferenceOutcome, type AiInferenceSummary, AiInferencesResource, type AiKnowledgeChunk, type AiKnowledgeCitation, type AiKnowledgeConversation, type AiKnowledgeHit, type AiKnowledgeImport, type AiKnowledgePreview, AiKnowledgeResource, type AiKnowledgeSearchDiagnostics, type AiKnowledgeSource, type AiMemory, type AiMemoryEntry, type AiMemoryEntryEvent, AiMemoryResource, type AiModelCatalogSnapshot, type AiModelCatalogSync, type AiNoticeCheck, type AiNoticeEffect, type AiNoticeField, type AiNoticeJob, type AiNoticeSettings, AiNoticesResource, type AiOperation, type AiOperatorMetrics, AiOperatorResource, type AiPage, type AiPlatformSkill, type AiPlatformSkillComposition, type AiPreparedUpload, type AiProposal, AiProposalsResource, type AiProvider, type AiProviderInfo, type AiProviderModel, AiProvidersResource, type AiPurpose, type AiRate, type AiRateInput, type AiRecord, type AiRevision, type AiRouter, type AiRouterConfig, type AiRouterTest, AiRoutersResource, type AiScope, type AiSkill, type AiSkillInput, type AiSkillNearMiss, type AiSkillVersion, AiSkillsResource, type AiSourceKind, type AiStyleAdjustment, type AiStyleAdjustmentId, AiStyleAdjustmentsResource, type AiToolId, type AiTurnPromise, type AiUploadReceiptCallback, AiUploadsResource, AiUsageResource, type AiUsageSummary, type AiUsageTokens, type AiWindow, type ApiLog, type Appointment, type AppointmentAvailability, type AppointmentExceptionInput, type AppointmentFields, type AppointmentHistory, type AppointmentQuery, type AppointmentScheduleInput, type AppointmentServiceInput, type AppointmentStatus, Appointments, type Assignment, type AvailabilityQuery, BotoZap, BotoZapError, type BotoZapErrorCode, type BotoZapEvent, type BotoZapOptions, type Broadcast, type BroadcastRecipient, type BroadcastRecipientInput, Calendar, type CalendarConnection, type CalendarJob, type CalendarSelection, type ChannelAccount, type ChannelAccountRef, ChannelAccounts, type CommentRule, type CommentRuleCounters, type CommentRuleMetrics, type CommentRuleMetricsParams, type CommentRuleStatus, type Contact, type ContactField, ContactFields, type ContactStage, ContactStages, type Conversation, type ConversationEntryPoint, type ConversationNote, type ConversationReferral, type ConversationReminder, type CreateAppointment, type CreateAssignmentParams, type CreateBroadcastParams, type CreateCommentRuleParams, type CreateContactParams, type CreateCustomerParams, type CreateDemand, type CreateMessageRuleParams, type CreateOpportunity, type CreateSetupLinkParams, type CreateTemplateParams, type CreateWebhookParams, type CrmActivity, type CrmConversation, type CrmFields, type CrmMetadata, type CrmQuery, type CrmRecord, CrmResource, type CursorList, type CursorPaging, type CursorParams, type Customer, type DeleteCommentRuleResult, type DeleteMessageRuleResult, type Demand, type DemandFields, type EventList, type EventPaging, type FixedRuleMessage, Inbox, type InboxMutation, type InboxMutationResult, type InboxState, type InboxTools, type InstagramGenericElement, type InstagramIceBreaker, type InstagramInteractiveButton, type InstagramInteractiveButtonPayload, type InstagramInteractiveGenericPayload, type InstagramInteractivePayload, type InstagramPersistentMenuItem, type InstagramTokenStatus, type InteractiveButtonPayload, type InteractiveCtaUrlPayload, type InteractiveHeader, type InteractiveListPayload, type InteractivePayload, type Journey, type JourneyConfig, type JourneyEnrollment, type JourneyQuery, type JourneyRun, type JourneyStep, Journeys, type ListApiLogsParams, type ListBroadcastsParams, type ListChannelAccountsParams, type ListContactsParams, type ListConversationsParams, type ListEventsParams, type ListMessagesParams, type ListPhoneNumbersParams, type ListRecipientsParams, type ListTemplatesParams, type ListWebhookDeliveriesParams, type Me, type MediaAsset, type MediaUploadResult, type Message, type MessageChannel, type MessageContent, type MessageEdit, type MessageRule, type MessageRuleAction, type MessageRuleTrigger, type MessageSort, type MessageSource, type MessageStatus, type MessengerProfile, type MessengerProfileConfig, type MetaCostCategory, type MetaCostDay, type MetaCostEstimate, type MetaCostGroup, type MetaCostReport, type MetaCostSource, type MetaCostSync, type MetaCostUnavailableReason, type MetaCostsParams, type OffsetList, type OffsetMeta, type OffsetParams, type Opportunity, type OpportunityFields, PLAN_ERROR_CODES, type PhoneNumber, type QuickReply, Radar, type RadarEntry, type RadarPage, type RadarQuery, type ReplyConversationParams, type RequestOptions, SavedReplies, type SavedReply, type SavedReplyInput, type SavedReplyQuery, type ScheduleBroadcastParams, type SendAudioParams, type SendDocumentParams, type SendFailureDetails, type SendImageParams, type SendInteractiveParams, type SendLocationParams, type SendMediaParams, type SendOptions, type SendReactionParams, type SendReactionResult, type SendResult, type SendTemplateParams, type SendTextParams, type SendVideoParams, type SetupLink, type StageColor, type StageRule, type StageRuleInput, type Template, type TemplatePayload, type UpdateAppointment, type UpdateBroadcastParams, type UpdateCommentRuleParams, type UpdateContactParams, type UpdateCustomerParams, type UpdateMessageRuleParams, type UpdateMessengerProfileParams, type UpdatePhoneNumberParams, type UpdateSetupLinkParams, type UpdateWebhookParams, type UploadMediaParams, type User, WEBHOOK_CATEGORIES, type Webhook, type WebhookAuthorizationHeaders, type WebhookCategory, type WebhookDelivery, type WebhookDeliveryStatus, isPlanError };