lancer-shared 1.2.58 → 1.2.60
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.
package/dist/bundle.cjs.js
CHANGED
|
@@ -12070,6 +12070,11 @@ const generateLeadCountsRequestSchema = z.object({
|
|
|
12070
12070
|
campaignId: z.string().optional(),
|
|
12071
12071
|
});
|
|
12072
12072
|
|
|
12073
|
+
const proposalSchema = z.object({
|
|
12074
|
+
coverLetter: z.string(),
|
|
12075
|
+
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
12076
|
+
});
|
|
12077
|
+
|
|
12073
12078
|
const LogEventTypeEnum = z.enum([
|
|
12074
12079
|
// Scraper Events
|
|
12075
12080
|
"scraperStarted",
|
|
@@ -12205,7 +12210,7 @@ const suitabilityCompleteEventMetadataSchema = objectType({
|
|
|
12205
12210
|
promptTokens: z.number(),
|
|
12206
12211
|
completionTokens: z.number(),
|
|
12207
12212
|
messages: z.array(objectType({
|
|
12208
|
-
role: z.
|
|
12213
|
+
role: z.string(),
|
|
12209
12214
|
content: z.string(),
|
|
12210
12215
|
})),
|
|
12211
12216
|
});
|
|
@@ -12419,10 +12424,6 @@ const suitabilityRatingSchema = z.object({
|
|
|
12419
12424
|
rating: z.number(),
|
|
12420
12425
|
reason: z.string(),
|
|
12421
12426
|
});
|
|
12422
|
-
const proposalSchema = z.object({
|
|
12423
|
-
coverLetter: z.string(),
|
|
12424
|
-
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
12425
|
-
});
|
|
12426
12427
|
const agentTaskResponseSchema = z.object({
|
|
12427
12428
|
result: z.union([suitabilityRatingSchema, proposalSchema]),
|
|
12428
12429
|
model: z.string(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { proposalSchema } from "./proposal";
|
|
2
3
|
export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
3
4
|
userId: z.ZodNullable<z.ZodString>;
|
|
4
5
|
organizationId: z.ZodString;
|
|
@@ -1775,31 +1776,8 @@ export declare const suitabilityRatingSchema: z.ZodObject<{
|
|
|
1775
1776
|
rating: number;
|
|
1776
1777
|
reason: string;
|
|
1777
1778
|
}>;
|
|
1778
|
-
export
|
|
1779
|
-
|
|
1780
|
-
questionAnswerPairs: z.ZodArray<z.ZodObject<{
|
|
1781
|
-
question: z.ZodString;
|
|
1782
|
-
answer: z.ZodString;
|
|
1783
|
-
}, "strip", z.ZodTypeAny, {
|
|
1784
|
-
question: string;
|
|
1785
|
-
answer: string;
|
|
1786
|
-
}, {
|
|
1787
|
-
question: string;
|
|
1788
|
-
answer: string;
|
|
1789
|
-
}>, "many">;
|
|
1790
|
-
}, "strip", z.ZodTypeAny, {
|
|
1791
|
-
questionAnswerPairs: {
|
|
1792
|
-
question: string;
|
|
1793
|
-
answer: string;
|
|
1794
|
-
}[];
|
|
1795
|
-
coverLetter: string;
|
|
1796
|
-
}, {
|
|
1797
|
-
questionAnswerPairs: {
|
|
1798
|
-
question: string;
|
|
1799
|
-
answer: string;
|
|
1800
|
-
}[];
|
|
1801
|
-
coverLetter: string;
|
|
1802
|
-
}>;
|
|
1779
|
+
export { proposalSchema };
|
|
1780
|
+
export type Proposal = z.infer<typeof proposalSchema>;
|
|
1803
1781
|
export declare const agentTaskResponseSchema: z.ZodObject<{
|
|
1804
1782
|
result: z.ZodUnion<[z.ZodObject<{
|
|
1805
1783
|
rating: z.ZodNumber;
|
|
@@ -2012,4 +1990,3 @@ export declare const testSystemPromptsResponseSchema: z.ZodObject<{
|
|
|
2012
1990
|
export type TestSystemPromptsResponse = z.infer<typeof testSystemPromptsResponseSchema>;
|
|
2013
1991
|
export type AgentTaskResponse = z.infer<typeof agentTaskResponseSchema>;
|
|
2014
1992
|
export type SuitabilityRating = z.infer<typeof suitabilityRatingSchema>;
|
|
2015
|
-
export type Proposal = z.infer<typeof proposalSchema>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const proposalSchema: z.ZodObject<{
|
|
3
|
+
coverLetter: z.ZodString;
|
|
4
|
+
questionAnswerPairs: z.ZodArray<z.ZodObject<{
|
|
5
|
+
question: z.ZodString;
|
|
6
|
+
answer: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
question: string;
|
|
9
|
+
answer: string;
|
|
10
|
+
}, {
|
|
11
|
+
question: string;
|
|
12
|
+
answer: string;
|
|
13
|
+
}>, "many">;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
coverLetter: string;
|
|
16
|
+
questionAnswerPairs: {
|
|
17
|
+
question: string;
|
|
18
|
+
answer: string;
|
|
19
|
+
}[];
|
|
20
|
+
}, {
|
|
21
|
+
coverLetter: string;
|
|
22
|
+
questionAnswerPairs: {
|
|
23
|
+
question: string;
|
|
24
|
+
answer: string;
|
|
25
|
+
}[];
|
|
26
|
+
}>;
|
|
27
|
+
export type Proposal = z.infer<typeof proposalSchema>;
|
|
@@ -340,13 +340,13 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
|
|
|
340
340
|
promptTokens: z.ZodNumber;
|
|
341
341
|
completionTokens: z.ZodNumber;
|
|
342
342
|
messages: z.ZodArray<z.ZodObject<{
|
|
343
|
-
role: z.
|
|
343
|
+
role: z.ZodString;
|
|
344
344
|
content: z.ZodString;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
role:
|
|
346
|
+
role: string;
|
|
347
347
|
content: string;
|
|
348
348
|
}, {
|
|
349
|
-
role:
|
|
349
|
+
role: string;
|
|
350
350
|
content: string;
|
|
351
351
|
}>, "many">;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -358,7 +358,7 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
|
|
|
358
358
|
promptTokens: number;
|
|
359
359
|
completionTokens: number;
|
|
360
360
|
messages: {
|
|
361
|
-
role:
|
|
361
|
+
role: string;
|
|
362
362
|
content: string;
|
|
363
363
|
}[];
|
|
364
364
|
}, {
|
|
@@ -370,7 +370,7 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
|
|
|
370
370
|
promptTokens: number;
|
|
371
371
|
completionTokens: number;
|
|
372
372
|
messages: {
|
|
373
|
-
role:
|
|
373
|
+
role: string;
|
|
374
374
|
content: string;
|
|
375
375
|
}[];
|
|
376
376
|
}>;
|