@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
@@ -0,0 +1,785 @@
1
+ import { z } from "zod";
2
+ export declare const RecruiterBindingSchema: z.ZodObject<{
3
+ platform: z.ZodLiteral<"zhipin">;
4
+ username: z.ZodString;
5
+ accountId: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ platform: "zhipin";
8
+ username: string;
9
+ accountId?: string | undefined;
10
+ }, {
11
+ platform: "zhipin";
12
+ username: string;
13
+ accountId?: string | undefined;
14
+ }>;
15
+ export declare const ReplyAuthorityTargetSchema: z.ZodEffects<z.ZodObject<{
16
+ platform: z.ZodLiteral<"zhipin">;
17
+ tenantId: z.ZodOptional<z.ZodString>;
18
+ conversationId: z.ZodString;
19
+ candidateId: z.ZodString;
20
+ } & {
21
+ recruiterBinding: z.ZodOptional<z.ZodObject<{
22
+ platform: z.ZodLiteral<"zhipin">;
23
+ username: z.ZodString;
24
+ accountId: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ platform: "zhipin";
27
+ username: string;
28
+ accountId?: string | undefined;
29
+ }, {
30
+ platform: "zhipin";
31
+ username: string;
32
+ accountId?: string | undefined;
33
+ }>>;
34
+ recruiterUsername: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ platform: "zhipin";
37
+ conversationId: string;
38
+ candidateId: string;
39
+ tenantId?: string | undefined;
40
+ recruiterBinding?: {
41
+ platform: "zhipin";
42
+ username: string;
43
+ accountId?: string | undefined;
44
+ } | undefined;
45
+ recruiterUsername?: string | undefined;
46
+ }, {
47
+ platform: "zhipin";
48
+ conversationId: string;
49
+ candidateId: string;
50
+ tenantId?: string | undefined;
51
+ recruiterBinding?: {
52
+ platform: "zhipin";
53
+ username: string;
54
+ accountId?: string | undefined;
55
+ } | undefined;
56
+ recruiterUsername?: string | undefined;
57
+ }>, {
58
+ platform: "zhipin";
59
+ conversationId: string;
60
+ candidateId: string;
61
+ tenantId?: string | undefined;
62
+ recruiterBinding?: {
63
+ platform: "zhipin";
64
+ username: string;
65
+ accountId?: string | undefined;
66
+ } | undefined;
67
+ recruiterUsername?: string | undefined;
68
+ }, {
69
+ platform: "zhipin";
70
+ conversationId: string;
71
+ candidateId: string;
72
+ tenantId?: string | undefined;
73
+ recruiterBinding?: {
74
+ platform: "zhipin";
75
+ username: string;
76
+ accountId?: string | undefined;
77
+ } | undefined;
78
+ recruiterUsername?: string | undefined;
79
+ }>;
80
+ export declare const ResolvedReplyAuthorityTargetSchema: z.ZodObject<{
81
+ platform: z.ZodLiteral<"zhipin">;
82
+ conversationId: z.ZodString;
83
+ candidateId: z.ZodString;
84
+ } & {
85
+ tenantId: z.ZodString;
86
+ recruiterBinding: z.ZodObject<{
87
+ platform: z.ZodLiteral<"zhipin">;
88
+ username: z.ZodString;
89
+ accountId: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ platform: "zhipin";
92
+ username: string;
93
+ accountId?: string | undefined;
94
+ }, {
95
+ platform: "zhipin";
96
+ username: string;
97
+ accountId?: string | undefined;
98
+ }>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ platform: "zhipin";
101
+ tenantId: string;
102
+ conversationId: string;
103
+ candidateId: string;
104
+ recruiterBinding: {
105
+ platform: "zhipin";
106
+ username: string;
107
+ accountId?: string | undefined;
108
+ };
109
+ }, {
110
+ platform: "zhipin";
111
+ tenantId: string;
112
+ conversationId: string;
113
+ candidateId: string;
114
+ recruiterBinding: {
115
+ platform: "zhipin";
116
+ username: string;
117
+ accountId?: string | undefined;
118
+ };
119
+ }>;
120
+ export declare const GenerateReplyToolInputSchema: z.ZodObject<{
121
+ candidateMessage: z.ZodString;
122
+ conversationHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ candidateInfo: z.ZodOptional<z.ZodObject<{
124
+ name: z.ZodOptional<z.ZodString>;
125
+ position: z.ZodOptional<z.ZodString>;
126
+ expectedPosition: z.ZodOptional<z.ZodString>;
127
+ communicationPosition: z.ZodOptional<z.ZodString>;
128
+ age: z.ZodOptional<z.ZodString>;
129
+ gender: z.ZodOptional<z.ZodString>;
130
+ experience: z.ZodOptional<z.ZodString>;
131
+ education: z.ZodOptional<z.ZodString>;
132
+ expectedSalary: z.ZodOptional<z.ZodString>;
133
+ expectedLocation: z.ZodOptional<z.ZodString>;
134
+ jobAddress: z.ZodOptional<z.ZodString>;
135
+ height: z.ZodOptional<z.ZodString>;
136
+ weight: z.ZodOptional<z.ZodString>;
137
+ healthCertificate: z.ZodOptional<z.ZodBoolean>;
138
+ activeTime: z.ZodOptional<z.ZodString>;
139
+ info: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
140
+ fullText: z.ZodOptional<z.ZodString>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ info?: string[] | undefined;
143
+ name?: string | undefined;
144
+ position?: string | undefined;
145
+ expectedPosition?: string | undefined;
146
+ communicationPosition?: string | undefined;
147
+ age?: string | undefined;
148
+ gender?: string | undefined;
149
+ experience?: string | undefined;
150
+ education?: string | undefined;
151
+ expectedSalary?: string | undefined;
152
+ expectedLocation?: string | undefined;
153
+ jobAddress?: string | undefined;
154
+ height?: string | undefined;
155
+ weight?: string | undefined;
156
+ healthCertificate?: boolean | undefined;
157
+ activeTime?: string | undefined;
158
+ fullText?: string | undefined;
159
+ }, {
160
+ info?: string[] | undefined;
161
+ name?: string | undefined;
162
+ position?: string | undefined;
163
+ expectedPosition?: string | undefined;
164
+ communicationPosition?: string | undefined;
165
+ age?: string | undefined;
166
+ gender?: string | undefined;
167
+ experience?: string | undefined;
168
+ education?: string | undefined;
169
+ expectedSalary?: string | undefined;
170
+ expectedLocation?: string | undefined;
171
+ jobAddress?: string | undefined;
172
+ height?: string | undefined;
173
+ weight?: string | undefined;
174
+ healthCertificate?: boolean | undefined;
175
+ activeTime?: string | undefined;
176
+ fullText?: string | undefined;
177
+ }>>;
178
+ preferredBrand: z.ZodOptional<z.ZodString>;
179
+ channelType: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
180
+ defaultWechatId: z.ZodOptional<z.ZodString>;
181
+ industryVoiceId: z.ZodOptional<z.ZodString>;
182
+ turnIndex: z.ZodOptional<z.ZodNumber>;
183
+ modelConfig: z.ZodOptional<z.ZodObject<{
184
+ chatModel: z.ZodOptional<z.ZodString>;
185
+ classifyModel: z.ZodOptional<z.ZodString>;
186
+ replyModel: z.ZodOptional<z.ZodString>;
187
+ providerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
188
+ name: z.ZodString;
189
+ baseURL: z.ZodString;
190
+ description: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ description: string;
193
+ name: string;
194
+ baseURL: string;
195
+ }, {
196
+ description: string;
197
+ name: string;
198
+ baseURL: string;
199
+ }>>>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ chatModel?: string | undefined;
202
+ classifyModel?: string | undefined;
203
+ replyModel?: string | undefined;
204
+ providerConfigs?: Record<string, {
205
+ description: string;
206
+ name: string;
207
+ baseURL: string;
208
+ }> | undefined;
209
+ }, {
210
+ chatModel?: string | undefined;
211
+ classifyModel?: string | undefined;
212
+ replyModel?: string | undefined;
213
+ providerConfigs?: Record<string, {
214
+ description: string;
215
+ name: string;
216
+ baseURL: string;
217
+ }> | undefined;
218
+ }>>;
219
+ target: z.ZodEffects<z.ZodObject<{
220
+ platform: z.ZodLiteral<"zhipin">;
221
+ tenantId: z.ZodOptional<z.ZodString>;
222
+ conversationId: z.ZodString;
223
+ candidateId: z.ZodString;
224
+ } & {
225
+ recruiterBinding: z.ZodOptional<z.ZodObject<{
226
+ platform: z.ZodLiteral<"zhipin">;
227
+ username: z.ZodString;
228
+ accountId: z.ZodOptional<z.ZodString>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ platform: "zhipin";
231
+ username: string;
232
+ accountId?: string | undefined;
233
+ }, {
234
+ platform: "zhipin";
235
+ username: string;
236
+ accountId?: string | undefined;
237
+ }>>;
238
+ recruiterUsername: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ platform: "zhipin";
241
+ conversationId: string;
242
+ candidateId: string;
243
+ tenantId?: string | undefined;
244
+ recruiterBinding?: {
245
+ platform: "zhipin";
246
+ username: string;
247
+ accountId?: string | undefined;
248
+ } | undefined;
249
+ recruiterUsername?: string | undefined;
250
+ }, {
251
+ platform: "zhipin";
252
+ conversationId: string;
253
+ candidateId: string;
254
+ tenantId?: string | undefined;
255
+ recruiterBinding?: {
256
+ platform: "zhipin";
257
+ username: string;
258
+ accountId?: string | undefined;
259
+ } | undefined;
260
+ recruiterUsername?: string | undefined;
261
+ }>, {
262
+ platform: "zhipin";
263
+ conversationId: string;
264
+ candidateId: string;
265
+ tenantId?: string | undefined;
266
+ recruiterBinding?: {
267
+ platform: "zhipin";
268
+ username: string;
269
+ accountId?: string | undefined;
270
+ } | undefined;
271
+ recruiterUsername?: string | undefined;
272
+ }, {
273
+ platform: "zhipin";
274
+ conversationId: string;
275
+ candidateId: string;
276
+ tenantId?: string | undefined;
277
+ recruiterBinding?: {
278
+ platform: "zhipin";
279
+ username: string;
280
+ accountId?: string | undefined;
281
+ } | undefined;
282
+ recruiterUsername?: string | undefined;
283
+ }>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ candidateMessage: string;
286
+ target: {
287
+ platform: "zhipin";
288
+ conversationId: string;
289
+ candidateId: string;
290
+ tenantId?: string | undefined;
291
+ recruiterBinding?: {
292
+ platform: "zhipin";
293
+ username: string;
294
+ accountId?: string | undefined;
295
+ } | undefined;
296
+ recruiterUsername?: string | undefined;
297
+ };
298
+ conversationHistory?: string[] | undefined;
299
+ candidateInfo?: {
300
+ info?: string[] | undefined;
301
+ name?: string | undefined;
302
+ position?: string | undefined;
303
+ expectedPosition?: string | undefined;
304
+ communicationPosition?: string | undefined;
305
+ age?: string | undefined;
306
+ gender?: string | undefined;
307
+ experience?: string | undefined;
308
+ education?: string | undefined;
309
+ expectedSalary?: string | undefined;
310
+ expectedLocation?: string | undefined;
311
+ jobAddress?: string | undefined;
312
+ height?: string | undefined;
313
+ weight?: string | undefined;
314
+ healthCertificate?: boolean | undefined;
315
+ activeTime?: string | undefined;
316
+ fullText?: string | undefined;
317
+ } | undefined;
318
+ preferredBrand?: string | undefined;
319
+ channelType?: "public" | "private" | undefined;
320
+ defaultWechatId?: string | undefined;
321
+ industryVoiceId?: string | undefined;
322
+ turnIndex?: number | undefined;
323
+ modelConfig?: {
324
+ chatModel?: string | undefined;
325
+ classifyModel?: string | undefined;
326
+ replyModel?: string | undefined;
327
+ providerConfigs?: Record<string, {
328
+ description: string;
329
+ name: string;
330
+ baseURL: string;
331
+ }> | undefined;
332
+ } | undefined;
333
+ }, {
334
+ candidateMessage: string;
335
+ target: {
336
+ platform: "zhipin";
337
+ conversationId: string;
338
+ candidateId: string;
339
+ tenantId?: string | undefined;
340
+ recruiterBinding?: {
341
+ platform: "zhipin";
342
+ username: string;
343
+ accountId?: string | undefined;
344
+ } | undefined;
345
+ recruiterUsername?: string | undefined;
346
+ };
347
+ conversationHistory?: string[] | undefined;
348
+ candidateInfo?: {
349
+ info?: string[] | undefined;
350
+ name?: string | undefined;
351
+ position?: string | undefined;
352
+ expectedPosition?: string | undefined;
353
+ communicationPosition?: string | undefined;
354
+ age?: string | undefined;
355
+ gender?: string | undefined;
356
+ experience?: string | undefined;
357
+ education?: string | undefined;
358
+ expectedSalary?: string | undefined;
359
+ expectedLocation?: string | undefined;
360
+ jobAddress?: string | undefined;
361
+ height?: string | undefined;
362
+ weight?: string | undefined;
363
+ healthCertificate?: boolean | undefined;
364
+ activeTime?: string | undefined;
365
+ fullText?: string | undefined;
366
+ } | undefined;
367
+ preferredBrand?: string | undefined;
368
+ channelType?: "public" | "private" | undefined;
369
+ defaultWechatId?: string | undefined;
370
+ industryVoiceId?: string | undefined;
371
+ turnIndex?: number | undefined;
372
+ modelConfig?: {
373
+ chatModel?: string | undefined;
374
+ classifyModel?: string | undefined;
375
+ replyModel?: string | undefined;
376
+ providerConfigs?: Record<string, {
377
+ description: string;
378
+ name: string;
379
+ baseURL: string;
380
+ }> | undefined;
381
+ } | undefined;
382
+ }>;
383
+ export declare const GenerateSignedReplyRequestSchema: z.ZodObject<Omit<{
384
+ candidateMessage: z.ZodString;
385
+ conversationHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
386
+ candidateInfo: z.ZodOptional<z.ZodObject<{
387
+ name: z.ZodOptional<z.ZodString>;
388
+ position: z.ZodOptional<z.ZodString>;
389
+ expectedPosition: z.ZodOptional<z.ZodString>;
390
+ communicationPosition: z.ZodOptional<z.ZodString>;
391
+ age: z.ZodOptional<z.ZodString>;
392
+ gender: z.ZodOptional<z.ZodString>;
393
+ experience: z.ZodOptional<z.ZodString>;
394
+ education: z.ZodOptional<z.ZodString>;
395
+ expectedSalary: z.ZodOptional<z.ZodString>;
396
+ expectedLocation: z.ZodOptional<z.ZodString>;
397
+ jobAddress: z.ZodOptional<z.ZodString>;
398
+ height: z.ZodOptional<z.ZodString>;
399
+ weight: z.ZodOptional<z.ZodString>;
400
+ healthCertificate: z.ZodOptional<z.ZodBoolean>;
401
+ activeTime: z.ZodOptional<z.ZodString>;
402
+ info: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
403
+ fullText: z.ZodOptional<z.ZodString>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ info?: string[] | undefined;
406
+ name?: string | undefined;
407
+ position?: string | undefined;
408
+ expectedPosition?: string | undefined;
409
+ communicationPosition?: string | undefined;
410
+ age?: string | undefined;
411
+ gender?: string | undefined;
412
+ experience?: string | undefined;
413
+ education?: string | undefined;
414
+ expectedSalary?: string | undefined;
415
+ expectedLocation?: string | undefined;
416
+ jobAddress?: string | undefined;
417
+ height?: string | undefined;
418
+ weight?: string | undefined;
419
+ healthCertificate?: boolean | undefined;
420
+ activeTime?: string | undefined;
421
+ fullText?: string | undefined;
422
+ }, {
423
+ info?: string[] | undefined;
424
+ name?: string | undefined;
425
+ position?: string | undefined;
426
+ expectedPosition?: string | undefined;
427
+ communicationPosition?: string | undefined;
428
+ age?: string | undefined;
429
+ gender?: string | undefined;
430
+ experience?: string | undefined;
431
+ education?: string | undefined;
432
+ expectedSalary?: string | undefined;
433
+ expectedLocation?: string | undefined;
434
+ jobAddress?: string | undefined;
435
+ height?: string | undefined;
436
+ weight?: string | undefined;
437
+ healthCertificate?: boolean | undefined;
438
+ activeTime?: string | undefined;
439
+ fullText?: string | undefined;
440
+ }>>;
441
+ preferredBrand: z.ZodOptional<z.ZodString>;
442
+ channelType: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
443
+ defaultWechatId: z.ZodOptional<z.ZodString>;
444
+ industryVoiceId: z.ZodOptional<z.ZodString>;
445
+ turnIndex: z.ZodOptional<z.ZodNumber>;
446
+ modelConfig: z.ZodOptional<z.ZodObject<{
447
+ chatModel: z.ZodOptional<z.ZodString>;
448
+ classifyModel: z.ZodOptional<z.ZodString>;
449
+ replyModel: z.ZodOptional<z.ZodString>;
450
+ providerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
451
+ name: z.ZodString;
452
+ baseURL: z.ZodString;
453
+ description: z.ZodString;
454
+ }, "strip", z.ZodTypeAny, {
455
+ description: string;
456
+ name: string;
457
+ baseURL: string;
458
+ }, {
459
+ description: string;
460
+ name: string;
461
+ baseURL: string;
462
+ }>>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ chatModel?: string | undefined;
465
+ classifyModel?: string | undefined;
466
+ replyModel?: string | undefined;
467
+ providerConfigs?: Record<string, {
468
+ description: string;
469
+ name: string;
470
+ baseURL: string;
471
+ }> | undefined;
472
+ }, {
473
+ chatModel?: string | undefined;
474
+ classifyModel?: string | undefined;
475
+ replyModel?: string | undefined;
476
+ providerConfigs?: Record<string, {
477
+ description: string;
478
+ name: string;
479
+ baseURL: string;
480
+ }> | undefined;
481
+ }>>;
482
+ target: z.ZodEffects<z.ZodObject<{
483
+ platform: z.ZodLiteral<"zhipin">;
484
+ tenantId: z.ZodOptional<z.ZodString>;
485
+ conversationId: z.ZodString;
486
+ candidateId: z.ZodString;
487
+ } & {
488
+ recruiterBinding: z.ZodOptional<z.ZodObject<{
489
+ platform: z.ZodLiteral<"zhipin">;
490
+ username: z.ZodString;
491
+ accountId: z.ZodOptional<z.ZodString>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ platform: "zhipin";
494
+ username: string;
495
+ accountId?: string | undefined;
496
+ }, {
497
+ platform: "zhipin";
498
+ username: string;
499
+ accountId?: string | undefined;
500
+ }>>;
501
+ recruiterUsername: z.ZodOptional<z.ZodString>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ platform: "zhipin";
504
+ conversationId: string;
505
+ candidateId: string;
506
+ tenantId?: string | undefined;
507
+ recruiterBinding?: {
508
+ platform: "zhipin";
509
+ username: string;
510
+ accountId?: string | undefined;
511
+ } | undefined;
512
+ recruiterUsername?: string | undefined;
513
+ }, {
514
+ platform: "zhipin";
515
+ conversationId: string;
516
+ candidateId: string;
517
+ tenantId?: string | undefined;
518
+ recruiterBinding?: {
519
+ platform: "zhipin";
520
+ username: string;
521
+ accountId?: string | undefined;
522
+ } | undefined;
523
+ recruiterUsername?: string | undefined;
524
+ }>, {
525
+ platform: "zhipin";
526
+ conversationId: string;
527
+ candidateId: string;
528
+ tenantId?: string | undefined;
529
+ recruiterBinding?: {
530
+ platform: "zhipin";
531
+ username: string;
532
+ accountId?: string | undefined;
533
+ } | undefined;
534
+ recruiterUsername?: string | undefined;
535
+ }, {
536
+ platform: "zhipin";
537
+ conversationId: string;
538
+ candidateId: string;
539
+ tenantId?: string | undefined;
540
+ recruiterBinding?: {
541
+ platform: "zhipin";
542
+ username: string;
543
+ accountId?: string | undefined;
544
+ } | undefined;
545
+ recruiterUsername?: string | undefined;
546
+ }>;
547
+ }, "target"> & {
548
+ target: z.ZodObject<{
549
+ platform: z.ZodLiteral<"zhipin">;
550
+ conversationId: z.ZodString;
551
+ candidateId: z.ZodString;
552
+ } & {
553
+ tenantId: z.ZodString;
554
+ recruiterBinding: z.ZodObject<{
555
+ platform: z.ZodLiteral<"zhipin">;
556
+ username: z.ZodString;
557
+ accountId: z.ZodOptional<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ platform: "zhipin";
560
+ username: string;
561
+ accountId?: string | undefined;
562
+ }, {
563
+ platform: "zhipin";
564
+ username: string;
565
+ accountId?: string | undefined;
566
+ }>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ platform: "zhipin";
569
+ tenantId: string;
570
+ conversationId: string;
571
+ candidateId: string;
572
+ recruiterBinding: {
573
+ platform: "zhipin";
574
+ username: string;
575
+ accountId?: string | undefined;
576
+ };
577
+ }, {
578
+ platform: "zhipin";
579
+ tenantId: string;
580
+ conversationId: string;
581
+ candidateId: string;
582
+ recruiterBinding: {
583
+ platform: "zhipin";
584
+ username: string;
585
+ accountId?: string | undefined;
586
+ };
587
+ }>;
588
+ requestId: z.ZodOptional<z.ZodString>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ candidateMessage: string;
591
+ target: {
592
+ platform: "zhipin";
593
+ tenantId: string;
594
+ conversationId: string;
595
+ candidateId: string;
596
+ recruiterBinding: {
597
+ platform: "zhipin";
598
+ username: string;
599
+ accountId?: string | undefined;
600
+ };
601
+ };
602
+ conversationHistory?: string[] | undefined;
603
+ candidateInfo?: {
604
+ info?: string[] | undefined;
605
+ name?: string | undefined;
606
+ position?: string | undefined;
607
+ expectedPosition?: string | undefined;
608
+ communicationPosition?: string | undefined;
609
+ age?: string | undefined;
610
+ gender?: string | undefined;
611
+ experience?: string | undefined;
612
+ education?: string | undefined;
613
+ expectedSalary?: string | undefined;
614
+ expectedLocation?: string | undefined;
615
+ jobAddress?: string | undefined;
616
+ height?: string | undefined;
617
+ weight?: string | undefined;
618
+ healthCertificate?: boolean | undefined;
619
+ activeTime?: string | undefined;
620
+ fullText?: string | undefined;
621
+ } | undefined;
622
+ preferredBrand?: string | undefined;
623
+ channelType?: "public" | "private" | undefined;
624
+ defaultWechatId?: string | undefined;
625
+ industryVoiceId?: string | undefined;
626
+ turnIndex?: number | undefined;
627
+ modelConfig?: {
628
+ chatModel?: string | undefined;
629
+ classifyModel?: string | undefined;
630
+ replyModel?: string | undefined;
631
+ providerConfigs?: Record<string, {
632
+ description: string;
633
+ name: string;
634
+ baseURL: string;
635
+ }> | undefined;
636
+ } | undefined;
637
+ requestId?: string | undefined;
638
+ }, {
639
+ candidateMessage: string;
640
+ target: {
641
+ platform: "zhipin";
642
+ tenantId: string;
643
+ conversationId: string;
644
+ candidateId: string;
645
+ recruiterBinding: {
646
+ platform: "zhipin";
647
+ username: string;
648
+ accountId?: string | undefined;
649
+ };
650
+ };
651
+ conversationHistory?: string[] | undefined;
652
+ candidateInfo?: {
653
+ info?: string[] | undefined;
654
+ name?: string | undefined;
655
+ position?: string | undefined;
656
+ expectedPosition?: string | undefined;
657
+ communicationPosition?: string | undefined;
658
+ age?: string | undefined;
659
+ gender?: string | undefined;
660
+ experience?: string | undefined;
661
+ education?: string | undefined;
662
+ expectedSalary?: string | undefined;
663
+ expectedLocation?: string | undefined;
664
+ jobAddress?: string | undefined;
665
+ height?: string | undefined;
666
+ weight?: string | undefined;
667
+ healthCertificate?: boolean | undefined;
668
+ activeTime?: string | undefined;
669
+ fullText?: string | undefined;
670
+ } | undefined;
671
+ preferredBrand?: string | undefined;
672
+ channelType?: "public" | "private" | undefined;
673
+ defaultWechatId?: string | undefined;
674
+ industryVoiceId?: string | undefined;
675
+ turnIndex?: number | undefined;
676
+ modelConfig?: {
677
+ chatModel?: string | undefined;
678
+ classifyModel?: string | undefined;
679
+ replyModel?: string | undefined;
680
+ providerConfigs?: Record<string, {
681
+ description: string;
682
+ name: string;
683
+ baseURL: string;
684
+ }> | undefined;
685
+ } | undefined;
686
+ requestId?: string | undefined;
687
+ }>;
688
+ export declare const GenerateSignedReplyResponseSchema: z.ZodObject<{
689
+ suggestedReply: z.ZodString;
690
+ signedEnvelope: z.ZodString;
691
+ envelopeExp: z.ZodNumber;
692
+ confidence: z.ZodNumber;
693
+ stage: z.ZodEnum<["trust_building", "private_channel", "qualify_candidate", "job_consultation", "interview_scheduling", "onboard_followup"]>;
694
+ replyPolicySource: z.ZodEnum<["file", "default"]>;
695
+ latencyMs: z.ZodOptional<z.ZodNumber>;
696
+ shouldExchangeWechat: z.ZodOptional<z.ZodBoolean>;
697
+ error: z.ZodOptional<z.ZodString>;
698
+ diagnostics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ suggestedReply: string;
701
+ signedEnvelope: string;
702
+ envelopeExp: number;
703
+ confidence: number;
704
+ stage: "trust_building" | "private_channel" | "qualify_candidate" | "job_consultation" | "interview_scheduling" | "onboard_followup";
705
+ replyPolicySource: "default" | "file";
706
+ error?: string | undefined;
707
+ latencyMs?: number | undefined;
708
+ shouldExchangeWechat?: boolean | undefined;
709
+ diagnostics?: Record<string, unknown> | undefined;
710
+ }, {
711
+ suggestedReply: string;
712
+ signedEnvelope: string;
713
+ envelopeExp: number;
714
+ confidence: number;
715
+ stage: "trust_building" | "private_channel" | "qualify_candidate" | "job_consultation" | "interview_scheduling" | "onboard_followup";
716
+ replyPolicySource: "default" | "file";
717
+ error?: string | undefined;
718
+ latencyMs?: number | undefined;
719
+ shouldExchangeWechat?: boolean | undefined;
720
+ diagnostics?: Record<string, unknown> | undefined;
721
+ }>;
722
+ export declare const ResolveRecruiterBindingRequestSchema: z.ZodObject<{
723
+ platform: z.ZodLiteral<"zhipin">;
724
+ username: z.ZodString;
725
+ accountId: z.ZodOptional<z.ZodString>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ platform: "zhipin";
728
+ username: string;
729
+ accountId?: string | undefined;
730
+ }, {
731
+ platform: "zhipin";
732
+ username: string;
733
+ accountId?: string | undefined;
734
+ }>;
735
+ export declare const ResolveRecruiterBindingResponseSchema: z.ZodObject<{
736
+ tenantId: z.ZodString;
737
+ recruiterBinding: z.ZodObject<{
738
+ platform: z.ZodLiteral<"zhipin">;
739
+ username: z.ZodString;
740
+ accountId: z.ZodOptional<z.ZodString>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ platform: "zhipin";
743
+ username: string;
744
+ accountId?: string | undefined;
745
+ }, {
746
+ platform: "zhipin";
747
+ username: string;
748
+ accountId?: string | undefined;
749
+ }>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ tenantId: string;
752
+ recruiterBinding: {
753
+ platform: "zhipin";
754
+ username: string;
755
+ accountId?: string | undefined;
756
+ };
757
+ }, {
758
+ tenantId: string;
759
+ recruiterBinding: {
760
+ platform: "zhipin";
761
+ username: string;
762
+ accountId?: string | undefined;
763
+ };
764
+ }>;
765
+ export declare const ReplyAuthorityErrorResponseSchema: z.ZodObject<{
766
+ statusCode: z.ZodNumber;
767
+ error: z.ZodString;
768
+ message: z.ZodString;
769
+ }, "strip", z.ZodTypeAny, {
770
+ error: string;
771
+ message: string;
772
+ statusCode: number;
773
+ }, {
774
+ error: string;
775
+ message: string;
776
+ statusCode: number;
777
+ }>;
778
+ export type RecruiterBinding = z.infer<typeof RecruiterBindingSchema>;
779
+ export type ReplyAuthorityTarget = z.infer<typeof ReplyAuthorityTargetSchema>;
780
+ export type ResolvedReplyAuthorityTarget = z.infer<typeof ResolvedReplyAuthorityTargetSchema>;
781
+ export type GenerateReplyToolInput = z.infer<typeof GenerateReplyToolInputSchema>;
782
+ export type GenerateSignedReplyRequest = z.infer<typeof GenerateSignedReplyRequestSchema>;
783
+ export type GenerateSignedReplyResponse = z.infer<typeof GenerateSignedReplyResponseSchema>;
784
+ export type ResolveRecruiterBindingRequest = z.infer<typeof ResolveRecruiterBindingRequestSchema>;
785
+ export type ResolveRecruiterBindingResponse = z.infer<typeof ResolveRecruiterBindingResponseSchema>;