@linkegringo/mcp 1.0.11 → 2.0.1

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 (3) hide show
  1. package/dist/index.d.ts +2615 -4
  2. package/dist/index.js +2454 -262
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import http from 'node:http';
3
+ import { DatabaseSync } from 'node:sqlite';
4
+ import { JobEvent, JobType as JobType$1, LinkeGringoJob, JobStatus as JobStatus$1, AgentIdentity, JobProgressPhase, JobResultEnvelope, DocumentHandle, FileFingerprint, CreateJobInput as CreateJobInput$1, Experience } from '@linkegringo/core';
3
5
  import { EventEmitter } from 'node:events';
4
6
  import { z } from 'zod';
5
- import { Experience } from '@linkegringo/core';
6
7
 
7
8
  declare function createLinkeGringoMcpServer(): McpServer;
8
9
 
@@ -31,6 +32,79 @@ declare function installMcpServerConfig(configPath: string): {
31
32
  declare function parseArgs(args?: string[]): InstallerOptions;
32
33
  declare function runInstaller(args?: string[]): InstallResult[];
33
34
 
35
+ interface CreateJobInput {
36
+ id?: string;
37
+ type: JobType$1;
38
+ targetRole?: string;
39
+ fileHandleId?: string;
40
+ metadata?: Record<string, unknown>;
41
+ commandId?: string;
42
+ expiresInMs?: number;
43
+ autoReady?: boolean;
44
+ }
45
+ declare class JobStore {
46
+ private readonly db;
47
+ private readonly onEventRecorded?;
48
+ constructor(db: DatabaseSync, onEventRecorded?: ((event: JobEvent) => void) | undefined);
49
+ getRawDb(): DatabaseSync;
50
+ private getCachedCommand;
51
+ private saveCommand;
52
+ createJob(input: CreateJobInput): LinkeGringoJob;
53
+ getJob(id: string): LinkeGringoJob | null;
54
+ listJobs(filter?: {
55
+ status?: JobStatus$1;
56
+ type?: JobType$1;
57
+ }): LinkeGringoJob[];
58
+ claimJob(jobId: string, agent: AgentIdentity, options?: {
59
+ leaseDurationMs?: number;
60
+ commandId?: string;
61
+ }): LinkeGringoJob;
62
+ reportProgress(jobId: string, agent: AgentIdentity, params: {
63
+ phase?: JobProgressPhase;
64
+ progress?: number;
65
+ message?: string;
66
+ leaseDurationMs?: number;
67
+ commandId?: string;
68
+ }): LinkeGringoJob;
69
+ requestUserAction(jobId: string, agent: AgentIdentity, params: {
70
+ reason: string;
71
+ prompt?: string;
72
+ commandId?: string;
73
+ }): LinkeGringoJob;
74
+ resumeJob(jobId: string, params: {
75
+ actor: 'user';
76
+ reason: string;
77
+ payload?: unknown;
78
+ commandId?: string;
79
+ }): LinkeGringoJob;
80
+ completeJob(jobId: string, agent: AgentIdentity, result: {
81
+ submissionId: string;
82
+ schemaVersion?: string;
83
+ payload: unknown;
84
+ commandId?: string;
85
+ }): {
86
+ job: LinkeGringoJob;
87
+ resultId: string;
88
+ };
89
+ failJob(jobId: string, error: string, actor?: string, commandId?: string): LinkeGringoJob;
90
+ cancelJob(jobId: string, actor: string, reason: string, commandId?: string): LinkeGringoJob;
91
+ expireStaleLeases(): number;
92
+ cleanupExpiredJobs(): number;
93
+ recordEvent(event: JobEvent): void;
94
+ getEventsSince(jobId: string, lastEventId?: string | null): JobEvent[];
95
+ getJobResult(resultId: string): JobResultEnvelope | null;
96
+ saveFileHandle(handle: DocumentHandle, realPath: string): void;
97
+ getFileHandle(fileId: string): (DocumentHandle & {
98
+ path: string;
99
+ localPath: string;
100
+ }) | null;
101
+ registerAgent(agent: AgentIdentity, capabilities?: unknown): void;
102
+ listActiveAgents(maxAgeMs?: number): Array<AgentIdentity & {
103
+ lastSeenAt: number;
104
+ }>;
105
+ private updateJobRow;
106
+ }
107
+
34
108
  type JobType = 'parse_and_diagnose' | 'generate_interview' | 'evaluate_progress' | 'generate_rewritten_profile' | 'chat_message';
35
109
  type JobStatus = 'pending' | 'processing' | 'completed' | 'failed';
36
110
  interface BridgeJob<TPayload = any, TResult = any> {
@@ -49,14 +123,20 @@ interface BridgeServerOptions {
49
123
  onJobCreated?: (job: BridgeJob) => void;
50
124
  }
51
125
 
52
- declare function createBridgeHttpServer(options?: BridgeServerOptions): http.Server;
53
- declare function startBridgeServer(options?: BridgeServerOptions): Promise<{
126
+ interface ExtendedBridgeServerOptions extends BridgeServerOptions {
127
+ dbPath?: string;
128
+ jobStore?: JobStore;
129
+ }
130
+ declare function createBridgeHttpServer(options?: ExtendedBridgeServerOptions): http.Server;
131
+ declare function startBridgeServer(options?: ExtendedBridgeServerOptions): Promise<{
54
132
  server: http.Server;
55
133
  port: number;
56
134
  close: () => Promise<void>;
57
135
  }>;
58
136
  declare function stopBridgeServer(): Promise<void>;
59
137
 
138
+ declare const DEFAULT_BRIDGE_URL: string;
139
+ declare function getBridgeUrl(overrideUrl?: string): string;
60
140
  /**
61
141
  * Busca o próximo job pendente no Bridge HTTP local (porta 5174).
62
142
  * Se o bridge HTTP estiver offline ou inacessível, realiza fallback para o bridgeJobStore em memória.
@@ -71,6 +151,30 @@ declare function completeRemoteOrLocalJob(jobId: string, result: any, bridgeUrl?
71
151
  * Marca um job com falha no Bridge HTTP local ou na store em memória.
72
152
  */
73
153
  declare function failRemoteOrLocalJob(jobId: string, error: string, bridgeUrl?: string): Promise<BridgeJob>;
154
+ declare function listRemoteJobs(filter?: {
155
+ status?: string;
156
+ type?: string;
157
+ }, bridgeUrl?: string): Promise<LinkeGringoJob[]>;
158
+ declare function claimRemoteJob(jobId: string, agent: AgentIdentity, leaseDurationMs?: number, bridgeUrl?: string): Promise<LinkeGringoJob>;
159
+ declare function reportRemoteProgress(jobId: string, agent: AgentIdentity, update: {
160
+ phase?: JobProgressPhase;
161
+ progress?: number;
162
+ message?: string;
163
+ leaseDurationMs?: number;
164
+ }, bridgeUrl?: string): Promise<LinkeGringoJob>;
165
+ declare function requestRemoteUserAction(jobId: string, agent: AgentIdentity, details: {
166
+ reason: string;
167
+ prompt?: string;
168
+ }, bridgeUrl?: string): Promise<LinkeGringoJob>;
169
+ declare function inspectRemoteDocument(fileId: string, bridgeUrl?: string): Promise<DocumentHandle>;
170
+ declare function submitRemoteJobResult(jobId: string, agent: AgentIdentity, resultData: {
171
+ submissionId?: string;
172
+ schemaVersion?: string;
173
+ payload: unknown;
174
+ }, bridgeUrl?: string): Promise<{
175
+ job: LinkeGringoJob;
176
+ resultId: string;
177
+ }>;
74
178
 
75
179
  interface WatcherOptions {
76
180
  bridgeUrl?: string;
@@ -116,6 +220,60 @@ declare class BridgeJobStore extends EventEmitter {
116
220
  }
117
221
  declare const bridgeJobStore: BridgeJobStore;
118
222
 
223
+ interface BridgeClientConfig {
224
+ bridgeUrl?: string;
225
+ defaultTimeoutMs?: number;
226
+ }
227
+ interface WaitForJobOptions {
228
+ timeoutMs?: number;
229
+ onProgress?: (phase: string, progress: number, message?: string) => void;
230
+ onUserAction?: (reason: string, prompt?: string) => void;
231
+ onEvent?: (event: JobEvent) => void;
232
+ }
233
+ declare class BridgeClient {
234
+ readonly bridgeUrl: string;
235
+ readonly defaultTimeoutMs: number;
236
+ constructor(config?: BridgeClientConfig);
237
+ /**
238
+ * Checa se o bridge HTTP local está online e responsivo.
239
+ */
240
+ checkHealth(): Promise<boolean>;
241
+ /**
242
+ * Resolve um arquivo local por fingerprint determinístico sem copiá-lo.
243
+ */
244
+ resolveFile(fingerprint: FileFingerprint, jobId?: string): Promise<DocumentHandle>;
245
+ /**
246
+ * Obtém detalhes públicos do DocumentHandle a partir do capability token opaco.
247
+ */
248
+ getDocument(fileId: string): Promise<DocumentHandle>;
249
+ /**
250
+ * Cria um novo job na máquina de estados do Bridge.
251
+ */
252
+ createJob(params: CreateJobInput$1): Promise<LinkeGringoJob>;
253
+ /**
254
+ * Consulta o estado atual de um job.
255
+ */
256
+ getJob(jobId: string): Promise<LinkeGringoJob>;
257
+ /**
258
+ * Retoma um job em espera de confirmação do usuário (Human-in-the-Loop).
259
+ */
260
+ resumeJob(jobId: string, paramsOrReason?: string | {
261
+ actor?: 'user';
262
+ reason: string;
263
+ payload?: unknown;
264
+ }, maybePayload?: unknown): Promise<LinkeGringoJob>;
265
+ /**
266
+ * Subscreve ao stream SSE de eventos do job (`/api/jobs/:id/events`).
267
+ * Suporta re-conexão automática com Last-Event-ID no browser nativo via EventSource.
268
+ */
269
+ subscribeJobEvents(jobId: string, onEvent: (event: JobEvent) => void, onError?: (err: any) => void): () => void;
270
+ /**
271
+ * Aguarda a resolução completa do job via streaming de eventos SSE,
272
+ * despachando atualizações reativas de progresso e ações do usuário.
273
+ */
274
+ waitForJobResult<T = any>(jobId: string, options?: WaitForJobOptions): Promise<T>;
275
+ }
276
+
119
277
  interface SparseExperience {
120
278
  company: string;
121
279
  title: string;
@@ -494,4 +652,2457 @@ declare function handleWatchLinkeGringo(input?: WatchLinkeGringoInput): Promise<
494
652
  };
495
653
  }>;
496
654
 
497
- export { type AuditIssue, type AuditProfileInput, type BridgeJob, type BridgeServerOptions, type ConvertToXyzBulletInput, type GenerateHeadlineInput, type GetPendingJobInput, type InstallResult, type InstallerOptions, type JobStatus, type JobType, type McpTarget, type SimulateRecruiterSearchInput, type SparseExperience, type SubmitJobResultInput, type WatchLinkeGringoInput, type WatcherOptions, auditProfileInputSchema, bridgeJobStore, completeRemoteOrLocalJob, convertToXyzBulletInputSchema, createBridgeHttpServer, createLinkeGringoMcpServer, detectSparseExperiences, failRemoteOrLocalJob, formatGoogleXyzBullet, generateHeadlineInputSchema, getExperienceBulletCount, getMcpConfigsForSystem, getPendingJobInputSchema, getRemoteOrLocalPendingJob, handleAuditProfile, handleConvertToXyzBullet, handleGenerateHeadline, handleGetPendingJob, handleSimulateRecruiterSearch, handleSubmitJobResult, handleWatchLinkeGringo, installMcpServerConfig, parseArgs, runInstaller, simulateRecruiterSearchInputSchema, startBridgeServer, startBridgeWatcher, stopBridgeServer, submitJobResultInputSchema, waitForNextJob, watchLinkeGringoInputSchema };
655
+ declare const listJobsInputSchema: z.ZodObject<{
656
+ status: z.ZodOptional<z.ZodEnum<["created", "waiting_for_agent", "running", "waiting_for_user", "completed", "failed", "cancelled"]>>;
657
+ type: z.ZodOptional<z.ZodEnum<["diagnostic", "interview", "fact_confirmation", "rewrite", "action_hub"]>>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ type?: "interview" | "diagnostic" | "fact_confirmation" | "rewrite" | "action_hub" | undefined;
660
+ status?: "created" | "waiting_for_agent" | "running" | "waiting_for_user" | "completed" | "failed" | "cancelled" | undefined;
661
+ }, {
662
+ type?: "interview" | "diagnostic" | "fact_confirmation" | "rewrite" | "action_hub" | undefined;
663
+ status?: "created" | "waiting_for_agent" | "running" | "waiting_for_user" | "completed" | "failed" | "cancelled" | undefined;
664
+ }>;
665
+ type ListJobsInput = z.infer<typeof listJobsInputSchema>;
666
+ declare function handleListJobs(input?: ListJobsInput): Promise<{
667
+ content: {
668
+ type: "text";
669
+ text: string;
670
+ }[];
671
+ structuredData: {
672
+ total: number;
673
+ jobs: {
674
+ id: string;
675
+ type: "interview" | "diagnostic" | "fact_confirmation" | "rewrite" | "action_hub";
676
+ status: "created" | "waiting_for_agent" | "running" | "waiting_for_user" | "completed" | "failed" | "cancelled";
677
+ targetRole: string | null | undefined;
678
+ fileHandleId: string | null | undefined;
679
+ createdAt: string;
680
+ leaseExpiresAt: string | null | undefined;
681
+ }[];
682
+ };
683
+ isError?: undefined;
684
+ } | {
685
+ isError: boolean;
686
+ content: {
687
+ type: "text";
688
+ text: string;
689
+ }[];
690
+ structuredData?: undefined;
691
+ }>;
692
+
693
+ declare const claimJobInputSchema: z.ZodObject<{
694
+ jobId: z.ZodString;
695
+ agent: z.ZodObject<{
696
+ agentId: z.ZodString;
697
+ sessionId: z.ZodString;
698
+ clientName: z.ZodOptional<z.ZodString>;
699
+ clientVersion: z.ZodOptional<z.ZodString>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ agentId: string;
702
+ sessionId: string;
703
+ clientName?: string | undefined;
704
+ clientVersion?: string | undefined;
705
+ }, {
706
+ agentId: string;
707
+ sessionId: string;
708
+ clientName?: string | undefined;
709
+ clientVersion?: string | undefined;
710
+ }>;
711
+ leaseDurationMs: z.ZodOptional<z.ZodNumber>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ jobId: string;
714
+ agent: {
715
+ agentId: string;
716
+ sessionId: string;
717
+ clientName?: string | undefined;
718
+ clientVersion?: string | undefined;
719
+ };
720
+ leaseDurationMs?: number | undefined;
721
+ }, {
722
+ jobId: string;
723
+ agent: {
724
+ agentId: string;
725
+ sessionId: string;
726
+ clientName?: string | undefined;
727
+ clientVersion?: string | undefined;
728
+ };
729
+ leaseDurationMs?: number | undefined;
730
+ }>;
731
+ type ClaimJobInput = z.infer<typeof claimJobInputSchema>;
732
+ declare function handleClaimJob(input: ClaimJobInput): Promise<{
733
+ content: {
734
+ type: "text";
735
+ text: string;
736
+ }[];
737
+ structuredData: {
738
+ success: boolean;
739
+ job: {
740
+ id: string;
741
+ type: "interview" | "diagnostic" | "fact_confirmation" | "rewrite" | "action_hub";
742
+ status: "created" | "waiting_for_agent" | "running" | "waiting_for_user" | "completed" | "failed" | "cancelled";
743
+ updatedAt: string;
744
+ expiresAt: string;
745
+ attempt: number;
746
+ maxAttempts: number;
747
+ progress: number;
748
+ createdAt: string;
749
+ result?: unknown;
750
+ error?: string | null | undefined;
751
+ targetRole?: string | null | undefined;
752
+ claimedBy?: {
753
+ agentId: string;
754
+ sessionId: string;
755
+ clientName?: string | undefined;
756
+ clientVersion?: string | undefined;
757
+ } | null | undefined;
758
+ leaseExpiresAt?: string | null | undefined;
759
+ currentPhase?: "loading_document" | "reading_document" | "extracting_facts" | "diagnosing" | "writing_result" | null | undefined;
760
+ progressMessage?: string | null | undefined;
761
+ resultId?: string | null | undefined;
762
+ fileHandleId?: string | null | undefined;
763
+ fileHandle?: {
764
+ name: string;
765
+ size: number;
766
+ fileId: string;
767
+ jobId: string;
768
+ mediaType: "application/pdf";
769
+ mtime: number;
770
+ root: "downloads" | "desktop" | "documents";
771
+ access: "native-local-document";
772
+ expiresAt: string;
773
+ } | undefined;
774
+ metadata?: Record<string, unknown> | undefined;
775
+ };
776
+ };
777
+ isError?: undefined;
778
+ } | {
779
+ isError: boolean;
780
+ content: {
781
+ type: "text";
782
+ text: string;
783
+ }[];
784
+ structuredData?: undefined;
785
+ }>;
786
+
787
+ declare const reportProgressInputSchema: z.ZodObject<{
788
+ jobId: z.ZodString;
789
+ agent: z.ZodObject<{
790
+ agentId: z.ZodString;
791
+ sessionId: z.ZodString;
792
+ clientName: z.ZodOptional<z.ZodString>;
793
+ clientVersion: z.ZodOptional<z.ZodString>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ agentId: string;
796
+ sessionId: string;
797
+ clientName?: string | undefined;
798
+ clientVersion?: string | undefined;
799
+ }, {
800
+ agentId: string;
801
+ sessionId: string;
802
+ clientName?: string | undefined;
803
+ clientVersion?: string | undefined;
804
+ }>;
805
+ phase: z.ZodOptional<z.ZodEnum<["loading_document", "reading_document", "extracting_facts", "diagnosing", "writing_result"]>>;
806
+ progress: z.ZodOptional<z.ZodNumber>;
807
+ message: z.ZodOptional<z.ZodString>;
808
+ leaseDurationMs: z.ZodOptional<z.ZodNumber>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ jobId: string;
811
+ agent: {
812
+ agentId: string;
813
+ sessionId: string;
814
+ clientName?: string | undefined;
815
+ clientVersion?: string | undefined;
816
+ };
817
+ message?: string | undefined;
818
+ progress?: number | undefined;
819
+ leaseDurationMs?: number | undefined;
820
+ phase?: "loading_document" | "reading_document" | "extracting_facts" | "diagnosing" | "writing_result" | undefined;
821
+ }, {
822
+ jobId: string;
823
+ agent: {
824
+ agentId: string;
825
+ sessionId: string;
826
+ clientName?: string | undefined;
827
+ clientVersion?: string | undefined;
828
+ };
829
+ message?: string | undefined;
830
+ progress?: number | undefined;
831
+ leaseDurationMs?: number | undefined;
832
+ phase?: "loading_document" | "reading_document" | "extracting_facts" | "diagnosing" | "writing_result" | undefined;
833
+ }>;
834
+ type ReportProgressInput = z.infer<typeof reportProgressInputSchema>;
835
+ declare function handleReportProgress(input: ReportProgressInput): Promise<{
836
+ content: {
837
+ type: "text";
838
+ text: string;
839
+ }[];
840
+ structuredData: {
841
+ success: boolean;
842
+ jobId: string;
843
+ progress: number;
844
+ phase: "loading_document" | "reading_document" | "extracting_facts" | "diagnosing" | "writing_result" | undefined;
845
+ leaseExpiresAt: string | null | undefined;
846
+ };
847
+ isError?: undefined;
848
+ } | {
849
+ isError: boolean;
850
+ content: {
851
+ type: "text";
852
+ text: string;
853
+ }[];
854
+ structuredData?: undefined;
855
+ }>;
856
+
857
+ declare const inspectDocumentInputSchema: z.ZodObject<{
858
+ fileId: z.ZodString;
859
+ }, "strip", z.ZodTypeAny, {
860
+ fileId: string;
861
+ }, {
862
+ fileId: string;
863
+ }>;
864
+ type InspectDocumentInput = z.infer<typeof inspectDocumentInputSchema>;
865
+ declare function handleInspectDocument(input: InspectDocumentInput): Promise<{
866
+ content: {
867
+ type: "text";
868
+ text: string;
869
+ }[];
870
+ structuredData: {
871
+ fileId: string;
872
+ jobId: string;
873
+ name: string;
874
+ mediaType: "application/pdf";
875
+ size: number;
876
+ mtime: number;
877
+ root: "downloads" | "desktop" | "documents";
878
+ access: "native-local-document";
879
+ expiresAt: string;
880
+ };
881
+ isError?: undefined;
882
+ } | {
883
+ isError: boolean;
884
+ content: {
885
+ type: "text";
886
+ text: string;
887
+ }[];
888
+ structuredData?: undefined;
889
+ }>;
890
+
891
+ declare const requestUserActionInputSchema: z.ZodObject<{
892
+ jobId: z.ZodString;
893
+ agent: z.ZodObject<{
894
+ agentId: z.ZodString;
895
+ sessionId: z.ZodString;
896
+ clientName: z.ZodOptional<z.ZodString>;
897
+ clientVersion: z.ZodOptional<z.ZodString>;
898
+ }, "strip", z.ZodTypeAny, {
899
+ agentId: string;
900
+ sessionId: string;
901
+ clientName?: string | undefined;
902
+ clientVersion?: string | undefined;
903
+ }, {
904
+ agentId: string;
905
+ sessionId: string;
906
+ clientName?: string | undefined;
907
+ clientVersion?: string | undefined;
908
+ }>;
909
+ reason: z.ZodString;
910
+ prompt: z.ZodOptional<z.ZodString>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ reason: string;
913
+ jobId: string;
914
+ agent: {
915
+ agentId: string;
916
+ sessionId: string;
917
+ clientName?: string | undefined;
918
+ clientVersion?: string | undefined;
919
+ };
920
+ prompt?: string | undefined;
921
+ }, {
922
+ reason: string;
923
+ jobId: string;
924
+ agent: {
925
+ agentId: string;
926
+ sessionId: string;
927
+ clientName?: string | undefined;
928
+ clientVersion?: string | undefined;
929
+ };
930
+ prompt?: string | undefined;
931
+ }>;
932
+ type RequestUserActionInput = z.infer<typeof requestUserActionInputSchema>;
933
+ declare function handleRequestUserAction(input: RequestUserActionInput): Promise<{
934
+ content: {
935
+ type: "text";
936
+ text: string;
937
+ }[];
938
+ structuredData: {
939
+ success: boolean;
940
+ jobId: string;
941
+ status: "created" | "waiting_for_agent" | "running" | "waiting_for_user" | "completed" | "failed" | "cancelled";
942
+ reason: string;
943
+ };
944
+ isError?: undefined;
945
+ } | {
946
+ isError: boolean;
947
+ content: {
948
+ type: "text";
949
+ text: string;
950
+ }[];
951
+ structuredData?: undefined;
952
+ }>;
953
+
954
+ declare const submitDiagnosticInputSchema: z.ZodObject<{
955
+ jobId: z.ZodString;
956
+ agent: z.ZodObject<{
957
+ agentId: z.ZodString;
958
+ sessionId: z.ZodString;
959
+ clientName: z.ZodOptional<z.ZodString>;
960
+ clientVersion: z.ZodOptional<z.ZodString>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ agentId: string;
963
+ sessionId: string;
964
+ clientName?: string | undefined;
965
+ clientVersion?: string | undefined;
966
+ }, {
967
+ agentId: string;
968
+ sessionId: string;
969
+ clientName?: string | undefined;
970
+ clientVersion?: string | undefined;
971
+ }>;
972
+ submissionId: z.ZodOptional<z.ZodString>;
973
+ payload: z.ZodObject<{
974
+ profile: z.ZodObject<{
975
+ publicId: z.ZodDefault<z.ZodString>;
976
+ firstName: z.ZodDefault<z.ZodString>;
977
+ lastName: z.ZodDefault<z.ZodString>;
978
+ headline: z.ZodDefault<z.ZodOptional<z.ZodString>>;
979
+ location: z.ZodDefault<z.ZodOptional<z.ZodString>>;
980
+ summary: z.ZodDefault<z.ZodOptional<z.ZodString>>;
981
+ experiences: z.ZodDefault<z.ZodArray<z.ZodObject<{
982
+ title: z.ZodDefault<z.ZodString>;
983
+ companyName: z.ZodDefault<z.ZodString>;
984
+ employmentType: z.ZodOptional<z.ZodString>;
985
+ workplaceType: z.ZodEffects<z.ZodOptional<z.ZodEnum<["remote", "hybrid", "onsite"]>>, "remote" | "hybrid" | "onsite" | undefined, unknown>;
986
+ location: z.ZodOptional<z.ZodString>;
987
+ startDate: z.ZodOptional<z.ZodObject<{
988
+ year: z.ZodNumber;
989
+ month: z.ZodOptional<z.ZodNumber>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ year: number;
992
+ month?: number | undefined;
993
+ }, {
994
+ year: number;
995
+ month?: number | undefined;
996
+ }>>;
997
+ endDate: z.ZodOptional<z.ZodObject<{
998
+ year: z.ZodNumber;
999
+ month: z.ZodOptional<z.ZodNumber>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ year: number;
1002
+ month?: number | undefined;
1003
+ }, {
1004
+ year: number;
1005
+ month?: number | undefined;
1006
+ }>>;
1007
+ current: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, boolean, unknown>;
1008
+ dateRangeText: z.ZodOptional<z.ZodString>;
1009
+ durationText: z.ZodOptional<z.ZodString>;
1010
+ description: z.ZodOptional<z.ZodString>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ title: string;
1013
+ companyName: string;
1014
+ current: boolean;
1015
+ employmentType?: string | undefined;
1016
+ workplaceType?: "remote" | "hybrid" | "onsite" | undefined;
1017
+ location?: string | undefined;
1018
+ startDate?: {
1019
+ year: number;
1020
+ month?: number | undefined;
1021
+ } | undefined;
1022
+ endDate?: {
1023
+ year: number;
1024
+ month?: number | undefined;
1025
+ } | undefined;
1026
+ dateRangeText?: string | undefined;
1027
+ durationText?: string | undefined;
1028
+ description?: string | undefined;
1029
+ }, {
1030
+ title?: string | undefined;
1031
+ companyName?: string | undefined;
1032
+ employmentType?: string | undefined;
1033
+ workplaceType?: unknown;
1034
+ location?: string | undefined;
1035
+ startDate?: {
1036
+ year: number;
1037
+ month?: number | undefined;
1038
+ } | undefined;
1039
+ endDate?: {
1040
+ year: number;
1041
+ month?: number | undefined;
1042
+ } | undefined;
1043
+ current?: unknown;
1044
+ dateRangeText?: string | undefined;
1045
+ durationText?: string | undefined;
1046
+ description?: string | undefined;
1047
+ }>, "many">>;
1048
+ education: z.ZodDefault<z.ZodArray<z.ZodObject<{
1049
+ schoolName: z.ZodString;
1050
+ degreeName: z.ZodOptional<z.ZodString>;
1051
+ fieldOfStudy: z.ZodOptional<z.ZodString>;
1052
+ grade: z.ZodOptional<z.ZodString>;
1053
+ description: z.ZodOptional<z.ZodString>;
1054
+ dateRange: z.ZodOptional<z.ZodObject<{
1055
+ start: z.ZodOptional<z.ZodObject<{
1056
+ year: z.ZodNumber;
1057
+ month: z.ZodOptional<z.ZodNumber>;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ year: number;
1060
+ month?: number | undefined;
1061
+ }, {
1062
+ year: number;
1063
+ month?: number | undefined;
1064
+ }>>;
1065
+ end: z.ZodOptional<z.ZodObject<{
1066
+ year: z.ZodNumber;
1067
+ month: z.ZodOptional<z.ZodNumber>;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ year: number;
1070
+ month?: number | undefined;
1071
+ }, {
1072
+ year: number;
1073
+ month?: number | undefined;
1074
+ }>>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ start?: {
1077
+ year: number;
1078
+ month?: number | undefined;
1079
+ } | undefined;
1080
+ end?: {
1081
+ year: number;
1082
+ month?: number | undefined;
1083
+ } | undefined;
1084
+ }, {
1085
+ start?: {
1086
+ year: number;
1087
+ month?: number | undefined;
1088
+ } | undefined;
1089
+ end?: {
1090
+ year: number;
1091
+ month?: number | undefined;
1092
+ } | undefined;
1093
+ }>>;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ schoolName: string;
1096
+ description?: string | undefined;
1097
+ degreeName?: string | undefined;
1098
+ fieldOfStudy?: string | undefined;
1099
+ grade?: string | undefined;
1100
+ dateRange?: {
1101
+ start?: {
1102
+ year: number;
1103
+ month?: number | undefined;
1104
+ } | undefined;
1105
+ end?: {
1106
+ year: number;
1107
+ month?: number | undefined;
1108
+ } | undefined;
1109
+ } | undefined;
1110
+ }, {
1111
+ schoolName: string;
1112
+ description?: string | undefined;
1113
+ degreeName?: string | undefined;
1114
+ fieldOfStudy?: string | undefined;
1115
+ grade?: string | undefined;
1116
+ dateRange?: {
1117
+ start?: {
1118
+ year: number;
1119
+ month?: number | undefined;
1120
+ } | undefined;
1121
+ end?: {
1122
+ year: number;
1123
+ month?: number | undefined;
1124
+ } | undefined;
1125
+ } | undefined;
1126
+ }>, "many">>;
1127
+ skills: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
1128
+ name: string;
1129
+ }, string>, z.ZodObject<{
1130
+ name: z.ZodString;
1131
+ endorsementCount: z.ZodOptional<z.ZodNumber>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ name: string;
1134
+ endorsementCount?: number | undefined;
1135
+ }, {
1136
+ name: string;
1137
+ endorsementCount?: number | undefined;
1138
+ }>]>, "many">>;
1139
+ certifications: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
1140
+ name: string;
1141
+ }, string>, z.ZodObject<{
1142
+ name: z.ZodString;
1143
+ issuer: z.ZodOptional<z.ZodString>;
1144
+ credentialId: z.ZodOptional<z.ZodString>;
1145
+ url: z.ZodOptional<z.ZodString>;
1146
+ issuedDate: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1147
+ year: z.ZodNumber;
1148
+ month: z.ZodOptional<z.ZodNumber>;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ year: number;
1151
+ month?: number | undefined;
1152
+ }, {
1153
+ year: number;
1154
+ month?: number | undefined;
1155
+ }>>>;
1156
+ expirationDate: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1157
+ year: z.ZodNumber;
1158
+ month: z.ZodOptional<z.ZodNumber>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ year: number;
1161
+ month?: number | undefined;
1162
+ }, {
1163
+ year: number;
1164
+ month?: number | undefined;
1165
+ }>>>;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ name: string;
1168
+ url?: string | undefined;
1169
+ issuer?: string | undefined;
1170
+ credentialId?: string | undefined;
1171
+ issuedDate?: {
1172
+ year: number;
1173
+ month?: number | undefined;
1174
+ } | undefined;
1175
+ expirationDate?: {
1176
+ year: number;
1177
+ month?: number | undefined;
1178
+ } | undefined;
1179
+ }, {
1180
+ name: string;
1181
+ url?: string | undefined;
1182
+ issuer?: string | undefined;
1183
+ credentialId?: string | undefined;
1184
+ issuedDate?: {
1185
+ year: number;
1186
+ month?: number | undefined;
1187
+ } | undefined;
1188
+ expirationDate?: {
1189
+ year: number;
1190
+ month?: number | undefined;
1191
+ } | undefined;
1192
+ }>]>, "many">>;
1193
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
1194
+ name: z.ZodString;
1195
+ description: z.ZodOptional<z.ZodString>;
1196
+ url: z.ZodOptional<z.ZodString>;
1197
+ dateRange: z.ZodOptional<z.ZodObject<{
1198
+ start: z.ZodOptional<z.ZodObject<{
1199
+ year: z.ZodNumber;
1200
+ month: z.ZodOptional<z.ZodNumber>;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ year: number;
1203
+ month?: number | undefined;
1204
+ }, {
1205
+ year: number;
1206
+ month?: number | undefined;
1207
+ }>>;
1208
+ end: z.ZodOptional<z.ZodObject<{
1209
+ year: z.ZodNumber;
1210
+ month: z.ZodOptional<z.ZodNumber>;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ year: number;
1213
+ month?: number | undefined;
1214
+ }, {
1215
+ year: number;
1216
+ month?: number | undefined;
1217
+ }>>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ start?: {
1220
+ year: number;
1221
+ month?: number | undefined;
1222
+ } | undefined;
1223
+ end?: {
1224
+ year: number;
1225
+ month?: number | undefined;
1226
+ } | undefined;
1227
+ }, {
1228
+ start?: {
1229
+ year: number;
1230
+ month?: number | undefined;
1231
+ } | undefined;
1232
+ end?: {
1233
+ year: number;
1234
+ month?: number | undefined;
1235
+ } | undefined;
1236
+ }>>;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ name: string;
1239
+ url?: string | undefined;
1240
+ description?: string | undefined;
1241
+ dateRange?: {
1242
+ start?: {
1243
+ year: number;
1244
+ month?: number | undefined;
1245
+ } | undefined;
1246
+ end?: {
1247
+ year: number;
1248
+ month?: number | undefined;
1249
+ } | undefined;
1250
+ } | undefined;
1251
+ }, {
1252
+ name: string;
1253
+ url?: string | undefined;
1254
+ description?: string | undefined;
1255
+ dateRange?: {
1256
+ start?: {
1257
+ year: number;
1258
+ month?: number | undefined;
1259
+ } | undefined;
1260
+ end?: {
1261
+ year: number;
1262
+ month?: number | undefined;
1263
+ } | undefined;
1264
+ } | undefined;
1265
+ }>, "many">>;
1266
+ languages: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
1267
+ name: string;
1268
+ }, string>, z.ZodObject<{
1269
+ name: z.ZodString;
1270
+ proficiency: z.ZodOptional<z.ZodString>;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ name: string;
1273
+ proficiency?: string | undefined;
1274
+ }, {
1275
+ name: string;
1276
+ proficiency?: string | undefined;
1277
+ }>]>, "many">>;
1278
+ honors: z.ZodDefault<z.ZodArray<z.ZodObject<{
1279
+ title: z.ZodString;
1280
+ issuer: z.ZodOptional<z.ZodString>;
1281
+ description: z.ZodOptional<z.ZodString>;
1282
+ date: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1283
+ year: z.ZodNumber;
1284
+ month: z.ZodOptional<z.ZodNumber>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ year: number;
1287
+ month?: number | undefined;
1288
+ }, {
1289
+ year: number;
1290
+ month?: number | undefined;
1291
+ }>>>;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ title: string;
1294
+ date?: {
1295
+ year: number;
1296
+ month?: number | undefined;
1297
+ } | undefined;
1298
+ description?: string | undefined;
1299
+ issuer?: string | undefined;
1300
+ }, {
1301
+ title: string;
1302
+ date?: {
1303
+ year: number;
1304
+ month?: number | undefined;
1305
+ } | undefined;
1306
+ description?: string | undefined;
1307
+ issuer?: string | undefined;
1308
+ }>, "many">>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ location: string;
1311
+ publicId: string;
1312
+ firstName: string;
1313
+ lastName: string;
1314
+ headline: string;
1315
+ summary: string;
1316
+ experiences: {
1317
+ title: string;
1318
+ companyName: string;
1319
+ current: boolean;
1320
+ employmentType?: string | undefined;
1321
+ workplaceType?: "remote" | "hybrid" | "onsite" | undefined;
1322
+ location?: string | undefined;
1323
+ startDate?: {
1324
+ year: number;
1325
+ month?: number | undefined;
1326
+ } | undefined;
1327
+ endDate?: {
1328
+ year: number;
1329
+ month?: number | undefined;
1330
+ } | undefined;
1331
+ dateRangeText?: string | undefined;
1332
+ durationText?: string | undefined;
1333
+ description?: string | undefined;
1334
+ }[];
1335
+ education: {
1336
+ schoolName: string;
1337
+ description?: string | undefined;
1338
+ degreeName?: string | undefined;
1339
+ fieldOfStudy?: string | undefined;
1340
+ grade?: string | undefined;
1341
+ dateRange?: {
1342
+ start?: {
1343
+ year: number;
1344
+ month?: number | undefined;
1345
+ } | undefined;
1346
+ end?: {
1347
+ year: number;
1348
+ month?: number | undefined;
1349
+ } | undefined;
1350
+ } | undefined;
1351
+ }[];
1352
+ skills: ({
1353
+ name: string;
1354
+ } | {
1355
+ name: string;
1356
+ endorsementCount?: number | undefined;
1357
+ })[];
1358
+ certifications: ({
1359
+ name: string;
1360
+ } | {
1361
+ name: string;
1362
+ url?: string | undefined;
1363
+ issuer?: string | undefined;
1364
+ credentialId?: string | undefined;
1365
+ issuedDate?: {
1366
+ year: number;
1367
+ month?: number | undefined;
1368
+ } | undefined;
1369
+ expirationDate?: {
1370
+ year: number;
1371
+ month?: number | undefined;
1372
+ } | undefined;
1373
+ })[];
1374
+ projects: {
1375
+ name: string;
1376
+ url?: string | undefined;
1377
+ description?: string | undefined;
1378
+ dateRange?: {
1379
+ start?: {
1380
+ year: number;
1381
+ month?: number | undefined;
1382
+ } | undefined;
1383
+ end?: {
1384
+ year: number;
1385
+ month?: number | undefined;
1386
+ } | undefined;
1387
+ } | undefined;
1388
+ }[];
1389
+ languages: ({
1390
+ name: string;
1391
+ } | {
1392
+ name: string;
1393
+ proficiency?: string | undefined;
1394
+ })[];
1395
+ honors: {
1396
+ title: string;
1397
+ date?: {
1398
+ year: number;
1399
+ month?: number | undefined;
1400
+ } | undefined;
1401
+ description?: string | undefined;
1402
+ issuer?: string | undefined;
1403
+ }[];
1404
+ }, {
1405
+ location?: string | undefined;
1406
+ publicId?: string | undefined;
1407
+ firstName?: string | undefined;
1408
+ lastName?: string | undefined;
1409
+ headline?: string | undefined;
1410
+ summary?: string | undefined;
1411
+ experiences?: {
1412
+ title?: string | undefined;
1413
+ companyName?: string | undefined;
1414
+ employmentType?: string | undefined;
1415
+ workplaceType?: unknown;
1416
+ location?: string | undefined;
1417
+ startDate?: {
1418
+ year: number;
1419
+ month?: number | undefined;
1420
+ } | undefined;
1421
+ endDate?: {
1422
+ year: number;
1423
+ month?: number | undefined;
1424
+ } | undefined;
1425
+ current?: unknown;
1426
+ dateRangeText?: string | undefined;
1427
+ durationText?: string | undefined;
1428
+ description?: string | undefined;
1429
+ }[] | undefined;
1430
+ education?: {
1431
+ schoolName: string;
1432
+ description?: string | undefined;
1433
+ degreeName?: string | undefined;
1434
+ fieldOfStudy?: string | undefined;
1435
+ grade?: string | undefined;
1436
+ dateRange?: {
1437
+ start?: {
1438
+ year: number;
1439
+ month?: number | undefined;
1440
+ } | undefined;
1441
+ end?: {
1442
+ year: number;
1443
+ month?: number | undefined;
1444
+ } | undefined;
1445
+ } | undefined;
1446
+ }[] | undefined;
1447
+ skills?: (string | {
1448
+ name: string;
1449
+ endorsementCount?: number | undefined;
1450
+ })[] | undefined;
1451
+ certifications?: (string | {
1452
+ name: string;
1453
+ url?: string | undefined;
1454
+ issuer?: string | undefined;
1455
+ credentialId?: string | undefined;
1456
+ issuedDate?: {
1457
+ year: number;
1458
+ month?: number | undefined;
1459
+ } | undefined;
1460
+ expirationDate?: {
1461
+ year: number;
1462
+ month?: number | undefined;
1463
+ } | undefined;
1464
+ })[] | undefined;
1465
+ projects?: {
1466
+ name: string;
1467
+ url?: string | undefined;
1468
+ description?: string | undefined;
1469
+ dateRange?: {
1470
+ start?: {
1471
+ year: number;
1472
+ month?: number | undefined;
1473
+ } | undefined;
1474
+ end?: {
1475
+ year: number;
1476
+ month?: number | undefined;
1477
+ } | undefined;
1478
+ } | undefined;
1479
+ }[] | undefined;
1480
+ languages?: (string | {
1481
+ name: string;
1482
+ proficiency?: string | undefined;
1483
+ })[] | undefined;
1484
+ honors?: {
1485
+ title: string;
1486
+ date?: {
1487
+ year: number;
1488
+ month?: number | undefined;
1489
+ } | undefined;
1490
+ description?: string | undefined;
1491
+ issuer?: string | undefined;
1492
+ }[] | undefined;
1493
+ }>;
1494
+ review: z.ZodObject<{
1495
+ targetMarket: z.ZodDefault<z.ZodString>;
1496
+ language: z.ZodDefault<z.ZodString>;
1497
+ overallScore: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1498
+ scores: z.ZodObject<{
1499
+ searchRelevance: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1500
+ humanVoice: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1501
+ credibility: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1502
+ positioningClarity: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1503
+ evidenceCoverage: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1504
+ }, "strip", z.ZodTypeAny, {
1505
+ searchRelevance: number;
1506
+ humanVoice: number;
1507
+ credibility: number;
1508
+ positioningClarity: number;
1509
+ evidenceCoverage: number;
1510
+ }, {
1511
+ searchRelevance: number;
1512
+ humanVoice: number;
1513
+ credibility: number;
1514
+ positioningClarity: number;
1515
+ evidenceCoverage: number;
1516
+ }>;
1517
+ scoreExplanations: z.ZodOptional<z.ZodObject<{
1518
+ searchRelevance: z.ZodDefault<z.ZodString>;
1519
+ humanVoice: z.ZodDefault<z.ZodString>;
1520
+ credibility: z.ZodDefault<z.ZodString>;
1521
+ positioningClarity: z.ZodDefault<z.ZodString>;
1522
+ evidenceCoverage: z.ZodDefault<z.ZodString>;
1523
+ }, "strip", z.ZodTypeAny, {
1524
+ searchRelevance: string;
1525
+ humanVoice: string;
1526
+ credibility: string;
1527
+ positioningClarity: string;
1528
+ evidenceCoverage: string;
1529
+ }, {
1530
+ searchRelevance?: string | undefined;
1531
+ humanVoice?: string | undefined;
1532
+ credibility?: string | undefined;
1533
+ positioningClarity?: string | undefined;
1534
+ evidenceCoverage?: string | undefined;
1535
+ }>>;
1536
+ executiveSummary: z.ZodString;
1537
+ profileDirection: z.ZodObject<{
1538
+ positioning: z.ZodString;
1539
+ primaryRole: z.ZodString;
1540
+ alternativeRoles: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
1541
+ openToWorkTitles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
1542
+ rationale: z.ZodString;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ positioning: string;
1545
+ primaryRole: string;
1546
+ alternativeRoles: string[];
1547
+ rationale: string;
1548
+ openToWorkTitles?: string[] | undefined;
1549
+ }, {
1550
+ positioning: string;
1551
+ primaryRole: string;
1552
+ rationale: string;
1553
+ alternativeRoles?: unknown;
1554
+ openToWorkTitles?: unknown;
1555
+ }>;
1556
+ critique: z.ZodDefault<z.ZodArray<z.ZodObject<{
1557
+ section: z.ZodString;
1558
+ assessment: z.ZodString;
1559
+ strengths: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
1560
+ issues: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
1561
+ severity: z.ZodEffects<z.ZodCatch<z.ZodEnum<["high", "medium", "low"]>>, "high" | "medium" | "low", unknown>;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ issues: string[];
1564
+ section: string;
1565
+ assessment: string;
1566
+ strengths: string[];
1567
+ severity: "high" | "medium" | "low";
1568
+ }, {
1569
+ section: string;
1570
+ assessment: string;
1571
+ issues?: unknown;
1572
+ strengths?: unknown;
1573
+ severity?: unknown;
1574
+ }>, "many">>;
1575
+ triageBottlenecks: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
1576
+ primaryGaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
1577
+ id: z.ZodString;
1578
+ label: z.ZodString;
1579
+ targetSection: z.ZodEnum<["headline", "about", "experience", "skills"]>;
1580
+ targetExperienceId: z.ZodOptional<z.ZodString>;
1581
+ targetBulletIndex: z.ZodOptional<z.ZodNumber>;
1582
+ targetBlockId: z.ZodOptional<z.ZodString>;
1583
+ suggestedUnlock: z.ZodOptional<z.ZodString>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ id: string;
1586
+ label: string;
1587
+ targetSection: "headline" | "skills" | "about" | "experience";
1588
+ targetExperienceId?: string | undefined;
1589
+ targetBulletIndex?: number | undefined;
1590
+ targetBlockId?: string | undefined;
1591
+ suggestedUnlock?: string | undefined;
1592
+ }, {
1593
+ id: string;
1594
+ label: string;
1595
+ targetSection: "headline" | "skills" | "about" | "experience";
1596
+ targetExperienceId?: string | undefined;
1597
+ targetBulletIndex?: number | undefined;
1598
+ targetBlockId?: string | undefined;
1599
+ suggestedUnlock?: string | undefined;
1600
+ }>, "many">>;
1601
+ inboundReadiness: z.ZodOptional<z.ZodObject<{
1602
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1603
+ primaryGapId: z.ZodOptional<z.ZodString>;
1604
+ }, "strip", z.ZodTypeAny, {
1605
+ score: number;
1606
+ primaryGapId?: string | undefined;
1607
+ }, {
1608
+ score: number;
1609
+ primaryGapId?: string | undefined;
1610
+ }>>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ targetMarket: string;
1613
+ language: string;
1614
+ overallScore: number;
1615
+ scores: {
1616
+ searchRelevance: number;
1617
+ humanVoice: number;
1618
+ credibility: number;
1619
+ positioningClarity: number;
1620
+ evidenceCoverage: number;
1621
+ };
1622
+ executiveSummary: string;
1623
+ profileDirection: {
1624
+ positioning: string;
1625
+ primaryRole: string;
1626
+ alternativeRoles: string[];
1627
+ rationale: string;
1628
+ openToWorkTitles?: string[] | undefined;
1629
+ };
1630
+ critique: {
1631
+ issues: string[];
1632
+ section: string;
1633
+ assessment: string;
1634
+ strengths: string[];
1635
+ severity: "high" | "medium" | "low";
1636
+ }[];
1637
+ triageBottlenecks: string[];
1638
+ scoreExplanations?: {
1639
+ searchRelevance: string;
1640
+ humanVoice: string;
1641
+ credibility: string;
1642
+ positioningClarity: string;
1643
+ evidenceCoverage: string;
1644
+ } | undefined;
1645
+ primaryGaps?: {
1646
+ id: string;
1647
+ label: string;
1648
+ targetSection: "headline" | "skills" | "about" | "experience";
1649
+ targetExperienceId?: string | undefined;
1650
+ targetBulletIndex?: number | undefined;
1651
+ targetBlockId?: string | undefined;
1652
+ suggestedUnlock?: string | undefined;
1653
+ }[] | undefined;
1654
+ inboundReadiness?: {
1655
+ score: number;
1656
+ primaryGapId?: string | undefined;
1657
+ } | undefined;
1658
+ }, {
1659
+ overallScore: number;
1660
+ scores: {
1661
+ searchRelevance: number;
1662
+ humanVoice: number;
1663
+ credibility: number;
1664
+ positioningClarity: number;
1665
+ evidenceCoverage: number;
1666
+ };
1667
+ executiveSummary: string;
1668
+ profileDirection: {
1669
+ positioning: string;
1670
+ primaryRole: string;
1671
+ rationale: string;
1672
+ alternativeRoles?: unknown;
1673
+ openToWorkTitles?: unknown;
1674
+ };
1675
+ targetMarket?: string | undefined;
1676
+ language?: string | undefined;
1677
+ scoreExplanations?: {
1678
+ searchRelevance?: string | undefined;
1679
+ humanVoice?: string | undefined;
1680
+ credibility?: string | undefined;
1681
+ positioningClarity?: string | undefined;
1682
+ evidenceCoverage?: string | undefined;
1683
+ } | undefined;
1684
+ critique?: {
1685
+ section: string;
1686
+ assessment: string;
1687
+ issues?: unknown;
1688
+ strengths?: unknown;
1689
+ severity?: unknown;
1690
+ }[] | undefined;
1691
+ triageBottlenecks?: unknown;
1692
+ primaryGaps?: {
1693
+ id: string;
1694
+ label: string;
1695
+ targetSection: "headline" | "skills" | "about" | "experience";
1696
+ targetExperienceId?: string | undefined;
1697
+ targetBulletIndex?: number | undefined;
1698
+ targetBlockId?: string | undefined;
1699
+ suggestedUnlock?: string | undefined;
1700
+ }[] | undefined;
1701
+ inboundReadiness?: {
1702
+ score: number;
1703
+ primaryGapId?: string | undefined;
1704
+ } | undefined;
1705
+ }>;
1706
+ }, "strip", z.ZodTypeAny, {
1707
+ profile: {
1708
+ location: string;
1709
+ publicId: string;
1710
+ firstName: string;
1711
+ lastName: string;
1712
+ headline: string;
1713
+ summary: string;
1714
+ experiences: {
1715
+ title: string;
1716
+ companyName: string;
1717
+ current: boolean;
1718
+ employmentType?: string | undefined;
1719
+ workplaceType?: "remote" | "hybrid" | "onsite" | undefined;
1720
+ location?: string | undefined;
1721
+ startDate?: {
1722
+ year: number;
1723
+ month?: number | undefined;
1724
+ } | undefined;
1725
+ endDate?: {
1726
+ year: number;
1727
+ month?: number | undefined;
1728
+ } | undefined;
1729
+ dateRangeText?: string | undefined;
1730
+ durationText?: string | undefined;
1731
+ description?: string | undefined;
1732
+ }[];
1733
+ education: {
1734
+ schoolName: string;
1735
+ description?: string | undefined;
1736
+ degreeName?: string | undefined;
1737
+ fieldOfStudy?: string | undefined;
1738
+ grade?: string | undefined;
1739
+ dateRange?: {
1740
+ start?: {
1741
+ year: number;
1742
+ month?: number | undefined;
1743
+ } | undefined;
1744
+ end?: {
1745
+ year: number;
1746
+ month?: number | undefined;
1747
+ } | undefined;
1748
+ } | undefined;
1749
+ }[];
1750
+ skills: ({
1751
+ name: string;
1752
+ } | {
1753
+ name: string;
1754
+ endorsementCount?: number | undefined;
1755
+ })[];
1756
+ certifications: ({
1757
+ name: string;
1758
+ } | {
1759
+ name: string;
1760
+ url?: string | undefined;
1761
+ issuer?: string | undefined;
1762
+ credentialId?: string | undefined;
1763
+ issuedDate?: {
1764
+ year: number;
1765
+ month?: number | undefined;
1766
+ } | undefined;
1767
+ expirationDate?: {
1768
+ year: number;
1769
+ month?: number | undefined;
1770
+ } | undefined;
1771
+ })[];
1772
+ projects: {
1773
+ name: string;
1774
+ url?: string | undefined;
1775
+ description?: string | undefined;
1776
+ dateRange?: {
1777
+ start?: {
1778
+ year: number;
1779
+ month?: number | undefined;
1780
+ } | undefined;
1781
+ end?: {
1782
+ year: number;
1783
+ month?: number | undefined;
1784
+ } | undefined;
1785
+ } | undefined;
1786
+ }[];
1787
+ languages: ({
1788
+ name: string;
1789
+ } | {
1790
+ name: string;
1791
+ proficiency?: string | undefined;
1792
+ })[];
1793
+ honors: {
1794
+ title: string;
1795
+ date?: {
1796
+ year: number;
1797
+ month?: number | undefined;
1798
+ } | undefined;
1799
+ description?: string | undefined;
1800
+ issuer?: string | undefined;
1801
+ }[];
1802
+ };
1803
+ review: {
1804
+ targetMarket: string;
1805
+ language: string;
1806
+ overallScore: number;
1807
+ scores: {
1808
+ searchRelevance: number;
1809
+ humanVoice: number;
1810
+ credibility: number;
1811
+ positioningClarity: number;
1812
+ evidenceCoverage: number;
1813
+ };
1814
+ executiveSummary: string;
1815
+ profileDirection: {
1816
+ positioning: string;
1817
+ primaryRole: string;
1818
+ alternativeRoles: string[];
1819
+ rationale: string;
1820
+ openToWorkTitles?: string[] | undefined;
1821
+ };
1822
+ critique: {
1823
+ issues: string[];
1824
+ section: string;
1825
+ assessment: string;
1826
+ strengths: string[];
1827
+ severity: "high" | "medium" | "low";
1828
+ }[];
1829
+ triageBottlenecks: string[];
1830
+ scoreExplanations?: {
1831
+ searchRelevance: string;
1832
+ humanVoice: string;
1833
+ credibility: string;
1834
+ positioningClarity: string;
1835
+ evidenceCoverage: string;
1836
+ } | undefined;
1837
+ primaryGaps?: {
1838
+ id: string;
1839
+ label: string;
1840
+ targetSection: "headline" | "skills" | "about" | "experience";
1841
+ targetExperienceId?: string | undefined;
1842
+ targetBulletIndex?: number | undefined;
1843
+ targetBlockId?: string | undefined;
1844
+ suggestedUnlock?: string | undefined;
1845
+ }[] | undefined;
1846
+ inboundReadiness?: {
1847
+ score: number;
1848
+ primaryGapId?: string | undefined;
1849
+ } | undefined;
1850
+ };
1851
+ }, {
1852
+ profile: {
1853
+ location?: string | undefined;
1854
+ publicId?: string | undefined;
1855
+ firstName?: string | undefined;
1856
+ lastName?: string | undefined;
1857
+ headline?: string | undefined;
1858
+ summary?: string | undefined;
1859
+ experiences?: {
1860
+ title?: string | undefined;
1861
+ companyName?: string | undefined;
1862
+ employmentType?: string | undefined;
1863
+ workplaceType?: unknown;
1864
+ location?: string | undefined;
1865
+ startDate?: {
1866
+ year: number;
1867
+ month?: number | undefined;
1868
+ } | undefined;
1869
+ endDate?: {
1870
+ year: number;
1871
+ month?: number | undefined;
1872
+ } | undefined;
1873
+ current?: unknown;
1874
+ dateRangeText?: string | undefined;
1875
+ durationText?: string | undefined;
1876
+ description?: string | undefined;
1877
+ }[] | undefined;
1878
+ education?: {
1879
+ schoolName: string;
1880
+ description?: string | undefined;
1881
+ degreeName?: string | undefined;
1882
+ fieldOfStudy?: string | undefined;
1883
+ grade?: string | undefined;
1884
+ dateRange?: {
1885
+ start?: {
1886
+ year: number;
1887
+ month?: number | undefined;
1888
+ } | undefined;
1889
+ end?: {
1890
+ year: number;
1891
+ month?: number | undefined;
1892
+ } | undefined;
1893
+ } | undefined;
1894
+ }[] | undefined;
1895
+ skills?: (string | {
1896
+ name: string;
1897
+ endorsementCount?: number | undefined;
1898
+ })[] | undefined;
1899
+ certifications?: (string | {
1900
+ name: string;
1901
+ url?: string | undefined;
1902
+ issuer?: string | undefined;
1903
+ credentialId?: string | undefined;
1904
+ issuedDate?: {
1905
+ year: number;
1906
+ month?: number | undefined;
1907
+ } | undefined;
1908
+ expirationDate?: {
1909
+ year: number;
1910
+ month?: number | undefined;
1911
+ } | undefined;
1912
+ })[] | undefined;
1913
+ projects?: {
1914
+ name: string;
1915
+ url?: string | undefined;
1916
+ description?: string | undefined;
1917
+ dateRange?: {
1918
+ start?: {
1919
+ year: number;
1920
+ month?: number | undefined;
1921
+ } | undefined;
1922
+ end?: {
1923
+ year: number;
1924
+ month?: number | undefined;
1925
+ } | undefined;
1926
+ } | undefined;
1927
+ }[] | undefined;
1928
+ languages?: (string | {
1929
+ name: string;
1930
+ proficiency?: string | undefined;
1931
+ })[] | undefined;
1932
+ honors?: {
1933
+ title: string;
1934
+ date?: {
1935
+ year: number;
1936
+ month?: number | undefined;
1937
+ } | undefined;
1938
+ description?: string | undefined;
1939
+ issuer?: string | undefined;
1940
+ }[] | undefined;
1941
+ };
1942
+ review: {
1943
+ overallScore: number;
1944
+ scores: {
1945
+ searchRelevance: number;
1946
+ humanVoice: number;
1947
+ credibility: number;
1948
+ positioningClarity: number;
1949
+ evidenceCoverage: number;
1950
+ };
1951
+ executiveSummary: string;
1952
+ profileDirection: {
1953
+ positioning: string;
1954
+ primaryRole: string;
1955
+ rationale: string;
1956
+ alternativeRoles?: unknown;
1957
+ openToWorkTitles?: unknown;
1958
+ };
1959
+ targetMarket?: string | undefined;
1960
+ language?: string | undefined;
1961
+ scoreExplanations?: {
1962
+ searchRelevance?: string | undefined;
1963
+ humanVoice?: string | undefined;
1964
+ credibility?: string | undefined;
1965
+ positioningClarity?: string | undefined;
1966
+ evidenceCoverage?: string | undefined;
1967
+ } | undefined;
1968
+ critique?: {
1969
+ section: string;
1970
+ assessment: string;
1971
+ issues?: unknown;
1972
+ strengths?: unknown;
1973
+ severity?: unknown;
1974
+ }[] | undefined;
1975
+ triageBottlenecks?: unknown;
1976
+ primaryGaps?: {
1977
+ id: string;
1978
+ label: string;
1979
+ targetSection: "headline" | "skills" | "about" | "experience";
1980
+ targetExperienceId?: string | undefined;
1981
+ targetBulletIndex?: number | undefined;
1982
+ targetBlockId?: string | undefined;
1983
+ suggestedUnlock?: string | undefined;
1984
+ }[] | undefined;
1985
+ inboundReadiness?: {
1986
+ score: number;
1987
+ primaryGapId?: string | undefined;
1988
+ } | undefined;
1989
+ };
1990
+ }>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ jobId: string;
1993
+ payload: {
1994
+ profile: {
1995
+ location: string;
1996
+ publicId: string;
1997
+ firstName: string;
1998
+ lastName: string;
1999
+ headline: string;
2000
+ summary: string;
2001
+ experiences: {
2002
+ title: string;
2003
+ companyName: string;
2004
+ current: boolean;
2005
+ employmentType?: string | undefined;
2006
+ workplaceType?: "remote" | "hybrid" | "onsite" | undefined;
2007
+ location?: string | undefined;
2008
+ startDate?: {
2009
+ year: number;
2010
+ month?: number | undefined;
2011
+ } | undefined;
2012
+ endDate?: {
2013
+ year: number;
2014
+ month?: number | undefined;
2015
+ } | undefined;
2016
+ dateRangeText?: string | undefined;
2017
+ durationText?: string | undefined;
2018
+ description?: string | undefined;
2019
+ }[];
2020
+ education: {
2021
+ schoolName: string;
2022
+ description?: string | undefined;
2023
+ degreeName?: string | undefined;
2024
+ fieldOfStudy?: string | undefined;
2025
+ grade?: string | undefined;
2026
+ dateRange?: {
2027
+ start?: {
2028
+ year: number;
2029
+ month?: number | undefined;
2030
+ } | undefined;
2031
+ end?: {
2032
+ year: number;
2033
+ month?: number | undefined;
2034
+ } | undefined;
2035
+ } | undefined;
2036
+ }[];
2037
+ skills: ({
2038
+ name: string;
2039
+ } | {
2040
+ name: string;
2041
+ endorsementCount?: number | undefined;
2042
+ })[];
2043
+ certifications: ({
2044
+ name: string;
2045
+ } | {
2046
+ name: string;
2047
+ url?: string | undefined;
2048
+ issuer?: string | undefined;
2049
+ credentialId?: string | undefined;
2050
+ issuedDate?: {
2051
+ year: number;
2052
+ month?: number | undefined;
2053
+ } | undefined;
2054
+ expirationDate?: {
2055
+ year: number;
2056
+ month?: number | undefined;
2057
+ } | undefined;
2058
+ })[];
2059
+ projects: {
2060
+ name: string;
2061
+ url?: string | undefined;
2062
+ description?: string | undefined;
2063
+ dateRange?: {
2064
+ start?: {
2065
+ year: number;
2066
+ month?: number | undefined;
2067
+ } | undefined;
2068
+ end?: {
2069
+ year: number;
2070
+ month?: number | undefined;
2071
+ } | undefined;
2072
+ } | undefined;
2073
+ }[];
2074
+ languages: ({
2075
+ name: string;
2076
+ } | {
2077
+ name: string;
2078
+ proficiency?: string | undefined;
2079
+ })[];
2080
+ honors: {
2081
+ title: string;
2082
+ date?: {
2083
+ year: number;
2084
+ month?: number | undefined;
2085
+ } | undefined;
2086
+ description?: string | undefined;
2087
+ issuer?: string | undefined;
2088
+ }[];
2089
+ };
2090
+ review: {
2091
+ targetMarket: string;
2092
+ language: string;
2093
+ overallScore: number;
2094
+ scores: {
2095
+ searchRelevance: number;
2096
+ humanVoice: number;
2097
+ credibility: number;
2098
+ positioningClarity: number;
2099
+ evidenceCoverage: number;
2100
+ };
2101
+ executiveSummary: string;
2102
+ profileDirection: {
2103
+ positioning: string;
2104
+ primaryRole: string;
2105
+ alternativeRoles: string[];
2106
+ rationale: string;
2107
+ openToWorkTitles?: string[] | undefined;
2108
+ };
2109
+ critique: {
2110
+ issues: string[];
2111
+ section: string;
2112
+ assessment: string;
2113
+ strengths: string[];
2114
+ severity: "high" | "medium" | "low";
2115
+ }[];
2116
+ triageBottlenecks: string[];
2117
+ scoreExplanations?: {
2118
+ searchRelevance: string;
2119
+ humanVoice: string;
2120
+ credibility: string;
2121
+ positioningClarity: string;
2122
+ evidenceCoverage: string;
2123
+ } | undefined;
2124
+ primaryGaps?: {
2125
+ id: string;
2126
+ label: string;
2127
+ targetSection: "headline" | "skills" | "about" | "experience";
2128
+ targetExperienceId?: string | undefined;
2129
+ targetBulletIndex?: number | undefined;
2130
+ targetBlockId?: string | undefined;
2131
+ suggestedUnlock?: string | undefined;
2132
+ }[] | undefined;
2133
+ inboundReadiness?: {
2134
+ score: number;
2135
+ primaryGapId?: string | undefined;
2136
+ } | undefined;
2137
+ };
2138
+ };
2139
+ agent: {
2140
+ agentId: string;
2141
+ sessionId: string;
2142
+ clientName?: string | undefined;
2143
+ clientVersion?: string | undefined;
2144
+ };
2145
+ submissionId?: string | undefined;
2146
+ }, {
2147
+ jobId: string;
2148
+ payload: {
2149
+ profile: {
2150
+ location?: string | undefined;
2151
+ publicId?: string | undefined;
2152
+ firstName?: string | undefined;
2153
+ lastName?: string | undefined;
2154
+ headline?: string | undefined;
2155
+ summary?: string | undefined;
2156
+ experiences?: {
2157
+ title?: string | undefined;
2158
+ companyName?: string | undefined;
2159
+ employmentType?: string | undefined;
2160
+ workplaceType?: unknown;
2161
+ location?: string | undefined;
2162
+ startDate?: {
2163
+ year: number;
2164
+ month?: number | undefined;
2165
+ } | undefined;
2166
+ endDate?: {
2167
+ year: number;
2168
+ month?: number | undefined;
2169
+ } | undefined;
2170
+ current?: unknown;
2171
+ dateRangeText?: string | undefined;
2172
+ durationText?: string | undefined;
2173
+ description?: string | undefined;
2174
+ }[] | undefined;
2175
+ education?: {
2176
+ schoolName: string;
2177
+ description?: string | undefined;
2178
+ degreeName?: string | undefined;
2179
+ fieldOfStudy?: string | undefined;
2180
+ grade?: string | undefined;
2181
+ dateRange?: {
2182
+ start?: {
2183
+ year: number;
2184
+ month?: number | undefined;
2185
+ } | undefined;
2186
+ end?: {
2187
+ year: number;
2188
+ month?: number | undefined;
2189
+ } | undefined;
2190
+ } | undefined;
2191
+ }[] | undefined;
2192
+ skills?: (string | {
2193
+ name: string;
2194
+ endorsementCount?: number | undefined;
2195
+ })[] | undefined;
2196
+ certifications?: (string | {
2197
+ name: string;
2198
+ url?: string | undefined;
2199
+ issuer?: string | undefined;
2200
+ credentialId?: string | undefined;
2201
+ issuedDate?: {
2202
+ year: number;
2203
+ month?: number | undefined;
2204
+ } | undefined;
2205
+ expirationDate?: {
2206
+ year: number;
2207
+ month?: number | undefined;
2208
+ } | undefined;
2209
+ })[] | undefined;
2210
+ projects?: {
2211
+ name: string;
2212
+ url?: string | undefined;
2213
+ description?: string | undefined;
2214
+ dateRange?: {
2215
+ start?: {
2216
+ year: number;
2217
+ month?: number | undefined;
2218
+ } | undefined;
2219
+ end?: {
2220
+ year: number;
2221
+ month?: number | undefined;
2222
+ } | undefined;
2223
+ } | undefined;
2224
+ }[] | undefined;
2225
+ languages?: (string | {
2226
+ name: string;
2227
+ proficiency?: string | undefined;
2228
+ })[] | undefined;
2229
+ honors?: {
2230
+ title: string;
2231
+ date?: {
2232
+ year: number;
2233
+ month?: number | undefined;
2234
+ } | undefined;
2235
+ description?: string | undefined;
2236
+ issuer?: string | undefined;
2237
+ }[] | undefined;
2238
+ };
2239
+ review: {
2240
+ overallScore: number;
2241
+ scores: {
2242
+ searchRelevance: number;
2243
+ humanVoice: number;
2244
+ credibility: number;
2245
+ positioningClarity: number;
2246
+ evidenceCoverage: number;
2247
+ };
2248
+ executiveSummary: string;
2249
+ profileDirection: {
2250
+ positioning: string;
2251
+ primaryRole: string;
2252
+ rationale: string;
2253
+ alternativeRoles?: unknown;
2254
+ openToWorkTitles?: unknown;
2255
+ };
2256
+ targetMarket?: string | undefined;
2257
+ language?: string | undefined;
2258
+ scoreExplanations?: {
2259
+ searchRelevance?: string | undefined;
2260
+ humanVoice?: string | undefined;
2261
+ credibility?: string | undefined;
2262
+ positioningClarity?: string | undefined;
2263
+ evidenceCoverage?: string | undefined;
2264
+ } | undefined;
2265
+ critique?: {
2266
+ section: string;
2267
+ assessment: string;
2268
+ issues?: unknown;
2269
+ strengths?: unknown;
2270
+ severity?: unknown;
2271
+ }[] | undefined;
2272
+ triageBottlenecks?: unknown;
2273
+ primaryGaps?: {
2274
+ id: string;
2275
+ label: string;
2276
+ targetSection: "headline" | "skills" | "about" | "experience";
2277
+ targetExperienceId?: string | undefined;
2278
+ targetBulletIndex?: number | undefined;
2279
+ targetBlockId?: string | undefined;
2280
+ suggestedUnlock?: string | undefined;
2281
+ }[] | undefined;
2282
+ inboundReadiness?: {
2283
+ score: number;
2284
+ primaryGapId?: string | undefined;
2285
+ } | undefined;
2286
+ };
2287
+ };
2288
+ agent: {
2289
+ agentId: string;
2290
+ sessionId: string;
2291
+ clientName?: string | undefined;
2292
+ clientVersion?: string | undefined;
2293
+ };
2294
+ submissionId?: string | undefined;
2295
+ }>;
2296
+ type SubmitDiagnosticInput = z.infer<typeof submitDiagnosticInputSchema>;
2297
+ declare function handleSubmitDiagnostic(input: SubmitDiagnosticInput): Promise<{
2298
+ content: {
2299
+ type: "text";
2300
+ text: string;
2301
+ }[];
2302
+ structuredData: {
2303
+ success: boolean;
2304
+ jobId: string;
2305
+ resultId: string;
2306
+ score: number;
2307
+ };
2308
+ isError?: undefined;
2309
+ } | {
2310
+ isError: boolean;
2311
+ content: {
2312
+ type: "text";
2313
+ text: string;
2314
+ }[];
2315
+ structuredData?: undefined;
2316
+ }>;
2317
+
2318
+ declare const submitInterviewInputSchema: z.ZodObject<{
2319
+ jobId: z.ZodString;
2320
+ agent: z.ZodObject<{
2321
+ agentId: z.ZodString;
2322
+ sessionId: z.ZodString;
2323
+ clientName: z.ZodOptional<z.ZodString>;
2324
+ clientVersion: z.ZodOptional<z.ZodString>;
2325
+ }, "strip", z.ZodTypeAny, {
2326
+ agentId: string;
2327
+ sessionId: string;
2328
+ clientName?: string | undefined;
2329
+ clientVersion?: string | undefined;
2330
+ }, {
2331
+ agentId: string;
2332
+ sessionId: string;
2333
+ clientName?: string | undefined;
2334
+ clientVersion?: string | undefined;
2335
+ }>;
2336
+ submissionId: z.ZodOptional<z.ZodString>;
2337
+ payload: z.ZodObject<{
2338
+ interviewPlan: z.ZodObject<{
2339
+ questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2340
+ id: z.ZodString;
2341
+ category: z.ZodEffects<z.ZodCatch<z.ZodEnum<["direction", "responsibility", "technical-depth", "impact", "scale", "leadership", "preference", "market", "credibility", "differentiation"]>>, "credibility" | "direction" | "responsibility" | "technical-depth" | "impact" | "scale" | "leadership" | "preference" | "market" | "differentiation", unknown>;
2342
+ question: z.ZodString;
2343
+ reason: z.ZodString;
2344
+ placeholderExample: z.ZodOptional<z.ZodString>;
2345
+ relatedExperience: z.ZodOptional<z.ZodString>;
2346
+ answerType: z.ZodEffects<z.ZodCatch<z.ZodEnum<["short-text", "long-text", "single-choice", "yes-no"]>>, "short-text" | "long-text" | "single-choice" | "yes-no", unknown>;
2347
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2348
+ required: z.ZodDefault<z.ZodBoolean>;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ id: string;
2351
+ category: "credibility" | "direction" | "responsibility" | "technical-depth" | "impact" | "scale" | "leadership" | "preference" | "market" | "differentiation";
2352
+ question: string;
2353
+ reason: string;
2354
+ answerType: "short-text" | "long-text" | "single-choice" | "yes-no";
2355
+ required: boolean;
2356
+ options?: string[] | undefined;
2357
+ placeholderExample?: string | undefined;
2358
+ relatedExperience?: string | undefined;
2359
+ }, {
2360
+ id: string;
2361
+ question: string;
2362
+ reason: string;
2363
+ options?: string[] | undefined;
2364
+ category?: unknown;
2365
+ placeholderExample?: string | undefined;
2366
+ relatedExperience?: string | undefined;
2367
+ answerType?: unknown;
2368
+ required?: boolean | undefined;
2369
+ }>, "many">>;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ questions: {
2372
+ id: string;
2373
+ category: "credibility" | "direction" | "responsibility" | "technical-depth" | "impact" | "scale" | "leadership" | "preference" | "market" | "differentiation";
2374
+ question: string;
2375
+ reason: string;
2376
+ answerType: "short-text" | "long-text" | "single-choice" | "yes-no";
2377
+ required: boolean;
2378
+ options?: string[] | undefined;
2379
+ placeholderExample?: string | undefined;
2380
+ relatedExperience?: string | undefined;
2381
+ }[];
2382
+ }, {
2383
+ questions?: {
2384
+ id: string;
2385
+ question: string;
2386
+ reason: string;
2387
+ options?: string[] | undefined;
2388
+ category?: unknown;
2389
+ placeholderExample?: string | undefined;
2390
+ relatedExperience?: string | undefined;
2391
+ answerType?: unknown;
2392
+ required?: boolean | undefined;
2393
+ }[] | undefined;
2394
+ }>;
2395
+ }, "strip", z.ZodTypeAny, {
2396
+ interviewPlan: {
2397
+ questions: {
2398
+ id: string;
2399
+ category: "credibility" | "direction" | "responsibility" | "technical-depth" | "impact" | "scale" | "leadership" | "preference" | "market" | "differentiation";
2400
+ question: string;
2401
+ reason: string;
2402
+ answerType: "short-text" | "long-text" | "single-choice" | "yes-no";
2403
+ required: boolean;
2404
+ options?: string[] | undefined;
2405
+ placeholderExample?: string | undefined;
2406
+ relatedExperience?: string | undefined;
2407
+ }[];
2408
+ };
2409
+ }, {
2410
+ interviewPlan: {
2411
+ questions?: {
2412
+ id: string;
2413
+ question: string;
2414
+ reason: string;
2415
+ options?: string[] | undefined;
2416
+ category?: unknown;
2417
+ placeholderExample?: string | undefined;
2418
+ relatedExperience?: string | undefined;
2419
+ answerType?: unknown;
2420
+ required?: boolean | undefined;
2421
+ }[] | undefined;
2422
+ };
2423
+ }>;
2424
+ }, "strip", z.ZodTypeAny, {
2425
+ jobId: string;
2426
+ payload: {
2427
+ interviewPlan: {
2428
+ questions: {
2429
+ id: string;
2430
+ category: "credibility" | "direction" | "responsibility" | "technical-depth" | "impact" | "scale" | "leadership" | "preference" | "market" | "differentiation";
2431
+ question: string;
2432
+ reason: string;
2433
+ answerType: "short-text" | "long-text" | "single-choice" | "yes-no";
2434
+ required: boolean;
2435
+ options?: string[] | undefined;
2436
+ placeholderExample?: string | undefined;
2437
+ relatedExperience?: string | undefined;
2438
+ }[];
2439
+ };
2440
+ };
2441
+ agent: {
2442
+ agentId: string;
2443
+ sessionId: string;
2444
+ clientName?: string | undefined;
2445
+ clientVersion?: string | undefined;
2446
+ };
2447
+ submissionId?: string | undefined;
2448
+ }, {
2449
+ jobId: string;
2450
+ payload: {
2451
+ interviewPlan: {
2452
+ questions?: {
2453
+ id: string;
2454
+ question: string;
2455
+ reason: string;
2456
+ options?: string[] | undefined;
2457
+ category?: unknown;
2458
+ placeholderExample?: string | undefined;
2459
+ relatedExperience?: string | undefined;
2460
+ answerType?: unknown;
2461
+ required?: boolean | undefined;
2462
+ }[] | undefined;
2463
+ };
2464
+ };
2465
+ agent: {
2466
+ agentId: string;
2467
+ sessionId: string;
2468
+ clientName?: string | undefined;
2469
+ clientVersion?: string | undefined;
2470
+ };
2471
+ submissionId?: string | undefined;
2472
+ }>;
2473
+ type SubmitInterviewInput = z.infer<typeof submitInterviewInputSchema>;
2474
+ declare function handleSubmitInterview(input: SubmitInterviewInput): Promise<{
2475
+ content: {
2476
+ type: "text";
2477
+ text: string;
2478
+ }[];
2479
+ structuredData: {
2480
+ success: boolean;
2481
+ jobId: string;
2482
+ resultId: string;
2483
+ questionCount: number;
2484
+ };
2485
+ isError?: undefined;
2486
+ } | {
2487
+ isError: boolean;
2488
+ content: {
2489
+ type: "text";
2490
+ text: string;
2491
+ }[];
2492
+ structuredData?: undefined;
2493
+ }>;
2494
+
2495
+ declare const submitRewriteInputSchema: z.ZodObject<{
2496
+ jobId: z.ZodString;
2497
+ agent: z.ZodObject<{
2498
+ agentId: z.ZodString;
2499
+ sessionId: z.ZodString;
2500
+ clientName: z.ZodOptional<z.ZodString>;
2501
+ clientVersion: z.ZodOptional<z.ZodString>;
2502
+ }, "strip", z.ZodTypeAny, {
2503
+ agentId: string;
2504
+ sessionId: string;
2505
+ clientName?: string | undefined;
2506
+ clientVersion?: string | undefined;
2507
+ }, {
2508
+ agentId: string;
2509
+ sessionId: string;
2510
+ clientName?: string | undefined;
2511
+ clientVersion?: string | undefined;
2512
+ }>;
2513
+ submissionId: z.ZodOptional<z.ZodString>;
2514
+ payload: z.ZodObject<{
2515
+ profileAnalysis: z.ZodObject<{
2516
+ targetMarket: z.ZodDefault<z.ZodString>;
2517
+ language: z.ZodDefault<z.ZodString>;
2518
+ initialScore: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
2519
+ overallScore: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2520
+ scores: z.ZodObject<{
2521
+ searchRelevance: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2522
+ humanVoice: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2523
+ credibility: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2524
+ positioningClarity: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2525
+ evidenceCoverage: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2526
+ }, "strip", z.ZodTypeAny, {
2527
+ searchRelevance: number;
2528
+ humanVoice: number;
2529
+ credibility: number;
2530
+ positioningClarity: number;
2531
+ evidenceCoverage: number;
2532
+ }, {
2533
+ searchRelevance: number;
2534
+ humanVoice: number;
2535
+ credibility: number;
2536
+ positioningClarity: number;
2537
+ evidenceCoverage: number;
2538
+ }>;
2539
+ scoreExplanations: z.ZodOptional<z.ZodObject<{
2540
+ searchRelevance: z.ZodDefault<z.ZodString>;
2541
+ humanVoice: z.ZodDefault<z.ZodString>;
2542
+ credibility: z.ZodDefault<z.ZodString>;
2543
+ positioningClarity: z.ZodDefault<z.ZodString>;
2544
+ evidenceCoverage: z.ZodDefault<z.ZodString>;
2545
+ }, "strip", z.ZodTypeAny, {
2546
+ searchRelevance: string;
2547
+ humanVoice: string;
2548
+ credibility: string;
2549
+ positioningClarity: string;
2550
+ evidenceCoverage: string;
2551
+ }, {
2552
+ searchRelevance?: string | undefined;
2553
+ humanVoice?: string | undefined;
2554
+ credibility?: string | undefined;
2555
+ positioningClarity?: string | undefined;
2556
+ evidenceCoverage?: string | undefined;
2557
+ }>>;
2558
+ executiveSummary: z.ZodString;
2559
+ profileDirection: z.ZodObject<{
2560
+ positioning: z.ZodString;
2561
+ primaryRole: z.ZodString;
2562
+ alternativeRoles: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
2563
+ openToWorkTitles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
2564
+ rationale: z.ZodString;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ positioning: string;
2567
+ primaryRole: string;
2568
+ alternativeRoles: string[];
2569
+ rationale: string;
2570
+ openToWorkTitles?: string[] | undefined;
2571
+ }, {
2572
+ positioning: string;
2573
+ primaryRole: string;
2574
+ rationale: string;
2575
+ alternativeRoles?: unknown;
2576
+ openToWorkTitles?: unknown;
2577
+ }>;
2578
+ critique: z.ZodDefault<z.ZodArray<z.ZodObject<{
2579
+ section: z.ZodString;
2580
+ assessment: z.ZodString;
2581
+ strengths: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
2582
+ issues: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
2583
+ severity: z.ZodEffects<z.ZodCatch<z.ZodEnum<["high", "medium", "low"]>>, "high" | "medium" | "low", unknown>;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ issues: string[];
2586
+ section: string;
2587
+ assessment: string;
2588
+ strengths: string[];
2589
+ severity: "high" | "medium" | "low";
2590
+ }, {
2591
+ section: string;
2592
+ assessment: string;
2593
+ issues?: unknown;
2594
+ strengths?: unknown;
2595
+ severity?: unknown;
2596
+ }>, "many">>;
2597
+ triageBottlenecks: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
2598
+ primaryGaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
2599
+ id: z.ZodString;
2600
+ label: z.ZodString;
2601
+ targetSection: z.ZodEnum<["headline", "about", "experience", "skills"]>;
2602
+ targetExperienceId: z.ZodOptional<z.ZodString>;
2603
+ targetBulletIndex: z.ZodOptional<z.ZodNumber>;
2604
+ targetBlockId: z.ZodOptional<z.ZodString>;
2605
+ suggestedUnlock: z.ZodOptional<z.ZodString>;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ id: string;
2608
+ label: string;
2609
+ targetSection: "headline" | "skills" | "about" | "experience";
2610
+ targetExperienceId?: string | undefined;
2611
+ targetBulletIndex?: number | undefined;
2612
+ targetBlockId?: string | undefined;
2613
+ suggestedUnlock?: string | undefined;
2614
+ }, {
2615
+ id: string;
2616
+ label: string;
2617
+ targetSection: "headline" | "skills" | "about" | "experience";
2618
+ targetExperienceId?: string | undefined;
2619
+ targetBulletIndex?: number | undefined;
2620
+ targetBlockId?: string | undefined;
2621
+ suggestedUnlock?: string | undefined;
2622
+ }>, "many">>;
2623
+ inboundReadiness: z.ZodOptional<z.ZodObject<{
2624
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
2625
+ primaryGapId: z.ZodOptional<z.ZodString>;
2626
+ }, "strip", z.ZodTypeAny, {
2627
+ score: number;
2628
+ primaryGapId?: string | undefined;
2629
+ }, {
2630
+ score: number;
2631
+ primaryGapId?: string | undefined;
2632
+ }>>;
2633
+ rewritten: z.ZodObject<{
2634
+ headline: z.ZodString;
2635
+ summary: z.ZodString;
2636
+ experiences: z.ZodDefault<z.ZodArray<z.ZodObject<{
2637
+ id: z.ZodOptional<z.ZodString>;
2638
+ title: z.ZodString;
2639
+ companyName: z.ZodString;
2640
+ bullets: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
2641
+ }, "strip", z.ZodTypeAny, {
2642
+ title: string;
2643
+ companyName: string;
2644
+ bullets: string[];
2645
+ id?: string | undefined;
2646
+ }, {
2647
+ title: string;
2648
+ companyName: string;
2649
+ id?: string | undefined;
2650
+ bullets?: unknown;
2651
+ }>, "many">>;
2652
+ skills: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
2653
+ openToWorkTitles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
2654
+ cardConversionBadges: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
2655
+ cardConversionReasons: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
2656
+ }, "strip", z.ZodTypeAny, {
2657
+ headline: string;
2658
+ summary: string;
2659
+ experiences: {
2660
+ title: string;
2661
+ companyName: string;
2662
+ bullets: string[];
2663
+ id?: string | undefined;
2664
+ }[];
2665
+ skills: string[];
2666
+ openToWorkTitles?: string[] | undefined;
2667
+ cardConversionBadges?: string[] | undefined;
2668
+ cardConversionReasons?: string[] | undefined;
2669
+ }, {
2670
+ headline: string;
2671
+ summary: string;
2672
+ experiences?: {
2673
+ title: string;
2674
+ companyName: string;
2675
+ id?: string | undefined;
2676
+ bullets?: unknown;
2677
+ }[] | undefined;
2678
+ skills?: unknown;
2679
+ openToWorkTitles?: unknown;
2680
+ cardConversionBadges?: unknown;
2681
+ cardConversionReasons?: unknown;
2682
+ }>;
2683
+ }, "strip", z.ZodTypeAny, {
2684
+ targetMarket: string;
2685
+ language: string;
2686
+ overallScore: number;
2687
+ scores: {
2688
+ searchRelevance: number;
2689
+ humanVoice: number;
2690
+ credibility: number;
2691
+ positioningClarity: number;
2692
+ evidenceCoverage: number;
2693
+ };
2694
+ executiveSummary: string;
2695
+ profileDirection: {
2696
+ positioning: string;
2697
+ primaryRole: string;
2698
+ alternativeRoles: string[];
2699
+ rationale: string;
2700
+ openToWorkTitles?: string[] | undefined;
2701
+ };
2702
+ critique: {
2703
+ issues: string[];
2704
+ section: string;
2705
+ assessment: string;
2706
+ strengths: string[];
2707
+ severity: "high" | "medium" | "low";
2708
+ }[];
2709
+ triageBottlenecks: string[];
2710
+ rewritten: {
2711
+ headline: string;
2712
+ summary: string;
2713
+ experiences: {
2714
+ title: string;
2715
+ companyName: string;
2716
+ bullets: string[];
2717
+ id?: string | undefined;
2718
+ }[];
2719
+ skills: string[];
2720
+ openToWorkTitles?: string[] | undefined;
2721
+ cardConversionBadges?: string[] | undefined;
2722
+ cardConversionReasons?: string[] | undefined;
2723
+ };
2724
+ scoreExplanations?: {
2725
+ searchRelevance: string;
2726
+ humanVoice: string;
2727
+ credibility: string;
2728
+ positioningClarity: string;
2729
+ evidenceCoverage: string;
2730
+ } | undefined;
2731
+ primaryGaps?: {
2732
+ id: string;
2733
+ label: string;
2734
+ targetSection: "headline" | "skills" | "about" | "experience";
2735
+ targetExperienceId?: string | undefined;
2736
+ targetBulletIndex?: number | undefined;
2737
+ targetBlockId?: string | undefined;
2738
+ suggestedUnlock?: string | undefined;
2739
+ }[] | undefined;
2740
+ inboundReadiness?: {
2741
+ score: number;
2742
+ primaryGapId?: string | undefined;
2743
+ } | undefined;
2744
+ initialScore?: number | undefined;
2745
+ }, {
2746
+ overallScore: number;
2747
+ scores: {
2748
+ searchRelevance: number;
2749
+ humanVoice: number;
2750
+ credibility: number;
2751
+ positioningClarity: number;
2752
+ evidenceCoverage: number;
2753
+ };
2754
+ executiveSummary: string;
2755
+ profileDirection: {
2756
+ positioning: string;
2757
+ primaryRole: string;
2758
+ rationale: string;
2759
+ alternativeRoles?: unknown;
2760
+ openToWorkTitles?: unknown;
2761
+ };
2762
+ rewritten: {
2763
+ headline: string;
2764
+ summary: string;
2765
+ experiences?: {
2766
+ title: string;
2767
+ companyName: string;
2768
+ id?: string | undefined;
2769
+ bullets?: unknown;
2770
+ }[] | undefined;
2771
+ skills?: unknown;
2772
+ openToWorkTitles?: unknown;
2773
+ cardConversionBadges?: unknown;
2774
+ cardConversionReasons?: unknown;
2775
+ };
2776
+ targetMarket?: string | undefined;
2777
+ language?: string | undefined;
2778
+ scoreExplanations?: {
2779
+ searchRelevance?: string | undefined;
2780
+ humanVoice?: string | undefined;
2781
+ credibility?: string | undefined;
2782
+ positioningClarity?: string | undefined;
2783
+ evidenceCoverage?: string | undefined;
2784
+ } | undefined;
2785
+ critique?: {
2786
+ section: string;
2787
+ assessment: string;
2788
+ issues?: unknown;
2789
+ strengths?: unknown;
2790
+ severity?: unknown;
2791
+ }[] | undefined;
2792
+ triageBottlenecks?: unknown;
2793
+ primaryGaps?: {
2794
+ id: string;
2795
+ label: string;
2796
+ targetSection: "headline" | "skills" | "about" | "experience";
2797
+ targetExperienceId?: string | undefined;
2798
+ targetBulletIndex?: number | undefined;
2799
+ targetBlockId?: string | undefined;
2800
+ suggestedUnlock?: string | undefined;
2801
+ }[] | undefined;
2802
+ inboundReadiness?: {
2803
+ score: number;
2804
+ primaryGapId?: string | undefined;
2805
+ } | undefined;
2806
+ initialScore?: number | undefined;
2807
+ }>;
2808
+ }, "strip", z.ZodTypeAny, {
2809
+ profileAnalysis: {
2810
+ targetMarket: string;
2811
+ language: string;
2812
+ overallScore: number;
2813
+ scores: {
2814
+ searchRelevance: number;
2815
+ humanVoice: number;
2816
+ credibility: number;
2817
+ positioningClarity: number;
2818
+ evidenceCoverage: number;
2819
+ };
2820
+ executiveSummary: string;
2821
+ profileDirection: {
2822
+ positioning: string;
2823
+ primaryRole: string;
2824
+ alternativeRoles: string[];
2825
+ rationale: string;
2826
+ openToWorkTitles?: string[] | undefined;
2827
+ };
2828
+ critique: {
2829
+ issues: string[];
2830
+ section: string;
2831
+ assessment: string;
2832
+ strengths: string[];
2833
+ severity: "high" | "medium" | "low";
2834
+ }[];
2835
+ triageBottlenecks: string[];
2836
+ rewritten: {
2837
+ headline: string;
2838
+ summary: string;
2839
+ experiences: {
2840
+ title: string;
2841
+ companyName: string;
2842
+ bullets: string[];
2843
+ id?: string | undefined;
2844
+ }[];
2845
+ skills: string[];
2846
+ openToWorkTitles?: string[] | undefined;
2847
+ cardConversionBadges?: string[] | undefined;
2848
+ cardConversionReasons?: string[] | undefined;
2849
+ };
2850
+ scoreExplanations?: {
2851
+ searchRelevance: string;
2852
+ humanVoice: string;
2853
+ credibility: string;
2854
+ positioningClarity: string;
2855
+ evidenceCoverage: string;
2856
+ } | undefined;
2857
+ primaryGaps?: {
2858
+ id: string;
2859
+ label: string;
2860
+ targetSection: "headline" | "skills" | "about" | "experience";
2861
+ targetExperienceId?: string | undefined;
2862
+ targetBulletIndex?: number | undefined;
2863
+ targetBlockId?: string | undefined;
2864
+ suggestedUnlock?: string | undefined;
2865
+ }[] | undefined;
2866
+ inboundReadiness?: {
2867
+ score: number;
2868
+ primaryGapId?: string | undefined;
2869
+ } | undefined;
2870
+ initialScore?: number | undefined;
2871
+ };
2872
+ }, {
2873
+ profileAnalysis: {
2874
+ overallScore: number;
2875
+ scores: {
2876
+ searchRelevance: number;
2877
+ humanVoice: number;
2878
+ credibility: number;
2879
+ positioningClarity: number;
2880
+ evidenceCoverage: number;
2881
+ };
2882
+ executiveSummary: string;
2883
+ profileDirection: {
2884
+ positioning: string;
2885
+ primaryRole: string;
2886
+ rationale: string;
2887
+ alternativeRoles?: unknown;
2888
+ openToWorkTitles?: unknown;
2889
+ };
2890
+ rewritten: {
2891
+ headline: string;
2892
+ summary: string;
2893
+ experiences?: {
2894
+ title: string;
2895
+ companyName: string;
2896
+ id?: string | undefined;
2897
+ bullets?: unknown;
2898
+ }[] | undefined;
2899
+ skills?: unknown;
2900
+ openToWorkTitles?: unknown;
2901
+ cardConversionBadges?: unknown;
2902
+ cardConversionReasons?: unknown;
2903
+ };
2904
+ targetMarket?: string | undefined;
2905
+ language?: string | undefined;
2906
+ scoreExplanations?: {
2907
+ searchRelevance?: string | undefined;
2908
+ humanVoice?: string | undefined;
2909
+ credibility?: string | undefined;
2910
+ positioningClarity?: string | undefined;
2911
+ evidenceCoverage?: string | undefined;
2912
+ } | undefined;
2913
+ critique?: {
2914
+ section: string;
2915
+ assessment: string;
2916
+ issues?: unknown;
2917
+ strengths?: unknown;
2918
+ severity?: unknown;
2919
+ }[] | undefined;
2920
+ triageBottlenecks?: unknown;
2921
+ primaryGaps?: {
2922
+ id: string;
2923
+ label: string;
2924
+ targetSection: "headline" | "skills" | "about" | "experience";
2925
+ targetExperienceId?: string | undefined;
2926
+ targetBulletIndex?: number | undefined;
2927
+ targetBlockId?: string | undefined;
2928
+ suggestedUnlock?: string | undefined;
2929
+ }[] | undefined;
2930
+ inboundReadiness?: {
2931
+ score: number;
2932
+ primaryGapId?: string | undefined;
2933
+ } | undefined;
2934
+ initialScore?: number | undefined;
2935
+ };
2936
+ }>;
2937
+ }, "strip", z.ZodTypeAny, {
2938
+ jobId: string;
2939
+ payload: {
2940
+ profileAnalysis: {
2941
+ targetMarket: string;
2942
+ language: string;
2943
+ overallScore: number;
2944
+ scores: {
2945
+ searchRelevance: number;
2946
+ humanVoice: number;
2947
+ credibility: number;
2948
+ positioningClarity: number;
2949
+ evidenceCoverage: number;
2950
+ };
2951
+ executiveSummary: string;
2952
+ profileDirection: {
2953
+ positioning: string;
2954
+ primaryRole: string;
2955
+ alternativeRoles: string[];
2956
+ rationale: string;
2957
+ openToWorkTitles?: string[] | undefined;
2958
+ };
2959
+ critique: {
2960
+ issues: string[];
2961
+ section: string;
2962
+ assessment: string;
2963
+ strengths: string[];
2964
+ severity: "high" | "medium" | "low";
2965
+ }[];
2966
+ triageBottlenecks: string[];
2967
+ rewritten: {
2968
+ headline: string;
2969
+ summary: string;
2970
+ experiences: {
2971
+ title: string;
2972
+ companyName: string;
2973
+ bullets: string[];
2974
+ id?: string | undefined;
2975
+ }[];
2976
+ skills: string[];
2977
+ openToWorkTitles?: string[] | undefined;
2978
+ cardConversionBadges?: string[] | undefined;
2979
+ cardConversionReasons?: string[] | undefined;
2980
+ };
2981
+ scoreExplanations?: {
2982
+ searchRelevance: string;
2983
+ humanVoice: string;
2984
+ credibility: string;
2985
+ positioningClarity: string;
2986
+ evidenceCoverage: string;
2987
+ } | undefined;
2988
+ primaryGaps?: {
2989
+ id: string;
2990
+ label: string;
2991
+ targetSection: "headline" | "skills" | "about" | "experience";
2992
+ targetExperienceId?: string | undefined;
2993
+ targetBulletIndex?: number | undefined;
2994
+ targetBlockId?: string | undefined;
2995
+ suggestedUnlock?: string | undefined;
2996
+ }[] | undefined;
2997
+ inboundReadiness?: {
2998
+ score: number;
2999
+ primaryGapId?: string | undefined;
3000
+ } | undefined;
3001
+ initialScore?: number | undefined;
3002
+ };
3003
+ };
3004
+ agent: {
3005
+ agentId: string;
3006
+ sessionId: string;
3007
+ clientName?: string | undefined;
3008
+ clientVersion?: string | undefined;
3009
+ };
3010
+ submissionId?: string | undefined;
3011
+ }, {
3012
+ jobId: string;
3013
+ payload: {
3014
+ profileAnalysis: {
3015
+ overallScore: number;
3016
+ scores: {
3017
+ searchRelevance: number;
3018
+ humanVoice: number;
3019
+ credibility: number;
3020
+ positioningClarity: number;
3021
+ evidenceCoverage: number;
3022
+ };
3023
+ executiveSummary: string;
3024
+ profileDirection: {
3025
+ positioning: string;
3026
+ primaryRole: string;
3027
+ rationale: string;
3028
+ alternativeRoles?: unknown;
3029
+ openToWorkTitles?: unknown;
3030
+ };
3031
+ rewritten: {
3032
+ headline: string;
3033
+ summary: string;
3034
+ experiences?: {
3035
+ title: string;
3036
+ companyName: string;
3037
+ id?: string | undefined;
3038
+ bullets?: unknown;
3039
+ }[] | undefined;
3040
+ skills?: unknown;
3041
+ openToWorkTitles?: unknown;
3042
+ cardConversionBadges?: unknown;
3043
+ cardConversionReasons?: unknown;
3044
+ };
3045
+ targetMarket?: string | undefined;
3046
+ language?: string | undefined;
3047
+ scoreExplanations?: {
3048
+ searchRelevance?: string | undefined;
3049
+ humanVoice?: string | undefined;
3050
+ credibility?: string | undefined;
3051
+ positioningClarity?: string | undefined;
3052
+ evidenceCoverage?: string | undefined;
3053
+ } | undefined;
3054
+ critique?: {
3055
+ section: string;
3056
+ assessment: string;
3057
+ issues?: unknown;
3058
+ strengths?: unknown;
3059
+ severity?: unknown;
3060
+ }[] | undefined;
3061
+ triageBottlenecks?: unknown;
3062
+ primaryGaps?: {
3063
+ id: string;
3064
+ label: string;
3065
+ targetSection: "headline" | "skills" | "about" | "experience";
3066
+ targetExperienceId?: string | undefined;
3067
+ targetBulletIndex?: number | undefined;
3068
+ targetBlockId?: string | undefined;
3069
+ suggestedUnlock?: string | undefined;
3070
+ }[] | undefined;
3071
+ inboundReadiness?: {
3072
+ score: number;
3073
+ primaryGapId?: string | undefined;
3074
+ } | undefined;
3075
+ initialScore?: number | undefined;
3076
+ };
3077
+ };
3078
+ agent: {
3079
+ agentId: string;
3080
+ sessionId: string;
3081
+ clientName?: string | undefined;
3082
+ clientVersion?: string | undefined;
3083
+ };
3084
+ submissionId?: string | undefined;
3085
+ }>;
3086
+ type SubmitRewriteInput = z.infer<typeof submitRewriteInputSchema>;
3087
+ declare function handleSubmitRewrite(input: SubmitRewriteInput): Promise<{
3088
+ content: {
3089
+ type: "text";
3090
+ text: string;
3091
+ }[];
3092
+ structuredData: {
3093
+ success: boolean;
3094
+ jobId: string;
3095
+ resultId: string;
3096
+ finalScore: number;
3097
+ };
3098
+ isError?: undefined;
3099
+ } | {
3100
+ isError: boolean;
3101
+ content: {
3102
+ type: "text";
3103
+ text: string;
3104
+ }[];
3105
+ structuredData?: undefined;
3106
+ }>;
3107
+
3108
+ export { type AuditIssue, type AuditProfileInput, BridgeClient, type BridgeClientConfig, type BridgeJob, type BridgeServerOptions, type ClaimJobInput, type ConvertToXyzBulletInput, DEFAULT_BRIDGE_URL, type ExtendedBridgeServerOptions, type GenerateHeadlineInput, type GetPendingJobInput, type InspectDocumentInput, type InstallResult, type InstallerOptions, type JobStatus, type JobType, type ListJobsInput, type McpTarget, type ReportProgressInput, type RequestUserActionInput, type SimulateRecruiterSearchInput, type SparseExperience, type SubmitDiagnosticInput, type SubmitInterviewInput, type SubmitJobResultInput, type SubmitRewriteInput, type WaitForJobOptions, type WatchLinkeGringoInput, type WatcherOptions, auditProfileInputSchema, bridgeJobStore, claimJobInputSchema, claimRemoteJob, completeRemoteOrLocalJob, convertToXyzBulletInputSchema, createBridgeHttpServer, createLinkeGringoMcpServer, detectSparseExperiences, failRemoteOrLocalJob, formatGoogleXyzBullet, generateHeadlineInputSchema, getBridgeUrl, getExperienceBulletCount, getMcpConfigsForSystem, getPendingJobInputSchema, getRemoteOrLocalPendingJob, handleAuditProfile, handleClaimJob, handleConvertToXyzBullet, handleGenerateHeadline, handleGetPendingJob, handleInspectDocument, handleListJobs, handleReportProgress, handleRequestUserAction, handleSimulateRecruiterSearch, handleSubmitDiagnostic, handleSubmitInterview, handleSubmitJobResult, handleSubmitRewrite, handleWatchLinkeGringo, inspectDocumentInputSchema, inspectRemoteDocument, installMcpServerConfig, listJobsInputSchema, listRemoteJobs, parseArgs, reportProgressInputSchema, reportRemoteProgress, requestRemoteUserAction, requestUserActionInputSchema, runInstaller, simulateRecruiterSearchInputSchema, startBridgeServer, startBridgeWatcher, stopBridgeServer, submitDiagnosticInputSchema, submitInterviewInputSchema, submitJobResultInputSchema, submitRemoteJobResult, submitRewriteInputSchema, waitForNextJob, watchLinkeGringoInputSchema };