evo360-types 1.3.775 → 1.3.780

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.
Files changed (35) hide show
  1. package/dist/apps/evo-chat/waba-template/zod-schemas.d.ts +161 -0
  2. package/dist/apps/evo-chat/waba-template/zod-schemas.js +18 -1
  3. package/dist/apps/evo-chat/waba-template/zod-schemas.ts +19 -1
  4. package/dist/apps/evo-core/zod-schemas.d.ts +23 -0
  5. package/dist/apps/evo-core/zod-schemas.js +1 -0
  6. package/dist/apps/evo-core/zod-schemas.ts +1 -0
  7. package/dist/apps/evo-hub-ia/workflows/zod-schemas.d.ts +550 -0
  8. package/dist/apps/evo-hub-ia/workflows/zod-schemas.js +127 -0
  9. package/dist/apps/evo-hub-ia/workflows/zod-schemas.ts +150 -0
  10. package/dist/apps/evo-tenant/zod-schemas.d.ts +2 -2
  11. package/dist/apps/shared/zod-schemas.d.ts +88 -0
  12. package/dist/apps/shared/zod-schemas.js +36 -1
  13. package/dist/apps/shared/zod-schemas.ts +42 -0
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +1 -0
  16. package/dist/index.ts +1 -0
  17. package/dist/types/evo-chat/index.d.ts +2 -0
  18. package/dist/types/evo-chat/index.js +2 -0
  19. package/dist/types/evo-chat/index.ts +2 -0
  20. package/dist/types/evo-core/index.d.ts +2 -0
  21. package/dist/types/evo-core/index.ts +2 -0
  22. package/dist/types/evo-emr/index.d.ts +0 -5
  23. package/dist/types/evo-emr/index.js +6 -10
  24. package/dist/types/evo-emr/index.ts +5 -10
  25. package/dist/types/evo-notifications/index.d.ts +6 -2
  26. package/dist/types/evo-notifications/index.ts +6 -2
  27. package/dist/types/evo-reports/index.d.ts +2 -1
  28. package/dist/types/evo-reports/index.ts +3 -1
  29. package/dist/types/shared/index.d.ts +1 -0
  30. package/dist/types/shared/index.js +1 -0
  31. package/dist/types/shared/index.ts +1 -0
  32. package/dist/types/shared/template-profile.d.ts +41 -0
  33. package/dist/types/shared/template-profile.js +25 -0
  34. package/dist/types/shared/template-profile.ts +57 -0
  35. package/package.json +1 -1
@@ -1561,3 +1561,164 @@ export declare const zWabaTemplateCreateRequestSchema: z.ZodObject<{
1561
1561
  }, z.ZodTypeAny, "passthrough">>>;
1562
1562
  }, z.ZodTypeAny, "passthrough">>, "many">;
1563
1563
  }, z.ZodTypeAny, "passthrough">>;
