lancer-shared 1.2.241 → 1.2.243

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 (55) hide show
  1. package/dist/bundle.cjs.js +2 -1
  2. package/dist/bundle.cjs.js.map +1 -0
  3. package/dist/bundle.esm.js +2 -1
  4. package/dist/bundle.esm.js.map +1 -0
  5. package/dist/schemas/account/bidder-account.d.ts +75 -75
  6. package/dist/schemas/account/scraper-account.d.ts +37 -37
  7. package/dist/schemas/agent/index.d.ts +287 -287
  8. package/dist/schemas/agent/proposal.d.ts +6 -6
  9. package/dist/schemas/bidder/bid.d.ts +2345 -2345
  10. package/dist/schemas/campaign/campaign-analytics.d.ts +857 -857
  11. package/dist/schemas/campaign/campaign-chat-bot.d.ts +25 -25
  12. package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
  13. package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
  14. package/dist/schemas/campaign/campaign.d.ts +201 -201
  15. package/dist/schemas/campaign/sequence/boost-node.d.ts +2 -2
  16. package/dist/schemas/campaign/sequence/client-size-node.d.ts +8 -8
  17. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +16 -16
  18. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +16 -16
  19. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +16 -16
  20. package/dist/schemas/campaign/sequence/rating-node.d.ts +16 -16
  21. package/dist/schemas/campaign/sequence/suitability-node.d.ts +16 -16
  22. package/dist/schemas/dashboard/index.d.ts +34 -34
  23. package/dist/schemas/infrastructure/index.d.ts +8 -8
  24. package/dist/schemas/invoice/index.d.ts +51 -51
  25. package/dist/schemas/job/index.d.ts +212 -212
  26. package/dist/schemas/job/job-api.d.ts +4 -4
  27. package/dist/schemas/job/job-details.d.ts +736 -736
  28. package/dist/schemas/job/job-filters.d.ts +14 -14
  29. package/dist/schemas/job/job-listing.d.ts +94 -94
  30. package/dist/schemas/job/nuxt.d.ts +150 -150
  31. package/dist/schemas/lead/index.d.ts +1025 -1022
  32. package/dist/schemas/lead/lead-status.d.ts +10 -10
  33. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +25 -25
  34. package/dist/schemas/logger/feed/feed-enrich.d.ts +15 -15
  35. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +321 -321
  36. package/dist/schemas/logger/feed/feed-scrape.d.ts +15 -15
  37. package/dist/schemas/logger/log-event.d.ts +91 -91
  38. package/dist/schemas/logger/scraper-events.d.ts +90 -90
  39. package/dist/schemas/notifications/index.d.ts +4 -4
  40. package/dist/schemas/organization/cover-letter.d.ts +2 -2
  41. package/dist/schemas/organization/index.d.ts +104 -104
  42. package/dist/schemas/organization/subscription.d.ts +6 -6
  43. package/dist/schemas/plan/index.d.ts +14 -14
  44. package/dist/schemas/proxy/proxy.d.ts +20 -20
  45. package/dist/schemas/saved-search/index.d.ts +4 -4
  46. package/dist/schemas/scraper/scrape-payload.d.ts +621 -621
  47. package/dist/schemas/scraper/scrape-result.d.ts +214 -214
  48. package/dist/schemas/scraper/upwork-profile.d.ts +16 -16
  49. package/dist/schemas/shared.d.ts +1 -1
  50. package/dist/schemas/talent/index.d.ts +854 -854
  51. package/dist/schemas/transaction/index.d.ts +18 -18
  52. package/dist/schemas/usage/index.d.ts +16 -16
  53. package/dist/schemas/usage-event/index.d.ts +4 -4
  54. package/dist/schemas/user/index.d.ts +4 -4
  55. package/package.json +7 -5
@@ -12,18 +12,18 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
12
12
  questions: z.ZodArray<z.ZodString, "many">;
13
13
  clientCountry: z.ZodString;
14
14
  }, "strip", z.ZodTypeAny, {
15
- leadId: string;
16
- jobId: string;
17
15
  title: string;
18
16
  description: string;
19
17
  questions: string[];
20
- clientCountry: string;
21
- }, {
22
18
  leadId: string;
23
19
  jobId: string;
20
+ clientCountry: string;
21
+ }, {
24
22
  title: string;
25
23
  description: string;
26
24
  questions: string[];
25
+ leadId: string;
26
+ jobId: string;
27
27
  clientCountry: string;
28
28
  }>;
29
29
  isOverallHighestPriorityCampaign: z.ZodOptional<z.ZodBoolean>;
@@ -38,15 +38,15 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
38
38
  leadId: string;
39
39
  }>, "many">>;
40
40
  }, "strip", z.ZodTypeAny, {
41
+ campaignId: string;
41
42
  userId: string | null;
42
43
  organizationId: string;
43
- campaignId: string;
44
44
  job: {
45
- leadId: string;
46
- jobId: string;
47
45
  title: string;
48
46
  description: string;
49
47
  questions: string[];
48
+ leadId: string;
49
+ jobId: string;
50
50
  clientCountry: string;
51
51
  };
52
52
  isOverallHighestPriorityCampaign?: boolean | undefined;
@@ -55,15 +55,15 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
55
55
  leadId: string;
56
56
  }[] | undefined;
57
57
  }, {
58
+ campaignId: string;
58
59
  userId: string | null;
59
60
  organizationId: string;
60
- campaignId: string;
61
61
  job: {
62
- leadId: string;
63
- jobId: string;
64
62
  title: string;
65
63
  description: string;
66
64
  questions: string[];
65
+ leadId: string;
66
+ jobId: string;
67
67
  clientCountry: string;
68
68
  };
69
69
  isOverallHighestPriorityCampaign?: boolean | undefined;
@@ -78,24 +78,24 @@ export declare const agentGenerateProposalResponseSchema: z.ZodObject<{
78
78
  question: z.ZodString;
79
79
  answer: z.ZodString;
80
80
  }, "strip", z.ZodTypeAny, {
81
- question: string;
82
81
  answer: string;
83
- }, {
84
82
  question: string;
83
+ }, {
85
84
  answer: string;
85
+ question: string;
86
86
  }>, "many">;
87
87
  }, "strip", z.ZodTypeAny, {
88
- coverLetter: string;
89
88
  questionAnswerPairs: {
90
- question: string;
91
89
  answer: string;
90
+ question: string;
92
91
  }[];
93
- }, {
94
92
  coverLetter: string;
93
+ }, {
95
94
  questionAnswerPairs: {
96
- question: string;
97
95
  answer: string;
96
+ question: string;
98
97
  }[];
98
+ coverLetter: string;
99
99
  }>;
