lancer-shared 1.2.271 → 1.2.273

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 (46) hide show
  1. package/dist/bundle.cjs.js +78 -4
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +77 -5
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/constants/grouped-countries.d.ts +1 -0
  6. package/dist/constants/index.d.ts +1 -0
  7. package/dist/schemas/account/bidder-account.d.ts +20 -20
  8. package/dist/schemas/account/scraper-account.d.ts +22 -22
  9. package/dist/schemas/agent/index.d.ts +216 -216
  10. package/dist/schemas/agent/proposal.d.ts +2 -2
  11. package/dist/schemas/bidder/bid.d.ts +2062 -2043
  12. package/dist/schemas/campaign/campaign-analytics.d.ts +784 -776
  13. package/dist/schemas/campaign/campaign-chat-bot.d.ts +9 -9
  14. package/dist/schemas/campaign/campaign.d.ts +378 -378
  15. package/dist/schemas/dashboard/index.d.ts +12 -12
  16. package/dist/schemas/golden-dataset/sample.d.ts +8 -8
  17. package/dist/schemas/invoice/index.d.ts +4 -4
  18. package/dist/schemas/job/index.d.ts +112 -112
  19. package/dist/schemas/job/job-api.d.ts +6 -6
  20. package/dist/schemas/job/job-details.d.ts +74 -74
  21. package/dist/schemas/job/job-filters.d.ts +47 -47
  22. package/dist/schemas/job/job-listing.d.ts +22 -22
  23. package/dist/schemas/job/nuxt.d.ts +24 -24
  24. package/dist/schemas/lead/index.d.ts +845 -844
  25. package/dist/schemas/lead/insufficient-connects-action.d.ts +3 -0
  26. package/dist/schemas/lead/lead-status.d.ts +10 -10
  27. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +6 -6
  28. package/dist/schemas/logger/feed/feed-enrich.d.ts +6 -6
  29. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +140 -140
  30. package/dist/schemas/logger/feed/feed-scrape.d.ts +6 -6
  31. package/dist/schemas/logger/log-event.d.ts +72 -72
  32. package/dist/schemas/logger/scraper-events.d.ts +28 -28
  33. package/dist/schemas/notifications/index.d.ts +4 -4
  34. package/dist/schemas/organization/billing.d.ts +2 -2
  35. package/dist/schemas/organization/index.d.ts +66 -62
  36. package/dist/schemas/organization/organization-leads.d.ts +4 -4
  37. package/dist/schemas/organization/subscription.d.ts +9 -9
  38. package/dist/schemas/plan/index.d.ts +22 -22
  39. package/dist/schemas/proxy/proxy.d.ts +2 -2
  40. package/dist/schemas/scraper/scrape-payload.d.ts +495 -490
  41. package/dist/schemas/scraper/scrape-result.d.ts +136 -136
  42. package/dist/schemas/talent/index.d.ts +148 -148
  43. package/dist/schemas/transaction/index.d.ts +2 -2
  44. package/dist/schemas/usage/index.d.ts +2 -2
  45. package/dist/schemas/usage-event/index.d.ts +8 -8
  46. package/package.json +1 -1
@@ -7,15 +7,15 @@ export declare const sendAlertPayloadSchema: z.ZodObject<{
7
7
  errorMessage: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  type: "proposal" | "suitability" | "bidding" | "scraper";
10
- campaignId: string | null;
11
- organizationId: string | null;
12
10
  leadId: string | null;
11
+ organizationId: string | null;
12
+ campaignId: string | null;
13
13
  errorMessage: string;
14
14
  }, {
15
15
  type: "proposal" | "suitability" | "bidding" | "scraper";
16
- campaignId: string | null;
17
- organizationId: string | null;
18
16
  leadId: string | null;
17
+ organizationId: string | null;
18
+ campaignId: string | null;
19
19
  errorMessage: string;
20
20
  }>;
21
21
  export type SendAlertPayload = z.infer<typeof sendAlertPayloadSchema>;
@@ -35,17 +35,17 @@ export declare const billingSchema: import("zod").ZodObject<{
35
35
  };
36
36
  }>;
