@botozap/sdk 0.28.0 → 0.30.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
@@ -758,7 +758,9 @@ type AiWindow = {
758
758
  };
759
759
  type AiToolId = "contacts.read" | "contacts.update" | "conversations.read" | "conversations.note" | "crm.opportunities.read" | "crm.opportunities.write" | "crm.demands.read" | "crm.demands.write" | "crm.stages.read" | "crm.stages.write" | "agenda.availability" | "agenda.propose" | "agenda.appointments.read" | "agenda.appointments.reschedule" | "agenda.appointments.cancel" | "knowledge.search" | "memory.read" | "memory.propose" | "skills.read" | "followups.enroll" | "followups.pause" | "followups.cancel" | "cases.open" | "cases.update" | "followups.schedule" | "followups.list" | "handoff" | "alerts.create" | "contacts.search" | "contacts.get" | "contacts.propose_update" | "conversations.list" | "conversations.get" | "conversations.history" | "conversations.assign" | "team.members.read" | "inbox.queue.read" | "tags.read" | "tags.manage" | "saved_replies.read" | "saved_replies.render" | "automations.read" | "automations.runs.read" | "radar.read" | "radar.propose_reactivation" | "catalog.products.search" | "privacy.consent.read" | "knowledge.sources.read" | "proposals.read" | "cases.read" | "crm.search" | "agenda.schedule.read" | "agenda.appointments.confirm" | "cases.note" | "cases.close"
760
760
  /** Opções para o contato tocar (botões ou lista), anexadas à resposta final do turno. Só o agente; o operador é recusado. */
761
- | "conversations.reply_options";
761
+ | "conversations.reply_options"
762
+ /** Anexa à resposta final fotos, vídeos e PDFs da biblioteca escolhidos em `file_ids` (#1447). Só o agente. */
763
+ | "conversations.attach_files";
762
764
  /**
763
765
  * Configuração do agente na ENTRADA (`ai.agents.create` e `saveDraft`): o
764
766
  * provedor só pode ser `openai` ou `anthropic`. A leitura devolve
@@ -801,6 +803,8 @@ interface AiAgentConfig {
801
803
  allowed_stage_ids?: string[];
802
804
  knowledge_source_ids?: string[];
803
805
  skill_ids?: string[];
806
+ /** Arquivos da biblioteca (`ai.files`) que o agente pode mandar, até 40; com `conversations.attach_files` em `tool_ids` (#1447). */
807
+ file_ids?: string[];
804
808
  /** Opt-in platform skills composed at runtime; Customer copies override them. */
805
809
  platform_skills?: "none" | "all";
806
810
  memory_enabled?: boolean;
@@ -822,6 +826,11 @@ interface AiAgentConfig {
822
826
  enabled?: boolean;
823
827
  flow_ids?: string[];
824
828
  send_window?: AiWindow | null;
829
+ /** Template aprovado que o retorno agendado pelo agente envia com a janela de 24h fechada (só WhatsApp); null = alertar a equipe. */
830
+ return_template?: {
831
+ template_id: string;
832
+ variable_map?: Record<string, string>;
833
+ } | null;
825
834
  };
826
835
  safety?: {
827
836
  disclose_ai?: boolean;
@@ -1031,6 +1040,8 @@ type AiRouterConfig = {
1031
1040
  intent_description: string;
1032
1041
  examples?: string[];
1033
1042
  position?: number;
1043
+ /** Agente fixo: escolhido, fica com a conversa até ela ser fechada (padrão false). */
1044
+ keep_until_closed?: boolean;
1034
1045
  }[];
1035
1046
  };
