lancer-shared 1.2.326 → 1.2.327

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 (41) hide show
  1. package/dist/bundle.cjs.js +105 -0
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +94 -1
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/constants/chat.d.ts +17 -1
  6. package/dist/constants/routes.d.ts +1 -0
  7. package/dist/schemas/account/bidder-account.d.ts +33 -33
  8. package/dist/schemas/account/scraper-account.d.ts +10 -10
  9. package/dist/schemas/agent/index.d.ts +208 -208
  10. package/dist/schemas/agent/proposal.d.ts +2 -2
  11. package/dist/schemas/bidder/bid.d.ts +1744 -1744
  12. package/dist/schemas/campaign/campaign-analytics.d.ts +250 -250
  13. package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
  14. package/dist/schemas/campaign/campaign.d.ts +69 -69
  15. package/dist/schemas/chat/index.d.ts +563 -68
  16. package/dist/schemas/dashboard/index.d.ts +18 -18
  17. package/dist/schemas/golden-dataset/sample.d.ts +4 -4
  18. package/dist/schemas/job/index.d.ts +70 -70
  19. package/dist/schemas/job/job-details.d.ts +14 -14
  20. package/dist/schemas/job/job-listing.d.ts +10 -10
  21. package/dist/schemas/job/nuxt.d.ts +6 -6
  22. package/dist/schemas/lead/index.d.ts +683 -683
  23. package/dist/schemas/lead/lead-status.d.ts +2 -2
  24. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +98 -98
  25. package/dist/schemas/logger/log-event.d.ts +40 -40
  26. package/dist/schemas/logger/scraper-events.d.ts +8 -8
  27. package/dist/schemas/notifications/index.d.ts +4 -4
  28. package/dist/schemas/organization/billing.d.ts +2 -2
  29. package/dist/schemas/organization/index.d.ts +34 -34
  30. package/dist/schemas/organization/onboarding.d.ts +2 -2
  31. package/dist/schemas/organization/organization-leads.d.ts +2 -2
  32. package/dist/schemas/organization/subscription.d.ts +6 -6
  33. package/dist/schemas/plan/index.d.ts +2 -2
  34. package/dist/schemas/proxy/proxy.d.ts +3 -3
  35. package/dist/schemas/scraper/scrape-payload.d.ts +262 -262
  36. package/dist/schemas/scraper/scrape-result.d.ts +86 -86
  37. package/dist/schemas/transaction/index.d.ts +4 -4
  38. package/dist/schemas/upwork-talent/index.d.ts +8 -8
  39. package/dist/schemas/usage/index.d.ts +2 -2
  40. package/dist/schemas/usage-event/index.d.ts +8 -8
  41. package/package.json +1 -1