37
37
  }, "strip", import("zod").ZodTypeAny, {
38
- savedCard: boolean;
39
38
  stripe: {
40
39
  customer: {
41
40
  id: string | null;
42
41
  };
43
42
  };
44
- }, {
45
43
  savedCard: boolean;
44
+ }, {
46
45
  stripe: {
47
46
  customer: {
48
47
  id: string | null;
49
48
  };
50
49
  };
50
+ savedCard: boolean;
51
51
  }>;
@@ -27,15 +27,15 @@ declare const oneTimePaymentSchema: z.ZodObject<{
27
27
  status: string;
28
28
  error?: string | undefined;
29
29
  currency?: string | undefined;
30
- paidAt?: number | undefined;
31
30
  amount?: number | undefined;
31
+ paidAt?: number | undefined;
32
32
  paymentIntentId?: string | undefined;
33
33
  }, {
34
34
  status: string;
35
35
  error?: string | undefined;
36
36
  currency?: string | undefined;
37
- paidAt?: number | undefined;
38
37
  amount?: number | undefined;
38
+ paidAt?: number | undefined;
39
39
  paymentIntentId?: string | undefined;
40
40
  }>;
41
41
  declare const oneTimePaymentsSchema: z.ZodObject<{
@@ -50,15 +50,15 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
50
50
  status: string;
51
51
  error?: string | undefined;
52
52
  currency?: string | undefined;
53
- paidAt?: number | undefined;
54
53
  amount?: number | undefined;
54
+ paidAt?: number | undefined;
55
55
  paymentIntentId?: string | undefined;
56
56
  }, {
57
57
  status: string;
58
58
  error?: string | undefined;
59
59
  currency?: string | undefined;
60
- paidAt?: number | undefined;
61
60
  amount?: number | undefined;
61
+ paidAt?: number | undefined;
62
62
  paymentIntentId?: string | undefined;
63
63
  }>>;
64
64
  }, "strip", z.ZodTypeAny, {
@@ -66,8 +66,8 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
66
66
  status: string;
67
67
  error?: string | undefined;
68
68
  currency?: string | undefined;
69
- paidAt?: number | undefined;
70
69
  amount?: number | undefined;
70
+ paidAt?: number | undefined;
71
71
  paymentIntentId?: string | undefined;
72
72
  } | undefined;
73
73
  }, {
@@ -75,8 +75,8 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
75
75
  status: string;
76
76
  error?: string | undefined;
77
77
  currency?: string | undefined;
78
- paidAt?: number | undefined;
79
78
  amount?: number | undefined;
79
+ paidAt?: number | undefined;
80
80
  paymentIntentId?: string | undefined;
81
81
  } | undefined;
82
82
  }>;
@@ -151,13 +151,16 @@ export declare const organizationSchema: z.ZodObject<{
151
151
  source: z.ZodEnum<["stripe", "manual"]>;
152
152
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
153
153
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
154
- billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
154
+ billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
155
155
  hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
156
156
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
157
157
  }, "strip", z.ZodTypeAny, {
158
158
  source: "manual" | "stripe";
159
159
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
160
160
  planId: string;
161
+ pendingPlanId: string | null;
162
+ startedAt: number;
163
+ currentPeriodEnd: number;
161
164
  stripe: {
162
165
  id: string;
163
166
  items: {
@@ -171,18 +174,18 @@ export declare const organizationSchema: z.ZodObject<{
171
174
  hosted_invoice_url: string | null;
172
175
  };
173
176
  };
174
- pendingPlanId: string | null;
175
- startedAt: number;
176
- currentPeriodEnd: number;
177
177
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
178
178
  trialEndsAt: number | null;
179
- billingInterval: "monthly" | "quarterly" | "yearly";
179
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
180
180
  hasUsBidderAccess: boolean | null;
181
181
  usBidderSubscriptionItemId: string | null;
182
182
  }, {
183
183
  source: "manual" | "stripe";
184
184
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
185
185
  planId: string;
186
+ pendingPlanId: string | null;
187
+ startedAt: number;
188
+ currentPeriodEnd: number;
186
189
  stripe: {
187
190
  id: string;
188
191
  items: {
@@ -196,12 +199,9 @@ export declare const organizationSchema: z.ZodObject<{
196
199
  hosted_invoice_url: string | null;
197
200
  };
198
201
  };
199
- pendingPlanId: string | null;
200
- startedAt: number;
201
- currentPeriodEnd: number;
202
202
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
203
203
  trialEndsAt: number | null;
204
- billingInterval: "monthly" | "quarterly" | "yearly";
204
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
205
205
  hasUsBidderAccess: boolean | null;
206
206
  usBidderSubscriptionItemId: string | null;
207
207
  }>>;
@@ -239,19 +239,19 @@ export declare const organizationSchema: z.ZodObject<{
239
239
  };
240
240
  }>;
241
241
  }, "strip", z.ZodTypeAny, {
242
- savedCard: boolean;
243
242
  stripe: {
244
243
  customer: {
245
244
  id: string | null;
246
245
  };
247
246
  };
248
- }, {
249
247
  savedCard: boolean;
248
+ }, {
250
249
  stripe: {
251
250
  customer: {
252
251
  id: string | null;
253
252
  };
254
253
  };
254
+ savedCard: boolean;
255
255
  }>>;