100
100
  export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
101
101
  userId: z.ZodNullable<z.ZodString>;
@@ -130,33 +130,33 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
130
130
  min: z.ZodNullable<z.ZodNumber>;
131
131
  max: z.ZodNullable<z.ZodNumber>;
132
132
  }, "strip", z.ZodTypeAny, {
133
- min: number | null;
134
133
  max: number | null;
135
- }, {
136
134
  min: number | null;
135
+ }, {
137
136
  max: number | null;
137
+ min: number | null;
138
138
  }>>;
139
139
  paymentType: z.ZodNullable<z.ZodString>;
140
140
  fixedPrice: z.ZodNullable<z.ZodNumber>;
141
141
  }, "strip", z.ZodTypeAny, {
142
142
  hours: string | null;
143
143
  duration: string | null;
144
+ paymentType: string | null;
144
145
  experienceLevel: string | null;
145
146
  hourlyRate: {
146
- min: number | null;
147
147
  max: number | null;
148
+ min: number | null;
148
149
  } | null;
149
- paymentType: string | null;
150
150
  fixedPrice: number | null;
151
151
  }, {
152
152
  hours: string | null;
153
153
  duration: string | null;
154
+ paymentType: string | null;
154
155
  experienceLevel: string | null;
155
156
  hourlyRate: {
156
- min: number | null;
157
157
  max: number | null;
158
+ min: number | null;
158
159
  } | null;
159
- paymentType: string | null;
160
160
  fixedPrice: number | null;
161
161
  }>>;
162
162
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -178,40 +178,40 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
178
178
  enterpriseClient: z.ZodNullable<z.ZodBoolean>;
179
179
  avgHourlyRatePaid: z.ZodNullable<z.ZodNumber>;
180
180
  }, "strip", z.ZodTypeAny, {
181
+ country: string | null;
182
+ region: string | null;
181
183
  isPaymentVerified: boolean | null;
182
184
  isPhoneVerified: boolean | null;
185
+ enterpriseClient: boolean | null;
186
+ companySize: string | null;
187
+ openJobs: number | null;
188
+ totalSpent: number | null;
183
189
  numberOfReviews: number | null;
184
190
  rating: number | null;
185
- country: string | null;
186
- region: string | null;
187
191
  jobsPosted: number | null;
188
- totalSpent: number | null;
189
192
  numberOfHires: number | null;
190
193
  activeEngagements: number | null;
191
- openJobs: number | null;
192
194
  hireRate: number | null;
193
195
  memberSince: string | null;
194
196
  companyIndustry: string | null;
195
- companySize: string | null;
196
- enterpriseClient: boolean | null;
197
197
  avgHourlyRatePaid: number | null;
198
198
  }, {
199
+ country: string | null;
200
+ region: string | null;
199
201
  isPaymentVerified: boolean | null;
200
202
  isPhoneVerified: boolean | null;
203
+ enterpriseClient: boolean | null;
204
+ companySize: string | null;
205
+ openJobs: number | null;
206
+ totalSpent: number | null;
201
207
  numberOfReviews: number | null;
202
208
  rating: number | null;
203
- country: string | null;
204
- region: string | null;
205
209
  jobsPosted: number | null;
206
- totalSpent: number | null;
207
210
  numberOfHires: number | null;
208
211
  activeEngagements: number | null;
209
- openJobs: number | null;
210
212
  hireRate: number | null;
211
213
  memberSince: string | null;
212
214
  companyIndustry: string | null;
213
- companySize: string | null;
214
- enterpriseClient: boolean | null;
215
215
  avgHourlyRatePaid: number | null;
216
216
  }>>;
217
217
  vendorQualifications: z.ZodNullable<z.ZodObject<{
@@ -223,18 +223,18 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
223
223
  includeRisingTalent: z.ZodNullable<z.ZodString>;
224
224
  }, "strip", z.ZodTypeAny, {
225
225
  location: string | null;
226
- talentType: "Agency" | "Independent" | "unspecified" | null;
226
+ includeRisingTalent: string | null;
227
+ talentType: "unspecified" | "Independent" | "Agency" | null;
227
228
  englishLevel: string | null;
228
229
  minimumEarnings: number | null;
229
230
  jobSuccessScore: string | null;
230
- includeRisingTalent: string | null;
231
231
  }, {
232
232
  location: string | null;
233
- talentType: "Agency" | "Independent" | "unspecified" | null;
233
+ includeRisingTalent: string | null;
234
+ talentType: "unspecified" | "Independent" | "Agency" | null;
234
235
  englishLevel: string | null;
235
236
  minimumEarnings: number | null;
236
237
  jobSuccessScore: string | null;
237
- includeRisingTalent: string | null;
238
238
  }>>;
239
239
  processed: z.ZodNullable<z.ZodBoolean>;
240
240
  isFeatured: z.ZodNullable<z.ZodBoolean>;
@@ -252,9 +252,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
252
252
  numHours: z.ZodNullable<z.ZodNumber>;
253
253
  totalBilled: z.ZodNullable<z.ZodNumber>;
254
254
  }, "strip", z.ZodTypeAny, {
255
- hourlyRate: number | null;
256
255
  paymentType: string | null;
257
- fixedPrice: number | null;
256
+ hourlyRate: number | null;
258
257
  jobTitle: string | null;
259
258
  freelancerName: string | null;
260
259
  freelancerRating: number | null;
@@ -262,12 +261,12 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
262
261
  clientFeedback: string | null;
263
262
  clientFeedbackRating: number | null;
264
263
  dateRange: string | null;
264
+ fixedPrice: number | null;
265
265
  numHours: number | null;
266
266
  totalBilled: number | null;
267
267
  }, {
268
- hourlyRate: number | null;
269
268
  paymentType: string | null;
270
- fixedPrice: number | null;
269
+ hourlyRate: number | null;
271
270
  jobTitle: string | null;
272
271
  freelancerName: string | null;
273
272
  freelancerRating: number | null;
@@ -275,33 +274,34 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
275
274
  clientFeedback: string | null;
276
275
  clientFeedbackRating: number | null;
277
276
  dateRange: string | null;
277
+ fixedPrice: number | null;
278
278
  numHours: number | null;
279
279
  totalBilled: number | null;
280
280
  }>, "many">>;