1036
1047
  type AiRouter = Omit<AiRouterConfig, "classifier"> & {
@@ -1158,7 +1169,7 @@ type AiCase = {
1158
1169
  contact_name?: string | null;
1159
1170
  };
1160
1171
  type AiCaseKind = "agendamento" | "duvida" | "problema" | "financeiro" | "acesso" | "outro";
1161
- type AiCaseSource = "agent" | "guardrail" | "human" | "operator";
1172
+ type AiCaseSource = "agent" | "guardrail" | "human" | "operator" | "followup";
1162
1173
  type AiCaseEvent = {
1163
1174
  id: string;
1164
1175
  case_id: string;
@@ -1207,7 +1218,7 @@ type AiAlertBulkFilters = {
1207
1218
  severity?: AiAlert["severity"];
1208
1219
  status?: "open" | "acknowledged";
1209
1220
  };
1210
- type AiNoticeField = "case_title" | "case_summary" | "case_url" | "contact_name" | "agent_name";
1221
+ type AiNoticeField = "case_title" | "case_summary" | "case_url" | "contact_name" | "contact_phone" | "contact_name_and_phone" | "agent_name";
1211
1222
  type AiNoticeSettings = {
1212
1223
  enabled: boolean;
1213
1224
  contact_id: string | null;
@@ -1538,15 +1549,56 @@ type AiPlatformSkill = {
1538
1549
  installed_version_id: string | null;
1539
1550
  };
1540
1551
  type AiArtifactUploadInput = AiScope & {
1541
- kind: "knowledge" | "skill";
1552
+ kind: "knowledge" | "skill" | "file";
1542
1553
  file_name: string;
1543
1554
  mime_type: string;
1544
1555
  byte_size: number;
1545
1556
  sha256: string;
1546
1557
  name?: string;
1558
+ /** kind=file: quando o agente deve mandar o arquivo (obrigatório, até 500). */
1559
+ description?: string;
1560
+ /** kind=file: legenda opcional (até 1.024 caracteres e 1.000 bytes). */
1561
+ caption?: string | null;
1547
1562
  skill_id?: string;
1548
1563
  expected_revision?: string;
1549
1564
  };
1565
+ /** Arquivo da biblioteca do agente (#1447): foto, vídeo ou PDF que o agente pode mandar na conversa. */
1566
+ interface AiAgentFile {
1567
+ id: string;
1568
+ customer_id: string;
1569
+ name: string;
1570
+ /** Quando o agente deve mandar (o agente lê). */
1571
+ description: string;
1572
+ caption: string | null;
1573
+ media_type: "image" | "video" | "document";
1574
+ mime_type: string;
1575
+ file_name: string;
1576
+ byte_size: number;
1577
+ /** processing enquanto converte; failed com o motivo em last_error. */
1578
+ status: "processing" | "ready" | "failed";
1579
+ last_error: string | null;
1580
+ active: boolean;
1581
+ revision: string;
1582
+ created_at: string;
1583
+ updated_at: string;
1584
+ }
1585
+ interface AiAgentFileDetail extends AiAgentFile {
1586
+ usages: {
1587
+ agent_id: string;
1588
+ name: string;
1589
+ version_number: number;
1590
+ published: boolean;
1591
+ }[];
1592
+ /** Link curto para ver o arquivo; null sem armazenamento. Não guarde nem registre. */
1593
+ preview_url: string | null;
1594
+ preview_expires_at: string | null;
1595
+ }
1596
+ type AiAgentFilePatch = {
1597
+ name?: string;
1598
+ description?: string;
1599
+ caption?: string | null;
1600
+ active?: boolean;
1601
+ };
1550
1602
  interface AiPreparedUpload {
1551
1603
  upload_id: string;
1552
1604
  upload_url: string;
@@ -2873,6 +2925,8 @@ declare class AiRoutersResource {
2873
2925
  request_key: string;
2874
2926
  sticky_agent_id?: string | null;
2875
2927
  sticky_intent?: string | null;
2928
+ /** Última mensagem enviada ao contato, que o classificador lê como contexto. */
2929
+ last_sent_message?: string | null;
2876
2930
  }): Promise<AiRouterTest>;
2877
2931
  /** Ativa membro sem criar vínculo direto com canal. */
2878
2932
  activateMember(input: AiScope & {
@@ -3058,7 +3112,7 @@ declare class AiUploadsResource {
3058
3112
  prepare(input: AiArtifactUploadInput): Promise<AiPreparedUpload>;
3059
3113
  complete(input: AiScope & {
3060
3114
  id: string;
3061
- }): Promise<AiKnowledgeSource | AiSkill>;
3115
+ }): Promise<AiKnowledgeSource | AiSkill | AiAgentFile>;
3062
3116
  }
3063
3117
  declare class AiCommercialProposalsResource {
3064
3118
  private readonly client;
@@ -3177,9 +3231,42 @@ declare class AiStyleAdjustmentsResource {
3177
3231
  enabled: boolean;
3178
3232
  }): Promise<AiStyleAdjustment>;
3179
3233
  }
3234
+ /** Biblioteca de fotos, vídeos e PDFs que o agente manda na conversa (#1447). */
3235
+ declare class AiFilesResource {
3236
+ private readonly client;
3237
+ constructor(client: BotoZap);
3238
+ /** GET /ai/files */
3239
+ list(input: AiScope): Promise<AiAgentFile[]>;
3240
+ /** GET /ai/files/:id — com quem usa e o link curto de prévia. */
3241
+ get(input: AiScope & {
3242
+ id: string;
3243
+ }): Promise<AiAgentFileDetail>;
3244
+ /** PATCH /ai/files/:id — vale na hora para os agentes publicados que usam o arquivo. */
3245
+ update(input: AiRevision & {
3246
+ id: string;
3247
+ } & AiAgentFilePatch): Promise<AiAgentFile>;
3248
+ /** DELETE /ai/files/:id — 409 in_use se o arquivo está numa versão publicada. */
3249
+ remove(input: AiRevision & {
3250
+ id: string;
3251
+ }): Promise<void>;
3252
+ /**
3253
+ * Sobe foto (JPG/PNG), vídeo (MP4/MOV) ou PDF de até 25 MiB pelo upload direto (prepare, PUT na URL
3254
+ * assinada, complete). Repetir com os mesmos bytes e dados reaproveita o envio. Vídeo do iPhone e foto
3255
+ * grande voltam `processing` e ficam `ready` depois da conversão.
3256
+ */
3257
+ upload(input: AiScope & {
3258
+ file: Blob;
3259
+ file_name: string;
3260
+ name: string;
3261
+ description: string;
3262
+ caption?: string | null;
3263
+ onUploadPrepared?: AiUploadReceiptCallback;
3264
+ }): Promise<AiAgentFile>;
3265
+ }
3180
3266
  declare class Ai {
3181
3267
  private readonly client;
3182
3268
  readonly uploads: AiUploadsResource;
3269
+ readonly files: AiFilesResource;
3183
3270
  readonly agents: AiAgentsResource;
3184
3271
  readonly credentials: AiCredentialsResource;
3185
3272
  readonly providers: AiProvidersResource;
@@ -3426,7 +3513,8 @@ declare class Calendar {
3426
3513
  type StageColor = "zinc" | "green" | "amber" | "pink";
3427
3514
  interface ContactStage {
3428
3515
  id: string;
3429
- key: string;
3516
+ /** Só as quatro etapas padrão têm chave fixa; a criada pelo cliente vem `null`. */
3517
+ key: string | null;
3430
3518
  label: string;
3431
3519
  color: StageColor;
3432
3520
  position: number;
@@ -4001,7 +4089,13 @@ interface SendTemplateParams {
4001
4089
  interface SendImageParams {
4002
4090
  to: string;
4003
4091
  type: "image";
4004
- link: string;
4092
+ /** URL https pública do arquivo; ou `file_id` no lugar dele (um dos dois). */
4093
+ link?: string;
4094
+ /**
4095
+ * Arquivo pronto da biblioteca do agente (`GET /ai/files`) no lugar do `link` (#1447): sai por um link
4096
+ * curto assinado do armazenamento; a legenda da biblioteca não entra sozinha. Chave sandbox: 403.
4097
+ */
4098
+ file_id?: string;
4005
4099
  caption?: string;
4006
4100
  from?: string;
4007
4101
  /**
@@ -4035,7 +4129,13 @@ interface SendAudioParams {
4035
4129
  interface SendVideoParams {
4036
4130
  to: string;
4037
4131
  type: "video";
4038
- link: string;
4132
+ /** URL https pública do arquivo; ou `file_id` no lugar dele (um dos dois). */
4133
+ link?: string;
4134
+ /**
4135
+ * Arquivo pronto da biblioteca do agente (`GET /ai/files`) no lugar do `link` (#1447): sai por um link
4136
+ * curto assinado do armazenamento; a legenda da biblioteca não entra sozinha. Chave sandbox: 403.
4137
+ */
4138
+ file_id?: string;
4039
4139
  caption?: string;
4040
4140
  from?: string;
4041
4141
  /**
@@ -4049,7 +4149,13 @@ interface SendVideoParams {
4049
4149
  interface SendDocumentParams {
4050
4150
  to: string;
4051
4151
  type: "document";
4052
- link: string;
4152
+ /** URL https pública do arquivo; ou `file_id` no lugar dele (um dos dois). */
4153
+ link?: string;
4154
+ /**
4155
+ * Arquivo pronto da biblioteca do agente (`GET /ai/files`) no lugar do `link` (#1447): sai por um link
4156
+ * curto assinado do armazenamento; a legenda da biblioteca não entra sozinha. Chave sandbox: 403.
4157
+ */
4158
+ file_id?: string;
4053
4159
  caption?: string;
4054
4160
  filename?: string;
4055
4161
  from?: string;
@@ -4424,7 +4530,6 @@ interface CreateTemplateParams {
4424
4530
  */
4425
4531
  opt_out_buttons?: string[];
4426
4532
  }
4427
- /** Corpo de `PATCH /v1/templates/:id`. */
4428
4533
  interface SyncTemplatesParams {
4429
4534
  /** Só as conexões deste Cliente; sem ele, todas as conexões ativas da conta. */
4430
4535
  customer_id?: string;
@@ -4442,12 +4547,26 @@ interface TemplateSyncResult {
4442
4547
  /** Uma régua de modelo não acompanhou a mudança de status: sincronize de novo. */
4443
4548
  automations_outdated: boolean;
4444
4549
  }
4550
+ /** Corpo de `PATCH /v1/templates/:id`. */
4445
4551
  interface UpdateTemplateParams {
4446
4552
  /**
4447
- * Textos dos botões de resposta rápida que são de saída; `[]` limpa a marcação.
4448
- * Anotação do BotoZap: não altera o template na Meta.
4553
+ * Componentes novos, no formato da criação: edita o template e o devolve à
4554
+ * análise da Meta (`status` volta a `PENDING`). Nome e idioma não mudam.
4449
4555
  */
4450
- opt_out_buttons: string[];
4556
+ components?: unknown[];
4557
+ /** Categoria nova, junto com `components`; ausente mantém a atual. */
4558
+ category?: string;
4559
+ /**
4560
+ * Textos dos botões de resposta rápida que são de saída; `[]` limpa. Sozinho,
4561
+ * é anotação do BotoZap e não altera o template na Meta; com `components`,
4562
+ * ausente mantém a marcação atual.
4563
+ */
4564
+ opt_out_buttons?: string[];
4565
+ }
4566
+ /** Resultado de `templates.delete()`. */
4567
+ interface DeletedTemplate {
4568
+ id: string;
4569
+ deleted: true;
4451
4570
  }
4452
4571
  /** Endpoints de template (GET/POST /v1/templates, GET /v1/templates/:id). */
4453
4572
  declare class Templates {
@@ -4460,10 +4579,11 @@ declare class Templates {
4460
4579
  /** Cria um template e o submete à Meta para análise. */
4461
4580
  create(params: CreateTemplateParams): Promise<Template>;
4462
4581
  /**
4463
- * Marca quais botões de resposta rápida são de saída (`opt_out_buttons`). O toque
4464
- * num botão marcado grava a recusa da finalidade do template; botão não marcado
4465
- * não muda nada, qualquer que seja o texto. Não altera o template na Meta.
4466
- * Scope `templates:write`.
4582
+ * Com `components` (e `category`), edita o template e o devolve à análise da
4583
+ * Meta, como o Editar do painel: em análise responde 409 `template_in_review`;
4584
+ * sem id da Meta, 409 `template_not_synced`. Só com `opt_out_buttons`, marca
4585
+ * quais botões de resposta rápida são de saída, sem alterar o template na
4586
+ * Meta. Scope `templates:write`.
4467
4587
  */
4468
4588
  update(id: string, params: UpdateTemplateParams): Promise<Template>;
4469
4589
  /**
@@ -4474,6 +4594,12 @@ declare class Templates {
4474
4594
  * responde 409 `reconnect_required`. Scope `templates:write`.
4475
4595
  */
4476
4596
  sync(params?: SyncTemplatesParams): Promise<TemplateSyncResult>;
4597
+ /**
4598
+ * Exclui o template na Meta e aqui, como o Excluir do painel. Com o id da Meta
4599
+ * apaga só aquela versão de idioma; sem ele, a Meta apaga todas as do mesmo
4600
+ * nome. Não dá para desfazer. Só chave de produção. Scope `templates:write`.
4601
+ */
4602
+ delete(id: string): Promise<DeletedTemplate>;
4477
4603
  }
4478
4604
 
4479
4605
  interface ListBroadcastsParams extends OffsetParams {
@@ -4738,6 +4864,25 @@ interface ConversationReadResult {
4738
4864
  /** Momento da leitura gravado (ISO 8601). */
4739
4865
  last_read_at: string;
4740
4866
  }
4867
+ /**
4868
+ * Envio manual do WhatsApp (API ou painel) que a Meta não confirmou (timeout ou erro de rede) em
4869
+ * cerca de 5 minutos, em `conversations.listPendingSends`. Antes desse prazo a confirmação ainda
4870
+ * pode chegar, e o envio não aparece.
4871
+ */
4872
+ interface PendingSend {
4873
+ id: string;
4874
+ status: "unconfirmed";
4875
+ /** Tipo da mensagem guardada no envio (`text`, `template`, `image`...), quando há. */
4876
+ kind: string | null;
4877
+ /** O texto que identifica o envio (corpo, legenda ou nome do template), quando há. */
4878
+ preview: string | null;
4879
+ created_at: string;
4880
+ }
4881
+ /** Resposta de `conversations.markPendingSend` (200). */
4882
+ interface PendingSendMarkResult {
4883
+ id: string;
4884
+ status: "sent" | "not_sent";
4885
+ }
4741
4886
  /** Conversas (read + status) e atribuições a membros. */
4742
4887
  declare class Conversations {
4743
4888
  private readonly client;
@@ -4801,6 +4946,19 @@ declare class Conversations {
4801
4946
  * (grava a leitura sem avisar a Meta).
4802
4947
  */
4803
4948
  markRead(id: string): Promise<ConversationReadResult>;
4949
+ /**
4950
+ * Envios manuais do WhatsApp da conversa que a Meta não confirmou em cerca de 5 minutos, como o
4951
+ * aviso na conversa no painel. Quando a Meta confirma, a mensagem entra no histórico sozinha.
4952
+ * Envios da IA, respostas automáticas, transmissões, réguas e Instagram têm conciliação própria
4953
+ * e não aparecem. Conversa de outra Conta: 404. Scope `conversations:read`.
4954
+ */
4955
+ listPendingSends(id: string): Promise<PendingSend[]>;
4956
+ /**
4957
+ * Diz se o envio sem confirmação chegou ao contato, como "Saiu" e "Não saiu" no painel:
4958
+ * `sent` põe a mensagem no histórico (sem o id da Meta); `not_sent` libera para enviar de novo.
4959
+ * Nada é reenviado. Envio já resolvido: 409 `send_not_pending`. Scope `messages:send`.
4960
+ */
4961
+ markPendingSend(id: string, sendId: string, outcome: "sent" | "not_sent"): Promise<PendingSendMarkResult>;
4804
4962
  /**
4805
4963
  * Exclui a conversa, com efeito imediato e sem volta: mensagens, notas,
4806
4964
  * atribuições, vínculos com oportunidades e demandas e o que a IA guardou
@@ -5205,8 +5363,11 @@ declare class PhoneNumbers {
5205
5363
  /**
5206
5364
  * Inscreve o BotoZap de novo para receber as mensagens do número, com a
5207
5365
  * autorização já guardada, sem refazer a conexão. Resolve a prontidão
5208
- * `webhooks_lost`; autorização recusada pela Meta responde 409
5209
- * `reconnect_required` (aí só o link de setup resolve). Scope `numbers:write`.
5366
+ * `webhooks_lost` quando o app saiu da conta do WhatsApp. Se a conta mudou de
5367
+ * portfólio na Meta, devolve `missing`, e autorização recusada pela Meta
5368
+ * responde 409 `reconnect_required`: nos dois casos, só o link de setup
5369
+ * resolve. `unknown` = a Meta não confirmou agora; confira com `health` em
5370
+ * instantes. Scope `numbers:write`.
5210
5371
  */
5211
5372
  resubscribeWebhooks(id: string): Promise<WebhookSubscription>;
5212
5373
  }
@@ -6379,4 +6540,4 @@ declare function isConsentRevoked(error: unknown): error is BotoZapError;
6379
6540
  */
6380
6541
  declare function isNotConnected(error: unknown): error is BotoZapError;
6381
6542
 
6382
- export { AI_CONFIGURABLE_PURPOSES, AI_CREDENTIAL_PROVIDERS, AI_OPERATIONS, AI_PURPOSES, type AccountExport, type AddRecipientsError, type AddRecipientsResult, AgendaConfiguration, AgendaExceptions, type AgendaRecord, Ai, type AiAgent, type AiAgentConfig, type AiAgentConfigRead, type AiAgentCoverage, type AiAgentDiagnostic, type AiAgentInput, type AiAgentVersion, AiAgentsResource, type AiAlert, type AiAlertBulkFilters, type AiAlertListItem, AiAlertsResource, type AiArtifactUploadInput, type AiAudioPricing, type AiBinding, type AiBindingTarget, type AiBindingTargetRead, 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 AiDiagnosticCheck, type AiDiagnosticStatus, type AiDraftResult, type AiEligibilityOverview, AiEligibilityResource, type AiEligibilitySettings, type AiEnabledProvider, 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, type Billing, type BillingGuarantee, type BillingPlan, type BlockUserParams, type BlockUserResult, type BlockedUser, BotoZap, BotoZapError, type BotoZapErrorCode, type BotoZapEvent, type BotoZapOptions, type Broadcast, type BroadcastRecipient, type BroadcastRecipientInput, type BusinessSlot, Calendar, type CalendarConnection, type CalendarJob, type CalendarSelection, type ChannelAccount, type ChannelAccountRef, ChannelAccounts, type CommentAiDeliveryStatus, type CommentRule, type CommentRuleCounters, type CommentRuleMetrics, type CommentRuleMetricsParams, type CommentRuleStatus, type ConnectionBilling, type ConnectionBillingOutcome, type ConnectionBillingRefusal, type Consent, type ConsentChannel, type ConsentOrigin, type ConsentPurpose, type ConsentRequestResult, type ConsentState, type Contact, type ContactConsents, type ContactField, ContactFields, type ContactStage, ContactStages, type ContactWarning, type Conversation, type ConversationEntryPoint, type ConversationNote, type ConversationReadResult, type ConversationReferral, type ConversationReminder, type ConversationTypingResult, type ConversationalAutomation, type ConversationalCommand, type CreateAppointment, type CreateAssignmentParams, type CreateBroadcastParams, type CreateBusinessSlotOptions, type CreateCommentRuleParams, type CreateContactParams, type CreateCustomerParams, type CreateDemand, type CreateExportParams, type CreateMessageRuleParams, type CreateOpportunity, type CreateQrCodeParams, 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 CustomerBusinessSlot, type DeleteCommentRuleResult, type DeleteMessageRuleResult, type Demand, type DemandFields, type EnableJourneyModelParams, type EventList, type EventPaging, type ExportDownload, type ExportFormat, type ExportScope, type ExportStatus, type FixedRuleMessage, type HistoryImport, type HistoryImportStatus, type HistoryImportWindowDays, Inbox, type InboxMutation, type InboxMutationResult, type InboxState, type InboxTools, type InitialConsent, type InstagramCommentAi, type InstagramCommentAiAutomation, type InstagramCommentAiRepliedEvent, type InstagramCommentAiRun, type InstagramConnection, 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 JourneyCatalogItem, type JourneyCatalogSegment, type JourneyCatalogTrigger, type JourneyConfig, type JourneyEnrollment, type JourneyModelEnableResult, 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 ListTeamEventsParams, type ListTemplatesParams, type ListWebhookDeliveriesParams, type Me, type MediaAsset, type MediaUploadResult, type Message, type MessageChannel, type MessageContent, type MessageEdit, type MessageReplyTo, type MessageRule, type MessageRuleAction, type MessageRuleQrParams, 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, PhoneNumberBlockedUsers, PhoneNumberQrCodes, type QrImageFormat, type QuickReply, Radar, type RadarEntry, type RadarPage, type RadarQuery, type RecordConsentParams, type ReplyConversationParams, type ReplyToParam, type RequestConsentParams, 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 SetHistoryImportParams, type SetupLink, type StageColor, type StageRule, type StageRuleInput, type SyncTemplatesParams, type TeamEvent, type TeamEventActor, type TeamEventTarget, type Template, type TemplatePayload, type TemplateSyncResult, type UnblockUserResult, type UpdateAppointment, type UpdateBroadcastParams, type UpdateCommentAiParams, type UpdateCommentRuleParams, type UpdateContactParams, type UpdateConversationalAutomationParams, type UpdateCustomerParams, type UpdateMessageRuleParams, type UpdateMessengerProfileParams, type UpdatePhoneNumberParams, type UpdateSetupLinkParams, type UpdateTemplateParams, type UpdateWebhookParams, type UpdateWhatsAppProfileParams, type UploadMediaParams, type UploadProfilePhotoParams, type User, WEBHOOK_CATEGORIES, type Webhook, type WebhookAuthorizationHeaders, type WebhookCategory, type WebhookChannelHealth, type WebhookChannelHealthStatus, type WebhookDelivery, type WebhookDeliveryReplay, type WebhookDeliveryStatus, type WebhookSubscription, type WebhookSubscriptionState, type WhatsAppBusinessProfile, type WhatsAppBusinessVertical, type WhatsAppQrCode, isBusinessPaymentRequired, isConsentOptedOut, isConsentRevoked, isFreeCap, isFreeNumberCap, isNotConnected, isPlanError };
6543
+ export { AI_CONFIGURABLE_PURPOSES, AI_CREDENTIAL_PROVIDERS, AI_OPERATIONS, AI_PURPOSES, type AccountExport, type AddRecipientsError, type AddRecipientsResult, AgendaConfiguration, AgendaExceptions, type AgendaRecord, Ai, type AiAgent, type AiAgentConfig, type AiAgentConfigRead, type AiAgentCoverage, type AiAgentDiagnostic, type AiAgentFile, type AiAgentFileDetail, type AiAgentFilePatch, type AiAgentInput, type AiAgentVersion, AiAgentsResource, type AiAlert, type AiAlertBulkFilters, type AiAlertListItem, AiAlertsResource, type AiArtifactUploadInput, type AiAudioPricing, type AiBinding, type AiBindingTarget, type AiBindingTargetRead, 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 AiDiagnosticCheck, type AiDiagnosticStatus, type AiDraftResult, type AiEligibilityOverview, AiEligibilityResource, type AiEligibilitySettings, type AiEnabledProvider, type AiEnrollment, type AiEvolution, AiEvolutionResource, type AiEvolutionSource, type AiExecution, type AiExecutionCitations, type AiExecutionSecurity, AiExecutionsResource, type AiField, AiFilesResource, 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, type Billing, type BillingGuarantee, type BillingPlan, type BlockUserParams, type BlockUserResult, type BlockedUser, BotoZap, BotoZapError, type BotoZapErrorCode, type BotoZapEvent, type BotoZapOptions, type Broadcast, type BroadcastRecipient, type BroadcastRecipientInput, type BusinessSlot, Calendar, type CalendarConnection, type CalendarJob, type CalendarSelection, type ChannelAccount, type ChannelAccountRef, ChannelAccounts, type CommentAiDeliveryStatus, type CommentRule, type CommentRuleCounters, type CommentRuleMetrics, type CommentRuleMetricsParams, type CommentRuleStatus, type ConnectionBilling, type ConnectionBillingOutcome, type ConnectionBillingRefusal, type Consent, type ConsentChannel, type ConsentOrigin, type ConsentPurpose, type ConsentRequestResult, type ConsentState, type Contact, type ContactConsents, type ContactField, ContactFields, type ContactStage, ContactStages, type ContactWarning, type Conversation, type ConversationEntryPoint, type ConversationNote, type ConversationReadResult, type ConversationReferral, type ConversationReminder, type ConversationTypingResult, type ConversationalAutomation, type ConversationalCommand, type CreateAppointment, type CreateAssignmentParams, type CreateBroadcastParams, type CreateBusinessSlotOptions, type CreateCommentRuleParams, type CreateContactParams, type CreateCustomerParams, type CreateDemand, type CreateExportParams, type CreateMessageRuleParams, type CreateOpportunity, type CreateQrCodeParams, 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 CustomerBusinessSlot, type DeleteCommentRuleResult, type DeleteMessageRuleResult, type DeletedTemplate, type Demand, type DemandFields, type EnableJourneyModelParams, type EventList, type EventPaging, type ExportDownload, type ExportFormat, type ExportScope, type ExportStatus, type FixedRuleMessage, type HistoryImport, type HistoryImportStatus, type HistoryImportWindowDays, Inbox, type InboxMutation, type InboxMutationResult, type InboxState, type InboxTools, type InitialConsent, type InstagramCommentAi, type InstagramCommentAiAutomation, type InstagramCommentAiRepliedEvent, type InstagramCommentAiRun, type InstagramConnection, 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 JourneyCatalogItem, type JourneyCatalogSegment, type JourneyCatalogTrigger, type JourneyConfig, type JourneyEnrollment, type JourneyModelEnableResult, 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 ListTeamEventsParams, type ListTemplatesParams, type ListWebhookDeliveriesParams, type Me, type MediaAsset, type MediaUploadResult, type Message, type MessageChannel, type MessageContent, type MessageEdit, type MessageReplyTo, type MessageRule, type MessageRuleAction, type MessageRuleQrParams, 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, PhoneNumberBlockedUsers, PhoneNumberQrCodes, type QrImageFormat, type QuickReply, Radar, type RadarEntry, type RadarPage, type RadarQuery, type RecordConsentParams, type ReplyConversationParams, type ReplyToParam, type RequestConsentParams, 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 SetHistoryImportParams, type SetupLink, type StageColor, type StageRule, type StageRuleInput, type SyncTemplatesParams, type TeamEvent, type TeamEventActor, type TeamEventTarget, type Template, type TemplatePayload, type TemplateSyncResult, type UnblockUserResult, type UpdateAppointment, type UpdateBroadcastParams, type UpdateCommentAiParams, type UpdateCommentRuleParams, type UpdateContactParams, type UpdateConversationalAutomationParams, type UpdateCustomerParams, type UpdateMessageRuleParams, type UpdateMessengerProfileParams, type UpdatePhoneNumberParams, type UpdateSetupLinkParams, type UpdateTemplateParams, type UpdateWebhookParams, type UpdateWhatsAppProfileParams, type UploadMediaParams, type UploadProfilePhotoParams, type User, WEBHOOK_CATEGORIES, type Webhook, type WebhookAuthorizationHeaders, type WebhookCategory, type WebhookChannelHealth, type WebhookChannelHealthStatus, type WebhookDelivery, type WebhookDeliveryReplay, type WebhookDeliveryStatus, type WebhookSubscription, type WebhookSubscriptionState, type WhatsAppBusinessProfile, type WhatsAppBusinessVertical, type WhatsAppQrCode, isBusinessPaymentRequired, isConsentOptedOut, isConsentRevoked, isFreeCap, isFreeNumberCap, isNotConnected, isPlanError };