256
256
  lastBidTime: z.ZodNullable<z.ZodNumber>;
257
257
  nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
@@ -271,15 +271,15 @@ export declare const organizationSchema: z.ZodObject<{
271
271
  status: string;
272
272
  error?: string | undefined;
273
273
  currency?: string | undefined;
274
- paidAt?: number | undefined;
275
274
  amount?: number | undefined;
275
+ paidAt?: number | undefined;
276
276
  paymentIntentId?: string | undefined;
277
277
  }, {
278
278
  status: string;
279
279
  error?: string | undefined;
280
280
  currency?: string | undefined;
281
- paidAt?: number | undefined;
282
281
  amount?: number | undefined;
282
+ paidAt?: number | undefined;
283
283
  paymentIntentId?: string | undefined;
284
284
  }>>;
285
285
  }, "strip", z.ZodTypeAny, {
@@ -287,8 +287,8 @@ export declare const organizationSchema: z.ZodObject<{
287
287
  status: string;
288
288
  error?: string | undefined;
289
289
  currency?: string | undefined;
290
- paidAt?: number | undefined;
291
290
  amount?: number | undefined;
291
+ paidAt?: number | undefined;
292
292
  paymentIntentId?: string | undefined;
293
293
  } | undefined;
294
294
  }, {
@@ -296,29 +296,40 @@ export declare const organizationSchema: z.ZodObject<{
296
296
  status: string;
297
297
  error?: string | undefined;
298
298
  currency?: string | undefined;
299
- paidAt?: number | undefined;
300
299
  amount?: number | undefined;
300
+ paidAt?: number | undefined;
301
301
  paymentIntentId?: string | undefined;
302
302
  } | undefined;
303
303
  }>>;
