lancer-shared 1.2.245 → 1.2.246
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 +36 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +33 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +6 -0
- package/dist/schemas/agent/classification-enum.d.ts +3 -0
- package/dist/schemas/golden-dataset/index.d.ts +1 -0
- package/dist/schemas/golden-dataset/sample.d.ts +72 -0
- package/dist/schemas/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -89,6 +89,12 @@ export declare const ROUTES: {
|
|
|
89
89
|
readonly BASE: "admin/alerts";
|
|
90
90
|
readonly SEND_ALERT: "admin/alerts/send";
|
|
91
91
|
};
|
|
92
|
+
readonly GOLDEN_DATASET: {
|
|
93
|
+
readonly BASE: "admin/golden-dataset";
|
|
94
|
+
readonly SAMPLE: (id: string) => string;
|
|
95
|
+
readonly CREATE_SAMPLE: "admin/golden-dataset/create";
|
|
96
|
+
readonly GET_SAMPLES: "admin/golden-dataset/get-samples";
|
|
97
|
+
};
|
|
92
98
|
readonly AGENT: {
|
|
93
99
|
readonly BASE: "admin/agent";
|
|
94
100
|
readonly TEST_JOB_QUALITY: "admin/agent/test-job-quality";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sample';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const labelEnum: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
3
|
+
export declare const sampleSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
organizationId: z.ZodString;
|
|
6
|
+
campaignId: z.ZodString;
|
|
7
|
+
leadId: z.ZodString;
|
|
8
|
+
systemPromptSnapshot: z.ZodString;
|
|
9
|
+
jobDetailsSnapshot: z.ZodString;
|
|
10
|
+
label: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
11
|
+
updatedAt: z.ZodNumber;
|
|
12
|
+
createdAt: z.ZodNumber;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
id: string;
|
|
15
|
+
label: "suitable" | "unsuitable";
|
|
16
|
+
campaignId: string;
|
|
17
|
+
organizationId: string;
|
|
18
|
+
createdAt: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
leadId: string;
|
|
21
|
+
systemPromptSnapshot: string;
|
|
22
|
+
jobDetailsSnapshot: string;
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
label: "suitable" | "unsuitable";
|
|
26
|
+
campaignId: string;
|
|
27
|
+
organizationId: string;
|
|
28
|
+
createdAt: number;
|
|
29
|
+
updatedAt: number;
|
|
30
|
+
leadId: string;
|
|
31
|
+
systemPromptSnapshot: string;
|
|
32
|
+
jobDetailsSnapshot: string;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const createSampleSchema: z.ZodObject<{
|
|
35
|
+
organizationId: z.ZodString;
|
|
36
|
+
systemPromptSnapshot: z.ZodString;
|
|
37
|
+
jobDetailsSnapshot: z.ZodString;
|
|
38
|
+
campaignId: z.ZodString;
|
|
39
|
+
leadId: z.ZodString;
|
|
40
|
+
label: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
label: "suitable" | "unsuitable";
|
|
43
|
+
campaignId: string;
|
|
44
|
+
organizationId: string;
|
|
45
|
+
leadId: string;
|
|
46
|
+
systemPromptSnapshot: string;
|
|
47
|
+
jobDetailsSnapshot: string;
|
|
48
|
+
}, {
|
|
49
|
+
label: "suitable" | "unsuitable";
|
|
50
|
+
campaignId: string;
|
|
51
|
+
organizationId: string;
|
|
52
|
+
leadId: string;
|
|
53
|
+
systemPromptSnapshot: string;
|
|
54
|
+
jobDetailsSnapshot: string;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const getSamplesRequestSchema: z.ZodObject<{
|
|
57
|
+
organizationId: z.ZodString;
|
|
58
|
+
campaignId: z.ZodString;
|
|
59
|
+
leadIds: z.ZodArray<z.ZodString, "many">;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
campaignId: string;
|
|
62
|
+
organizationId: string;
|
|
63
|
+
leadIds: string[];
|
|
64
|
+
}, {
|
|
65
|
+
campaignId: string;
|
|
66
|
+
organizationId: string;
|
|
67
|
+
leadIds: string[];
|
|
68
|
+
}>;
|
|
69
|
+
export type Sample = z.infer<typeof sampleSchema>;
|
|
70
|
+
export type CreateSample = z.infer<typeof createSampleSchema>;
|
|
71
|
+
export type GetSamplesRequest = z.infer<typeof getSamplesRequestSchema>;
|
|
72
|
+
export type SampleLabel = z.infer<typeof labelEnum>;
|
package/dist/schemas/index.d.ts
CHANGED