@roll-agent/smart-reply-agent 0.4.0 → 1.1.0

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 (43) hide show
  1. package/SKILL.md +25 -37
  2. package/dist/index.js +1 -1
  3. package/dist/services/reply-authority-client.d.ts +2 -0
  4. package/dist/tools/generate-reply.d.ts +31 -43
  5. package/dist/types/candidate-info.d.ts +57 -0
  6. package/dist/types/funnel-stage.d.ts +4 -0
  7. package/dist/types/model-config.d.ts +66 -0
  8. package/dist/types/reply-authority.d.ts +785 -0
  9. package/package.json +2 -16
  10. package/references/env.yaml +6 -26
  11. package/data/brand-config.sample.json +0 -83
  12. package/dist/ai/model-registry.d.ts +0 -103
  13. package/dist/ai/structured-output.d.ts +0 -61
  14. package/dist/errors/app-error.d.ts +0 -42
  15. package/dist/errors/error-codes.d.ts +0 -48
  16. package/dist/errors/error-factory.d.ts +0 -30
  17. package/dist/errors/error-utils.d.ts +0 -39
  18. package/dist/errors/index.d.ts +0 -8
  19. package/dist/log-control.d.ts +0 -2
  20. package/dist/pipeline/age-eligibility.d.ts +0 -94
  21. package/dist/pipeline/candidate-context.d.ts +0 -8
  22. package/dist/pipeline/candidate-utils.d.ts +0 -5
  23. package/dist/pipeline/classification.d.ts +0 -13
  24. package/dist/pipeline/context-builder.d.ts +0 -21
  25. package/dist/pipeline/pipeline-progress.d.ts +0 -9
  26. package/dist/pipeline/reply-gate.d.ts +0 -19
  27. package/dist/pipeline/smart-reply.d.ts +0 -64
  28. package/dist/pipeline.d.ts +0 -21
  29. package/dist/pipeline.js +0 -1
  30. package/dist/services/brand-alias.d.ts +0 -4
  31. package/dist/services/brand-config-selectors.d.ts +0 -7
  32. package/dist/services/config-loader.d.ts +0 -11
  33. package/dist/services/duliday-api.d.ts +0 -30
  34. package/dist/services/duliday-mapper.d.ts +0 -8
  35. package/dist/tools/sync-brand-data.d.ts +0 -11
  36. package/dist/types/brand-resolution.d.ts +0 -83
  37. package/dist/types/classification.d.ts +0 -181
  38. package/dist/types/config.d.ts +0 -3
  39. package/dist/types/duliday-api.d.ts +0 -7197
  40. package/dist/types/geocoding.d.ts +0 -23
  41. package/dist/types/reply-policy.d.ts +0 -1390
  42. package/dist/types/zhipin.d.ts +0 -2196
  43. package/references/reply-policy-schema.md +0 -148