304
+ insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
304
305
  }, "strip", z.ZodTypeAny, {
305
306
  type: "agency" | "freelancer";
306
307
  id: string;
307
308
  active: boolean;
308
309
  name: string;
309
310
  billing: {
310
- savedCard: boolean;
311
311
  stripe: {
312
312
  customer: {
313
313
  id: string | null;
314
314
  };
315
315
  };
316
+ savedCard: boolean;
316
317
  } | null;
318
+ createdAt: number;
319
+ updatedAt: number;
320
+ limits: {
321
+ monthlyCredits: number;
322
+ usedCredits: number;
323
+ extraCredits: number;
324
+ };
317
325
  associatedBidders: string[] | null;
318
326
  subscription: {
319
327
  source: "manual" | "stripe";
320
328
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
321
329
  planId: string;
330
+ pendingPlanId: string | null;
331
+ startedAt: number;
332
+ currentPeriodEnd: number;
322
333
  stripe: {
323
334
  id: string;
324
335
  items: {
@@ -332,33 +343,24 @@ export declare const organizationSchema: z.ZodObject<{
332
343
  hosted_invoice_url: string | null;
333
344
  };
334
345
  };
335
- pendingPlanId: string | null;
336
- startedAt: number;
337
- currentPeriodEnd: number;
338
346
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
339
347
  trialEndsAt: number | null;
340
- billingInterval: "monthly" | "quarterly" | "yearly";
348
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
341
349
  hasUsBidderAccess: boolean | null;
342
350
  usBidderSubscriptionItemId: string | null;
343
351
  } | null;
344
- limits: {
345
- monthlyCredits: number;
346
- usedCredits: number;
347
- extraCredits: number;
348
- };
349
352
  lastBidTime: number | null;
350
353
  nextScheduledBidTime: number | null;
351
- createdAt: number;
352
- updatedAt: number;
353
354
  openRouterApiKey: string | null;
354
355
  nextProposalStatusSyncTime: number | null;
356
+ insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
355
357
  usBidderAccountSubscription?: {
356
358
  usBidderAccountPayment?: {
357
359
  status: string;
358
360
  error?: string | undefined;
359
361
  currency?: string | undefined;
360
- paidAt?: number | undefined;
361
362
  amount?: number | undefined;
363
+ paidAt?: number | undefined;
362
364
  paymentIntentId?: string | undefined;
363
365
  } | undefined;
364
366
  } | undefined;
@@ -368,18 +370,28 @@ export declare const organizationSchema: z.ZodObject<{
368
370
  active: boolean;
369
371
  name: string;
370
372
  billing: {
371
- savedCard: boolean;
372
373
  stripe: {
373
374
  customer: {
374
375
  id: string | null;
375
376
  };
376
377
  };
378
+ savedCard: boolean;
377
379
  } | null;
380
+ createdAt: number;
381
+ updatedAt: number;
382
+ limits: {
383
+ monthlyCredits: number;
384
+ usedCredits: number;
385
+ extraCredits: number;
386
+ };
378
387
  associatedBidders: string[] | null;
379
388
  subscription: {
380
389
  source: "manual" | "stripe";
381
390
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
382
391
  planId: string;
392
+ pendingPlanId: string | null;
393
+ startedAt: number;
394
+ currentPeriodEnd: number;
383
395
  stripe: {
384
396
  id: string;
385
397
  items: {
@@ -393,33 +405,24 @@ export declare const organizationSchema: z.ZodObject<{
393
405
  hosted_invoice_url: string | null;
394
406
  };
395
407
  };
396
- pendingPlanId: string | null;
397
- startedAt: number;
398
- currentPeriodEnd: number;
399
408
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
400
409
  trialEndsAt: number | null;
401
- billingInterval: "monthly" | "quarterly" | "yearly";
410
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
402
411
  hasUsBidderAccess: boolean | null;
403
412
  usBidderSubscriptionItemId: string | null;
404
413
  } | null;
405
- limits: {
406
- monthlyCredits: number;
407
- usedCredits: number;
408
- extraCredits: number;
409
- };
410
414
  lastBidTime: number | null;
411
415
  nextScheduledBidTime: number | null;
412
- createdAt: number;
413
- updatedAt: number;
414
416
  openRouterApiKey: string | null;
415
417
  nextProposalStatusSyncTime: number | null;
418
+ insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
416
419
  usBidderAccountSubscription?: {
417
420
  usBidderAccountPayment?: {
418
421
  status: string;
419
422
  error?: string | undefined;
420
423
  currency?: string | undefined;
421
- paidAt?: number | undefined;
422
424
  amount?: number | undefined;
425
+ paidAt?: number | undefined;
423
426
  paymentIntentId?: string | undefined;
424
427
  } | undefined;
425
428
  } | undefined;
@@ -737,13 +740,16 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
737
740
  source: z.ZodEnum<["stripe", "manual"]>;
738
741
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
739
742
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
740
- billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
743
+ billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
741
744
  hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
742
745
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
743
746
  }, "strip", z.ZodTypeAny, {
744
747
  source: "manual" | "stripe";
745
748
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
746
749
  planId: string;
750
+ pendingPlanId: string | null;
751
+ startedAt: number;
752
+ currentPeriodEnd: number;
747
753
  stripe: {
748
754
  id: string;
749
755
  items: {
@@ -757,18 +763,18 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
757
763
  hosted_invoice_url: string | null;
758
764
  };
759
765
  };
760
- pendingPlanId: string | null;
761
- startedAt: number;
762
- currentPeriodEnd: number;
763
766
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
764
767
  trialEndsAt: number | null;
765
- billingInterval: "monthly" | "quarterly" | "yearly";
768
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
766
769
  hasUsBidderAccess: boolean | null;
767
770
  usBidderSubscriptionItemId: string | null;
768
771
  }, {
769
772
  source: "manual" | "stripe";
770
773
  status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
771
774
  planId: string;
775
+ pendingPlanId: string | null;
776
+ startedAt: number;
777
+ currentPeriodEnd: number;
772
778
  stripe: {
773
779
  id: string;
774
780
  items: {
@@ -782,12 +788,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
782
788
  hosted_invoice_url: string | null;
783
789
  };
784
790
  };
785
- pendingPlanId: string | null;
786
- startedAt: number;
787
- currentPeriodEnd: number;
788
791
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
789
792
  trialEndsAt: number | null;
790
- billingInterval: "monthly" | "quarterly" | "yearly";
793
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
791
794
  hasUsBidderAccess: boolean | null;
792
795
  usBidderSubscriptionItemId: string | null;
793
796
  }>>;
@@ -825,19 +828,19 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
825
828
  };
826
829
  }>;
827
830
  }, "strip", z.ZodTypeAny, {
828
- savedCard: boolean;
829
831
  stripe: {
830
832
  customer: {
831
833
  id: string | null;
832
834
  };
833
835
  };
834
- }, {
835
836
  savedCard: boolean;
837
+ }, {
836
838
  stripe: {
837
839
  customer: {
838
840
  id: string | null;
839
841
  };
840
842
  };
843
+ savedCard: boolean;
841
844
  }>>;
