evo360-types 1.3.314 → 1.3.317

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.
@@ -31,6 +31,8 @@ export declare const zTicketCreatedBySchema: z.ZodObject<{
31
31
  user_id: z.ZodOptional<z.ZodString>;
32
32
  workflow_id: z.ZodOptional<z.ZodString>;
33
33
  }, z.ZodTypeAny, "passthrough">>;
34
+ export declare const zTicketAttendantTypeSchema: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ai", "human"]>>>;
35
+ export type ITicketAttendantType = z.infer<typeof zTicketAttendantTypeSchema>;
34
36
  export declare const zTicketSchema: z.ZodObject<{
35
37
  id: z.ZodString;
36
38
  ref: z.ZodAny;
@@ -74,6 +76,9 @@ export declare const zTicketSchema: z.ZodObject<{
74
76
  last_message_preview: z.ZodOptional<z.ZodString>;
75
77
  last_message_channel_id: z.ZodOptional<z.ZodString>;
76
78
  assigned_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ assigned_user_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ attendant_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ai", "human"]>>>;
81
+ attendant_changed_at: z.ZodOptional<z.ZodDate>;
77
82
  created_by: z.ZodOptional<z.ZodObject<{
78
83
  type: z.ZodEnum<["human", "automation", "system"]>;
79
84
  user_id: z.ZodOptional<z.ZodString>;
@@ -130,6 +135,9 @@ export declare const zTicketSchema: z.ZodObject<{
130
135
  last_message_preview: z.ZodOptional<z.ZodString>;
131
136
  last_message_channel_id: z.ZodOptional<z.ZodString>;
132
137
  assigned_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ assigned_user_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ attendant_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ai", "human"]>>>;
140
+ attendant_changed_at: z.ZodOptional<z.ZodDate>;
133
141
  created_by: z.ZodOptional<z.ZodObject<{
134
142
  type: z.ZodEnum<["human", "automation", "system"]>;
135
143
  user_id: z.ZodOptional<z.ZodString>;
@@ -186,6 +194,9 @@ export declare const zTicketSchema: z.ZodObject<{
186
194
  last_message_preview: z.ZodOptional<z.ZodString>;
187
195
  last_message_channel_id: z.ZodOptional<z.ZodString>;
188
196
  assigned_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ assigned_user_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
+ attendant_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ai", "human"]>>>;
199
+ attendant_changed_at: z.ZodOptional<z.ZodDate>;
189
200
  created_by: z.ZodOptional<z.ZodObject<{
190
201
  type: z.ZodEnum<["human", "automation", "system"]>;
191
202
  user_id: z.ZodOptional<z.ZodString>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zTicketSchema = exports.zTicketCreatedBySchema = exports.zTicketCloseSchema = void 0;
3
+ exports.zTicketSchema = exports.zTicketAttendantTypeSchema = exports.zTicketCreatedBySchema = exports.zTicketCloseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  exports.zTicketCloseSchema = zod_1.z.object({
@@ -15,6 +15,7 @@ exports.zTicketCreatedBySchema = zod_1.z.object({
15
15
  user_id: zod_1.z.string().optional(),
16
16
  workflow_id: zod_1.z.string().optional(),
17
17
  }).passthrough();
18
+ exports.zTicketAttendantTypeSchema = zod_1.z.enum(['ai', 'human']).nullable().optional();
18
19
  exports.zTicketSchema = zod_schemas_1.zFireDocSchema
19
20
  .extend({
20
21
  model_ver: zod_1.z.number().default(1),
@@ -34,6 +35,9 @@ exports.zTicketSchema = zod_schemas_1.zFireDocSchema
34
35
  last_message_preview: zod_1.z.string().optional(),
35
36
  last_message_channel_id: zod_1.z.string().optional(),
36
37
  assigned_user_id: zod_1.z.string().nullable().optional(),
38
+ assigned_user_name: zod_1.z.string().nullable().optional(),
39
+ attendant_type: exports.zTicketAttendantTypeSchema,
40
+ attendant_changed_at: zod_1.z.coerce.date().optional(),
37
41
  created_by: exports.zTicketCreatedBySchema.optional(),
38
42
  })
39
43
  .passthrough();
@@ -15,6 +15,9 @@ export const zTicketCreatedBySchema = z.object({
15
15
  workflow_id: z.string().optional(),
16
16
  }).passthrough();
17
17
 
18
+ export const zTicketAttendantTypeSchema = z.enum(['ai', 'human']).nullable().optional();
19
+ export type ITicketAttendantType = z.infer<typeof zTicketAttendantTypeSchema>;
20
+
18
21
  export const zTicketSchema = zFireDocSchema
19
22
  .extend({
20
23
  model_ver: z.number().default(1),
@@ -34,6 +37,9 @@ export const zTicketSchema = zFireDocSchema
34
37
  last_message_preview: z.string().optional(),
35
38
  last_message_channel_id: z.string().optional(),
36
39
  assigned_user_id: z.string().nullable().optional(),
40
+ assigned_user_name: z.string().nullable().optional(),
41
+ attendant_type: zTicketAttendantTypeSchema,
42
+ attendant_changed_at: z.coerce.date().optional(),
37
43
  created_by: zTicketCreatedBySchema.optional(),
38
44
  })
39
45
  .passthrough();
@@ -2580,6 +2580,17 @@ export declare const zAsaasProviderAsaasBlockSchema: z.ZodObject<{
2580
2580
  };
2581
2581
  }>;
2582
2582
  }, "strip", z.ZodTypeAny, {
2583
+ capabilities: {
2584
+ nfse: {
2585
+ enabled: boolean;
2586
+ mode: "avulsa_only" | "mixed";
2587
+ allow_avulsa: boolean;
2588
+ allow_linked_to_payment: boolean;
2589
+ };
2590
+ payments: {
2591
+ enabled: boolean;
2592
+ };
2593
+ };
2583
2594
  envs: {
2584
2595
  sandbox: {
2585
2596
  enabled: boolean;
@@ -2710,6 +2721,8 @@ export declare const zAsaasProviderAsaasBlockSchema: z.ZodObject<{
2710
2721
  [k: string]: unknown;
2711
2722
  };
2712
2723
  };
2724
+ default_env?: "Sandbox" | "Production" | undefined;
2725
+ }, {
2713
2726
  capabilities: {
2714
2727
  nfse: {
2715
2728
  enabled: boolean;
@@ -2721,8 +2734,6 @@ export declare const zAsaasProviderAsaasBlockSchema: z.ZodObject<{
2721
2734
  enabled: boolean;
2722
2735
  };
2723
2736
  };
2724
- default_env?: "Sandbox" | "Production" | undefined;
2725
- }, {
2726
2737
  envs: {
2727
2738
  sandbox: {
2728
2739
  enabled: boolean;
@@ -2853,17 +2864,6 @@ export declare const zAsaasProviderAsaasBlockSchema: z.ZodObject<{
2853
2864
  [k: string]: unknown;
2854
2865
  };
2855
2866
  };
2856
- capabilities: {
2857
- nfse: {
2858
- enabled: boolean;
2859
- mode: "avulsa_only" | "mixed";
2860
- allow_avulsa: boolean;
2861
- allow_linked_to_payment: boolean;
2862
- };
2863
- payments: {
2864
- enabled: boolean;
2865
- };
2866
- };
2867
2867
  default_env?: "Sandbox" | "Production" | undefined;
2868
2868
  }>;
2869
2869
  export declare const zAsaasProviderSchema: z.ZodObject<{
@@ -4194,6 +4194,17 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
4194
4194
  };
4195
4195
  }>;
4196
4196
  }, "strip", z.ZodTypeAny, {
4197
+ capabilities: {
4198
+ nfse: {
4199
+ enabled: boolean;
4200
+ mode: "avulsa_only" | "mixed";
4201
+ allow_avulsa: boolean;
4202
+ allow_linked_to_payment: boolean;
4203
+ };
4204
+ payments: {
4205
+ enabled: boolean;
4206
+ };
4207
+ };
4197
4208
  envs: {
4198
4209
  sandbox: {
4199
4210
  enabled: boolean;
@@ -4324,6 +4335,8 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
4324
4335
  [k: string]: unknown;
4325
4336
  };
4326
4337
  };
4338
+ default_env?: "Sandbox" | "Production" | undefined;
4339
+ }, {
4327
4340
  capabilities: {
4328
4341
  nfse: {
4329
4342
  enabled: boolean;
@@ -4335,8 +4348,6 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
4335
4348
  enabled: boolean;
4336
4349
  };
4337
4350
  };
4338
- default_env?: "Sandbox" | "Production" | undefined;
4339
- }, {
4340
4351
  envs: {
4341
4352
  sandbox: {
4342
4353
  enabled: boolean;
@@ -4467,17 +4478,6 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
4467
4478
  [k: string]: unknown;
4468
4479
  };
4469
4480
  };
4470
- capabilities: {
4471
- nfse: {
4472
- enabled: boolean;
4473
- mode: "avulsa_only" | "mixed";
4474
- allow_avulsa: boolean;
4475
- allow_linked_to_payment: boolean;
4476
- };
4477
- payments: {
4478
- enabled: boolean;
4479
- };
4480
- };
4481
4481
  default_env?: "Sandbox" | "Production" | undefined;
4482
4482
  }>;
4483
4483
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5808,6 +5808,17 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
5808
5808
  };
5809
5809
  }>;
5810
5810
  }, "strip", z.ZodTypeAny, {
5811
+ capabilities: {
5812
+ nfse: {
5813
+ enabled: boolean;
5814
+ mode: "avulsa_only" | "mixed";
5815
+ allow_avulsa: boolean;
5816
+ allow_linked_to_payment: boolean;
5817
+ };
5818
+ payments: {
5819
+ enabled: boolean;
5820
+ };
5821
+ };
5811
5822
  envs: {
5812
5823
  sandbox: {
5813
5824
  enabled: boolean;
@@ -5938,6 +5949,8 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
5938
5949
  [k: string]: unknown;
5939
5950
  };
5940
5951
  };
5952
+ default_env?: "Sandbox" | "Production" | undefined;
5953
+ }, {
5941
5954
  capabilities: {
5942
5955
  nfse: {
5943
5956
  enabled: boolean;
@@ -5949,8 +5962,6 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
5949
5962
  enabled: boolean;
5950
5963
  };
5951
5964
  };
5952
- default_env?: "Sandbox" | "Production" | undefined;
5953
- }, {
5954
5965
  envs: {
5955
5966
  sandbox: {
5956
5967
  enabled: boolean;
@@ -6081,17 +6092,6 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
6081
6092
  [k: string]: unknown;
6082
6093
  };
6083
6094
  };
6084
- capabilities: {
6085
- nfse: {
6086
- enabled: boolean;
6087
- mode: "avulsa_only" | "mixed";
6088
- allow_avulsa: boolean;
6089
- allow_linked_to_payment: boolean;
6090
- };
6091
- payments: {
6092
- enabled: boolean;
6093
- };
6094
- };
6095
6095
  default_env?: "Sandbox" | "Production" | undefined;
6096
6096
  }>;
6097
6097
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -7422,6 +7422,17 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
7422
7422
  };
7423
7423
  }>;
7424
7424
  }, "strip", z.ZodTypeAny, {
7425
+ capabilities: {
7426
+ nfse: {
7427
+ enabled: boolean;
7428
+ mode: "avulsa_only" | "mixed";
7429
+ allow_avulsa: boolean;
7430
+ allow_linked_to_payment: boolean;
7431
+ };
7432
+ payments: {
7433
+ enabled: boolean;
7434
+ };
7435
+ };
7425
7436
  envs: {
7426
7437
  sandbox: {
7427
7438
  enabled: boolean;
@@ -7552,6 +7563,8 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
7552
7563
  [k: string]: unknown;
7553
7564
  };
7554
7565
  };
7566
+ default_env?: "Sandbox" | "Production" | undefined;
7567
+ }, {
7555
7568
  capabilities: {
7556
7569
  nfse: {
7557
7570
  enabled: boolean;
@@ -7563,8 +7576,6 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
7563
7576
  enabled: boolean;
7564
7577
  };
7565
7578
  };
7566
- default_env?: "Sandbox" | "Production" | undefined;
7567
- }, {
7568
7579
  envs: {
7569
7580
  sandbox: {
7570
7581
  enabled: boolean;
@@ -7695,17 +7706,6 @@ export declare const zAsaasProviderSchema: z.ZodObject<{
7695
7706
  [k: string]: unknown;
7696
7707
  };
7697
7708
  };
7698
- capabilities: {
7699
- nfse: {
7700
- enabled: boolean;
7701
- mode: "avulsa_only" | "mixed";
7702
- allow_avulsa: boolean;
7703
- allow_linked_to_payment: boolean;
7704
- };
7705
- payments: {
7706
- enabled: boolean;
7707
- };
7708
- };
7709
7709
  default_env?: "Sandbox" | "Production" | undefined;
7710
7710
  }>;
7711
7711
  }, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,195 @@
1
+ import { z } from "zod";
2
+ export declare const zHubiaAttendanceModeSchema: z.ZodEnum<["ai_auto", "ai_suggest", "disabled"]>;
3
+ export type IHubiaAttendanceMode = z.infer<typeof zHubiaAttendanceModeSchema>;
4
+ export declare const zHubiaV1ChannelConfigSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ ref: z.ZodAny;
7
+ tenant: z.ZodString;
8
+ model_ver: z.ZodDefault<z.ZodNumber>;
9
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12
+ } & {
13
+ evo_chat_channel_id: z.ZodString;
14
+ channel_name: z.ZodString;
15
+ active: z.ZodDefault<z.ZodBoolean>;
16
+ attendance_mode: z.ZodDefault<z.ZodEnum<["ai_auto", "ai_suggest", "disabled"]>>;
17
+ debounce_seconds: z.ZodDefault<z.ZodNumber>;
18
+ llm_model: z.ZodDefault<z.ZodString>;
19
+ llm_temperature: z.ZodDefault<z.ZodNumber>;
20
+ llm_max_tokens: z.ZodDefault<z.ZodNumber>;
21
+ prompt_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
+ toolkit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ max_rounds: z.ZodDefault<z.ZodNumber>;
24
+ max_tool_calls: z.ZodDefault<z.ZodNumber>;
25
+ execution_timeout_ms: z.ZodDefault<z.ZodNumber>;
26
+ capabilities: z.ZodObject<{
27
+ can_schedule: z.ZodDefault<z.ZodBoolean>;
28
+ can_reschedule: z.ZodDefault<z.ZodBoolean>;
29
+ can_cancel: z.ZodDefault<z.ZodBoolean>;
30
+ can_handoff: z.ZodDefault<z.ZodBoolean>;
31
+ can_read_finops: z.ZodDefault<z.ZodBoolean>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ can_schedule: boolean;
34
+ can_reschedule: boolean;
35
+ can_cancel: boolean;
36
+ can_handoff: boolean;
37
+ can_read_finops: boolean;
38
+ }, {
39
+ can_schedule?: boolean | undefined;
40
+ can_reschedule?: boolean | undefined;
41
+ can_cancel?: boolean | undefined;
42
+ can_handoff?: boolean | undefined;
43
+ can_read_finops?: boolean | undefined;
44
+ }>;
45
+ timezone: z.ZodDefault<z.ZodString>;
46
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
47
+ id: z.ZodString;
48
+ ref: z.ZodAny;
49
+ tenant: z.ZodString;
50
+ model_ver: z.ZodDefault<z.ZodNumber>;
51
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
52
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
53
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
54
+ } & {
55
+ evo_chat_channel_id: z.ZodString;
56
+ channel_name: z.ZodString;
57
+ active: z.ZodDefault<z.ZodBoolean>;
58
+ attendance_mode: z.ZodDefault<z.ZodEnum<["ai_auto", "ai_suggest", "disabled"]>>;
59
+ debounce_seconds: z.ZodDefault<z.ZodNumber>;
60
+ llm_model: z.ZodDefault<z.ZodString>;
61
+ llm_temperature: z.ZodDefault<z.ZodNumber>;
62
+ llm_max_tokens: z.ZodDefault<z.ZodNumber>;
63
+ prompt_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
64
+ toolkit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ max_rounds: z.ZodDefault<z.ZodNumber>;
66
+ max_tool_calls: z.ZodDefault<z.ZodNumber>;
67
+ execution_timeout_ms: z.ZodDefault<z.ZodNumber>;
68
+ capabilities: z.ZodObject<{
69
+ can_schedule: z.ZodDefault<z.ZodBoolean>;
70
+ can_reschedule: z.ZodDefault<z.ZodBoolean>;
71
+ can_cancel: z.ZodDefault<z.ZodBoolean>;
72
+ can_handoff: z.ZodDefault<z.ZodBoolean>;
73
+ can_read_finops: z.ZodDefault<z.ZodBoolean>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ can_schedule: boolean;
76
+ can_reschedule: boolean;
77
+ can_cancel: boolean;
78
+ can_handoff: boolean;
79
+ can_read_finops: boolean;
80
+ }, {
81
+ can_schedule?: boolean | undefined;
82
+ can_reschedule?: boolean | undefined;
83
+ can_cancel?: boolean | undefined;
84
+ can_handoff?: boolean | undefined;
85
+ can_read_finops?: boolean | undefined;
86
+ }>;
87
+ timezone: z.ZodDefault<z.ZodString>;
88
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
89
+ id: z.ZodString;
90
+ ref: z.ZodAny;
91
+ tenant: z.ZodString;
92
+ model_ver: z.ZodDefault<z.ZodNumber>;
93
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
94
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
95
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
96
+ } & {
97
+ evo_chat_channel_id: z.ZodString;
98
+ channel_name: z.ZodString;
99
+ active: z.ZodDefault<z.ZodBoolean>;
100
+ attendance_mode: z.ZodDefault<z.ZodEnum<["ai_auto", "ai_suggest", "disabled"]>>;
101
+ debounce_seconds: z.ZodDefault<z.ZodNumber>;
102
+ llm_model: z.ZodDefault<z.ZodString>;
103
+ llm_temperature: z.ZodDefault<z.ZodNumber>;
104
+ llm_max_tokens: z.ZodDefault<z.ZodNumber>;
105
+ prompt_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
106
+ toolkit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ max_rounds: z.ZodDefault<z.ZodNumber>;
108
+ max_tool_calls: z.ZodDefault<z.ZodNumber>;
109
+ execution_timeout_ms: z.ZodDefault<z.ZodNumber>;
110
+ capabilities: z.ZodObject<{
111
+ can_schedule: z.ZodDefault<z.ZodBoolean>;
112
+ can_reschedule: z.ZodDefault<z.ZodBoolean>;
113
+ can_cancel: z.ZodDefault<z.ZodBoolean>;
114
+ can_handoff: z.ZodDefault<z.ZodBoolean>;
115
+ can_read_finops: z.ZodDefault<z.ZodBoolean>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ can_schedule: boolean;
118
+ can_reschedule: boolean;
119
+ can_cancel: boolean;
120
+ can_handoff: boolean;
121
+ can_read_finops: boolean;
122
+ }, {
123
+ can_schedule?: boolean | undefined;
124
+ can_reschedule?: boolean | undefined;
125
+ can_cancel?: boolean | undefined;
126
+ can_handoff?: boolean | undefined;
127
+ can_read_finops?: boolean | undefined;
128
+ }>;
129
+ timezone: z.ZodDefault<z.ZodString>;
130
+ }, z.ZodTypeAny, "passthrough">>;
131
+ export type IHubiaV1ChannelConfig = z.infer<typeof zHubiaV1ChannelConfigSchema>;
132
+ export declare const zHubiaConversationModeSchema: z.ZodEnum<["ai_only", "hybrid_assist", "human_only", "blocked"]>;
133
+ export type IHubiaConversationMode = z.infer<typeof zHubiaConversationModeSchema>;
134
+ export declare const zAiBindingSchema: z.ZodObject<{
135
+ id: z.ZodString;
136
+ ref: z.ZodAny;
137
+ tenant: z.ZodString;
138
+ model_ver: z.ZodDefault<z.ZodNumber>;
139
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
140
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
141
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
142
+ } & {
143
+ agent_type: z.ZodString;
144
+ agent_config_id: z.ZodString;
145
+ topic: z.ZodString;
146
+ active: z.ZodDefault<z.ZodBoolean>;
147
+ priority: z.ZodDefault<z.ZodNumber>;
148
+ /** Default conversation mode for new threads in this department.
149
+ * ai_only — AI responds directly to patient
150
+ * hybrid_assist — AI generates suggestions for operator
151
+ * human_only — AI disabled, operator can switch to other modes
152
+ * blocked — AI disabled, operator CANNOT change mode (admin lock) */
153
+ default_mode: z.ZodDefault<z.ZodEnum<["ai_only", "hybrid_assist", "human_only", "blocked"]>>;
154
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
155
+ id: z.ZodString;
156
+ ref: z.ZodAny;
157
+ tenant: z.ZodString;
158
+ model_ver: z.ZodDefault<z.ZodNumber>;
159
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
160
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
161
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
162
+ } & {
163
+ agent_type: z.ZodString;
164
+ agent_config_id: z.ZodString;
165
+ topic: z.ZodString;
166
+ active: z.ZodDefault<z.ZodBoolean>;
167
+ priority: z.ZodDefault<z.ZodNumber>;
168
+ /** Default conversation mode for new threads in this department.
169
+ * ai_only — AI responds directly to patient
170
+ * hybrid_assist — AI generates suggestions for operator
171
+ * human_only — AI disabled, operator can switch to other modes
172
+ * blocked — AI disabled, operator CANNOT change mode (admin lock) */
173
+ default_mode: z.ZodDefault<z.ZodEnum<["ai_only", "hybrid_assist", "human_only", "blocked"]>>;
174
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
175
+ id: z.ZodString;
176
+ ref: z.ZodAny;
177
+ tenant: z.ZodString;
178
+ model_ver: z.ZodDefault<z.ZodNumber>;
179
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
180
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
181
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
182
+ } & {
183
+ agent_type: z.ZodString;
184
+ agent_config_id: z.ZodString;
185
+ topic: z.ZodString;
186
+ active: z.ZodDefault<z.ZodBoolean>;
187
+ priority: z.ZodDefault<z.ZodNumber>;
188
+ /** Default conversation mode for new threads in this department.
189
+ * ai_only — AI responds directly to patient
190
+ * hybrid_assist — AI generates suggestions for operator
191
+ * human_only — AI disabled, operator can switch to other modes
192
+ * blocked — AI disabled, operator CANNOT change mode (admin lock) */
193
+ default_mode: z.ZodDefault<z.ZodEnum<["ai_only", "hybrid_assist", "human_only", "blocked"]>>;
194
+ }, z.ZodTypeAny, "passthrough">>;
195
+ export type IAiBinding = z.infer<typeof zAiBindingSchema>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zAiBindingSchema = exports.zHubiaConversationModeSchema = exports.zHubiaV1ChannelConfigSchema = exports.zHubiaAttendanceModeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ // ───────── Attendance Mode (how AI operates on this channel) ─────────
7
+ exports.zHubiaAttendanceModeSchema = zod_1.z.enum(["ai_auto", "ai_suggest", "disabled"]);
8
+ // ───────── Channel Config (evo-hubia-v1 automation config per channel) ─────────
9
+ exports.zHubiaV1ChannelConfigSchema = zod_schemas_1.zFireDocSchema.extend({
10
+ evo_chat_channel_id: zod_1.z.string(),
11
+ channel_name: zod_1.z.string(),
12
+ active: zod_1.z.boolean().default(false),
13
+ attendance_mode: exports.zHubiaAttendanceModeSchema.default("ai_auto"),
14
+ debounce_seconds: zod_1.z.number().default(20),
15
+ llm_model: zod_1.z.string().default("claude-sonnet-4-20250514"),
16
+ llm_temperature: zod_1.z.number().min(0).max(1).default(0.3),
17
+ llm_max_tokens: zod_1.z.number().default(2048),
18
+ prompt_ids: zod_1.z.array(zod_1.z.string()).default([]),
19
+ toolkit_id: zod_1.z.string().nullable().optional(),
20
+ max_rounds: zod_1.z.number().default(5),
21
+ max_tool_calls: zod_1.z.number().default(10),
22
+ execution_timeout_ms: zod_1.z.number().default(30000),
23
+ capabilities: zod_1.z.object({
24
+ can_schedule: zod_1.z.boolean().default(false),
25
+ can_reschedule: zod_1.z.boolean().default(false),
26
+ can_cancel: zod_1.z.boolean().default(false),
27
+ can_handoff: zod_1.z.boolean().default(true),
28
+ can_read_finops: zod_1.z.boolean().default(false),
29
+ }),
30
+ timezone: zod_1.z.string().default("America/Sao_Paulo"),
31
+ }).passthrough();
32
+ // ───────── Conversation Mode ─────────
33
+ exports.zHubiaConversationModeSchema = zod_1.z.enum(["ai_only", "hybrid_assist", "human_only", "blocked"]);
34
+ // ───────── AI Binding (department → AI agent routing) ─────────
35
+ exports.zAiBindingSchema = zod_schemas_1.zFireDocSchema.extend({
36
+ agent_type: zod_1.z.string(), // 'evo-hubia-v1', future: 'evo-hubia-v2', etc.
37
+ agent_config_id: zod_1.z.string(), // ref to the agent's channel config doc
38
+ topic: zod_1.z.string(), // PubSub topic for this agent: 'hubia-inbound-message'
39
+ active: zod_1.z.boolean().default(true),
40
+ priority: zod_1.z.number().default(1), // 1 = primary, 2 = fallback
41
+ /** Default conversation mode for new threads in this department.
42
+ * ai_only — AI responds directly to patient
43
+ * hybrid_assist — AI generates suggestions for operator
44
+ * human_only — AI disabled, operator can switch to other modes
45
+ * blocked — AI disabled, operator CANNOT change mode (admin lock) */
46
+ default_mode: exports.zHubiaConversationModeSchema.default("ai_only"),
47
+ }).passthrough();
@@ -0,0 +1,59 @@
1
+ import { z } from "zod";
2
+ import { zFireDocSchema } from "../../shared/zod-schemas";
3
+
4
+ // ───────── Attendance Mode (how AI operates on this channel) ─────────
5
+
6
+ export const zHubiaAttendanceModeSchema = z.enum(["ai_auto", "ai_suggest", "disabled"]);
7
+ export type IHubiaAttendanceMode = z.infer<typeof zHubiaAttendanceModeSchema>;
8
+
9
+ // ───────── Channel Config (evo-hubia-v1 automation config per channel) ─────────
10
+
11
+ export const zHubiaV1ChannelConfigSchema = zFireDocSchema.extend({
12
+ evo_chat_channel_id: z.string(),
13
+ channel_name: z.string(),
14
+ active: z.boolean().default(false),
15
+ attendance_mode: zHubiaAttendanceModeSchema.default("ai_auto"),
16
+ debounce_seconds: z.number().default(20),
17
+ llm_model: z.string().default("claude-sonnet-4-20250514"),
18
+ llm_temperature: z.number().min(0).max(1).default(0.3),
19
+ llm_max_tokens: z.number().default(2048),
20
+ prompt_ids: z.array(z.string()).default([]),
21
+ toolkit_id: z.string().nullable().optional(),
22
+ max_rounds: z.number().default(5),
23
+ max_tool_calls: z.number().default(10),
24
+ execution_timeout_ms: z.number().default(30000),
25
+ capabilities: z.object({
26
+ can_schedule: z.boolean().default(false),
27
+ can_reschedule: z.boolean().default(false),
28
+ can_cancel: z.boolean().default(false),
29
+ can_handoff: z.boolean().default(true),
30
+ can_read_finops: z.boolean().default(false),
31
+ }),
32
+ timezone: z.string().default("America/Sao_Paulo"),
33
+ }).passthrough();
34
+
35
+ export type IHubiaV1ChannelConfig = z.infer<typeof zHubiaV1ChannelConfigSchema>;
36
+
37
+ // ───────── Conversation Mode ─────────
38
+
39
+ export const zHubiaConversationModeSchema = z.enum(["ai_only", "hybrid_assist", "human_only", "blocked"]);
40
+ export type IHubiaConversationMode = z.infer<typeof zHubiaConversationModeSchema>;
41
+
42
+ // ───────── AI Binding (department → AI agent routing) ─────────
43
+
44
+ export const zAiBindingSchema = zFireDocSchema.extend({
45
+ agent_type: z.string(), // 'evo-hubia-v1', future: 'evo-hubia-v2', etc.
46
+ agent_config_id: z.string(), // ref to the agent's channel config doc
47
+ topic: z.string(), // PubSub topic for this agent: 'hubia-inbound-message'
48
+ active: z.boolean().default(true),
49
+ priority: z.number().default(1), // 1 = primary, 2 = fallback
50
+ /** Default conversation mode for new threads in this department.
51
+ * ai_only — AI responds directly to patient
52
+ * hybrid_assist — AI generates suggestions for operator
53
+ * human_only — AI disabled, operator can switch to other modes
54
+ * blocked — AI disabled, operator CANNOT change mode (admin lock) */
55
+ default_mode: zHubiaConversationModeSchema.default("ai_only"),
56
+ }).passthrough();
57
+
58
+ export type IAiBinding = z.infer<typeof zAiBindingSchema>;
59
+
package/dist/index.d.ts CHANGED
@@ -40,6 +40,7 @@ export * from "./apps/evo-chat/inbox/zod-schemas";
40
40
  export * from "./apps/evo-chat/waba-template/zod-schemas";
41
41
  export * from "./apps/evo-chat/quick-reply/zod-schemas";
42
42
  export * from "./apps/evo-hub-ia/channel/zod-schemas";
43
+ export * from "./apps/evo-hub-ia/v1/zod-schemas";
43
44
  export * from "./apps/evo-med/calendar/zod-schemas";
44
45
  export * from "./apps/evo-med/appointment/zod-schemas";
45
46
  export * from "./apps/evo-med/dic/zod-schemas";
package/dist/index.js CHANGED
@@ -58,6 +58,7 @@ __exportStar(require("./apps/evo-chat/inbox/zod-schemas"), exports);
58
58
  __exportStar(require("./apps/evo-chat/waba-template/zod-schemas"), exports);
59
59
  __exportStar(require("./apps/evo-chat/quick-reply/zod-schemas"), exports);
60
60
  __exportStar(require("./apps/evo-hub-ia/channel/zod-schemas"), exports);
61
+ __exportStar(require("./apps/evo-hub-ia/v1/zod-schemas"), exports);
61
62
  __exportStar(require("./apps/evo-med/calendar/zod-schemas"), exports);
62
63
  __exportStar(require("./apps/evo-med/appointment/zod-schemas"), exports);
63
64
  __exportStar(require("./apps/evo-med/dic/zod-schemas"), exports);
package/dist/index.ts CHANGED
@@ -43,6 +43,7 @@ export * from "./apps/evo-chat/inbox/zod-schemas";
43
43
  export * from "./apps/evo-chat/waba-template/zod-schemas";
44
44
  export * from "./apps/evo-chat/quick-reply/zod-schemas";
45
45
  export * from "./apps/evo-hub-ia/channel/zod-schemas";
46
+ export * from "./apps/evo-hub-ia/v1/zod-schemas";
46
47
  export * from "./apps/evo-med/calendar/zod-schemas";
47
48
  export * from "./apps/evo-med/appointment/zod-schemas";
48
49
  export * from "./apps/evo-med/dic/zod-schemas";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.314",
3
+ "version": "1.3.317",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",