evo360-types 1.3.394 → 1.3.396

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.
@@ -4,7 +4,7 @@ export declare const zTaskStatusSchema: z.ZodEnum<["not_started", "in_progress",
4
4
  export declare const zTaskPrioritySchema: z.ZodEnum<["low", "medium", "high"]>;
5
5
  export declare const zTaskSourceSchema: z.ZodEnum<["user", "automation_hub", "system"]>;
6
6
  export declare const zTaskModeSchema: z.ZodEnum<["human", "auto"]>;
7
- export declare const zTaskAutoHandlerSchema: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
7
+ export declare const zTaskAutoHandlerSchema: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
8
8
  export declare const zTaskRetryStrategySchema: z.ZodEnum<["fixed", "exponential"]>;
9
9
  export declare const zTaskDedupScopeSchema: z.ZodEnum<["per_recipient", "per_recipient_and_object", "custom"]>;
10
10
  export declare const zTaskDedupWindowSchema: z.ZodEnum<["same_day", "n_hours", "custom"]>;
@@ -188,19 +188,19 @@ export declare const zTaskDedupSchema: z.ZodObject<{
188
188
  importance: z.ZodOptional<z.ZodNumber>;
189
189
  }, z.ZodTypeAny, "passthrough">>;
190
190
  export declare const zTaskAutoSpecSchema: z.ZodObject<{
191
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
191
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
192
192
  kind: z.ZodString;
193
193
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
194
194
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
195
195
  idempotency_key: z.ZodOptional<z.ZodString>;
196
196
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
197
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
197
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
198
198
  kind: z.ZodString;
199
199
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
200
200
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
201
201
  idempotency_key: z.ZodOptional<z.ZodString>;
202
202
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
203
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
203
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
204
204
  kind: z.ZodString;
205
205
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
206
206
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -264,16 +264,16 @@ export declare const zTaskOnFailureSchema: z.ZodObject<{
264
264
  priority?: "low" | "medium" | "high" | undefined;
265
265
  }>>;
266
266
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
267
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
268
268
  kind: z.ZodString;
269
269
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
270
270
  }, "strip", z.ZodTypeAny, {
271
271
  kind: string;
272
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
272
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
273
273
  payload: Record<string, unknown>;
274
274
  }, {
275
275
  kind: string;
276
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
276
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
277
277
  payload: Record<string, unknown>;
278
278
  }>, "many">>;
279
279
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -334,16 +334,16 @@ export declare const zTaskOnFailureSchema: z.ZodObject<{
334
334
  priority?: "low" | "medium" | "high" | undefined;
335
335
  }>>;
336
336
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
337
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
337
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
338
338
  kind: z.ZodString;
339
339
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
340
340
  }, "strip", z.ZodTypeAny, {
341
341
  kind: string;
342
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
342
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
343
343
  payload: Record<string, unknown>;
344
344
  }, {
345
345
  kind: string;
346
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
346
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
347
347
  payload: Record<string, unknown>;
348
348
  }>, "many">>;
349
349
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -404,16 +404,16 @@ export declare const zTaskOnFailureSchema: z.ZodObject<{
404
404
  priority?: "low" | "medium" | "high" | undefined;
405
405
  }>>;
406
406
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
407
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
407
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
408
408
  kind: z.ZodString;
409
409
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
410
410
  }, "strip", z.ZodTypeAny, {
411
411
  kind: string;
412
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
412
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
413
413
  payload: Record<string, unknown>;
414
414
  }, {
415
415
  kind: string;
416
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
416
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
417
417
  payload: Record<string, unknown>;
418
418
  }>, "many">>;
419
419
  }, z.ZodTypeAny, "passthrough">>;
@@ -677,16 +677,16 @@ export declare const zTaskSchema: z.ZodObject<{
677
677
  priority?: "low" | "medium" | "high" | undefined;
678
678
  }>>;
679
679
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
680
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
680
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
681
681
  kind: z.ZodString;