842
845
  lastBidTime: z.ZodNullable<z.ZodNumber>;
843
846
  nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
@@ -857,15 +860,15 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
857
860
  status: string;
858
861
  error?: string | undefined;
859
862
  currency?: string | undefined;
860
- paidAt?: number | undefined;
861
863
  amount?: number | undefined;
864
+ paidAt?: number | undefined;
862
865
  paymentIntentId?: string | undefined;
863
866
  }, {
864
867
  status: string;
865
868
  error?: string | undefined;
866
869
  currency?: string | undefined;
867
- paidAt?: number | undefined;
868
870
  amount?: number | undefined;
871
+ paidAt?: number | undefined;
869
872
  paymentIntentId?: string | undefined;
870
873
  }>>;
871
874
  }, "strip", z.ZodTypeAny, {
@@ -873,8 +876,8 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
873
876
  status: string;
874
877
  error?: string | undefined;
875
878
  currency?: string | undefined;
876
- paidAt?: number | undefined;
877
879
  amount?: number | undefined;
880
+ paidAt?: number | undefined;
878
881
  paymentIntentId?: string | undefined;
879
882
  } | undefined;
880
883
  }, {
@@ -882,11 +885,12 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
882
885
  status: string;
883
886
  error?: string | undefined;
884
887
  currency?: string | undefined;
885
- paidAt?: number | undefined;
886
888
  amount?: number | undefined;
889
+ paidAt?: number | undefined;
887
890
  paymentIntentId?: string | undefined;
888
891
  } | undefined;
889
892
  }>>;
