evo360-types 1.3.316 → 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.
@@ -129,6 +129,8 @@ export declare const zHubiaV1ChannelConfigSchema: z.ZodObject<{
129
129
  timezone: z.ZodDefault<z.ZodString>;
130
130
  }, z.ZodTypeAny, "passthrough">>;
131
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>;
132
134
  export declare const zAiBindingSchema: z.ZodObject<{
133
135
  id: z.ZodString;
134
136
  ref: z.ZodAny;
@@ -143,6 +145,12 @@ export declare const zAiBindingSchema: z.ZodObject<{
143
145
  topic: z.ZodString;
144
146
  active: z.ZodDefault<z.ZodBoolean>;
145
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"]>>;
146
154
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
147
155
  id: z.ZodString;
148
156
  ref: z.ZodAny;
@@ -157,6 +165,12 @@ export declare const zAiBindingSchema: z.ZodObject<{
157
165
  topic: z.ZodString;
158
166
  active: z.ZodDefault<z.ZodBoolean>;
159
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"]>>;
160
174
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
161
175
  id: z.ZodString;
162
176
  ref: z.ZodAny;
@@ -171,7 +185,11 @@ export declare const zAiBindingSchema: z.ZodObject<{
171
185
  topic: z.ZodString;
172
186
  active: z.ZodDefault<z.ZodBoolean>;
173
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"]>>;
174
194
  }, z.ZodTypeAny, "passthrough">>;
175
195
  export type IAiBinding = z.infer<typeof zAiBindingSchema>;
176
- export declare const zHubiaConversationModeSchema: z.ZodEnum<["ai_only", "hybrid_assist", "human_only", "blocked"]>;
177
- export type IHubiaConversationMode = z.infer<typeof zHubiaConversationModeSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zHubiaConversationModeSchema = exports.zAiBindingSchema = exports.zHubiaV1ChannelConfigSchema = exports.zHubiaAttendanceModeSchema = void 0;
3
+ exports.zAiBindingSchema = exports.zHubiaConversationModeSchema = exports.zHubiaV1ChannelConfigSchema = exports.zHubiaAttendanceModeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  // ───────── Attendance Mode (how AI operates on this channel) ─────────
@@ -29,6 +29,8 @@ exports.zHubiaV1ChannelConfigSchema = zod_schemas_1.zFireDocSchema.extend({
29
29
  }),
30
30
  timezone: zod_1.z.string().default("America/Sao_Paulo"),
31
31
  }).passthrough();
32
+ // ───────── Conversation Mode ─────────
33
+ exports.zHubiaConversationModeSchema = zod_1.z.enum(["ai_only", "hybrid_assist", "human_only", "blocked"]);
32
34
  // ───────── AI Binding (department → AI agent routing) ─────────
33
35
  exports.zAiBindingSchema = zod_schemas_1.zFireDocSchema.extend({
34
36
  agent_type: zod_1.z.string(), // 'evo-hubia-v1', future: 'evo-hubia-v2', etc.
@@ -36,6 +38,10 @@ exports.zAiBindingSchema = zod_schemas_1.zFireDocSchema.extend({
36
38
  topic: zod_1.z.string(), // PubSub topic for this agent: 'hubia-inbound-message'
37
39
  active: zod_1.z.boolean().default(true),
38
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"),
39
47
  }).passthrough();
40
- // ───────── Conversation State ─────────
41
- exports.zHubiaConversationModeSchema = zod_1.z.enum(["ai_only", "hybrid_assist", "human_only", "blocked"]);
@@ -34,6 +34,11 @@ export const zHubiaV1ChannelConfigSchema = zFireDocSchema.extend({
34
34
 
35
35
  export type IHubiaV1ChannelConfig = z.infer<typeof zHubiaV1ChannelConfigSchema>;
36
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
+
37
42
  // ───────── AI Binding (department → AI agent routing) ─────────
38
43
 
39
44
  export const zAiBindingSchema = zFireDocSchema.extend({
@@ -42,11 +47,13 @@ export const zAiBindingSchema = zFireDocSchema.extend({
42
47
  topic: z.string(), // PubSub topic for this agent: 'hubia-inbound-message'
43
48
  active: z.boolean().default(true),
44
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"),
45
56
  }).passthrough();
46
57
 
47
58
  export type IAiBinding = z.infer<typeof zAiBindingSchema>;
48
59
 
49
- // ───────── Conversation State ─────────
50
-
51
- export const zHubiaConversationModeSchema = z.enum(["ai_only", "hybrid_assist", "human_only", "blocked"]);
52
- export type IHubiaConversationMode = z.infer<typeof zHubiaConversationModeSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.316",
3
+ "version": "1.3.317",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",