@@ -157,9 +157,6 @@ export declare const organizationSchema: z.ZodObject<{
157
157
  source: "manual" | "stripe";
158
158
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
159
159
  planId: string;
160
- pendingPlanId: string | null;
161
- startedAt: number;
162
- currentPeriodEnd: number;
163
160
  stripe: {
164
161
  id: string;
165
162
  items: {
@@ -173,6 +170,9 @@ export declare const organizationSchema: z.ZodObject<{
173
170
  hosted_invoice_url: string | null;
174
171
  };
175
172
  };
173
+ pendingPlanId: string | null;
174
+ startedAt: number;
175
+ currentPeriodEnd: number;
176
176
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
177
177
  trialEndsAt: number | null;
178
178
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
@@ -182,9 +182,6 @@ export declare const organizationSchema: z.ZodObject<{
182
182
  source: "manual" | "stripe";
183
183
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
184
184
  planId: string;
185
- pendingPlanId: string | null;
186
- startedAt: number;
187
- currentPeriodEnd: number;
188
185
  stripe: {
189
186
  id: string;
190
187
  items: {
@@ -198,6 +195,9 @@ export declare const organizationSchema: z.ZodObject<{
198
195
  hosted_invoice_url: string | null;
199
196
  };
200
197
  };
198
+ pendingPlanId: string | null;
199
+ startedAt: number;
200
+ currentPeriodEnd: number;
201
201
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
202
202
  trialEndsAt: number | null;
203
203
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
@@ -238,19 +238,19 @@ export declare const organizationSchema: z.ZodObject<{
238
238
  };
239
239
  }>;
240
240
  }, "strip", z.ZodTypeAny, {
241
+ savedCard: boolean;
241
242
  stripe: {
242
243
  customer: {
243
244
  id: string | null;
244
245
  };
245
246
  };
246
- savedCard: boolean;
247
247
  }, {
248
+ savedCard: boolean;
248
249
  stripe: {
249
250
  customer: {
250
251
  id: string | null;
251
252
  };
252
253
  };
253
- savedCard: boolean;
254
254
  }>>;
255
255
  lastBidTime: z.ZodNullable<z.ZodNumber>;
256
256
  nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
@@ -309,28 +309,20 @@ export declare const organizationSchema: z.ZodObject<{
309
309
  active: boolean;
310
310
  name: string;
311
311
  billing: {
312
+ savedCard: boolean;
312
313
  stripe: {
313
314
  customer: {
314
315
  id: string | null;
315
316
  };
316
317
  };
317
- savedCard: boolean;
318
318
  } | null;
319
319
  createdAt: number;
320
320
  updatedAt: number;
321
- limits: {
322
- monthlyCredits: number;
323
- usedCredits: number;
324
- extraCredits: number;
325
- };
326
321
  associatedBidders: string[] | null;
327
322
  subscription: {
328
323
  source: "manual" | "stripe";
329
324
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
330
325
  planId: string;
331
- pendingPlanId: string | null;
332
- startedAt: number;
333
- currentPeriodEnd: number;
334
326
  stripe: {
335
327
  id: string;
336
328
  items: {
@@ -344,12 +336,20 @@ export declare const organizationSchema: z.ZodObject<{
344
336
  hosted_invoice_url: string | null;
345
337
  };
346
338
  };
339
+ pendingPlanId: string | null;
340
+ startedAt: number;
341
+ currentPeriodEnd: number;
347
342
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
348
343
  trialEndsAt: number | null;
349
344
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
350
345
  hasUsBidderAccess: boolean | null;
351
346
  usBidderSubscriptionItemId: string | null;
352
347
  } | null;
348
+ limits: {
349
+ monthlyCredits: number;
350
+ usedCredits: number;
351
+ extraCredits: number;
352
+ };
353
353
  lastBidTime: number | null;
354
354
  nextScheduledBidTime: number | null;
355
355
  openRouterApiKey: string | null;
@@ -373,28 +373,20 @@ export declare const organizationSchema: z.ZodObject<{
373
373
  active: boolean;
374
374
  name: string;
375
375
  billing: {
376
+ savedCard: boolean;
376
377
  stripe: {
377
378
  customer: {
378
379
  id: string | null;
379
380
  };
380
381
  };
381
- savedCard: boolean;
382
382
  } | null;
383
383
  createdAt: number;
384
384
  updatedAt: number;
385
- limits: {
386
- monthlyCredits: number;
387
- usedCredits: number;
388
- extraCredits: number;
389
- };
390
385
  associatedBidders: string[] | null;
391
386
  subscription: {
392
387
  source: "manual" | "stripe";
393
388
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
394
389
  planId: string;
395
- pendingPlanId: string | null;
396
- startedAt: number;
397
- currentPeriodEnd: number;
398
390
  stripe: {
399
391
  id: string;
400
392
  items: {
@@ -408,12 +400,20 @@ export declare const organizationSchema: z.ZodObject<{
408
400
  hosted_invoice_url: string | null;
409
401
  };
410
402
  };
403
+ pendingPlanId: string | null;
404
+ startedAt: number;
405
+ currentPeriodEnd: number;
411
406
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
412
407
  trialEndsAt: number | null;
413
408
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
414
409
  hasUsBidderAccess: boolean | null;
415
410
  usBidderSubscriptionItemId: string | null;
416
411
  } | null;
412
+ limits: {
413
+ monthlyCredits: number;
414
+ usedCredits: number;
415
+ extraCredits: number;
416
+ };
417
417
  lastBidTime: number | null;
418
418
  nextScheduledBidTime: number | null;
419
419
  openRouterApiKey: string | null;
@@ -752,9 +752,6 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
752
752
  source: "manual" | "stripe";
753
753
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
754
754
  planId: string;
755
- pendingPlanId: string | null;
756
- startedAt: number;
757
- currentPeriodEnd: number;
758
755
  stripe: {
759
756
  id: string;
760
757
  items: {
@@ -768,6 +765,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
768
765
  hosted_invoice_url: string | null;
769
766
  };
770
767
  };
768
+ pendingPlanId: string | null;
769
+ startedAt: number;
770
+ currentPeriodEnd: number;
771
771
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
772
772
  trialEndsAt: number | null;
773
773
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
@@ -777,9 +777,6 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
777
777
  source: "manual" | "stripe";
778
778
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
779
779
  planId: string;
780
- pendingPlanId: string | null;
781
- startedAt: number;
782
- currentPeriodEnd: number;
783
780
  stripe: {
784
781
  id: string;
785
782
  items: {
@@ -793,6 +790,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
793
790
  hosted_invoice_url: string | null;
794
791
  };
795
792
  };
793
+ pendingPlanId: string | null;
794
+ startedAt: number;
795
+ currentPeriodEnd: number;
796
796
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
797
797
  trialEndsAt: number | null;
798
798
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
@@ -833,19 +833,19 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
833
833
  };
834
834
  }>;
835
835
  }, "strip", z.ZodTypeAny, {
836
+ savedCard: boolean;
836
837
  stripe: {
837
838
  customer: {
838
839
  id: string | null;
839
840
  };
840
841
  };
841
- savedCard: boolean;
842
842
  }, {
843
+ savedCard: boolean;
843
844
  stripe: {
844
845
  customer: {
845
846
  id: string | null;
846
847
  };
847
848
  };
848
- savedCard: boolean;
849
849
  }>>;
850
850
  lastBidTime: z.ZodNullable<z.ZodNumber>;
851
851
  nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
@@ -10,15 +10,15 @@ export declare const onboardingSectionSchema: z.ZodObject<{
10
10
  id: string;
11
11
  title: string;
12
12
  description: string;
13
- videoUrl: string | null;
14
13
  parentId: string | null;
15
14
  stepNumber: string;
15
+ videoUrl: string | null;
16
16
  }, {
17
17
  id: string;
18
18
  title: string;
19
19
  description: string;
20
- videoUrl: string | null;
21
20
  parentId: string | null;
22
21
  stepNumber: string;
22
+ videoUrl: string | null;
23
23
  }>;
24
24
  export type OnboardingSection = z.infer<typeof onboardingSectionSchema>;
@@ -9,15 +9,15 @@ export declare const getOrganizationLeadsRequestQuerySchema: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  cursor?: string | undefined;
11
11
  status?: "all" | "rejected" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
12
- limit?: number | undefined;
13
12
  campaignId?: string | undefined;
14
13
  inQueue?: boolean | undefined;
14
+ limit?: number | undefined;
15
15
  }, {
16
16
  cursor?: string | undefined;
17
17
  status?: "all" | "rejected" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
18
- limit?: number | undefined;
19
18
  campaignId?: string | undefined;
20
19
  inQueue?: boolean | undefined;
20
+ limit?: number | undefined;
21
21
  }>;
22
22
  export type GetOrganizationLeadsStatus = z.infer<typeof getOrganizationLeadsStatusEnum>;
23
23
  export type GetOrganizationLeadsRequestQuery = z.infer<typeof getOrganizationLeadsRequestQuerySchema>;
@@ -152,9 +152,6 @@ export declare const subscriptionSchema: z.ZodObject<{
152
152
  source: "manual" | "stripe";
153
153
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
154
154
  planId: string;
155
- pendingPlanId: string | null;
156
- startedAt: number;
157
- currentPeriodEnd: number;
158
155
  stripe: {
159
156
  id: string;
160
157
  items: {
@@ -168,6 +165,9 @@ export declare const subscriptionSchema: z.ZodObject<{
168
165
  hosted_invoice_url: string | null;
169
166
  };
170
167
  };
168
+ pendingPlanId: string | null;
169
+ startedAt: number;
170
+ currentPeriodEnd: number;
171
171
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
172
172
  trialEndsAt: number | null;
173
173
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
@@ -177,9 +177,6 @@ export declare const subscriptionSchema: z.ZodObject<{
177
177
  source: "manual" | "stripe";
178
178
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
179
179
  planId: string;
180
- pendingPlanId: string | null;
181
- startedAt: number;
182
- currentPeriodEnd: number;
183
180
  stripe: {
184
181
  id: string;
185
182
  items: {
@@ -193,6 +190,9 @@ export declare const subscriptionSchema: z.ZodObject<{
193
190
  hosted_invoice_url: string | null;
194
191
  };
195
192
  };
193
+ pendingPlanId: string | null;
194
+ startedAt: number;
195
+ currentPeriodEnd: number;
196
196
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
197
197
  trialEndsAt: number | null;
198
198
  billingInterval: "monthly" | "quarterly" | "yearly" | null;
@@ -279,7 +279,6 @@ export declare const planSchema: z.ZodObject<{
279
279
  name: string;
280
280
  description: string;
281
281
  version: number;
282
- createdAt: number;
283
282
  sortOrder: number;
284
283
  pricing: {
285
284
  monthly: {
@@ -302,6 +301,7 @@ export declare const planSchema: z.ZodObject<{
302
301
  }[] | undefined;
303
302
  };
304
303
  price: number;
304
+ createdAt: number;
305
305
  isActive: boolean;
306
306
  archivedAt: number | null;
307
307
  icon: string | null;
@@ -318,7 +318,6 @@ export declare const planSchema: z.ZodObject<{
318
318
  name: string;
319
319
  description: string;
320
320
  version: number;
321
- createdAt: number;
322
321
  sortOrder: number;
323
322
  pricing: {
324
323
  monthly: {
@@ -341,6 +340,7 @@ export declare const planSchema: z.ZodObject<{
341
340
  }[] | undefined;
342
341
  };
343
342
  price: number;
343
+ createdAt: number;
344
344
  isActive: boolean;
345
345
  archivedAt: number | null;
346
346
  icon: string | null;
@@ -32,13 +32,13 @@ export declare const proxySchema: z.ZodObject<{
32
32
  status: "invalid" | "valid" | "pending_validation" | null;
33
33
  region: string | null;
34
34
  ip: string;
35
- accountId: string | null;
36
35
  city: string | null;
37
36
  externalId: string;
38
37
  password: string;
39
38
  provider: "webshare" | "decodo" | "proxy-cheap" | "rayobyte" | "brightdata" | "iproyal";
40
39
  isProxy: boolean | null;
41
40
  claimedCountry: "US" | "CA" | "GB" | "AF" | "AL" | "DZ" | "AD" | "AO" | "AR" | "AM" | "AU" | "AT" | "AZ" | "BD" | "BY" | "BE" | "BA" | "BR" | "BG" | "CM" | "CF" | "CL" | "CN" | "CO" | "CR" | "HR" | "CY" | "CZ" | "DK" | "DM" | "DO" | "EC" | "EG" | "SV" | "EE" | "ET" | "FI" | "FR" | "GE" | "DE" | "GH" | "GR" | "GL" | "GD" | "GT" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KZ" | "KR" | "LV" | "LB" | "LT" | "LU" | "MK" | "MW" | "MY" | "MT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MA" | "NL" | "NZ" | "NI" | "NG" | "NO" | "PK" | "PW" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "SM" | "SA" | "SN" | "RS" | "SG" | "SK" | "SI" | "SO" | "ZA" | "ES" | "LK" | "SR" | "SE" | "CH" | "TH" | "TR" | "UG" | "UA" | "AE" | "UY" | "UZ" | "VE" | "VN" | "YE" | "ZM" | "ZW";
41
+ accountId: string | null;
42
42
  }, {
43
43
  type: "rotating" | "static";
44
44
  id: string;
@@ -49,13 +49,13 @@ export declare const proxySchema: z.ZodObject<{
49
49
  status: "invalid" | "valid" | "pending_validation" | null;
50
50
  region: string | null;
51
51
  ip: string;
52
- accountId: string | null;
53
52
  city: string | null;
54
53
  externalId: string;
55
54
  password: string;
56
55
  provider: "webshare" | "decodo" | "proxy-cheap" | "rayobyte" | "brightdata" | "iproyal";
57
56
  isProxy: boolean | null;
58
57
  claimedCountry: "US" | "CA" | "GB" | "AF" | "AL" | "DZ" | "AD" | "AO" | "AR" | "AM" | "AU" | "AT" | "AZ" | "BD" | "BY" | "BE" | "BA" | "BR" | "BG" | "CM" | "CF" | "CL" | "CN" | "CO" | "CR" | "HR" | "CY" | "CZ" | "DK" | "DM" | "DO" | "EC" | "EG" | "SV" | "EE" | "ET" | "FI" | "FR" | "GE" | "DE" | "GH" | "GR" | "GL" | "GD" | "GT" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KZ" | "KR" | "LV" | "LB" | "LT" | "LU" | "MK" | "MW" | "MY" | "MT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MA" | "NL" | "NZ" | "NI" | "NG" | "NO" | "PK" | "PW" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "SM" | "SA" | "SN" | "RS" | "SG" | "SK" | "SI" | "SO" | "ZA" | "ES" | "LK" | "SR" | "SE" | "CH" | "TH" | "TR" | "UG" | "UA" | "AE" | "UY" | "UZ" | "VE" | "VN" | "YE" | "ZM" | "ZW";
58
+ accountId: string | null;
59
59
  }>;
60
60
  export declare const externalProxySchema: z.ZodObject<Omit<{
61
61
  id: z.ZodString;
@@ -74,7 +74,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
74
74
  region: z.ZodNullable<z.ZodString>;
75
75
  accountId: z.ZodNullable<z.ZodString>;
76
76
  type: z.ZodEnum<["rotating", "static"]>;
77
- }, "id" | "country" | "status" | "accountId" | "city">, "strip", z.ZodTypeAny, {
77
+ }, "id" | "country" | "status" | "city" | "accountId">, "strip", z.ZodTypeAny, {
78
78
  type: "rotating" | "static";
79
79
  port: number;
80
80
  username: string;