893
+ insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
890
894
  }, "type" | "name">, "strip", z.ZodTypeAny, {
891
895
  type: "agency" | "freelancer";
892
896
  name: string;
@@ -8,16 +8,16 @@ export declare const getOrganizationLeadsRequestQuerySchema: z.ZodObject<{
8
8
  inQueue: z.ZodOptional<z.ZodBoolean>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  cursor?: string | undefined;
11
- status?: "all" | "rejected" | "suitable" | "contacted" | "viewed" | "replied" | undefined;
11
+ status?: "all" | "rejected" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
12
12
  campaignId?: string | undefined;
13
- limit?: number | undefined;
14
13
  inQueue?: boolean | undefined;
14
+ limit?: number | undefined;
15
15
  }, {
16
16
  cursor?: string | undefined;
17
- status?: "all" | "rejected" | "suitable" | "contacted" | "viewed" | "replied" | undefined;
17
+ status?: "all" | "rejected" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
18
18
  campaignId?: string | undefined;
19
- limit?: number | 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>;
@@ -145,13 +145,16 @@ export declare const subscriptionSchema: z.ZodObject<{
145
145
  source: z.ZodEnum<["stripe", "manual"]>;
146
146
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
147
147
  trialEndsAt: z.ZodNullable<z.ZodNumber>;
148
- billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
148
+ billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
149
149
  hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
150
150
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
151
151
  }, "strip", z.ZodTypeAny, {
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;
155
158
  stripe: {
156
159
  id: string;
157
160
  items: {
@@ -165,18 +168,18 @@ export declare const subscriptionSchema: z.ZodObject<{
165
168
  hosted_invoice_url: string | null;
166
169
  };
167
170
  };
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
- billingInterval: "monthly" | "quarterly" | "yearly";
173
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
174
174
  hasUsBidderAccess: boolean | null;
175
175
  usBidderSubscriptionItemId: string | null;
176
176
  }, {
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;
180
183
  stripe: {
181
184
  id: string;
182
185
  items: {
@@ -190,12 +193,9 @@ export declare const subscriptionSchema: z.ZodObject<{
190
193
  hosted_invoice_url: string | null;
191
194
  };
192
195
  };
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
- billingInterval: "monthly" | "quarterly" | "yearly";
198
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
199
199
  hasUsBidderAccess: boolean | null;
200
200
  usBidderSubscriptionItemId: string | null;
201
201
  }>;
@@ -333,17 +333,6 @@ export declare const planSchema: z.ZodObject<{
333
333
  name: string;
334
334
  description: string;
335
335
  version: number;
336
- stripe: {
337
- id: string;
338
- name: string;
339
- prices: {
340
- id: string;
341
- nickname: string;
342
- lookup_key: string;
343
- }[];
344
- };
345
- price: number;
346
- createdAt: number;
347
336
  sortOrder: number;
348
337
  pricing: {
349
338
  monthly: {
@@ -368,7 +357,18 @@ export declare const planSchema: z.ZodObject<{
368
357
  isLegacyPricing: boolean;
369
358
  } | undefined;
370
359
  };
360
+ price: number;
361
+ createdAt: number;
371
362
  isActive: boolean;
363
+ stripe: {
364
+ id: string;
365
+ name: string;
366
+ prices: {
367
+ id: string;
368
+ nickname: string;
369
+ lookup_key: string;
370
+ }[];
371
+ };
372
372
  displayName: string;
373
373
  slug: string;
374
374
  features: {
@@ -382,17 +382,6 @@ export declare const planSchema: z.ZodObject<{
382
382
  name: string;
383
383
  description: string;
384
384
  version: number;
385
- stripe: {
386
- id: string;
387
- name: string;
388
- prices: {
389
- id: string;
390
- nickname: string;
391
- lookup_key: string;
392
- }[];
393
- };
394
- price: number;
395
- createdAt: number;
396
385
  sortOrder: number;
397
386
  pricing: {
398
387
  monthly: {
@@ -417,7 +406,18 @@ export declare const planSchema: z.ZodObject<{
417
406
  isLegacyPricing: boolean;
418
407
  } | undefined;
419
408
  };
409
+ price: number;
410
+ createdAt: number;
420
411
  isActive: boolean;
412
+ stripe: {
413
+ id: string;
414
+ name: string;
415
+ prices: {
416
+ id: string;
417
+ nickname: string;
418
+ lookup_key: string;
419
+ }[];
420
+ };
421
421
  displayName: string;
422
422
  slug: string;
423
423
  features: {
@@ -84,9 +84,9 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
84
84
  export declare const refreshRotatingProxiesRequestBodySchema: z.ZodObject<{
85
85
  region: z.ZodEnum<["Worldwide", "USOnly", "UKOnly", "All"]>;
86
86
  }, "strip", z.ZodTypeAny, {
87
- region: "Worldwide" | "USOnly" | "UKOnly" | "All";
87
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
88
88
  }, {
89
- region: "Worldwide" | "USOnly" | "UKOnly" | "All";
89
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
90
90
  }>;
91
91
  export type ProxyProvider = z.infer<typeof proxyProviderSchema>;
92
92
  export type ProxyCountry = z.infer<typeof proxyCountryEnum>;