@adatechnology/meta-whatsapp-module 0.2.0-rc.4 → 0.2.0-rc.5

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
@@ -431,7 +431,7 @@ declare const messages: drizzle_orm_pg_core.PgTableWithColumns<{
431
431
  identity: undefined;
432
432
  generated: undefined;
433
433
  }, {}, {
434
- length: 16;
434
+ length: 32;
435
435
  }>;
436
436
  content: drizzle_orm_pg_core.PgColumn<{
437
437
  name: "content";
package/dist/index.d.ts CHANGED
@@ -431,7 +431,7 @@ declare const messages: drizzle_orm_pg_core.PgTableWithColumns<{
431
431
  identity: undefined;
432
432
  generated: undefined;
433
433
  }, {}, {
434
- length: 16;
434
+ length: 32;
435
435
  }>;
436
436
  content: drizzle_orm_pg_core.PgColumn<{
437
437
  name: "content";
package/dist/index.js CHANGED
@@ -85,9 +85,14 @@ var messages = metaWhatsAppSchema.table("messages", {
85
85
  length: 12
86
86
  }).notNull(),
87
87
  agentUserId: uuid("agent_user_id"),
88
- type: varchar("type", {
89
- length: 16
90
- }).notNull().default("text"),
88
+ // 32, não 16: os tipos da própria Meta são curtos ('text', 'interactive'), mas o host rotula
89
+ type: (
90
+ // a saída com o subtipo que enviou ('interactive_buttons' já tem 19). Apertar aqui só
91
+ // transfere para o consumidor a escolha entre truncar o rótulo e estourar o insert.
92
+ varchar("type", {
93
+ length: 32
94
+ }).notNull().default("text")
95
+ ),
91
96
  content: text("content"),
92
97
  // T5.4 — nunca base64 aqui; mídia vive no ObjectStorageInterface do host, referenciada por
93
98
  // uploadId dentro deste jsonb.