281
- region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
281
+ region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">, z.ZodLiteral<"All">]>>;
282
282
  bidRange: z.ZodNullable<z.ZodObject<{
283
283
  high: z.ZodNullable<z.ZodNumber>;
284
284
  avg: z.ZodNullable<z.ZodNumber>;
285
285
  low: z.ZodNullable<z.ZodNumber>;
286
286
  }, "strip", z.ZodTypeAny, {
287
287
  high: number | null;
288
- avg: number | null;
289
288
  low: number | null;
289
+ avg: number | null;
290
290
  }, {
291
291
  high: number | null;
292
- avg: number | null;
293
292
  low: number | null;
293
+ avg: number | null;
294
294
  }>>;
295
295
  jobActivity: z.ZodNullable<z.ZodObject<{
296
296
  proposals: z.ZodObject<{
297
297
  min: z.ZodNullable<z.ZodNumber>;
298
298
  max: z.ZodNullable<z.ZodNumber>;
299
299
  }, "strip", z.ZodTypeAny, {
300
- min: number | null;
301
300
  max: number | null;
302
- }, {
303
301
  min: number | null;
302
+ }, {
304
303
  max: number | null;
304
+ min: number | null;
305
305
  }>;
306
306
  lastViewedByClient: z.ZodNullable<z.ZodString>;
307
307
  lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
@@ -311,29 +311,29 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
311
311
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
312
312
  updatedAt: z.ZodNullable<z.ZodNumber>;
313
313
  }, "strip", z.ZodTypeAny, {
314
+ updatedAt: number | null;
315
+ unansweredInvites: number | null;
314
316
  proposals: {
315
- min: number | null;
316
317
  max: number | null;
318
+ min: number | null;
317
319
  };
318
320
  lastViewedByClient: string | null;
319
321
  lastViewedByClientTimestamp: number | null;
320
322
  hires: number | null;
321
323
  interviewing: number | null;
322
324
  invitesSent: number | null;
323
- unansweredInvites: number | null;
324
- updatedAt: number | null;
325
325
  }, {
326
+ updatedAt: number | null;
327
+ unansweredInvites: number | null;
326
328
  proposals: {
327
- min: number | null;
328
329
  max: number | null;
330
+ min: number | null;
329
331
  };
330
332
  lastViewedByClient: string | null;
331
333
  lastViewedByClientTimestamp: number | null;
332
334
  hires: number | null;
333
335
  interviewing: number | null;
334
336
  invitesSent: number | null;
335
- unansweredInvites: number | null;
336
- updatedAt: number | null;
337
337
  }>>;
338
338
  activityUpdates: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
339
339
  activity: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["4h" | "24h"]>, z.ZodObject<{
@@ -341,11 +341,11 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
341
341
  min: z.ZodNullable<z.ZodNumber>;
342
342
  max: z.ZodNullable<z.ZodNumber>;
343
343
  }, "strip", z.ZodTypeAny, {
344
- min: number | null;
345
344
  max: number | null;
346
- }, {
347
345
  min: number | null;
346
+ }, {
348
347
  max: number | null;
348
+ min: number | null;
349
349
  }>;
350
350
  lastViewedByClient: z.ZodNullable<z.ZodString>;
351
351
  lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
@@ -355,29 +355,29 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
355
355
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
356
356
  updatedAt: z.ZodNullable<z.ZodNumber>;
357
357
  }, "strip", z.ZodTypeAny, {
358
+ updatedAt: number | null;
359
+ unansweredInvites: number | null;
358
360
  proposals: {
359
- min: number | null;
360
361
  max: number | null;
362
+ min: number | null;
361
363
  };
362
364
  lastViewedByClient: string | null;
363
365
  lastViewedByClientTimestamp: number | null;
364
366
  hires: number | null;
365
367
  interviewing: number | null;
366
368
  invitesSent: number | null;
367
- unansweredInvites: number | null;
368
- updatedAt: number | null;
369
369
  }, {
370
+ updatedAt: number | null;
371
+ unansweredInvites: number | null;
370
372
  proposals: {
371
- min: number | null;
372
373
  max: number | null;
374
+ min: number | null;
373
375
  };
374
376
  lastViewedByClient: string | null;
375
377
  lastViewedByClientTimestamp: number | null;
376
378
  hires: number | null;
377
379
  interviewing: number | null;
378
380
  invitesSent: number | null;
379
- unansweredInvites: number | null;
380
- updatedAt: number | null;
381
381
  }>>>>;
382
382
  activityDelta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
383
383
  proposals: z.ZodNumber;
@@ -386,17 +386,17 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
386
386
  invitesSent: z.ZodNumber;
387
387
  unansweredInvites: z.ZodNumber;
388
388
  }, "strip", z.ZodTypeAny, {
389
+ unansweredInvites: number;
389
390
  proposals: number;
390
391
  hires: number;
391
392
  interviewing: number;
392
393
  invitesSent: number;
393
- unansweredInvites: number;
394
394
  }, {
395
+ unansweredInvites: number;
395
396
  proposals: number;
396
397
  hires: number;
397
398
  interviewing: number;
398
399
  invitesSent: number;
399
- unansweredInvites: number;
400
400
  }>>>;
401
401
  }, {
402
402
  jobId: z.ZodString;
@@ -412,11 +412,11 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
412
412
  question: z.ZodString;
413
413
  answer: z.ZodString;
414
414
  }, "strip", z.ZodTypeAny, {
415
- question: string;
416
415
  answer: string;
417
- }, {
418
416
  question: string;
417
+ }, {
419
418
  answer: string;
419
+ question: string;
420
420
  }>, "many">>;
421
421
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
422
422
  leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>>;
@@ -431,73 +431,68 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
431
431
  rejectedFeedback: z.ZodNullable<z.ZodString>;
432
432
  applicationId: z.ZodNullable<z.ZodString>;