@@ -1,1390 +0,0 @@
1
- import { z } from "zod";
2
- export declare const FunnelStageSchema: z.ZodEnum<["trust_building", "private_channel", "qualify_candidate", "job_consultation", "interview_scheduling", "onboard_followup"]>;
3
- export declare const ChannelTypeSchema: z.ZodEnum<["public", "private"]>;
4
- export type ChannelType = z.infer<typeof ChannelTypeSchema>;
5
- export declare const EffectiveDisclosureModeSchema: z.ZodEnum<["minimal", "focused"]>;
6
- export declare const ReplyFactFamilySchema: z.ZodEnum<["salary", "schedule", "location", "policy", "requirements", "availability"]>;
7
- export interface StageDefinition {
8
- description: string;
9
- transitionSignal: string;
10
- applicableChannels: readonly ChannelType[];
11
- }
12
- export declare const STAGE_DEFINITIONS: Record<FunnelStage, StageDefinition>;
13
- export declare const ReplyNeedSchema: z.ZodEnum<["stores", "location", "salary", "schedule", "policy", "availability", "requirements", "interview", "wechat", "none"]>;
14
- export declare const RiskFlagSchema: z.ZodEnum<["insurance_promise_risk", "age_sensitive", "confrontation_emotion", "urgency_high", "qualification_mismatch"]>;
15
- export declare const PRIMARY_NEED_FACT_MAP: {
16
- readonly stores: ["location"];
17
- readonly location: ["location"];
18
- readonly salary: ["salary"];
19
- readonly schedule: ["schedule"];
20
- readonly policy: ["policy"];
21
- readonly availability: ["availability"];
22
- readonly requirements: ["requirements"];
23
- readonly interview: [];
24
- readonly wechat: [];
25
- readonly none: [];
26
- };
27
- export declare const TurnExtractedInfoSchema: z.ZodObject<{
28
- mentionedBrand: z.ZodNullable<z.ZodString>;
29
- city: z.ZodNullable<z.ZodString>;
30
- mentionedLocations: z.ZodNullable<z.ZodArray<z.ZodObject<{
31
- location: z.ZodString;
32
- confidence: z.ZodNumber;
33
- }, "strip", z.ZodTypeAny, {
34
- location: string;
35
- confidence: number;
36
- }, {
37
- location: string;
38
- confidence: number;
39
- }>, "many">>;
40
- mentionedDistricts: z.ZodNullable<z.ZodArray<z.ZodObject<{
41
- district: z.ZodString;
42
- confidence: z.ZodNumber;
43
- }, "strip", z.ZodTypeAny, {
44
- district: string;
45
- confidence: number;
46
- }, {
47
- district: string;
48
- confidence: number;
49
- }>, "many">>;
50
- specificAge: z.ZodNullable<z.ZodNumber>;
51
- hasUrgency: z.ZodNullable<z.ZodBoolean>;
52
- preferredSchedule: z.ZodNullable<z.ZodString>;
53
- }, "strip", z.ZodTypeAny, {
54
- city: string | null;
55
- mentionedBrand: string | null;
56
- mentionedLocations: {
57
- location: string;
58
- confidence: number;
59
- }[] | null;
60
- mentionedDistricts: {
61
- district: string;
62
- confidence: number;
63
- }[] | null;
64
- specificAge: number | null;
65
- hasUrgency: boolean | null;
66
- preferredSchedule: string | null;
67
- }, {
68
- city: string | null;
69
- mentionedBrand: string | null;
70
- mentionedLocations: {
71
- location: string;
72
- confidence: number;
73
- }[] | null;
74
- mentionedDistricts: {
75
- district: string;
76
- confidence: number;
77
- }[] | null;
78
- specificAge: number | null;
79
- hasUrgency: boolean | null;
80
- preferredSchedule: string | null;
81
- }>;
82
- export declare const TurnPlanSchema: z.ZodObject<{
83
- stage: z.ZodEnum<["trust_building", "private_channel", "qualify_candidate", "job_consultation", "interview_scheduling", "onboard_followup"]>;
84
- subGoals: z.ZodArray<z.ZodString, "many">;
85
- needs: z.ZodArray<z.ZodEnum<["stores", "location", "salary", "schedule", "policy", "availability", "requirements", "interview", "wechat", "none"]>, "many">;
86
- primaryNeed: z.ZodEnum<["stores", "location", "salary", "schedule", "policy", "availability", "requirements", "interview", "wechat", "none"]>;
87
- riskFlags: z.ZodArray<z.ZodEnum<["insurance_promise_risk", "age_sensitive", "confrontation_emotion", "urgency_high", "qualification_mismatch"]>, "many">;
88
- confidence: z.ZodNumber;
89
- extractedInfo: z.ZodObject<{
90
- mentionedBrand: z.ZodNullable<z.ZodString>;
91
- city: z.ZodNullable<z.ZodString>;
92
- mentionedLocations: z.ZodNullable<z.ZodArray<z.ZodObject<{
93
- location: z.ZodString;
94
- confidence: z.ZodNumber;
95
- }, "strip", z.ZodTypeAny, {
96
- location: string;
97
- confidence: number;
98
- }, {
99
- location: string;
100
- confidence: number;
101
- }>, "many">>;
102
- mentionedDistricts: z.ZodNullable<z.ZodArray<z.ZodObject<{
103
- district: z.ZodString;
104
- confidence: z.ZodNumber;
105
- }, "strip", z.ZodTypeAny, {
106
- district: string;
107
- confidence: number;
108
- }, {
109
- district: string;
110
- confidence: number;
111
- }>, "many">>;
112
- specificAge: z.ZodNullable<z.ZodNumber>;
113
- hasUrgency: z.ZodNullable<z.ZodBoolean>;
114
- preferredSchedule: z.ZodNullable<z.ZodString>;
115
- }, "strip", z.ZodTypeAny, {
116
- city: string | null;
117
- mentionedBrand: string | null;
118
- mentionedLocations: {
119
- location: string;
120
- confidence: number;
121
- }[] | null;
122
- mentionedDistricts: {
123
- district: string;
124
- confidence: number;
125
- }[] | null;
126
- specificAge: number | null;
127
- hasUrgency: boolean | null;
128
- preferredSchedule: string | null;
129
- }, {
130
- city: string | null;
131
- mentionedBrand: string | null;
132
- mentionedLocations: {
133
- location: string;
134
- confidence: number;
135
- }[] | null;
136
- mentionedDistricts: {
137
- district: string;
138
- confidence: number;
139
- }[] | null;
140
- specificAge: number | null;
141
- hasUrgency: boolean | null;
142
- preferredSchedule: string | null;
143
- }>;
144
- reasoningText: z.ZodString;
145
- }, "strip", z.ZodTypeAny, {
146
- confidence: number;
147
- stage: "trust_building" | "private_channel" | "qualify_candidate" | "job_consultation" | "interview_scheduling" | "onboard_followup";
148
- subGoals: string[];
149
- needs: ("none" | "location" | "salary" | "stores" | "schedule" | "policy" | "requirements" | "availability" | "interview" | "wechat")[];
150
- primaryNeed: "none" | "location" | "salary" | "stores" | "schedule" | "policy" | "requirements" | "availability" | "interview" | "wechat";
151
- riskFlags: ("insurance_promise_risk" | "age_sensitive" | "confrontation_emotion" | "urgency_high" | "qualification_mismatch")[];
152
- extractedInfo: {
153
- city: string | null;
154
- mentionedBrand: string | null;
155
- mentionedLocations: {
156
- location: string;
157
- confidence: number;
158
- }[] | null;
159
- mentionedDistricts: {
160
- district: string;
161
- confidence: number;
162
- }[] | null;
163
- specificAge: number | null;
164
- hasUrgency: boolean | null;
165
- preferredSchedule: string | null;
166
- };
167
- reasoningText: string;
168
- }, {
169
- confidence: number;
170
- stage: "trust_building" | "private_channel" | "qualify_candidate" | "job_consultation" | "interview_scheduling" | "onboard_followup";
171
- subGoals: string[];
172
- needs: ("none" | "location" | "salary" | "stores" | "schedule" | "policy" | "requirements" | "availability" | "interview" | "wechat")[];
173
- primaryNeed: "none" | "location" | "salary" | "stores" | "schedule" | "policy" | "requirements" | "availability" | "interview" | "wechat";
174
- riskFlags: ("insurance_promise_risk" | "age_sensitive" | "confrontation_emotion" | "urgency_high" | "qualification_mismatch")[];
175
- extractedInfo: {
176
- city: string | null;
177
- mentionedBrand: string | null;
178
- mentionedLocations: {
179
- location: string;
180
- confidence: number;
181
- }[] | null;
182
- mentionedDistricts: {
183
- district: string;
184
- confidence: number;
185
- }[] | null;
186
- specificAge: number | null;
187
- hasUrgency: boolean | null;
188
- preferredSchedule: string | null;
189
- };
190
- reasoningText: string;
191
- }>;
192
- export declare const StageGoalPolicySchema: z.ZodObject<{
193
- description: z.ZodOptional<z.ZodString>;
194
- primaryGoal: z.ZodString;
195
- successCriteria: z.ZodArray<z.ZodString, "many">;
196
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
197
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
198
- }, "strip", z.ZodTypeAny, {
199
- primaryGoal: string;
200
- successCriteria: string[];
201
- ctaStrategy: string;
202
- description?: string | undefined;
203
- disallowedActions?: string[] | undefined;
204
- }, {
205
- primaryGoal: string;
206
- successCriteria: string[];
207
- description?: string | undefined;
208
- ctaStrategy?: unknown;
209
- disallowedActions?: string[] | undefined;
210
- }>;
211
- export declare const PersonaPolicySchema: z.ZodObject<{
212
- tone: z.ZodString;
213
- warmth: z.ZodString;
214
- humor: z.ZodString;
215
- length: z.ZodEnum<["short", "medium", "long"]>;
216
- questionStyle: z.ZodString;
217
- empathyStrategy: z.ZodString;
218
- addressStyle: z.ZodString;
219
- professionalIdentity: z.ZodString;
220
- companyBackground: z.ZodString;
221
- }, "strip", z.ZodTypeAny, {
222
- length: "medium" | "short" | "long";
223
- tone: string;
224
- warmth: string;
225
- humor: string;
226
- questionStyle: string;
227
- empathyStrategy: string;
228
- addressStyle: string;
229
- professionalIdentity: string;
230
- companyBackground: string;
231
- }, {
232
- length: "medium" | "short" | "long";
233
- tone: string;
234
- warmth: string;
235
- humor: string;
236
- questionStyle: string;
237
- empathyStrategy: string;
238
- addressStyle: string;
239
- professionalIdentity: string;
240
- companyBackground: string;
241
- }>;
242
- export declare const IndustryVoicePolicySchema: z.ZodObject<{
243
- name: z.ZodString;
244
- industryBackground: z.ZodString;
245
- jargon: z.ZodArray<z.ZodString, "many">;
246
- styleKeywords: z.ZodArray<z.ZodString, "many">;
247
- tabooPhrases: z.ZodArray<z.ZodString, "many">;
248
- guidance: z.ZodArray<z.ZodString, "many">;
249
- }, "strip", z.ZodTypeAny, {
250
- name: string;
251
- industryBackground: string;
252
- jargon: string[];
253
- styleKeywords: string[];
254
- tabooPhrases: string[];
255
- guidance: string[];
256
- }, {
257
- name: string;
258
- industryBackground: string;
259
- jargon: string[];
260
- styleKeywords: string[];
261
- tabooPhrases: string[];
262
- guidance: string[];
263
- }>;
264
- export declare const HardConstraintRuleSchema: z.ZodObject<{
265
- id: z.ZodString;
266
- rule: z.ZodString;
267
- severity: z.ZodEnum<["high", "medium", "low"]>;
268
- }, "strip", z.ZodTypeAny, {
269
- id: string;
270
- rule: string;
271
- severity: "high" | "medium" | "low";
272
- }, {
273
- id: string;
274
- rule: string;
275
- severity: "high" | "medium" | "low";
276
- }>;
277
- export declare const HardConstraintsPolicySchema: z.ZodObject<{
278
- rules: z.ZodArray<z.ZodObject<{
279
- id: z.ZodString;
280
- rule: z.ZodString;
281
- severity: z.ZodEnum<["high", "medium", "low"]>;
282
- }, "strip", z.ZodTypeAny, {
283
- id: string;
284
- rule: string;
285
- severity: "high" | "medium" | "low";
286
- }, {
287
- id: string;
288
- rule: string;
289
- severity: "high" | "medium" | "low";
290
- }>, "many">;
291
- }, "strip", z.ZodTypeAny, {
292
- rules: {
293
- id: string;
294
- rule: string;
295
- severity: "high" | "medium" | "low";
296
- }[];
297
- }, {
298
- rules: {
299
- id: string;
300
- rule: string;
301
- severity: "high" | "medium" | "low";
302
- }[];
303
- }>;
304
- export declare const FactGatePolicySchema: z.ZodObject<{
305
- mode: z.ZodEnum<["strict", "balanced", "open"]>;
306
- verifiableClaimTypes: z.ZodArray<z.ZodString, "many">;
307
- fallbackBehavior: z.ZodEnum<["generic_answer", "ask_followup", "handoff"]>;
308
- forbiddenWhenMissingFacts: z.ZodArray<z.ZodString, "many">;
309
- }, "strip", z.ZodTypeAny, {
310
- mode: "strict" | "balanced" | "open";
311
- verifiableClaimTypes: string[];
312
- fallbackBehavior: "generic_answer" | "ask_followup" | "handoff";
313
- forbiddenWhenMissingFacts: string[];
314
- }, {
315
- mode: "strict" | "balanced" | "open";
316
- verifiableClaimTypes: string[];
317
- fallbackBehavior: "generic_answer" | "ask_followup" | "handoff";
318
- forbiddenWhenMissingFacts: string[];
319
- }>;
320
- export declare const DEFAULT_OUTPUT_GUARDS: {
321
- maxQuestionsByMode: {
322
- minimal: number;
323
- focused: number;
324
- };
325
- blockedAuditPhrases: string[];
326
- blockFirstTurnSpecificFacts: boolean;
327
- };
328
- export declare const OutputGuardsPolicySchema: z.ZodObject<{
329
- maxQuestionsByMode: z.ZodObject<{
330
- minimal: z.ZodNumber;
331
- focused: z.ZodNumber;
332
- }, "strip", z.ZodTypeAny, {
333
- minimal: number;
334
- focused: number;
335
- }, {
336
- minimal: number;
337
- focused: number;
338
- }>;
339
- blockedAuditPhrases: z.ZodArray<z.ZodString, "many">;
340
- blockFirstTurnSpecificFacts: z.ZodBoolean;
341
- }, "strip", z.ZodTypeAny, {
342
- maxQuestionsByMode: {
343
- minimal: number;
344
- focused: number;
345
- };
346
- blockedAuditPhrases: string[];
347
- blockFirstTurnSpecificFacts: boolean;
348
- }, {
349
- maxQuestionsByMode: {
350
- minimal: number;
351
- focused: number;
352
- };
353
- blockedAuditPhrases: string[];
354
- blockFirstTurnSpecificFacts: boolean;
355
- }>;
356
- export declare const AgeQualificationPolicySchema: z.ZodObject<{
357
- enabled: z.ZodDefault<z.ZodBoolean>;
358
- revealRange: z.ZodDefault<z.ZodBoolean>;
359
- failStrategy: z.ZodDefault<z.ZodString>;
360
- unknownStrategy: z.ZodDefault<z.ZodString>;
361
- passStrategy: z.ZodDefault<z.ZodString>;
362
- allowRedirect: z.ZodDefault<z.ZodBoolean>;
363
- redirectPriority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
364
- }, "strip", z.ZodTypeAny, {
365
- enabled: boolean;
366
- revealRange: boolean;
367
- failStrategy: string;
368
- unknownStrategy: string;
369
- passStrategy: string;
370
- allowRedirect: boolean;
371
- redirectPriority: "high" | "medium" | "low";
372
- }, {
373
- enabled?: boolean | undefined;
374
- revealRange?: boolean | undefined;
375
- failStrategy?: string | undefined;
376
- unknownStrategy?: string | undefined;
377
- passStrategy?: string | undefined;
378
- allowRedirect?: boolean | undefined;
379
- redirectPriority?: "high" | "medium" | "low" | undefined;
380
- }>;
381
- export declare const QualificationPolicySchema: z.ZodDefault<z.ZodObject<{
382
- age: z.ZodDefault<z.ZodObject<{
383
- enabled: z.ZodDefault<z.ZodBoolean>;
384
- revealRange: z.ZodDefault<z.ZodBoolean>;
385
- failStrategy: z.ZodDefault<z.ZodString>;
386
- unknownStrategy: z.ZodDefault<z.ZodString>;
387
- passStrategy: z.ZodDefault<z.ZodString>;
388
- allowRedirect: z.ZodDefault<z.ZodBoolean>;
389
- redirectPriority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
390
- }, "strip", z.ZodTypeAny, {
391
- enabled: boolean;
392
- revealRange: boolean;
393
- failStrategy: string;
394
- unknownStrategy: string;
395
- passStrategy: string;
396
- allowRedirect: boolean;
397
- redirectPriority: "high" | "medium" | "low";
398
- }, {
399
- enabled?: boolean | undefined;
400
- revealRange?: boolean | undefined;
401
- failStrategy?: string | undefined;
402
- unknownStrategy?: string | undefined;
403
- passStrategy?: string | undefined;
404
- allowRedirect?: boolean | undefined;
405
- redirectPriority?: "high" | "medium" | "low" | undefined;
406
- }>>;
407
- }, "strip", z.ZodTypeAny, {
408
- age: {
409
- enabled: boolean;
410
- revealRange: boolean;
411
- failStrategy: string;
412
- unknownStrategy: string;
413
- passStrategy: string;
414
- allowRedirect: boolean;
415
- redirectPriority: "high" | "medium" | "low";
416
- };
417
- }, {
418
- age?: {
419
- enabled?: boolean | undefined;
420
- revealRange?: boolean | undefined;
421
- failStrategy?: string | undefined;
422
- unknownStrategy?: string | undefined;
423
- passStrategy?: string | undefined;
424
- allowRedirect?: boolean | undefined;
425
- redirectPriority?: "high" | "medium" | "low" | undefined;
426
- } | undefined;
427
- }>>;
428
- export declare const StageGoalsSchema: z.ZodEffects<z.ZodObject<{
429
- trust_building: z.ZodObject<{
430
- description: z.ZodOptional<z.ZodString>;
431
- primaryGoal: z.ZodString;
432
- successCriteria: z.ZodArray<z.ZodString, "many">;
433
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
434
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
- }, "strip", z.ZodTypeAny, {
436
- primaryGoal: string;
437
- successCriteria: string[];
438
- ctaStrategy: string;
439
- description?: string | undefined;
440
- disallowedActions?: string[] | undefined;
441
- }, {
442
- primaryGoal: string;
443
- successCriteria: string[];
444
- description?: string | undefined;
445
- ctaStrategy?: unknown;
446
- disallowedActions?: string[] | undefined;
447
- }>;
448
- private_channel: z.ZodOptional<z.ZodObject<{
449
- description: z.ZodOptional<z.ZodString>;
450
- primaryGoal: z.ZodString;
451
- successCriteria: z.ZodArray<z.ZodString, "many">;
452
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
453
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
454
- }, "strip", z.ZodTypeAny, {
455
- primaryGoal: string;
456
- successCriteria: string[];
457
- ctaStrategy: string;
458
- description?: string | undefined;
459
- disallowedActions?: string[] | undefined;
460
- }, {
461
- primaryGoal: string;
462
- successCriteria: string[];
463
- description?: string | undefined;
464
- ctaStrategy?: unknown;
465
- disallowedActions?: string[] | undefined;
466
- }>>;
467
- qualify_candidate: z.ZodObject<{
468
- description: z.ZodOptional<z.ZodString>;
469
- primaryGoal: z.ZodString;
470
- successCriteria: z.ZodArray<z.ZodString, "many">;
471
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
472
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
473
- }, "strip", z.ZodTypeAny, {
474
- primaryGoal: string;
475
- successCriteria: string[];
476
- ctaStrategy: string;
477
- description?: string | undefined;
478
- disallowedActions?: string[] | undefined;
479
- }, {
480
- primaryGoal: string;
481
- successCriteria: string[];
482
- description?: string | undefined;
483
- ctaStrategy?: unknown;
484
- disallowedActions?: string[] | undefined;
485
- }>;
486
- job_consultation: z.ZodObject<{
487
- description: z.ZodOptional<z.ZodString>;
488
- primaryGoal: z.ZodString;
489
- successCriteria: z.ZodArray<z.ZodString, "many">;
490
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
491
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
492
- }, "strip", z.ZodTypeAny, {
493
- primaryGoal: string;
494
- successCriteria: string[];
495
- ctaStrategy: string;
496
- description?: string | undefined;
497
- disallowedActions?: string[] | undefined;
498
- }, {
499
- primaryGoal: string;
500
- successCriteria: string[];
501
- description?: string | undefined;
502
- ctaStrategy?: unknown;
503
- disallowedActions?: string[] | undefined;
504
- }>;
505
- interview_scheduling: z.ZodObject<{
506
- description: z.ZodOptional<z.ZodString>;
507
- primaryGoal: z.ZodString;
508
- successCriteria: z.ZodArray<z.ZodString, "many">;
509
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
510
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
511
- }, "strip", z.ZodTypeAny, {
512
- primaryGoal: string;
513
- successCriteria: string[];
514
- ctaStrategy: string;
515
- description?: string | undefined;
516
- disallowedActions?: string[] | undefined;
517
- }, {
518
- primaryGoal: string;
519
- successCriteria: string[];
520
- description?: string | undefined;
521
- ctaStrategy?: unknown;
522
- disallowedActions?: string[] | undefined;
523
- }>;
524
- onboard_followup: z.ZodObject<{
525
- description: z.ZodOptional<z.ZodString>;
526
- primaryGoal: z.ZodString;
527
- successCriteria: z.ZodArray<z.ZodString, "many">;
528
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
529
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
530
- }, "strip", z.ZodTypeAny, {
531
- primaryGoal: string;
532
- successCriteria: string[];
533
- ctaStrategy: string;
534
- description?: string | undefined;
535
- disallowedActions?: string[] | undefined;
536
- }, {
537
- primaryGoal: string;
538
- successCriteria: string[];
539
- description?: string | undefined;
540
- ctaStrategy?: unknown;
541
- disallowedActions?: string[] | undefined;
542
- }>;
543
- }, "strip", z.ZodTypeAny, {
544
- trust_building: {
545
- primaryGoal: string;
546
- successCriteria: string[];
547
- ctaStrategy: string;
548
- description?: string | undefined;
549
- disallowedActions?: string[] | undefined;
550
- };
551
- qualify_candidate: {
552
- primaryGoal: string;
553
- successCriteria: string[];
554
- ctaStrategy: string;
555
- description?: string | undefined;
556
- disallowedActions?: string[] | undefined;
557
- };
558
- job_consultation: {
559
- primaryGoal: string;
560
- successCriteria: string[];
561
- ctaStrategy: string;
562
- description?: string | undefined;
563
- disallowedActions?: string[] | undefined;
564
- };
565
- interview_scheduling: {
566
- primaryGoal: string;
567
- successCriteria: string[];
568
- ctaStrategy: string;
569
- description?: string | undefined;
570
- disallowedActions?: string[] | undefined;
571
- };
572
- onboard_followup: {
573
- primaryGoal: string;
574
- successCriteria: string[];
575
- ctaStrategy: string;
576
- description?: string | undefined;
577
- disallowedActions?: string[] | undefined;
578
- };
579
- private_channel?: {
580
- primaryGoal: string;
581
- successCriteria: string[];
582
- ctaStrategy: string;
583
- description?: string | undefined;
584
- disallowedActions?: string[] | undefined;
585
- } | undefined;
586
- }, {
587
- trust_building: {
588
- primaryGoal: string;
589
- successCriteria: string[];
590
- description?: string | undefined;
591
- ctaStrategy?: unknown;
592
- disallowedActions?: string[] | undefined;
593
- };
594
- qualify_candidate: {
595
- primaryGoal: string;
596
- successCriteria: string[];
597
- description?: string | undefined;
598
- ctaStrategy?: unknown;
599
- disallowedActions?: string[] | undefined;
600
- };
601
- job_consultation: {
602
- primaryGoal: string;
603
- successCriteria: string[];
604
- description?: string | undefined;
605
- ctaStrategy?: unknown;
606
- disallowedActions?: string[] | undefined;
607
- };
608
- interview_scheduling: {
609
- primaryGoal: string;
610
- successCriteria: string[];
611
- description?: string | undefined;
612
- ctaStrategy?: unknown;
613
- disallowedActions?: string[] | undefined;
614
- };
615
- onboard_followup: {
616
- primaryGoal: string;
617
- successCriteria: string[];
618
- description?: string | undefined;
619
- ctaStrategy?: unknown;
620
- disallowedActions?: string[] | undefined;
621
- };
622
- private_channel?: {
623
- primaryGoal: string;
624
- successCriteria: string[];
625
- description?: string | undefined;
626
- ctaStrategy?: unknown;
627
- disallowedActions?: string[] | undefined;
628
- } | undefined;
629
- }>, {
630
- private_channel: {
631
- primaryGoal: string;
632
- successCriteria: string[];
633
- ctaStrategy: string;
634
- description?: string | undefined;
635
- disallowedActions?: string[] | undefined;
636
- };
637
- trust_building: {
638
- primaryGoal: string;
639
- successCriteria: string[];
640
- ctaStrategy: string;
641
- description?: string | undefined;
642
- disallowedActions?: string[] | undefined;
643
- };
644
- qualify_candidate: {
645
- primaryGoal: string;
646
- successCriteria: string[];
647
- ctaStrategy: string;
648
- description?: string | undefined;
649
- disallowedActions?: string[] | undefined;
650
- };
651
- job_consultation: {
652
- primaryGoal: string;
653
- successCriteria: string[];
654
- ctaStrategy: string;
655
- description?: string | undefined;
656
- disallowedActions?: string[] | undefined;
657
- };
658
- interview_scheduling: {
659
- primaryGoal: string;
660
- successCriteria: string[];
661
- ctaStrategy: string;
662
- description?: string | undefined;
663
- disallowedActions?: string[] | undefined;
664
- };
665
- onboard_followup: {
666
- primaryGoal: string;
667
- successCriteria: string[];
668
- ctaStrategy: string;
669
- description?: string | undefined;
670
- disallowedActions?: string[] | undefined;
671
- };
672
- }, {
673
- trust_building: {
674
- primaryGoal: string;
675
- successCriteria: string[];
676
- description?: string | undefined;
677
- ctaStrategy?: unknown;
678
- disallowedActions?: string[] | undefined;
679
- };
680
- qualify_candidate: {
681
- primaryGoal: string;
682
- successCriteria: string[];
683
- description?: string | undefined;
684
- ctaStrategy?: unknown;
685
- disallowedActions?: string[] | undefined;
686
- };
687
- job_consultation: {
688
- primaryGoal: string;
689
- successCriteria: string[];
690
- description?: string | undefined;
691
- ctaStrategy?: unknown;
692
- disallowedActions?: string[] | undefined;
693
- };
694
- interview_scheduling: {
695
- primaryGoal: string;
696
- successCriteria: string[];
697
- description?: string | undefined;
698
- ctaStrategy?: unknown;
699
- disallowedActions?: string[] | undefined;
700
- };
701
- onboard_followup: {
702
- primaryGoal: string;
703
- successCriteria: string[];
704
- description?: string | undefined;
705
- ctaStrategy?: unknown;
706
- disallowedActions?: string[] | undefined;
707
- };
708
- private_channel?: {
709
- primaryGoal: string;
710
- successCriteria: string[];
711
- description?: string | undefined;
712
- ctaStrategy?: unknown;
713
- disallowedActions?: string[] | undefined;
714
- } | undefined;
715
- }>;
716
- export declare const ReplyPolicyConfigSchema: z.ZodObject<{
717
- stageGoals: z.ZodEffects<z.ZodObject<{
718
- trust_building: z.ZodObject<{
719
- description: z.ZodOptional<z.ZodString>;
720
- primaryGoal: z.ZodString;
721
- successCriteria: z.ZodArray<z.ZodString, "many">;
722
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
723
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
724
- }, "strip", z.ZodTypeAny, {
725
- primaryGoal: string;
726
- successCriteria: string[];
727
- ctaStrategy: string;
728
- description?: string | undefined;
729
- disallowedActions?: string[] | undefined;
730
- }, {
731
- primaryGoal: string;
732
- successCriteria: string[];
733
- description?: string | undefined;
734
- ctaStrategy?: unknown;
735
- disallowedActions?: string[] | undefined;
736
- }>;
737
- private_channel: z.ZodOptional<z.ZodObject<{
738
- description: z.ZodOptional<z.ZodString>;
739
- primaryGoal: z.ZodString;
740
- successCriteria: z.ZodArray<z.ZodString, "many">;
741
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
742
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
743
- }, "strip", z.ZodTypeAny, {
744
- primaryGoal: string;
745
- successCriteria: string[];
746
- ctaStrategy: string;
747
- description?: string | undefined;
748
- disallowedActions?: string[] | undefined;
749
- }, {
750
- primaryGoal: string;
751
- successCriteria: string[];
752
- description?: string | undefined;
753
- ctaStrategy?: unknown;
754
- disallowedActions?: string[] | undefined;
755
- }>>;
756
- qualify_candidate: z.ZodObject<{
757
- description: z.ZodOptional<z.ZodString>;
758
- primaryGoal: z.ZodString;
759
- successCriteria: z.ZodArray<z.ZodString, "many">;
760
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
761
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
762
- }, "strip", z.ZodTypeAny, {
763
- primaryGoal: string;
764
- successCriteria: string[];
765
- ctaStrategy: string;
766
- description?: string | undefined;
767
- disallowedActions?: string[] | undefined;
768
- }, {
769
- primaryGoal: string;
770
- successCriteria: string[];
771
- description?: string | undefined;
772
- ctaStrategy?: unknown;
773
- disallowedActions?: string[] | undefined;
774
- }>;
775
- job_consultation: z.ZodObject<{
776
- description: z.ZodOptional<z.ZodString>;
777
- primaryGoal: z.ZodString;
778
- successCriteria: z.ZodArray<z.ZodString, "many">;
779
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
780
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
781
- }, "strip", z.ZodTypeAny, {
782
- primaryGoal: string;
783
- successCriteria: string[];
784
- ctaStrategy: string;
785
- description?: string | undefined;
786
- disallowedActions?: string[] | undefined;
787
- }, {
788
- primaryGoal: string;
789
- successCriteria: string[];
790
- description?: string | undefined;
791
- ctaStrategy?: unknown;
792
- disallowedActions?: string[] | undefined;
793
- }>;
794
- interview_scheduling: z.ZodObject<{
795
- description: z.ZodOptional<z.ZodString>;
796
- primaryGoal: z.ZodString;
797
- successCriteria: z.ZodArray<z.ZodString, "many">;
798
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
799
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
800
- }, "strip", z.ZodTypeAny, {
801
- primaryGoal: string;
802
- successCriteria: string[];
803
- ctaStrategy: string;
804
- description?: string | undefined;
805
- disallowedActions?: string[] | undefined;
806
- }, {
807
- primaryGoal: string;
808
- successCriteria: string[];
809
- description?: string | undefined;
810
- ctaStrategy?: unknown;
811
- disallowedActions?: string[] | undefined;
812
- }>;
813
- onboard_followup: z.ZodObject<{
814
- description: z.ZodOptional<z.ZodString>;
815
- primaryGoal: z.ZodString;
816
- successCriteria: z.ZodArray<z.ZodString, "many">;
817
- ctaStrategy: z.ZodEffects<z.ZodString, string, unknown>;
818
- disallowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
819
- }, "strip", z.ZodTypeAny, {
820
- primaryGoal: string;
821
- successCriteria: string[];
822
- ctaStrategy: string;
823
- description?: string | undefined;
824
- disallowedActions?: string[] | undefined;
825
- }, {
826
- primaryGoal: string;
827
- successCriteria: string[];
828
- description?: string | undefined;
829
- ctaStrategy?: unknown;
830
- disallowedActions?: string[] | undefined;
831
- }>;
832
- }, "strip", z.ZodTypeAny, {
833
- trust_building: {
834
- primaryGoal: string;
835
- successCriteria: string[];
836
- ctaStrategy: string;
837
- description?: string | undefined;
838
- disallowedActions?: string[] | undefined;
839
- };
840
- qualify_candidate: {
841
- primaryGoal: string;
842
- successCriteria: string[];
843
- ctaStrategy: string;
844
- description?: string | undefined;
845
- disallowedActions?: string[] | undefined;
846
- };
847
- job_consultation: {
848
- primaryGoal: string;
849
- successCriteria: string[];
850
- ctaStrategy: string;
851
- description?: string | undefined;
852
- disallowedActions?: string[] | undefined;
853
- };
854
- interview_scheduling: {
855
- primaryGoal: string;
856
- successCriteria: string[];
857
- ctaStrategy: string;
858
- description?: string | undefined;
859
- disallowedActions?: string[] | undefined;
860
- };
861
- onboard_followup: {
862
- primaryGoal: string;
863
- successCriteria: string[];
864
- ctaStrategy: string;
865
- description?: string | undefined;
866
- disallowedActions?: string[] | undefined;
867
- };
868
- private_channel?: {
869
- primaryGoal: string;
870
- successCriteria: string[];
871
- ctaStrategy: string;
872
- description?: string | undefined;
873
- disallowedActions?: string[] | undefined;
874
- } | undefined;
875
- }, {
876
- trust_building: {
877
- primaryGoal: string;
878
- successCriteria: string[];
879
- description?: string | undefined;
880
- ctaStrategy?: unknown;
881
- disallowedActions?: string[] | undefined;
882
- };
883
- qualify_candidate: {
884
- primaryGoal: string;
885
- successCriteria: string[];
886
- description?: string | undefined;
887
- ctaStrategy?: unknown;
888
- disallowedActions?: string[] | undefined;
889
- };
890
- job_consultation: {
891
- primaryGoal: string;
892
- successCriteria: string[];
893
- description?: string | undefined;
894
- ctaStrategy?: unknown;
895
- disallowedActions?: string[] | undefined;
896
- };
897
- interview_scheduling: {
898
- primaryGoal: string;
899
- successCriteria: string[];
900
- description?: string | undefined;
901
- ctaStrategy?: unknown;
902
- disallowedActions?: string[] | undefined;
903
- };
904
- onboard_followup: {
905
- primaryGoal: string;
906
- successCriteria: string[];
907
- description?: string | undefined;
908
- ctaStrategy?: unknown;
909
- disallowedActions?: string[] | undefined;
910
- };
911
- private_channel?: {
912
- primaryGoal: string;
913
- successCriteria: string[];
914
- description?: string | undefined;
915
- ctaStrategy?: unknown;
916
- disallowedActions?: string[] | undefined;
917
- } | undefined;
918
- }>, {
919
- private_channel: {
920
- primaryGoal: string;
921
- successCriteria: string[];
922
- ctaStrategy: string;
923
- description?: string | undefined;
924
- disallowedActions?: string[] | undefined;
925
- };
926
- trust_building: {
927
- primaryGoal: string;
928
- successCriteria: string[];
929
- ctaStrategy: string;
930
- description?: string | undefined;
931
- disallowedActions?: string[] | undefined;
932
- };
933
- qualify_candidate: {
934
- primaryGoal: string;
935
- successCriteria: string[];
936
- ctaStrategy: string;
937
- description?: string | undefined;
938
- disallowedActions?: string[] | undefined;
939
- };
940
- job_consultation: {
941
- primaryGoal: string;
942
- successCriteria: string[];
943
- ctaStrategy: string;
944
- description?: string | undefined;
945
- disallowedActions?: string[] | undefined;
946
- };
947
- interview_scheduling: {
948
- primaryGoal: string;
949
- successCriteria: string[];
950
- ctaStrategy: string;
951
- description?: string | undefined;
952
- disallowedActions?: string[] | undefined;
953
- };
954
- onboard_followup: {
955
- primaryGoal: string;
956
- successCriteria: string[];
957
- ctaStrategy: string;
958
- description?: string | undefined;
959
- disallowedActions?: string[] | undefined;
960
- };
961
- }, {
962
- trust_building: {
963
- primaryGoal: string;
964
- successCriteria: string[];
965
- description?: string | undefined;
966
- ctaStrategy?: unknown;
967
- disallowedActions?: string[] | undefined;
968
- };
969
- qualify_candidate: {
970
- primaryGoal: string;
971
- successCriteria: string[];
972
- description?: string | undefined;
973
- ctaStrategy?: unknown;
974
- disallowedActions?: string[] | undefined;
975
- };
976
- job_consultation: {
977
- primaryGoal: string;
978
- successCriteria: string[];
979
- description?: string | undefined;
980
- ctaStrategy?: unknown;
981
- disallowedActions?: string[] | undefined;
982
- };
983
- interview_scheduling: {
984
- primaryGoal: string;
985
- successCriteria: string[];
986
- description?: string | undefined;
987
- ctaStrategy?: unknown;
988
- disallowedActions?: string[] | undefined;
989
- };
990
- onboard_followup: {
991
- primaryGoal: string;
992
- successCriteria: string[];
993
- description?: string | undefined;
994
- ctaStrategy?: unknown;
995
- disallowedActions?: string[] | undefined;
996
- };
997
- private_channel?: {
998
- primaryGoal: string;
999
- successCriteria: string[];
1000
- description?: string | undefined;
1001
- ctaStrategy?: unknown;
1002
- disallowedActions?: string[] | undefined;
1003
- } | undefined;
1004
- }>;
1005
- persona: z.ZodObject<{
1006
- tone: z.ZodString;
1007
- warmth: z.ZodString;
1008
- humor: z.ZodString;
1009
- length: z.ZodEnum<["short", "medium", "long"]>;
1010
- questionStyle: z.ZodString;
1011
- empathyStrategy: z.ZodString;
1012
- addressStyle: z.ZodString;
1013
- professionalIdentity: z.ZodString;
1014
- companyBackground: z.ZodString;
1015
- }, "strip", z.ZodTypeAny, {
1016
- length: "medium" | "short" | "long";
1017
- tone: string;
1018
- warmth: string;
1019
- humor: string;
1020
- questionStyle: string;
1021
- empathyStrategy: string;
1022
- addressStyle: string;
1023
- professionalIdentity: string;
1024
- companyBackground: string;
1025
- }, {
1026
- length: "medium" | "short" | "long";
1027
- tone: string;
1028
- warmth: string;
1029
- humor: string;
1030
- questionStyle: string;
1031
- empathyStrategy: string;
1032
- addressStyle: string;
1033
- professionalIdentity: string;
1034
- companyBackground: string;
1035
- }>;
1036
- industryVoices: z.ZodRecord<z.ZodString, z.ZodObject<{
1037
- name: z.ZodString;
1038
- industryBackground: z.ZodString;
1039
- jargon: z.ZodArray<z.ZodString, "many">;
1040
- styleKeywords: z.ZodArray<z.ZodString, "many">;
1041
- tabooPhrases: z.ZodArray<z.ZodString, "many">;
1042
- guidance: z.ZodArray<z.ZodString, "many">;
1043
- }, "strip", z.ZodTypeAny, {
1044
- name: string;
1045
- industryBackground: string;
1046
- jargon: string[];
1047
- styleKeywords: string[];
1048
- tabooPhrases: string[];
1049
- guidance: string[];
1050
- }, {
1051
- name: string;
1052
- industryBackground: string;
1053
- jargon: string[];
1054
- styleKeywords: string[];
1055
- tabooPhrases: string[];
1056
- guidance: string[];
1057
- }>>;
1058
- defaultIndustryVoiceId: z.ZodString;
1059
- hardConstraints: z.ZodObject<{
1060
- rules: z.ZodArray<z.ZodObject<{
1061
- id: z.ZodString;
1062
- rule: z.ZodString;
1063
- severity: z.ZodEnum<["high", "medium", "low"]>;
1064
- }, "strip", z.ZodTypeAny, {
1065
- id: string;
1066
- rule: string;
1067
- severity: "high" | "medium" | "low";
1068
- }, {
1069
- id: string;
1070
- rule: string;
1071
- severity: "high" | "medium" | "low";
1072
- }>, "many">;
1073
- }, "strip", z.ZodTypeAny, {
1074
- rules: {
1075
- id: string;
1076
- rule: string;
1077
- severity: "high" | "medium" | "low";
1078
- }[];
1079
- }, {
1080
- rules: {
1081
- id: string;
1082
- rule: string;
1083
- severity: "high" | "medium" | "low";
1084
- }[];
1085
- }>;
1086
- factGate: z.ZodObject<{
1087
- mode: z.ZodEnum<["strict", "balanced", "open"]>;
1088
- verifiableClaimTypes: z.ZodArray<z.ZodString, "many">;
1089
- fallbackBehavior: z.ZodEnum<["generic_answer", "ask_followup", "handoff"]>;
1090
- forbiddenWhenMissingFacts: z.ZodArray<z.ZodString, "many">;
1091
- }, "strip", z.ZodTypeAny, {
1092
- mode: "strict" | "balanced" | "open";
1093
- verifiableClaimTypes: string[];
1094
- fallbackBehavior: "generic_answer" | "ask_followup" | "handoff";
1095
- forbiddenWhenMissingFacts: string[];
1096
- }, {
1097
- mode: "strict" | "balanced" | "open";
1098
- verifiableClaimTypes: string[];
1099
- fallbackBehavior: "generic_answer" | "ask_followup" | "handoff";
1100
- forbiddenWhenMissingFacts: string[];
1101
- }>;
1102
- qualificationPolicy: z.ZodDefault<z.ZodObject<{
1103
- age: z.ZodDefault<z.ZodObject<{
1104
- enabled: z.ZodDefault<z.ZodBoolean>;
1105
- revealRange: z.ZodDefault<z.ZodBoolean>;
1106
- failStrategy: z.ZodDefault<z.ZodString>;
1107
- unknownStrategy: z.ZodDefault<z.ZodString>;
1108
- passStrategy: z.ZodDefault<z.ZodString>;
1109
- allowRedirect: z.ZodDefault<z.ZodBoolean>;
1110
- redirectPriority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
1111
- }, "strip", z.ZodTypeAny, {
1112
- enabled: boolean;
1113
- revealRange: boolean;
1114
- failStrategy: string;
1115
- unknownStrategy: string;
1116
- passStrategy: string;
1117
- allowRedirect: boolean;
1118
- redirectPriority: "high" | "medium" | "low";
1119
- }, {
1120
- enabled?: boolean | undefined;
1121
- revealRange?: boolean | undefined;
1122
- failStrategy?: string | undefined;
1123
- unknownStrategy?: string | undefined;
1124
- passStrategy?: string | undefined;
1125
- allowRedirect?: boolean | undefined;
1126
- redirectPriority?: "high" | "medium" | "low" | undefined;
1127
- }>>;
1128
- }, "strip", z.ZodTypeAny, {
1129
- age: {
1130
- enabled: boolean;
1131
- revealRange: boolean;
1132
- failStrategy: string;
1133
- unknownStrategy: string;
1134
- passStrategy: string;
1135
- allowRedirect: boolean;
1136
- redirectPriority: "high" | "medium" | "low";
1137
- };
1138
- }, {
1139
- age?: {
1140
- enabled?: boolean | undefined;
1141
- revealRange?: boolean | undefined;
1142
- failStrategy?: string | undefined;
1143
- unknownStrategy?: string | undefined;
1144
- passStrategy?: string | undefined;
1145
- allowRedirect?: boolean | undefined;
1146
- redirectPriority?: "high" | "medium" | "low" | undefined;
1147
- } | undefined;
1148
- }>>;
1149
- outputGuards: z.ZodDefault<z.ZodObject<{
1150
- maxQuestionsByMode: z.ZodObject<{
1151
- minimal: z.ZodNumber;
1152
- focused: z.ZodNumber;
1153
- }, "strip", z.ZodTypeAny, {
1154
- minimal: number;
1155
- focused: number;
1156
- }, {
1157
- minimal: number;
1158
- focused: number;
1159
- }>;
1160
- blockedAuditPhrases: z.ZodArray<z.ZodString, "many">;
1161
- blockFirstTurnSpecificFacts: z.ZodBoolean;
1162
- }, "strip", z.ZodTypeAny, {
1163
- maxQuestionsByMode: {
1164
- minimal: number;
1165
- focused: number;
1166
- };
1167
- blockedAuditPhrases: string[];
1168
- blockFirstTurnSpecificFacts: boolean;
1169
- }, {
1170
- maxQuestionsByMode: {
1171
- minimal: number;
1172
- focused: number;
1173
- };
1174
- blockedAuditPhrases: string[];
1175
- blockFirstTurnSpecificFacts: boolean;
1176
- }>>;
1177
- }, "strip", z.ZodTypeAny, {
1178
- stageGoals: {
1179
- private_channel: {
1180
- primaryGoal: string;
1181
- successCriteria: string[];
1182
- ctaStrategy: string;
1183
- description?: string | undefined;
1184
- disallowedActions?: string[] | undefined;
1185
- };
1186
- trust_building: {
1187
- primaryGoal: string;
1188
- successCriteria: string[];
1189
- ctaStrategy: string;
1190
- description?: string | undefined;
1191
- disallowedActions?: string[] | undefined;
1192
- };
1193
- qualify_candidate: {
1194
- primaryGoal: string;
1195
- successCriteria: string[];
1196
- ctaStrategy: string;
1197
- description?: string | undefined;
1198
- disallowedActions?: string[] | undefined;
1199
- };
1200
- job_consultation: {
1201
- primaryGoal: string;
1202
- successCriteria: string[];
1203
- ctaStrategy: string;
1204
- description?: string | undefined;
1205
- disallowedActions?: string[] | undefined;
1206
- };
1207
- interview_scheduling: {
1208
- primaryGoal: string;
1209
- successCriteria: string[];
1210
- ctaStrategy: string;
1211
- description?: string | undefined;
1212
- disallowedActions?: string[] | undefined;
1213
- };
1214
- onboard_followup: {
1215
- primaryGoal: string;
1216
- successCriteria: string[];
1217
- ctaStrategy: string;
1218
- description?: string | undefined;
1219
- disallowedActions?: string[] | undefined;
1220
- };
1221
- };
1222
- persona: {
1223
- length: "medium" | "short" | "long";
1224
- tone: string;
1225
- warmth: string;
1226
- humor: string;
1227
- questionStyle: string;
1228
- empathyStrategy: string;
1229
- addressStyle: string;
1230
- professionalIdentity: string;
1231
- companyBackground: string;
1232
- };
1233
- industryVoices: Record<string, {
1234
- name: string;
1235
- industryBackground: string;
1236
- jargon: string[];
1237
- styleKeywords: string[];
1238
- tabooPhrases: string[];
1239
- guidance: string[];
1240
- }>;
1241
- defaultIndustryVoiceId: string;
1242
- hardConstraints: {
1243
- rules: {
1244
- id: string;
1245
- rule: string;
1246
- severity: "high" | "medium" | "low";
1247
- }[];
1248
- };
1249
- factGate: {
1250
- mode: "strict" | "balanced" | "open";
1251
- verifiableClaimTypes: string[];
1252
- fallbackBehavior: "generic_answer" | "ask_followup" | "handoff";
1253
- forbiddenWhenMissingFacts: string[];
1254
- };
1255
- qualificationPolicy: {
1256
- age: {
1257
- enabled: boolean;
1258
- revealRange: boolean;
1259
- failStrategy: string;
1260
- unknownStrategy: string;
1261
- passStrategy: string;
1262
- allowRedirect: boolean;
1263
- redirectPriority: "high" | "medium" | "low";
1264
- };
1265
- };
1266
- outputGuards: {
1267
- maxQuestionsByMode: {
1268
- minimal: number;
1269
- focused: number;
1270
- };
1271
- blockedAuditPhrases: string[];
1272
- blockFirstTurnSpecificFacts: boolean;
1273
- };
1274
- }, {
1275
- stageGoals: {
1276
- trust_building: {
1277
- primaryGoal: string;
1278
- successCriteria: string[];
1279
- description?: string | undefined;
1280
- ctaStrategy?: unknown;
1281
- disallowedActions?: string[] | undefined;
1282
- };
1283
- qualify_candidate: {
1284
- primaryGoal: string;
1285
- successCriteria: string[];
1286
- description?: string | undefined;
1287
- ctaStrategy?: unknown;
1288
- disallowedActions?: string[] | undefined;
1289
- };
1290
- job_consultation: {
1291
- primaryGoal: string;
1292
- successCriteria: string[];
1293
- description?: string | undefined;
1294
- ctaStrategy?: unknown;
1295
- disallowedActions?: string[] | undefined;
1296
- };
1297
- interview_scheduling: {
1298
- primaryGoal: string;
1299
- successCriteria: string[];
1300
- description?: string | undefined;
1301
- ctaStrategy?: unknown;
1302
- disallowedActions?: string[] | undefined;
1303
- };
1304
- onboard_followup: {
1305
- primaryGoal: string;
1306
- successCriteria: string[];
1307
- description?: string | undefined;
1308
- ctaStrategy?: unknown;
1309
- disallowedActions?: string[] | undefined;
1310
- };
1311
- private_channel?: {
1312
- primaryGoal: string;
1313
- successCriteria: string[];
1314
- description?: string | undefined;
1315
- ctaStrategy?: unknown;
1316
- disallowedActions?: string[] | undefined;
1317
- } | undefined;
1318
- };
1319
- persona: {
1320
- length: "medium" | "short" | "long";
1321
- tone: string;
1322
- warmth: string;
1323
- humor: string;
1324
- questionStyle: string;
1325
- empathyStrategy: string;
1326
- addressStyle: string;
1327
- professionalIdentity: string;
1328
- companyBackground: string;
1329
- };
1330
- industryVoices: Record<string, {
1331
- name: string;
1332
- industryBackground: string;
1333
- jargon: string[];
1334
- styleKeywords: string[];
1335
- tabooPhrases: string[];
1336
- guidance: string[];
1337
- }>;
1338
- defaultIndustryVoiceId: string;
1339
- hardConstraints: {
1340
- rules: {
1341
- id: string;
1342
- rule: string;
1343
- severity: "high" | "medium" | "low";
1344
- }[];
1345
- };
1346
- factGate: {
1347
- mode: "strict" | "balanced" | "open";
1348
- verifiableClaimTypes: string[];
1349
- fallbackBehavior: "generic_answer" | "ask_followup" | "handoff";
1350
- forbiddenWhenMissingFacts: string[];
1351
- };
1352
- qualificationPolicy?: {
1353
- age?: {
1354
- enabled?: boolean | undefined;
1355
- revealRange?: boolean | undefined;
1356
- failStrategy?: string | undefined;
1357
- unknownStrategy?: string | undefined;
1358
- passStrategy?: string | undefined;
1359
- allowRedirect?: boolean | undefined;
1360
- redirectPriority?: "high" | "medium" | "low" | undefined;
1361
- } | undefined;
1362
- } | undefined;
1363
- outputGuards?: {
1364
- maxQuestionsByMode: {
1365
- minimal: number;
1366
- focused: number;
1367
- };
1368
- blockedAuditPhrases: string[];
1369
- blockFirstTurnSpecificFacts: boolean;
1370
- } | undefined;
1371
- }>;
1372
- export type FunnelStage = z.infer<typeof FunnelStageSchema>;
1373
- export type ReplyNeed = z.infer<typeof ReplyNeedSchema>;
1374
- export type EffectiveDisclosureMode = z.infer<typeof EffectiveDisclosureModeSchema>;
1375
- export type ReplyFactFamily = z.infer<typeof ReplyFactFamilySchema>;
1376
- export type RiskFlag = z.infer<typeof RiskFlagSchema>;
1377
- export type TurnExtractedInfo = z.infer<typeof TurnExtractedInfoSchema>;
1378
- export type TurnPlan = z.infer<typeof TurnPlanSchema>;
1379
- export type StageGoalPolicy = z.infer<typeof StageGoalPolicySchema>;
1380
- export type StageGoals = z.infer<typeof StageGoalsSchema>;
1381
- export type PersonaPolicy = z.infer<typeof PersonaPolicySchema>;
1382
- export type IndustryVoicePolicy = z.infer<typeof IndustryVoicePolicySchema>;
1383
- export type HardConstraintRule = z.infer<typeof HardConstraintRuleSchema>;
1384
- export type HardConstraintsPolicy = z.infer<typeof HardConstraintsPolicySchema>;
1385
- export type FactGatePolicy = z.infer<typeof FactGatePolicySchema>;
1386
- export type OutputGuardsPolicy = z.infer<typeof OutputGuardsPolicySchema>;
1387
- export type AgeQualificationPolicy = z.infer<typeof AgeQualificationPolicySchema>;
1388
- export type QualificationPolicy = z.infer<typeof QualificationPolicySchema>;
1389
- export type ReplyPolicyConfig = z.infer<typeof ReplyPolicyConfigSchema>;
1390
- export declare const DEFAULT_REPLY_POLICY: ReplyPolicyConfig;