682
682
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
683
683
  }, "strip", z.ZodTypeAny, {
684
684
  kind: string;
685
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
685
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
686
686
  payload: Record<string, unknown>;
687
687
  }, {
688
688
  kind: string;
689
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
689
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
690
690
  payload: Record<string, unknown>;
691
691
  }>, "many">>;
692
692
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -747,16 +747,16 @@ export declare const zTaskSchema: z.ZodObject<{
747
747
  priority?: "low" | "medium" | "high" | undefined;
748
748
  }>>;
749
749
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
750
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
750
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
751
751
  kind: z.ZodString;
752
752
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
753
753
  }, "strip", z.ZodTypeAny, {
754
754
  kind: string;
755
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
755
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
756
756
  payload: Record<string, unknown>;
757
757
  }, {
758
758
  kind: string;
759
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
759
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
760
760
  payload: Record<string, unknown>;
761
761
  }>, "many">>;
762
762
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -817,16 +817,16 @@ export declare const zTaskSchema: z.ZodObject<{
817
817
  priority?: "low" | "medium" | "high" | undefined;
818
818
  }>>;
819
819
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
820
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
820
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
821
821
  kind: z.ZodString;
822
822
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
823
823
  }, "strip", z.ZodTypeAny, {
824
824
  kind: string;
825
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
825
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
826
826
  payload: Record<string, unknown>;
827
827
  }, {
828
828
  kind: string;
829
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
829
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
830
830
  payload: Record<string, unknown>;
831
831
  }>, "many">>;
832
832
  }, z.ZodTypeAny, "passthrough">>>;
@@ -847,19 +847,19 @@ export declare const zTaskSchema: z.ZodObject<{
847
847
  dispatched_attempts: z.ZodOptional<z.ZodNumber>;
848
848
  }, z.ZodTypeAny, "passthrough">>>;
849
849
  auto: z.ZodOptional<z.ZodObject<{
850
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
850
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
851
851
  kind: z.ZodString;
852
852
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
853
853
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
854
854
  idempotency_key: z.ZodOptional<z.ZodString>;
855
855
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
856
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
856
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
857
857
  kind: z.ZodString;
858
858
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
859
859
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
860
860
  idempotency_key: z.ZodOptional<z.ZodString>;
861
861
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
862
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
862
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
863
863
  kind: z.ZodString;
864
864
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
865
865
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1115,16 +1115,16 @@ export declare const zTaskSchema: z.ZodObject<{
1115
1115
  priority?: "low" | "medium" | "high" | undefined;
1116
1116
  }>>;
1117
1117
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1118
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1118
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1119
1119
  kind: z.ZodString;
1120
1120
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1121
1121
  }, "strip", z.ZodTypeAny, {
1122
1122
  kind: string;
1123
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1123
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1124
1124
  payload: Record<string, unknown>;
1125
1125
  }, {
1126
1126
  kind: string;
1127
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1127
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1128
1128
  payload: Record<string, unknown>;
1129
1129
  }>, "many">>;
1130
1130
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1185,16 +1185,16 @@ export declare const zTaskSchema: z.ZodObject<{
1185
1185
  priority?: "low" | "medium" | "high" | undefined;
1186
1186
  }>>;
1187
1187
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1188
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1188
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1189
1189
  kind: z.ZodString;
1190
1190
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1191
1191
  }, "strip", z.ZodTypeAny, {
1192
1192
  kind: string;
1193
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1193
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1194
1194
  payload: Record<string, unknown>;
1195
1195
  }, {
1196
1196
  kind: string;
1197
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1197
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1198
1198
  payload: Record<string, unknown>;
1199
1199
  }>, "many">>;
1200
1200
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1255,16 +1255,16 @@ export declare const zTaskSchema: z.ZodObject<{
1255
1255
  priority?: "low" | "medium" | "high" | undefined;
1256
1256
  }>>;