433
433
  }>, "processed">, "strip", z.ZodTypeAny, {
434
- organizationId: string;
435
- campaignId: string;
436
- jobId: string;
437
- title: string | null;
438
- description: string | null;
439
- questions: string[] | null;
440
- questionAnswerPairs: {
441
- question: string;
442
- answer: string;
443
- }[] | null;
444
434
  id: string | null;
445
- uid: string | null;
446
- createdAt: number | null;
447
- category: string | null;
448
- skills: {
449
- name: string;
450
- }[] | null;
451
- datetime: number | null;
452
- descriptionLength: number | null;
453
- connectsRequired: number | null;
454
- projectType: string | null;
455
- projectDuration: string | null;
456
- jobUrl: string | null;
435
+ title: string | null;
457
436
  metadata: {
458
437
  hours: string | null;
459
438
  duration: string | null;
439
+ paymentType: string | null;
460
440
  experienceLevel: string | null;
461
441
  hourlyRate: {
462
- min: number | null;
463
442
  max: number | null;
443
+ min: number | null;
464
444
  } | null;
465
- paymentType: string | null;
466
445
  fixedPrice: number | null;
467
446
  } | null;
468
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
447
+ description: string | null;
448
+ region: "Worldwide" | "USOnly" | "UKOnly" | "All" | null;
449
+ datetime: number | null;
450
+ campaignId: string;
451
+ organizationId: string;
452
+ createdAt: number | null;
453
+ updatedAt: number | null;
454
+ isFeatured: boolean | null;
455
+ projectDuration: string | null;
456
+ questions: string[] | null;
469
457
  clientInfo: {
458
+ country: string | null;
459
+ region: string | null;
470
460
  isPaymentVerified: boolean | null;
471
461
  isPhoneVerified: boolean | null;
462
+ enterpriseClient: boolean | null;
463
+ companySize: string | null;
464
+ openJobs: number | null;
465
+ totalSpent: number | null;
472
466
  numberOfReviews: number | null;
473
467
  rating: number | null;
474
- country: string | null;
475
- region: string | null;
476
468
  jobsPosted: number | null;
477
- totalSpent: number | null;
478
469
  numberOfHires: number | null;
479
470
  activeEngagements: number | null;
480
- openJobs: number | null;
481
471
  hireRate: number | null;
482
472
  memberSince: string | null;
483
473
  companyIndustry: string | null;
484
- companySize: string | null;
485
- enterpriseClient: boolean | null;
486
474
  avgHourlyRatePaid: number | null;
487
475
  } | null;
488
476
  vendorQualifications: {
489
477
  location: string | null;
490
- talentType: "Agency" | "Independent" | "unspecified" | null;
478
+ includeRisingTalent: string | null;
479
+ talentType: "unspecified" | "Independent" | "Agency" | null;
491
480
  englishLevel: string | null;
492
481
  minimumEarnings: number | null;
493
482
  jobSuccessScore: string | null;
494
- includeRisingTalent: string | null;
495
483
  } | null;
496
- isFeatured: boolean | null;
484
+ category: string | null;
485
+ uid: string | null;
486
+ jobUrl: string | null;
487
+ skills: {
488
+ name: string;
489
+ }[] | null;
490
+ descriptionLength: number | null;
491
+ connectsRequired: number | null;
492
+ projectType: string | null;
497
493
  clientReviews: {
498
- hourlyRate: number | null;
499
494
  paymentType: string | null;
500
- fixedPrice: number | null;
495
+ hourlyRate: number | null;
501
496
  jobTitle: string | null;
502
497
  freelancerName: string | null;
503
498
  freelancerRating: number | null;
@@ -505,35 +500,40 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
505
500
  clientFeedback: string | null;
506
501
  clientFeedbackRating: number | null;
507
502
  dateRange: string | null;
503
+ fixedPrice: number | null;
508
504
  numHours: number | null;
509
505
  totalBilled: number | null;
510
506
  }[] | null;
511
507
  bidRange: {
512
508
  high: number | null;
513
- avg: number | null;
514
509
  low: number | null;
510
+ avg: number | null;
515
511
  } | null;
516
- updatedAt: number | null;
517
512
  jobActivity: {
513
+ updatedAt: number | null;
514
+ unansweredInvites: number | null;
518
515
  proposals: {
519
- min: number | null;
520
516
  max: number | null;
517
+ min: number | null;
521
518
  };
522
519
  lastViewedByClient: string | null;
523
520
  lastViewedByClientTimestamp: number | null;
524
521
  hires: number | null;
525
522
  interviewing: number | null;
526
523
  invitesSent: number | null;
527
- unansweredInvites: number | null;
528
- updatedAt: number | null;
529
524
  } | null;
530
- activityUpdates: 1 | 2 | 3 | null;
525
+ activityUpdates: 2 | 1 | 3 | null;
531
526
  scrapedAt: number | null;
527
+ jobId: string;
532
528
  suitabilityRating: number | null;
533
529
  suitabilityReason: string | null;
534
530
  proposal: string | null;
535
- agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
536
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
531
+ questionAnswerPairs: {
532
+ answer: string;
533
+ question: string;
534
+ }[] | null;
535
+ agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
536
+ leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
537
537
  biddingAmount: number | null;
538
538
  boosted: boolean | null;
539
539
  boostingAmount: number | null;
@@ -544,95 +544,90 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
544
544
  rejectedFeedback: string | null;
545
545
  applicationId: string | null;
546
546
  activity?: Partial<Record<"4h" | "24h", {
547
+ updatedAt: number | null;
548
+ unansweredInvites: number | null;
547
549
  proposals: {
548
- min: number | null;
549
550
  max: number | null;
551
+ min: number | null;
550
552
  };
551
553
  lastViewedByClient: string | null;
552
554
  lastViewedByClientTimestamp: number | null;
553
555
  hires: number | null;
554
556
  interviewing: number | null;
555
557
  invitesSent: number | null;
556
- unansweredInvites: number | null;
557
- updatedAt: number | null;
558
558
  }>> | null | undefined;
559
559
  activityDelta?: {
560
+ unansweredInvites: number;
560
561
  proposals: number;
561
562
  hires: number;
562
563
  interviewing: number;
563
564
  invitesSent: number;
564
- unansweredInvites: number;
565
565
  } | null | undefined;
566
566
  proposalId?: string | undefined;
567
567
  wonAmount?: number | undefined;
568
568
  }, {
569
- organizationId: string;
570
- campaignId: string;
571
- jobId: string;
572
- title: string | null;
573
- description: string | null;
574
- questions: string[] | null;
575
- questionAnswerPairs: {
576
- question: string;
577
- answer: string;
578
- }[] | null;
579
569
  id: string | null;
580
- uid: string | null;
581
- createdAt: number | null;
582
- category: string | null;
583
- skills: {
584
- name: string;
585
- }[] | null;
586
- datetime: number | null;
587
- descriptionLength: number | null;
588
- connectsRequired: number | null;
589
- projectType: string | null;
590
- projectDuration: string | null;
591
- jobUrl: string | null;
570
+ title: string | null;
592
571
  metadata: {
593
572
  hours: string | null;
594
573
  duration: string | null;
574
+ paymentType: string | null;
595
575
  experienceLevel: string | null;
596
576
  hourlyRate: {
597
- min: number | null;
598
577
  max: number | null;
578
+ min: number | null;
599
579
  } | null;
600
- paymentType: string | null;
601
580
  fixedPrice: number | null;
602
581
  } | null;
603
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
582
+ description: string | null;
583
+ region: "Worldwide" | "USOnly" | "UKOnly" | "All" | null;
584
+ datetime: number | null;
585
+ campaignId: string;
586
+ organizationId: string;
587
+ createdAt: number | null;
588
+ updatedAt: number | null;
589
+ isFeatured: boolean | null;
590
+ projectDuration: string | null;
591
+ questions: string[] | null;
604
592
  clientInfo: {
593
+ country: string | null;
594
+ region: string | null;
605
595
  isPaymentVerified: boolean | null;
606
596
  isPhoneVerified: boolean | null;
597
+ enterpriseClient: boolean | null;
598
+ companySize: string | null;
599
+ openJobs: number | null;
600
+ totalSpent: number | null;
607
601
  numberOfReviews: number | null;
608
602
  rating: number | null;
609
- country: string | null;
610
- region: string | null;
611
603
  jobsPosted: number | null;
612
- totalSpent: number | null;
613
604
  numberOfHires: number | null;
614
605
  activeEngagements: number | null;
615
- openJobs: number | null;
616
606
  hireRate: number | null;
617
607
  memberSince: string | null;
618
608
  companyIndustry: string | null;
619
- companySize: string | null;
620
- enterpriseClient: boolean | null;
621
609
  avgHourlyRatePaid: number | null;
622
610
  } | null;
623
611
  vendorQualifications: {
624
612
  location: string | null;
625
- talentType: "Agency" | "Independent" | "unspecified" | null;
613
+ includeRisingTalent: string | null;
614
+ talentType: "unspecified" | "Independent" | "Agency" | null;
626
615
  englishLevel: string | null;
627
616
  minimumEarnings: number | null;
628
617
  jobSuccessScore: string | null;
629
- includeRisingTalent: string | null;
630
618
  } | null;
631
- isFeatured: boolean | null;
619
+ category: string | null;
620
+ uid: string | null;
621
+ jobUrl: string | null;
622
+ skills: {
623
+ name: string;
624
+ }[] | null;
625
+ descriptionLength: number | null;
626
+ connectsRequired: number | null;
627
+ projectType: string | null;
632
628
  clientReviews: {
633
- hourlyRate: number | null;
634
629
  paymentType: string | null;
635
- fixedPrice: number | null;
630
+ hourlyRate: number | null;
636
631
  jobTitle: string | null;
637
632
  freelancerName: string | null;
638
633
  freelancerRating: number | null;
@@ -640,35 +635,40 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
640
635
  clientFeedback: string | null;
641
636
  clientFeedbackRating: number | null;
642
637
  dateRange: string | null;
638
+ fixedPrice: number | null;
643
639
  numHours: number | null;
644
640
  totalBilled: number | null;
645
641
  }[] | null;
646
642
  bidRange: {
647
643
  high: number | null;
648
- avg: number | null;
649
644
  low: number | null;
645
+ avg: number | null;
650
646
  } | null;
651
- updatedAt: number | null;
652
647
  jobActivity: {
648
+ updatedAt: number | null;
649
+ unansweredInvites: number | null;
653
650
  proposals: {
654
- min: number | null;
655
651
  max: number | null;
652
+ min: number | null;
656
653
  };
657
654
  lastViewedByClient: string | null;
658
655
  lastViewedByClientTimestamp: number | null;
659
656
  hires: number | null;
660
657
  interviewing: number | null;
661
658
  invitesSent: number | null;
662
- unansweredInvites: number | null;
663
- updatedAt: number | null;
664
659
  } | null;
665
- activityUpdates: 1 | 2 | 3 | null;
660
+ activityUpdates: 2 | 1 | 3 | null;
666
661
  scrapedAt: number | null;
662
+ jobId: string;
667
663
  suitabilityRating: number | null;
668
664
  suitabilityReason: string | null;
669
665
  proposal: string | null;
670
- agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
671
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
666
+ questionAnswerPairs: {
667
+ answer: string;
668
+ question: string;
669
+ }[] | null;
670
+ agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
671
+ leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
672
672
  biddingAmount: number | null;
673
673
  boosted: boolean | null;
674
674
  boostingAmount: number | null;
@@ -679,24 +679,24 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
679
679
  rejectedFeedback: string | null;
680
680
  applicationId: string | null;
681
681
  activity?: Partial<Record<"4h" | "24h", {
682
+ updatedAt: number | null;
683
+ unansweredInvites: number | null;
682
684
  proposals: {
683
- min: number | null;
684
685
  max: number | null;
686
+ min: number | null;
685
687
  };
686
688
  lastViewedByClient: string | null;
687
689
  lastViewedByClientTimestamp: number | null;
688
690
  hires: number | null;
689
691
  interviewing: number | null;
690
692
  invitesSent: number | null;
691
- unansweredInvites: number | null;
692
- updatedAt: number | null;
693
693
  }>> | null | undefined;
694
694
  activityDelta?: {
695
+ unansweredInvites: number;
695
696
  proposals: number;
696
697
  hires: number;
697
698
  interviewing: number;
698
699
  invitesSent: number;
699
- unansweredInvites: number;
700
700
  } | null | undefined;
701
701
  proposalId?: string | undefined;
702
702
  wonAmount?: number | undefined;
@@ -713,77 +713,72 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
713
713
  leadId: string;
714
714
  }>, "many">>;
