lancer-shared 1.2.55 → 1.2.57

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.
@@ -12211,7 +12211,7 @@ const suitabilityCompleteEventMetadataSchema = objectType({
12211
12211
  });
12212
12212
  const proposalCompleteEventMetadataSchema = objectType({
12213
12213
  agentStatus: z.string(),
12214
- proposal: z.string(),
12214
+ proposal: proposalSchema,
12215
12215
  model: z.string(),
12216
12216
  provider: z.string(),
12217
12217
  promptTokens: z.number(),
@@ -12402,7 +12402,7 @@ const systemSchema = objectType({
12402
12402
  });
12403
12403
 
12404
12404
  const agentTaskRequestSchema = z.object({
12405
- userId: z.string(),
12405
+ userId: z.string().nullable(),
12406
12406
  organizationId: z.string(),
12407
12407
  campaignId: z.string(),
12408
12408
  lead: leadSchema,
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const agentTaskRequestSchema: z.ZodObject<{
3
- userId: z.ZodString;
3
+ userId: z.ZodNullable<z.ZodString>;
4
4
  organizationId: z.ZodString;
5
5
  campaignId: z.ZodString;
6
6
  lead: z.ZodObject<Omit<z.objectUtil.extendShape<{
@@ -583,7 +583,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
583
583
  wonAmount?: number | undefined;
584
584
  }>;
585
585
  }, "strip", z.ZodTypeAny, {
586
- userId: string;
586
+ userId: string | null;
587
587
  organizationId: string;
588
588
  campaignId: string;
589
589
  lead: {
@@ -716,7 +716,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
716
716
  wonAmount?: number | undefined;
717
717
  };
718
718
  }, {
719
- userId: string;
719
+ userId: string | null;
720
720
  organizationId: string;
721
721
  campaignId: string;
722
722
  lead: {
@@ -377,7 +377,31 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
377
377
  export type SuitabilityCompleteEventMetadata = z.infer<typeof suitabilityCompleteEventMetadataSchema>;
378
378
  export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
379
379
  agentStatus: z.ZodString;
380
- proposal: z.ZodString;
380
+ proposal: z.ZodObject<{
381
+ coverLetter: z.ZodString;
382
+ questionAnswerPairs: z.ZodArray<z.ZodObject<{
383
+ question: z.ZodString;
384
+ answer: z.ZodString;
385
+ }, "strip", z.ZodTypeAny, {
386
+ question: string;
387
+ answer: string;
388
+ }, {
389
+ question: string;
390
+ answer: string;
391
+ }>, "many">;
392
+ }, "strip", z.ZodTypeAny, {
393
+ coverLetter: string;
394
+ questionAnswerPairs: {
395
+ question: string;
396
+ answer: string;
397
+ }[];
398
+ }, {
399
+ coverLetter: string;
400
+ questionAnswerPairs: {
401
+ question: string;
402
+ answer: string;
403
+ }[];
404
+ }>;
381
405
  model: z.ZodString;
382
406
  provider: z.ZodString;
383
407
  promptTokens: z.ZodNumber;
@@ -402,7 +426,13 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
402
426
  role: "user" | "assistant" | "system";
403
427
  content: string;
404
428
  }[];
405
- proposal: string;
429
+ proposal: {
430
+ coverLetter: string;
431
+ questionAnswerPairs: {
432
+ question: string;
433
+ answer: string;
434
+ }[];
435
+ };
406
436
  }, {
407
437
  agentStatus: string;
408
438
  model: string;
@@ -413,6 +443,12 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
413
443
  role: "user" | "assistant" | "system";
414
444
  content: string;
415
445
  }[];
416
- proposal: string;
446
+ proposal: {
447
+ coverLetter: string;
448
+ questionAnswerPairs: {
449
+ question: string;
450
+ answer: string;
451
+ }[];
452
+ };
417
453
  }>;
418
454
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",