1257
1257
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1258
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1259
1259
  kind: z.ZodString;
1260
1260
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1261
1261
  }, "strip", z.ZodTypeAny, {
1262
1262
  kind: string;
1263
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1263
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1264
1264
  payload: Record<string, unknown>;
1265
1265
  }, {
1266
1266
  kind: string;
1267
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1267
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1268
1268
  payload: Record<string, unknown>;
1269
1269
  }>, "many">>;
1270
1270
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1285,19 +1285,19 @@ export declare const zTaskSchema: z.ZodObject<{
1285
1285
  dispatched_attempts: z.ZodOptional<z.ZodNumber>;
1286
1286
  }, z.ZodTypeAny, "passthrough">>>;
1287
1287
  auto: z.ZodOptional<z.ZodObject<{
1288
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1288
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1289
1289
  kind: z.ZodString;
1290
1290
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1291
1291
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1292
1292
  idempotency_key: z.ZodOptional<z.ZodString>;
1293
1293
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1294
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1294
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1295
1295
  kind: z.ZodString;
1296
1296
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1297
1297
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1298
1298
  idempotency_key: z.ZodOptional<z.ZodString>;
1299
1299
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1300
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1300
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1301
1301
  kind: z.ZodString;
1302
1302
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1303
1303
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1553,16 +1553,16 @@ export declare const zTaskSchema: z.ZodObject<{
1553
1553
  priority?: "low" | "medium" | "high" | undefined;
1554
1554
  }>>;
1555
1555
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1556
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1556
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1557
1557
  kind: z.ZodString;
1558
1558
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1559
1559
  }, "strip", z.ZodTypeAny, {
1560
1560
  kind: string;
1561
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1561
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1562
1562
  payload: Record<string, unknown>;
1563
1563
  }, {
1564
1564
  kind: string;
1565
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1565
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1566
1566
  payload: Record<string, unknown>;
1567
1567
  }>, "many">>;
1568
1568
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1623,16 +1623,16 @@ export declare const zTaskSchema: z.ZodObject<{
1623
1623
  priority?: "low" | "medium" | "high" | undefined;
1624
1624
  }>>;
1625
1625
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1626
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1626
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1627
1627
  kind: z.ZodString;
1628
1628
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1629
1629
  }, "strip", z.ZodTypeAny, {
1630
1630
  kind: string;
1631
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1631
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1632
1632
  payload: Record<string, unknown>;
1633
1633
  }, {
1634
1634
  kind: string;
1635
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1635
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1636
1636
  payload: Record<string, unknown>;
1637
1637
  }>, "many">>;
1638
1638
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1693,16 +1693,16 @@ export declare const zTaskSchema: z.ZodObject<{
1693
1693
  priority?: "low" | "medium" | "high" | undefined;
1694
1694
  }>>;
1695
1695
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1696
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1696
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1697
1697
  kind: z.ZodString;
1698
1698
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1699
1699
  }, "strip", z.ZodTypeAny, {
1700
1700
  kind: string;
1701
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1701
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1702
1702
  payload: Record<string, unknown>;
1703
1703
  }, {
1704
1704
  kind: string;
1705
- handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation";
1705
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom" | "lead_reactivation" | "appointment_action";
1706
1706
  payload: Record<string, unknown>;
1707
1707
  }>, "many">>;
1708
1708
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1723,19 +1723,19 @@ export declare const zTaskSchema: z.ZodObject<{
1723
1723
  dispatched_attempts: z.ZodOptional<z.ZodNumber>;
1724
1724
  }, z.ZodTypeAny, "passthrough">>>;