715
715
  }, "strip", z.ZodTypeAny, {
716
+ campaignId: string;
716
717
  userId: string | null;
717
718
  organizationId: string;
718
- campaignId: string;
719
719
  lead: {
720
- organizationId: string;
721
- campaignId: string;
722
- jobId: string;
723
- title: string | null;
724
- description: string | null;
725
- questions: string[] | null;
726
- questionAnswerPairs: {
727
- question: string;
728
- answer: string;
729
- }[] | null;
730
720
  id: string | null;
731
- uid: string | null;
732
- createdAt: number | null;
733
- category: string | null;
734
- skills: {
735
- name: string;
736
- }[] | null;
737
- datetime: number | null;
738
- descriptionLength: number | null;
739
- connectsRequired: number | null;
740
- projectType: string | null;
741
- projectDuration: string | null;
742
- jobUrl: string | null;
721
+ title: string | null;
743
722
  metadata: {
744
723
  hours: string | null;
745
724
  duration: string | null;
725
+ paymentType: string | null;
746
726
  experienceLevel: string | null;
747
727
  hourlyRate: {
748
- min: number | null;
749
728
  max: number | null;
729
+ min: number | null;
750
730
  } | null;
751
- paymentType: string | null;
752
731
  fixedPrice: number | null;
753
732
  } | null;
754
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
733
+ description: string | null;
734
+ region: "Worldwide" | "USOnly" | "UKOnly" | "All" | null;
735
+ datetime: number | null;
736
+ campaignId: string;
737
+ organizationId: string;
738
+ createdAt: number | null;
739
+ updatedAt: number | null;
740
+ isFeatured: boolean | null;
741
+ projectDuration: string | null;
742
+ questions: string[] | null;
755
743
  clientInfo: {
744
+ country: string | null;
745
+ region: string | null;
756
746
  isPaymentVerified: boolean | null;
757
747
  isPhoneVerified: boolean | null;
748
+ enterpriseClient: boolean | null;
749
+ companySize: string | null;
750
+ openJobs: number | null;
751
+ totalSpent: number | null;
758
752
  numberOfReviews: number | null;
759
753
  rating: number | null;
760
- country: string | null;
761
- region: string | null;
762
754
  jobsPosted: number | null;
763
- totalSpent: number | null;
764
755
  numberOfHires: number | null;
765
756
  activeEngagements: number | null;
766
- openJobs: number | null;
767
757
  hireRate: number | null;
768
758
  memberSince: string | null;
769
759
  companyIndustry: string | null;
770
- companySize: string | null;
771
- enterpriseClient: boolean | null;
772
760
  avgHourlyRatePaid: number | null;
773
761
  } | null;
774
762
  vendorQualifications: {
775
763
  location: string | null;
776
- talentType: "Agency" | "Independent" | "unspecified" | null;
764
+ includeRisingTalent: string | null;
765
+ talentType: "unspecified" | "Independent" | "Agency" | null;
777
766
  englishLevel: string | null;
778
767
  minimumEarnings: number | null;
779
768
  jobSuccessScore: string | null;
780
- includeRisingTalent: string | null;
781
769
  } | null;
782
- isFeatured: boolean | null;
770
+ category: string | null;
771
+ uid: string | null;
772
+ jobUrl: string | null;
773
+ skills: {
774
+ name: string;
775
+ }[] | null;
776
+ descriptionLength: number | null;
777
+ connectsRequired: number | null;
778
+ projectType: string | null;
783
779
  clientReviews: {
784
- hourlyRate: number | null;
785
780
  paymentType: string | null;
786
- fixedPrice: number | null;
781
+ hourlyRate: number | null;
787
782
  jobTitle: string | null;
788
783
  freelancerName: string | null;
789
784
  freelancerRating: number | null;
@@ -791,35 +786,40 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
791
786
  clientFeedback: string | null;
792
787
  clientFeedbackRating: number | null;
793
788
  dateRange: string | null;
789
+ fixedPrice: number | null;
794
790
  numHours: number | null;
795
791
  totalBilled: number | null;
796
792
  }[] | null;
797
793
  bidRange: {
798
794
  high: number | null;
799
- avg: number | null;
800
795
  low: number | null;
796
+ avg: number | null;
801
797
  } | null;
802
- updatedAt: number | null;
803
798
  jobActivity: {
799
+ updatedAt: number | null;
800
+ unansweredInvites: number | null;
804
801
  proposals: {
805
- min: number | null;
806
802
  max: number | null;
803
+ min: number | null;
807
804
  };
808
805
  lastViewedByClient: string | null;
809
806
  lastViewedByClientTimestamp: number | null;
810
807
  hires: number | null;
811
808
  interviewing: number | null;
812
809
  invitesSent: number | null;
813
- unansweredInvites: number | null;
814
- updatedAt: number | null;
815
810
  } | null;
816
- activityUpdates: 1 | 2 | 3 | null;
811
+ activityUpdates: 2 | 1 | 3 | null;
817
812
  scrapedAt: number | null;
813
+ jobId: string;
818
814
  suitabilityRating: number | null;
819
815
  suitabilityReason: string | null;
820
816
  proposal: string | null;
821
- agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
822
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
817
+ questionAnswerPairs: {
818
+ answer: string;
819
+ question: string;
820
+ }[] | null;
821
+ agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
822
+ leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
823
823
  biddingAmount: number | null;
824
824
  boosted: boolean | null;
825
825
  boostingAmount: number | null;
@@ -830,24 +830,24 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
830
830
  rejectedFeedback: string | null;
831
831
  applicationId: string | null;
832
832
  activity?: Partial<Record<"4h" | "24h", {
833
+ updatedAt: number | null;
834
+ unansweredInvites: number | null;
833
835
  proposals: {
834
- min: number | null;
835
836
  max: number | null;
837
+ min: number | null;
836
838
  };
837
839
  lastViewedByClient: string | null;
838
840
  lastViewedByClientTimestamp: number | null;
839
841
  hires: number | null;
840
842
  interviewing: number | null;
841
843
  invitesSent: number | null;
842
- unansweredInvites: number | null;
843
- updatedAt: number | null;
844
844
  }>> | null | undefined;
845
845
  activityDelta?: {
846
+ unansweredInvites: number;
846
847
  proposals: number;
847
848
  hires: number;
848
849
  interviewing: number;
849
850
  invitesSent: number;
850
- unansweredInvites: number;
851
851
  } | null | undefined;
852
852
  proposalId?: string | undefined;
853
853
  wonAmount?: number | undefined;
@@ -858,77 +858,72 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
858
858
  leadId: string;
859
859
  }[] | undefined;
860
860
  }, {
861
+ campaignId: string;
861
862
  userId: string | null;
862
863
  organizationId: string;
863
- campaignId: string;
864
864
  lead: {
865
- organizationId: string;
866
- campaignId: string;
867
- jobId: string;
868
- title: string | null;
869
- description: string | null;
870
- questions: string[] | null;
871
- questionAnswerPairs: {
872
- question: string;
873
- answer: string;
874
- }[] | null;
875
865
  id: string | null;
876
- uid: string | null;
877
- createdAt: number | null;
878
- category: string | null;
879
- skills: {
880
- name: string;
881
- }[] | null;
882
- datetime: number | null;
883
- descriptionLength: number | null;
884
- connectsRequired: number | null;
885
- projectType: string | null;
886
- projectDuration: string | null;
887
- jobUrl: string | null;
866
+ title: string | null;
888
867
  metadata: {
889
868
  hours: string | null;
890
869
  duration: string | null;
870
+ paymentType: string | null;
891
871
  experienceLevel: string | null;
892
872
  hourlyRate: {
893
- min: number | null;
894
873
  max: number | null;
874
+ min: number | null;
895
875
  } | null;
896
- paymentType: string | null;
897
876
  fixedPrice: number | null;
898
877
  } | null;
899
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
878
+ description: string | null;
879
+ region: "Worldwide" | "USOnly" | "UKOnly" | "All" | null;
880
+ datetime: number | null;
881
+ campaignId: string;
882
+ organizationId: string;
883
+ createdAt: number | null;
884
+ updatedAt: number | null;
885
+ isFeatured: boolean | null;
886
+ projectDuration: string | null;
887
+ questions: string[] | null;
900
888
  clientInfo: {
889
+ country: string | null;
890
+ region: string | null;
901
891
  isPaymentVerified: boolean | null;
902
892
  isPhoneVerified: boolean | null;
893
+ enterpriseClient: boolean | null;
894
+ companySize: string | null;
895
+ openJobs: number | null;
896
+ totalSpent: number | null;
903
897
  numberOfReviews: number | null;
904
898
  rating: number | null;
905
- country: string | null;
906
- region: string | null;
907
899
  jobsPosted: number | null;
908
- totalSpent: number | null;
909
900
  numberOfHires: number | null;
910
901
  activeEngagements: number | null;
911
- openJobs: number | null;
912
902
  hireRate: number | null;
913
903
  memberSince: string | null;
914
904
  companyIndustry: string | null;
915
- companySize: string | null;
916
- enterpriseClient: boolean | null;
917
905
  avgHourlyRatePaid: number | null;
918
906
  } | null;
919
907
  vendorQualifications: {
920
908
  location: string | null;
921
- talentType: "Agency" | "Independent" | "unspecified" | null;
909
+ includeRisingTalent: string | null;
910
+ talentType: "unspecified" | "Independent" | "Agency" | null;
922
911
  englishLevel: string | null;
923
912
  minimumEarnings: number | null;
924
913
  jobSuccessScore: string | null;
925
- includeRisingTalent: string | null;
926
914
  } | null;
927
- isFeatured: boolean | null;
915
+ category: string | null;
916
+ uid: string | null;
917
+ jobUrl: string | null;
918
+ skills: {
919
+ name: string;
920
+ }[] | null;
921
+ descriptionLength: number | null;
922
+ connectsRequired: number | null;
923
+ projectType: string | null;
928
924
  clientReviews: {
929
- hourlyRate: number | null;
930
925
  paymentType: string | null;
931
- fixedPrice: number | null;
926
+ hourlyRate: number | null;
932
927
  jobTitle: string | null;
933
928
  freelancerName: string | null;
934
929
  freelancerRating: number | null;
@@ -936,35 +931,40 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
936
931
  clientFeedback: string | null;
937
932
  clientFeedbackRating: number | null;
938
933
  dateRange: string | null;
934
+ fixedPrice: number | null;
939
935
  numHours: number | null;
940
936
  totalBilled: number | null;
941
937
  }[] | null;
942
938
  bidRange: {
943
939
  high: number | null;
944
- avg: number | null;
945
940
  low: number | null;
941
+ avg: number | null;
946
942
  } | null;
947
- updatedAt: number | null;
948
943
  jobActivity: {
944
+ updatedAt: number | null;
945
+ unansweredInvites: number | null;
949
946
  proposals: {
950
- min: number | null;
951
947
  max: number | null;
948
+ min: number | null;
952
949
  };
953
950
  lastViewedByClient: string | null;
954
951
  lastViewedByClientTimestamp: number | null;
955
952
  hires: number | null;
956
953
  interviewing: number | null;
957
954
  invitesSent: number | null;
958
- unansweredInvites: number | null;
959
- updatedAt: number | null;
960
955
  } | null;
961
- activityUpdates: 1 | 2 | 3 | null;
956
+ activityUpdates: 2 | 1 | 3 | null;
962
957
  scrapedAt: number | null;
958
+ jobId: string;
963
959
  suitabilityRating: number | null;
964
960
  suitabilityReason: string | null;
965
961
  proposal: string | null;
966
- agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
967
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
962
+ questionAnswerPairs: {
963
+ answer: string;
964
+ question: string;
965
+ }[] | null;
966
+ agentStatus: "suitabilityComplete" | "proposalComplete" | "biddingComplete" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityFailed" | "proposalProcessing" | "proposalFailed" | "biddingProcessing" | "biddingFailed" | "jobArchived" | null;
967
+ leadStatus: "rejected" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "won" | null;
968
968
  biddingAmount: number | null;
969
969
  boosted: boolean | null;
970
970
  boostingAmount: number | null;
@@ -975,24 +975,24 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
975
975
  rejectedFeedback: string | null;
976
976
  applicationId: string | null;
977
977
  activity?: Partial<Record<"4h" | "24h", {
978
+ updatedAt: number | null;
979
+ unansweredInvites: number | null;
978
980
  proposals: {
979
- min: number | null;
980
981
  max: number | null;
982
+ min: number | null;
981
983
  };
982
984
  lastViewedByClient: string | null;
983
985
  lastViewedByClientTimestamp: number | null;
984
986
  hires: number | null;
985
987
  interviewing: number | null;
986
988
  invitesSent: number | null;
987
- unansweredInvites: number | null;
988
- updatedAt: number | null;
989
989
  }>> | null | undefined;
990
990
  activityDelta?: {
991
+ unansweredInvites: number;
991
992
  proposals: number;
992
993
  hires: number;
993
994
  interviewing: number;
994
995
  invitesSent: number;
995
- unansweredInvites: number;
996
996
  } | null | undefined;
997
997
  proposalId?: string | undefined;
998
998
  wonAmount?: number | undefined;
@@ -1020,11 +1020,11 @@ export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{
1020
1020
  selected_profile: z.ZodString;
1021
1021
  reason: z.ZodString;
1022
1022
  }, "strip", z.ZodTypeAny, {
1023
- selected_profile: string;
1024
1023
  reason: string;
1025
- }, {
1026
1024
  selected_profile: string;
1025
+ }, {
1027
1026
  reason: string;
1027
+ selected_profile: string;
1028
1028
  }>;
1029
1029
  export type AgentCalculateSuitabilityRequest = z.infer<typeof agentCalculateSuitabilityRequestSchema>;
1030
1030
  export type AgentGenerateProposalRequest = z.infer<typeof agentGenerateProposalRequestSchema>;
@@ -1032,95 +1032,95 @@ export type AgentGenerateProposalResponse = z.infer<typeof agentGenerateProposal
1032
1032
  export type AgentPickSpecialisedProfileRequest = z.infer<typeof agentPickSpecialisedProfileRequestSchema>;
1033
1033
  export type AgentPickSpecialisedProfileResponse = z.infer<typeof agentPickSpecialisedProfileResponseSchema>;
1034
1034
  export declare const suitabilityRatingSchema: z.ZodObject<{
1035
- rating: z.ZodNumber;
1035
+ classification: z.ZodEnum<["suitable", "unsuitable", "not sure"]>;
1036
1036
  reason: z.ZodString;
1037
1037
  }, "strip", z.ZodTypeAny, {
1038
- rating: number;
1039
1038
  reason: string;
1039
+ classification: "suitable" | "unsuitable" | "not sure";
1040
1040
  }, {
1041
- rating: number;
1042
1041
  reason: string;
1042
+ classification: "suitable" | "unsuitable" | "not sure";
1043
1043
  }>;
1044
1044
  export declare const jobQualityScoreSchema: z.ZodObject<{
1045
1045
  rating: z.ZodNumber;
1046
1046
  reason: z.ZodString;
1047
1047
  }, "strip", z.ZodTypeAny, {
1048
- rating: number;
1049
1048
  reason: string;
1050
- }, {
1051
1049
  rating: number;
1050
+ }, {
1052
1051
  reason: string;
1052
+ rating: number;
1053
1053
  }>;
1054
1054
  export type JobQualityScore = z.infer<typeof jobQualityScoreSchema>;
1055
1055
  export { proposalSchema };
1056
1056
  export type Proposal = z.infer<typeof proposalSchema>;
1057
1057
  export declare const agentTaskResponseSchema: z.ZodObject<{
1058
1058
  result: z.ZodUnion<[z.ZodObject<{
1059
- rating: z.ZodNumber;
1059
+ classification: z.ZodEnum<["suitable", "unsuitable", "not sure"]>;
1060
1060
  reason: z.ZodString;
1061
1061
  }, "strip", z.ZodTypeAny, {
1062
- rating: number;
1063
1062
  reason: string;
1063
+ classification: "suitable" | "unsuitable" | "not sure";
1064
1064
  }, {
1065
- rating: number;
1066
1065
  reason: string;
1066
+ classification: "suitable" | "unsuitable" | "not sure";
1067
1067
  }>, z.ZodObject<{
1068
1068
  coverLetter: z.ZodString;
1069
1069
  questionAnswerPairs: z.ZodArray<z.ZodObject<{
1070
1070
  question: z.ZodString;
1071
1071
  answer: z.ZodString;
1072
1072
  }, "strip", z.ZodTypeAny, {
1073
- question: string;
1074
1073
  answer: string;
1075
- }, {
1076
1074
  question: string;
1075
+ }, {
1077
1076
  answer: string;
1077
+ question: string;
1078
1078
  }>, "many">;
1079
1079
  }, "strip", z.ZodTypeAny, {
1080
- coverLetter: string;
1081
1080
  questionAnswerPairs: {
1082
- question: string;
1083
1081
  answer: string;
1082
+ question: string;
1084
1083
  }[];
1085
- }, {
1086
1084
  coverLetter: string;
1085
+ }, {
1087
1086
  questionAnswerPairs: {
1088
- question: string;
1089
1087
  answer: string;
1088
+ question: string;
1090
1089
  }[];
1090
+ coverLetter: string;
1091
1091
  }>]>;
1092
1092
  model: z.ZodString;
1093
1093
  provider: z.ZodString;
1094
1094
  promptTokens: z.ZodNumber;
1095
1095
  completionTokens: z.ZodNumber;
1096
1096
  }, "strip", z.ZodTypeAny, {
1097
+ provider: string;
1097
1098
  result: {
1098
- rating: number;
1099
- reason: string;
1100
- } | {
1101
- coverLetter: string;
1102
1099
  questionAnswerPairs: {
1103
- question: string;
1104
1100
  answer: string;
1101
+ question: string;
1105
1102
  }[];
1103
+ coverLetter: string;
1104
+ } | {
1105
+ reason: string;
1106
+ classification: "suitable" | "unsuitable" | "not sure";
1106
1107
  };
1107
1108
  model: string;
1108
- provider: string;
1109
1109
  promptTokens: number;
1110
1110
  completionTokens: number;
1111
1111
  }, {
1112
+ provider: string;
1112
1113
  result: {
1113
- rating: number;
1114
- reason: string;
1115
- } | {
1116
- coverLetter: string;
1117
1114
  questionAnswerPairs: {
1118
- question: string;
1119
1115
  answer: string;
1116
+ question: string;
1120
1117
  }[];
1118
+ coverLetter: string;
1119
+ } | {
1120
+ reason: string;
1121
+ classification: "suitable" | "unsuitable" | "not sure";
1121
1122
  };
1122
1123
  model: string;
1123
- provider: string;
1124
1124
  promptTokens: number;
1125
1125
  completionTokens: number;
1126
1126
  }>;