1564
+ /**
1565
+ * feat-327 — doc de `channels/{ch}/template_profiles/{name}__{language}`
1566
+ * (leitura). A edição valida só os campos: `zTemplateProfileFieldsSchema`.
1567
+ */
1568
+ export declare const zWabaTemplateProfileSchema: z.ZodObject<{
1569
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
+ mcp_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1571
+ mcp_enabled: z.ZodOptional<z.ZodBoolean>;
1572
+ tags: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
1573
+ color: z.ZodOptional<z.ZodString>;
1574
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1575
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1576
+ } & {
1577
+ name: z.ZodString;
1578
+ hidden: z.ZodDefault<z.ZodBoolean>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ name: string;
1581
+ hidden: boolean;
1582
+ base?: boolean | undefined;
1583
+ color?: string | undefined;
1584
+ category?: string | null | undefined;
1585
+ }, {
1586
+ name: string;
1587
+ base?: boolean | undefined;
1588
+ color?: string | undefined;
1589
+ category?: string | null | undefined;
1590
+ hidden?: boolean | undefined;
1591
+ }>, "many">, {
1592
+ name: string;
1593
+ hidden: boolean;
1594
+ base?: boolean | undefined;
1595
+ color?: string | undefined;
1596
+ category?: string | null | undefined;
1597
+ }[], {
1598
+ name: string;
1599
+ base?: boolean | undefined;
1600
+ color?: string | undefined;
1601
+ category?: string | null | undefined;
1602
+ hidden?: boolean | undefined;
1603
+ }[]>>>;
1604
+ } & {
1605
+ id: z.ZodString;
1606
+ name: z.ZodString;
1607
+ language: z.ZodString;
1608
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1609
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1610
+ updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1611
+ user_id: z.ZodOptional<z.ZodString>;
1612
+ display_name: z.ZodOptional<z.ZodString>;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ display_name?: string | undefined;
1615
+ user_id?: string | undefined;
1616
+ }, {
1617
+ display_name?: string | undefined;
1618
+ user_id?: string | undefined;
1619
+ }>>>;
1620
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1621
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1622
+ mcp_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1623
+ mcp_enabled: z.ZodOptional<z.ZodBoolean>;
1624
+ tags: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
1625
+ color: z.ZodOptional<z.ZodString>;
1626
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1627
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1628
+ } & {
1629
+ name: z.ZodString;
1630
+ hidden: z.ZodDefault<z.ZodBoolean>;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ name: string;
1633
+ hidden: boolean;
1634
+ base?: boolean | undefined;
1635
+ color?: string | undefined;
1636
+ category?: string | null | undefined;
1637
+ }, {
1638
+ name: string;
1639
+ base?: boolean | undefined;
1640
+ color?: string | undefined;
1641
+ category?: string | null | undefined;
1642
+ hidden?: boolean | undefined;
1643
+ }>, "many">, {
1644
+ name: string;
1645
+ hidden: boolean;
1646
+ base?: boolean | undefined;
1647
+ color?: string | undefined;
1648
+ category?: string | null | undefined;
1649
+ }[], {
1650
+ name: string;
1651
+ base?: boolean | undefined;
1652
+ color?: string | undefined;
1653
+ category?: string | null | undefined;
1654
+ hidden?: boolean | undefined;
1655
+ }[]>>>;
1656
+ } & {
1657
+ id: z.ZodString;
1658
+ name: z.ZodString;
1659
+ language: z.ZodString;
1660
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1661
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1662
+ updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1663
+ user_id: z.ZodOptional<z.ZodString>;
1664
+ display_name: z.ZodOptional<z.ZodString>;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ display_name?: string | undefined;
1667
+ user_id?: string | undefined;
1668
+ }, {
1669
+ display_name?: string | undefined;
1670
+ user_id?: string | undefined;
1671
+ }>>>;
1672
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1673
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1674
+ mcp_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1675
+ mcp_enabled: z.ZodOptional<z.ZodBoolean>;
1676
+ tags: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
1677
+ color: z.ZodOptional<z.ZodString>;
1678
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1679
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1680
+ } & {
1681
+ name: z.ZodString;
1682
+ hidden: z.ZodDefault<z.ZodBoolean>;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ name: string;
1685
+ hidden: boolean;
1686
+ base?: boolean | undefined;
1687
+ color?: string | undefined;
1688
+ category?: string | null | undefined;
1689
+ }, {
1690
+ name: string;
1691
+ base?: boolean | undefined;
1692
+ color?: string | undefined;
1693
+ category?: string | null | undefined;
1694
+ hidden?: boolean | undefined;
1695
+ }>, "many">, {
1696
+ name: string;
1697
+ hidden: boolean;
1698
+ base?: boolean | undefined;
1699
+ color?: string | undefined;
1700
+ category?: string | null | undefined;
1701
+ }[], {
1702
+ name: string;
1703
+ base?: boolean | undefined;
1704
+ color?: string | undefined;
1705
+ category?: string | null | undefined;
1706
+ hidden?: boolean | undefined;
1707
+ }[]>>>;
1708
+ } & {
1709
+ id: z.ZodString;
1710
+ name: z.ZodString;
1711
+ language: z.ZodString;
1712
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1713
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1714
+ updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1715
+ user_id: z.ZodOptional<z.ZodString>;
1716
+ display_name: z.ZodOptional<z.ZodString>;
1717
+ }, "strip", z.ZodTypeAny, {
1718
+ display_name?: string | undefined;
1719
+ user_id?: string | undefined;
1720
+ }, {
1721
+ display_name?: string | undefined;
1722
+ user_id?: string | undefined;
1723
+ }>>>;
1724
+ }, z.ZodTypeAny, "passthrough">>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zWabaTemplateCreateRequestSchema = exports.zWabaTemplateSchema = exports.zWabaTemplateDraftSourceSchema = exports.zWabaTemplateComponentSchema = exports.zWabaTemplateButtonSchema = void 0;
3
+ exports.zWabaTemplateProfileSchema = exports.zWabaTemplateCreateRequestSchema = exports.zWabaTemplateSchema = exports.zWabaTemplateDraftSourceSchema = exports.zWabaTemplateComponentSchema = exports.zWabaTemplateButtonSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  exports.zWabaTemplateButtonSchema = zod_1.z.object({
@@ -55,3 +55,20 @@ exports.zWabaTemplateCreateRequestSchema = zod_1.z.object({
55
55
  parameter_format: zod_1.z.enum(['NAMED', 'POSITIONAL']).optional(),
56
56
  components: zod_1.z.array(exports.zWabaTemplateComponentSchema).min(1),
57
57
  }).passthrough();
58
+ /**
59
+ * feat-327 — doc de `channels/{ch}/template_profiles/{name}__{language}`
60
+ * (leitura). A edição valida só os campos: `zTemplateProfileFieldsSchema`.
61
+ */
62
+ exports.zWabaTemplateProfileSchema = zod_schemas_1.zTemplateProfileFieldsSchema
63
+ .extend({
64
+ id: zod_1.z.string(),
65
+ name: zod_1.z.string(),
66
+ language: zod_1.z.string(),
67
+ created_at: zod_1.z.coerce.date().nullable().optional(),
68
+ updated_at: zod_1.z.coerce.date().nullable().optional(),
69
+ updated_by: zod_1.z
70
+ .object({ user_id: zod_1.z.string().optional(), display_name: zod_1.z.string().optional() })
71
+ .nullable()
72
+ .optional(),
73
+ })
74
+ .passthrough();
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { zFireDocSchema } from '../../shared/zod-schemas';
2
+ import { zFireDocSchema, zTemplateProfileFieldsSchema } from '../../shared/zod-schemas';
3
3
 
4
4
  export const zWabaTemplateButtonSchema = z.object({
5
5
  type: z.enum(['QUICK_REPLY', 'URL', 'PHONE_NUMBER']),
@@ -57,3 +57,21 @@ export const zWabaTemplateCreateRequestSchema = z.object({
57
57
  parameter_format: z.enum(['NAMED', 'POSITIONAL']).optional(),
58
58
  components: z.array(zWabaTemplateComponentSchema).min(1),
59
59
  }).passthrough();
60
+
61
+ /**
62
+ * feat-327 — doc de `channels/{ch}/template_profiles/{name}__{language}`
63
+ * (leitura). A edição valida só os campos: `zTemplateProfileFieldsSchema`.
64
+ */
65
+ export const zWabaTemplateProfileSchema = zTemplateProfileFieldsSchema
66
+ .extend({
67
+ id: z.string(),
68
+ name: z.string(),
69
+ language: z.string(),
70
+ created_at: z.coerce.date().nullable().optional(),
71
+ updated_at: z.coerce.date().nullable().optional(),
72
+ updated_by: z
73
+ .object({ user_id: z.string().optional(), display_name: z.string().optional() })
74
+ .nullable()
75
+ .optional(),
76
+ })
77
+ .passthrough();
@@ -274,10 +274,13 @@ export declare const zNexusModuleFinancePermissionsSchema: z.ZodObject<{
274
274
  */
275
275
  export declare const zNexusModuleToolsPermissionsSchema: z.ZodObject<{
276
276
  forms: z.ZodOptional<z.ZodBoolean>;
277
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
277
278
  }, "strip", z.ZodTypeAny, {
278
279
  forms?: boolean | undefined;
280
+ "hubia-n8n"?: boolean | undefined;
279
281
  }, {
280
282
  forms?: boolean | undefined;
283
+ "hubia-n8n"?: boolean | undefined;
281
284
  }>;
282
285
  /**
283
286
  * Schema for INexusModules
@@ -326,10 +329,13 @@ export declare const zNexusModulesSchema: z.ZodObject<{
326
329
  integrations: z.ZodOptional<z.ZodBoolean>;
327
330
  tools: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
328
331
  forms: z.ZodOptional<z.ZodBoolean>;
332
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
329
333
  }, "strip", z.ZodTypeAny, {
330
334
  forms?: boolean | undefined;
335
+ "hubia-n8n"?: boolean | undefined;
331
336
  }, {
332
337
  forms?: boolean | undefined;
338
+ "hubia-n8n"?: boolean | undefined;
333
339
  }>, z.ZodBoolean]>>;
334
340
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
335
341
  chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -375,10 +381,13 @@ export declare const zNexusModulesSchema: z.ZodObject<{
375
381
  integrations: z.ZodOptional<z.ZodBoolean>;
376
382
  tools: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
377
383
  forms: z.ZodOptional<z.ZodBoolean>;
384
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
378
385
  }, "strip", z.ZodTypeAny, {
379
386
  forms?: boolean | undefined;
387
+ "hubia-n8n"?: boolean | undefined;
380
388
  }, {
381
389
  forms?: boolean | undefined;
390
+ "hubia-n8n"?: boolean | undefined;
382
391
  }>, z.ZodBoolean]>>;
383
392
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
384
393
  chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -424,10 +433,13 @@ export declare const zNexusModulesSchema: z.ZodObject<{
424
433
  integrations: z.ZodOptional<z.ZodBoolean>;
425
434
  tools: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
426
435
  forms: z.ZodOptional<z.ZodBoolean>;
436
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
427
437
  }, "strip", z.ZodTypeAny, {
428
438
  forms?: boolean | undefined;
439
+ "hubia-n8n"?: boolean | undefined;
429
440
  }, {
430
441
  forms?: boolean | undefined;
442
+ "hubia-n8n"?: boolean | undefined;
431
443
  }>, z.ZodBoolean]>>;
432
444
  }, z.ZodTypeAny, "passthrough">>;
433
445
  /**
@@ -479,10 +491,13 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
479
491
  integrations: z.ZodOptional<z.ZodBoolean>;
480
492
  tools: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
481
493
  forms: z.ZodOptional<z.ZodBoolean>;
494
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
482
495
  }, "strip", z.ZodTypeAny, {
483
496
  forms?: boolean | undefined;
497
+ "hubia-n8n"?: boolean | undefined;
484
498
  }, {
485
499
  forms?: boolean | undefined;
500
+ "hubia-n8n"?: boolean | undefined;
486
501
  }>, z.ZodBoolean]>>;
487
502
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
488
503
  chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -528,10 +543,13 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
528
543
  integrations: z.ZodOptional<z.ZodBoolean>;
529
544
  tools: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
530
545
  forms: z.ZodOptional<z.ZodBoolean>;
546
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
531
547
  }, "strip", z.ZodTypeAny, {
532
548
  forms?: boolean | undefined;
549
+ "hubia-n8n"?: boolean | undefined;
533
550
  }, {
534
551
  forms?: boolean | undefined;
552
+ "hubia-n8n"?: boolean | undefined;
535
553
  }>, z.ZodBoolean]>>;
536
554
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
537
555
  chat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -577,10 +595,13 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
577
595
  integrations: z.ZodOptional<z.ZodBoolean>;
578
596
  tools: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
579
597
  forms: z.ZodOptional<z.ZodBoolean>;
598
+ "hubia-n8n": z.ZodOptional<z.ZodBoolean>;
580
599
  }, "strip", z.ZodTypeAny, {
581
600
  forms?: boolean | undefined;
601
+ "hubia-n8n"?: boolean | undefined;
582
602
  }, {
583
603
  forms?: boolean | undefined;
604
+ "hubia-n8n"?: boolean | undefined;
584
605
  }>, z.ZodBoolean]>>;
585
606
  }, z.ZodTypeAny, "passthrough">>;
586
607
  }, "strip", z.ZodTypeAny, {
@@ -606,6 +627,7 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
606
627
  webhooks?: boolean | undefined;
607
628
  tools?: boolean | {
608
629
  forms?: boolean | undefined;
630
+ "hubia-n8n"?: boolean | undefined;
609
631
  } | undefined;
610
632
  } & {
611
633
  [k: string]: unknown;
@@ -633,6 +655,7 @@ export declare const zNexusClaimsSchema: z.ZodObject<{
633
655
  webhooks?: boolean | undefined;
634
656
  tools?: boolean | {
635
657
  forms?: boolean | undefined;
658
+ "hubia-n8n"?: boolean | undefined;
636
659
  } | undefined;
637
660
  } & {
638
661
  [k: string]: unknown;
@@ -118,6 +118,7 @@ exports.zNexusModuleFinancePermissionsSchema = zod_1.z.object({
118
118
  */
119
119
  exports.zNexusModuleToolsPermissionsSchema = zod_1.z.object({
120
120
  forms: zod_1.z.boolean().optional(),
121
+ "hubia-n8n": zod_1.z.boolean().optional(),
121
122
  });
122
123
  /**
123
124
  * Schema for INexusModules
@@ -130,6 +130,7 @@ export const zNexusModuleFinancePermissionsSchema = z.object({
130
130
  */
131
131
  export const zNexusModuleToolsPermissionsSchema = z.object({
132
132
  forms: z.boolean().optional(),
133
+ "hubia-n8n": z.boolean().optional(),
133
134
  });
134
135
 
135
136
  /**