lancer-shared 1.2.245 → 1.2.247

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.
@@ -89,6 +89,13 @@ 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
+ readonly UPDATE_SAMPLE: "admin/golden-dataset/update";
98
+ };
92
99
  readonly AGENT: {
93
100
  readonly BASE: "admin/agent";
94
101
  readonly TEST_JOB_QUALITY: "admin/agent/test-job-quality";
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const classificationEnum: z.ZodEnum<["suitable", "unsuitable"]>;
3
+ export type ClassificationEnum = z.infer<typeof classificationEnum>;
@@ -0,0 +1 @@
1
+ export * from './sample';
@@ -0,0 +1,83 @@
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 declare const updateSampleSchema: z.ZodObject<{
70
+ id: z.ZodString;
71
+ label: z.ZodEnum<["suitable", "unsuitable"]>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ id: string;
74
+ label: "suitable" | "unsuitable";
75
+ }, {
76
+ id: string;
77
+ label: "suitable" | "unsuitable";
78
+ }>;
79
+ export type Sample = z.infer<typeof sampleSchema>;
80
+ export type CreateSample = z.infer<typeof createSampleSchema>;
81
+ export type GetSamplesRequest = z.infer<typeof getSamplesRequestSchema>;
82
+ export type UpdateSample = z.infer<typeof updateSampleSchema>;
83
+ export type SampleLabel = z.infer<typeof labelEnum>;
@@ -3,6 +3,7 @@ export * from './agent';
3
3
  export * from './bidder';
4
4
  export * from './campaign';
5
5
  export * from './dashboard';
6
+ export * from './golden-dataset';
6
7
  export * from './infrastructure';
7
8
  export * from './invoice';
8
9
  export * from './job';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.245",
3
+ "version": "1.2.247",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",