portal-aiatende-api 0.1.0 → 0.1.2

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.mts CHANGED
@@ -21,6 +21,8 @@ interface Client {
21
21
  name: string;
22
22
  email: string;
23
23
  phone: string;
24
+ /** JID de grupo (`...@g.us`) ou número pessoal, no formato aceito pelo Evolution API, pra onde a AI Atende envia notificações de ações importantes da IA (handoff, agendamento). */
25
+ notificationTarget?: string | null;
24
26
  document: string;
25
27
  type: 'individual' | 'company';
26
28
  status: 'active' | 'onboarding' | 'churned' | 'suspended';
@@ -79,6 +81,10 @@ interface AiConfig {
79
81
  experiments?: AiExperimentConfig;
80
82
  schedule?: AiActivationSchedule;
81
83
  splitMessages?: boolean;
84
+ /** Duração (segundos) da pausa automática da IA quando um atendente humano responde manualmente pelo Kommo. 0 = desligado. Teto de 86400 (24h). */
85
+ autoPauseOnHumanReplySeconds?: number;
86
+ /** Estado inicial da IA (tags IA ATIVA/IA INATIVA) pra um lead que ainda não tem nenhuma das 3 tags de estado. */
87
+ untaggedLeadAiState?: 'inactive' | 'active' | 'active_for_new_leads';
82
88
  [key: string]: any;
83
89
  }
84
90
  interface AiExperimentCriteria {
package/dist/index.d.ts CHANGED
@@ -21,6 +21,8 @@ interface Client {
21
21
  name: string;
22
22
  email: string;
23
23
  phone: string;
24
+ /** JID de grupo (`...@g.us`) ou número pessoal, no formato aceito pelo Evolution API, pra onde a AI Atende envia notificações de ações importantes da IA (handoff, agendamento). */
25
+ notificationTarget?: string | null;
24
26
  document: string;
25
27
  type: 'individual' | 'company';
26
28
  status: 'active' | 'onboarding' | 'churned' | 'suspended';
@@ -79,6 +81,10 @@ interface AiConfig {
79
81
  experiments?: AiExperimentConfig;
80
82
  schedule?: AiActivationSchedule;
81
83
  splitMessages?: boolean;
84
+ /** Duração (segundos) da pausa automática da IA quando um atendente humano responde manualmente pelo Kommo. 0 = desligado. Teto de 86400 (24h). */
85
+ autoPauseOnHumanReplySeconds?: number;
86
+ /** Estado inicial da IA (tags IA ATIVA/IA INATIVA) pra um lead que ainda não tem nenhuma das 3 tags de estado. */
87
+ untaggedLeadAiState?: 'inactive' | 'active' | 'active_for_new_leads';
82
88
  [key: string]: any;
83
89
  }
84
90
  interface AiExperimentCriteria {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portal-aiatende-api",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Cliente TypeScript tipado para a API interna do Portal AI Atende.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -30,4 +30,4 @@
30
30
  "tsup": "^8.5.1",
31
31
  "typescript": "^5.7.2"
32
32
  }
33
- }
33
+ }