1725
1725
  auto: z.ZodOptional<z.ZodObject<{
1726
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1726
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1727
1727
  kind: z.ZodString;
1728
1728
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1729
1729
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1730
1730
  idempotency_key: z.ZodOptional<z.ZodString>;
1731
1731
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1732
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1732
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1733
1733
  kind: z.ZodString;
1734
1734
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1735
1735
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1736
1736
  idempotency_key: z.ZodOptional<z.ZodString>;
1737
1737
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1738
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1738
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1739
1739
  kind: z.ZodString;
1740
1740
  version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1741
1741
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1855,7 +1855,7 @@ export declare const zTaskExecutionSchema: z.ZodObject<{
1855
1855
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1856
1856
  } & {
1857
1857
  taskId: z.ZodString;
1858
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1858
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1859
1859
  kind: z.ZodString;
1860
1860
  status: z.ZodEnum<["success", "error", "retry"]>;
1861
1861
  attempt: z.ZodNumber;
@@ -1895,7 +1895,7 @@ export declare const zTaskExecutionSchema: z.ZodObject<{
1895
1895
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1896
1896
  } & {
1897
1897
  taskId: z.ZodString;
1898
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1898
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1899
1899
  kind: z.ZodString;
1900
1900
  status: z.ZodEnum<["success", "error", "retry"]>;
1901
1901
  attempt: z.ZodNumber;
@@ -1935,7 +1935,7 @@ export declare const zTaskExecutionSchema: z.ZodObject<{
1935
1935
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1936
1936
  } & {
1937
1937
  taskId: z.ZodString;
1938
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation"]>;
1938
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action"]>;
1939
1939
  kind: z.ZodString;
1940
1940
  status: z.ZodEnum<["success", "error", "retry"]>;
1941
1941
  attempt: z.ZodNumber;
@@ -29,6 +29,10 @@ exports.zTaskAutoHandlerSchema = zod_1.z.enum([
29
29
  "custom",
30
30
  // feat-037: handler da régua de reativação de lead (ticket_closed → create_task).
31
31
  "lead_reactivation",
32
+ // feat-047: handler que executa uma ação de agendamento (confirm/cancel/
33
+ // reschedule) vinda de um quick-reply — interno (setProperties) vs externo
34
+ // (adapter capability), com retry/fallback. Handler OUT-OF-SCOPE do feat-047.
35
+ "appointment_action",
32
36
  ]);
33
37
  exports.zTaskRetryStrategySchema = zod_1.z.enum(["fixed", "exponential"]);
34
38
  exports.zTaskDedupScopeSchema = zod_1.z.enum([
@@ -32,6 +32,10 @@ export const zTaskAutoHandlerSchema = z.enum([
32
32
  "custom",
33
33
  // feat-037: handler da régua de reativação de lead (ticket_closed → create_task).
34
34
  "lead_reactivation",
35
+ // feat-047: handler que executa uma ação de agendamento (confirm/cancel/
36
+ // reschedule) vinda de um quick-reply — interno (setProperties) vs externo
37
+ // (adapter capability), com retry/fallback. Handler OUT-OF-SCOPE do feat-047.
38
+ "appointment_action",
35
39
  ]);
36
40
 
37
41
  export const zTaskRetryStrategySchema = z.enum(["fixed", "exponential"]);
package/dist/index.d.ts CHANGED
@@ -63,5 +63,6 @@ export * from "./apps/evo-survey/zod-schemas";
63
63
  export * from "./apps/evo-finops/zod-schemas";
64
64
  export * from "./apps/evo-notif-user/zod-schemas";
65
65
  export * from "./apps/evo-notifications/zod-schemas";
66
+ export * from "./apps/evo-notifications/quick-reply-action/zod-schemas";
66
67
  export * from "./apps/evo-task-runner/zod-schemas";
67
68
  export * from "./apps/evo-integrations/zod-schemas";
package/dist/index.js CHANGED
@@ -81,5 +81,6 @@ __exportStar(require("./apps/evo-survey/zod-schemas"), exports);
81
81
  __exportStar(require("./apps/evo-finops/zod-schemas"), exports);
82
82
  __exportStar(require("./apps/evo-notif-user/zod-schemas"), exports);
83
83
  __exportStar(require("./apps/evo-notifications/zod-schemas"), exports);
84
+ __exportStar(require("./apps/evo-notifications/quick-reply-action/zod-schemas"), exports);
84
85
  __exportStar(require("./apps/evo-task-runner/zod-schemas"), exports);
85
86
  __exportStar(require("./apps/evo-integrations/zod-schemas"), exports);
package/dist/index.ts CHANGED
@@ -66,5 +66,6 @@ export * from "./apps/evo-survey/zod-schemas";
66
66
  export * from "./apps/evo-finops/zod-schemas";
67
67
  export * from "./apps/evo-notif-user/zod-schemas";
68
68
  export * from "./apps/evo-notifications/zod-schemas";
69
+ export * from "./apps/evo-notifications/quick-reply-action/zod-schemas";
69
70
  export * from "./apps/evo-task-runner/zod-schemas";
70
71
  export * from "./apps/evo-integrations/zod-schemas";
@@ -13,6 +13,7 @@ export declare const EvoNotificationsCollections: {
13
13
  readonly EmailChannels: "email_channels";
14
14
  readonly EmailTemplates: "email_templates";
15
15
  readonly WhatsAppChannels: "whatsapp_channels";
16
+ readonly QuickReplyActions: "quick-reply-actions";
16
17
  };
17
18
  export type EvoNotificationsCollectionName = (typeof EvoNotificationsCollections)[keyof typeof EvoNotificationsCollections];
18
19
  export declare const NotificationTaskKindEnum: {
@@ -90,6 +91,14 @@ export interface INotificationError {
90
91
  details?: Record<string, unknown>;
91
92
  [key: string]: unknown;
92
93
  }
94
+ export interface IQuickReplyActionIntent {
95
+ action_type: string;
96
+ action_payload: Record<string, unknown>;
97
+ button_index: number;
98
+ button_label: string;
99
+ expires_at?: Date;
100
+ [key: string]: unknown;
101
+ }
93
102
  export interface INotificationSendPayload {
94
103
  kind: "notification.send";
95
104
  classification?: string;
@@ -103,6 +112,12 @@ export interface INotificationSendPayload {
103
112
  * Mutuamente exclusivo com `template.template_id` para `channel.type === 'whatsapp'`.
104
113
  */
105
114
  body_text?: string;
115
+ /**
116
+ * Quick-reply actions (actionable WhatsApp buttons / email links).
117
+ * Channel-agnostic intents; the provider renders them per channel.
118
+ * The send path creates one quick-reply-actions/{actionId} doc per intent.
119
+ */
120
+ quick_reply_actions?: IQuickReplyActionIntent[];
106
121
  routine?: {
107
122
  id: string;
108
123
  version?: number | string;
@@ -49,6 +49,7 @@ exports.EvoNotificationsCollections = {
49
49
  EmailChannels: "email_channels",
50
50
  EmailTemplates: "email_templates", // subcollection de email_channels
51
51
  WhatsAppChannels: "whatsapp_channels",
52
+ QuickReplyActions: "quick-reply-actions", // feat-047: cross-channel actionable buttons/links
52
53
  };
53
54
  // ----- Task Runner integration
54
55
  exports.NotificationTaskKindEnum = {
@@ -40,6 +40,7 @@ export const EvoNotificationsCollections = {
40
40
  EmailChannels: "email_channels",
41
41
  EmailTemplates: "email_templates", // subcollection de email_channels
42
42
  WhatsAppChannels: "whatsapp_channels",
43
+ QuickReplyActions: "quick-reply-actions", // feat-047: cross-channel actionable buttons/links
43
44
  } as const;
44
45
 
45
46
  export type EvoNotificationsCollectionName =
@@ -163,6 +164,20 @@ export interface INotificationError {
163
164
  [key: string]: unknown;
164
165
  }
165
166
 
167
+ // ----- Quick-reply action intent (channel-agnostic)
168
+ // Carried in the send payload; each provider renders it per channel
169
+ // (WhatsApp -> button payload; email/SMS -> /qr link). The send path turns
170
+ // each intent into a quick-reply-actions/{actionId} doc + a button payload.
171
+ // See cloud-functions/docs/plan-quick-reply-actions.md (§6, §9).
172
+ export interface IQuickReplyActionIntent {
173
+ action_type: string; // e.g. confirm_appointment, cancel_appointment...
174
+ action_payload: Record<string, unknown>; // full data the executor needs
175
+ button_index: number; // template button position (0, 1, 2...)
176
+ button_label: string; // visible button text ("Confirmar")
177
+ expires_at?: Date; // after this, the action cannot be executed
178
+ [key: string]: unknown;
179
+ }
180
+
166
181
  // ======================================================
167
182
  // Payload schema for Task Runner (task.auto.kind = "notification.send")
168
183
  // ======================================================
@@ -188,6 +203,13 @@ export interface INotificationSendPayload {
188
203
  */
189
204
  body_text?: string;
190
205
 
206
+ /**
207
+ * Quick-reply actions (actionable WhatsApp buttons / email links).
208
+ * Channel-agnostic intents; the provider renders them per channel.
209
+ * The send path creates one quick-reply-actions/{actionId} doc per intent.
210
+ */
211
+ quick_reply_actions?: IQuickReplyActionIntent[];
212
+
191
213
  // Optional business context
192
214
  routine?: {
193
215
  id: string;
@@ -53,6 +53,7 @@ export declare const TaskAutoHandlerEnum: {
53
53
  readonly Webhook: "webhook";
54
54
  readonly Custom: "custom";
55
55
  readonly LeadReactivation: "lead_reactivation";
56
+ readonly AppointmentAction: "appointment_action";
56
57
  };
57
58
  export type TaskAutoHandler = (typeof TaskAutoHandlerEnum)[keyof typeof TaskAutoHandlerEnum];
58
59
  export declare const TaskRetryStrategyEnum: {
@@ -87,6 +87,12 @@ exports.TaskAutoHandlerEnum = {
87
87
  // (gerado pela action `create_task` da phase `ticket_closed`).
88
88
  // Tópico PubSub do executor: `lead_reactivation.execute_requests`.
89
89
  LeadReactivation: "lead_reactivation",
90
+ // feat-047: handler que EXECUTA uma ação de agendamento (confirm/cancel/
91
+ // reschedule) vinda de um quick-reply. Decide entre setProperties interno
92
+ // (agenda própria) e capability do adapter (agenda externa / evo-integrations),
93
+ // com retry + on_failure. O handler em si é OUT-OF-SCOPE do feat-047 (seam):
94
+ // o executor de quick-reply só CRIA a task com este handler.
95
+ AppointmentAction: "appointment_action",
90
96
  };
91
97
  // ----- Retry policy
92
98
  exports.TaskRetryStrategyEnum = {
@@ -98,6 +98,12 @@ export const TaskAutoHandlerEnum = {
98
98
  // (gerado pela action `create_task` da phase `ticket_closed`).
99
99
  // Tópico PubSub do executor: `lead_reactivation.execute_requests`.
100
100
  LeadReactivation: "lead_reactivation",
101
+ // feat-047: handler que EXECUTA uma ação de agendamento (confirm/cancel/
102
+ // reschedule) vinda de um quick-reply. Decide entre setProperties interno
103
+ // (agenda própria) e capability do adapter (agenda externa / evo-integrations),
104
+ // com retry + on_failure. O handler em si é OUT-OF-SCOPE do feat-047 (seam):
105
+ // o executor de quick-reply só CRIA a task com este handler.
106
+ AppointmentAction: "appointment_action",
101
107
  } as const;
102
108
 
103
109
  export type TaskAutoHandler =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.394",
3
+ "version": "1.3.396",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",