@automagik/omni 2.260924.2 → 2.260929.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/server/index.js
CHANGED
|
@@ -266444,7 +266444,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
266444
266444
|
var require_package7 = __commonJS((exports, module) => {
|
|
266445
266445
|
module.exports = {
|
|
266446
266446
|
name: "@omni/api",
|
|
266447
|
-
version: "2.
|
|
266447
|
+
version: "2.260929.2",
|
|
266448
266448
|
private: true,
|
|
266449
266449
|
type: "module",
|
|
266450
266450
|
exports: {
|
|
@@ -398210,6 +398210,7 @@ var init_messages5 = __esm(() => {
|
|
|
398210
398210
|
text: exports_external.string().min(1).describe("Message text shown to end user"),
|
|
398211
398211
|
dadosLead: exports_external.string().optional().describe("Free-text lead data summary for the human attendant"),
|
|
398212
398212
|
motivoHandoff: exports_external.string().optional().describe('Handoff trigger and notes (e.g. "Gatilho: sinalizou close ||| Obs: ...")'),
|
|
398213
|
+
motivoDesvio: exports_external.string().max(40).nullable().optional().describe("Optional audit tag from the calling agent: a short code for how it normalized motivoHandoff before sending; null = no normalization was needed. Stored in handoff_logs.metadata only, never forwarded to the channel."),
|
|
398213
398214
|
extraInfo: exports_external.string().optional().describe("Free-text briefing (legacy \u2014 prefer dadosLead)"),
|
|
398214
398215
|
handoffFields: exports_external.record(exports_external.unknown()).optional().describe("Structured fields for Gupshup flow variables (e.g. nome, cidade, temperatura_lead)")
|
|
398215
398216
|
});
|
|
@@ -410889,7 +410890,8 @@ var init_messages6 = __esm(() => {
|
|
|
410889
410890
|
metadata: {
|
|
410890
410891
|
instanceChannel: instance4.channel,
|
|
410891
410892
|
channelHandoffSupported: hasNativeHandoff,
|
|
410892
|
-
...data.motivoHandoff ? { motivoHandoff: data.motivoHandoff } : {}
|
|
410893
|
+
...data.motivoHandoff ? { motivoHandoff: data.motivoHandoff } : {},
|
|
410894
|
+
...data.motivoDesvio !== undefined ? { motivoDesvio: data.motivoDesvio } : {}
|
|
410893
410895
|
}
|
|
410894
410896
|
}).catch((err2) => log126.warn("Failed to persist handoff log", { error: String(err2) }));
|
|
410895
410897
|
return c.json({
|