lancer-shared 1.2.342 → 1.2.344

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.
@@ -73,6 +73,8 @@ export declare const ROUTES: {
73
73
  readonly AGENCIES: "admin/bidder-accounts/agencies";
74
74
  readonly ASSIGN_IPROYAL_PROXY: (bidderId: string) => string;
75
75
  readonly ASSIGN_DECODO_PROXY: (bidderId: string) => string;
76
+ readonly RETRY_CONNECT: (bidderId: string) => string;
77
+ readonly SYNC_PROPOSALS_STATUS: (bidderId: string) => string;
76
78
  };
77
79
  readonly SCRAPER_ACCOUNTS: {
78
80
  readonly BASE: "admin/scraper-accounts";
@@ -113,9 +115,30 @@ export declare const ROUTES: {
113
115
  readonly TEST_SUITABILITY: "admin/agent/test-suitability";
114
116
  readonly TEST_PROPOSAL: "admin/agent/test-proposal";
115
117
  };
118
+ readonly BILLING: {
119
+ readonly PLANS: {
120
+ readonly BASE: "admin/billing/plans";
121
+ readonly BY_ID: (id: string) => string;
122
+ readonly SYNC_TO_STRIPE: (id: string) => string;
123
+ };
124
+ readonly CONFIG: {
125
+ readonly BASE: "admin/billing/config";
126
+ };
127
+ readonly FEATURES: {
128
+ readonly BASE: "admin/billing/features";
129
+ readonly BY_ID: (id: string) => string;
130
+ };
131
+ };
116
132
  readonly UPWORK_INVITATIONS_CONFIG: {
117
133
  readonly BASE: "admin/upwork-invitation-bucket-account";
118
134
  };
135
+ readonly BIDDER_INSTANCES: {
136
+ readonly BASE: "admin/bidder-instances";
137
+ readonly BY_ID: (id: string) => string;
138
+ readonly ASSIGN_ACCOUNTS: (id: string) => string;
139
+ readonly UNASSIGN_ACCOUNTS: (id: string) => string;
140
+ readonly SET_DEFAULT: (id: string) => string;
141
+ };
119
142
  };
120
143
  readonly BID: {
121
144
  readonly BASE: "bid";
@@ -174,6 +197,7 @@ export declare const ROUTES: {
174
197
  readonly RETRY_CONNECT_UPWORK_ACCOUNT: (id: string, bidderId: string) => string;
175
198
  readonly AVAILABLE_REGIONS: (id: string) => string;
176
199
  readonly CHAT: {
200
+ readonly CHAT_HEARTBEAT: (organizationId: string) => string;
177
201
  readonly ROOMS_TAGS: (organizationId: string) => string;
178
202
  readonly ROOM_TAG: (organizationId: string, bidderAccountId: string, roomId: string) => string;
179
203
  readonly ROOM_NOTES: (organizationId: string, bidderAccountId: string, roomId: string) => string;
@@ -308,6 +332,10 @@ export declare const ROUTES: {
308
332
  readonly BASE: "plans";
309
333
  readonly BY_ID: (id: string) => string;
310
334
  };
335
+ readonly FEATURES: {
336
+ readonly BASE: "features";
337
+ readonly BY_ID: (id: string) => string;
338
+ };
311
339
  readonly NOTIFICATIONS: {
312
340
  readonly BASE: "notifications";
313
341
  readonly SEND_NOTIFICATION: "notifications/send";
@@ -0,0 +1,13 @@
1
+ import { infer } from 'zod';
2
+ export declare const billingConfigSchema: import("zod").ZodObject<{
3
+ overageBillingThreshold: import("zod").ZodNumber;
4
+ updatedAt: import("zod").ZodNumber;
5
+ }, "strip", import("zod").ZodTypeAny, {
6
+ updatedAt: number;
7
+ overageBillingThreshold: number;
8
+ }, {
9
+ updatedAt: number;
10
+ overageBillingThreshold: number;
11
+ }>;
12
+ export interface BillingConfig extends infer<typeof billingConfigSchema> {
13
+ }
@@ -403,7 +403,7 @@ export declare const monitoringBidFailureRecordSchema: z.ZodObject<{
403
403
  eventId: string;
404
404
  }>;
405
405
  export declare const bidderMonitoringRowSchema: z.ZodObject<{
406
- eventType: z.ZodEnum<["biddingFailed", "syncProposalsStatusFailed", "refreshRoomsFailed", "unauthenticatedSessionDetected"]>;
406
+ eventType: z.ZodEnum<["biddingFailed", "syncProposalsStatusFailed", "refreshRoomsFailed", "unauthenticatedSessionDetected", "verifyCredentialsFailed"]>;
407
407
  eventId: z.ZodString;
408
408
  bidderAccountId: z.ZodNullable<z.ZodString>;
409
409
  email: z.ZodNullable<z.ZodString>;
@@ -434,7 +434,7 @@ export declare const bidderMonitoringRowSchema: z.ZodObject<{
434
434
  timestamp: number;
435
435
  organizationName: string | null;
436
436
  eventId: string;
437
- eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected";
437
+ eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
438
438
  screenshotUrl: string | null;
439
439
  attempt: number | null;
440
440
  viewedAt: number | null;
@@ -452,14 +452,14 @@ export declare const bidderMonitoringRowSchema: z.ZodObject<{
452
452
  timestamp: number;
453
453
  organizationName: string | null;
454
454
  eventId: string;
455
- eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected";
455
+ eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
456
456
  screenshotUrl: string | null;
457
457
  attempt: number | null;
458
458
  viewedAt: number | null;
459
459
  }>;
460
460
  export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
461
461
  items: z.ZodArray<z.ZodObject<{
462
- eventType: z.ZodEnum<["biddingFailed", "syncProposalsStatusFailed", "refreshRoomsFailed", "unauthenticatedSessionDetected"]>;
462
+ eventType: z.ZodEnum<["biddingFailed", "syncProposalsStatusFailed", "refreshRoomsFailed", "unauthenticatedSessionDetected", "verifyCredentialsFailed"]>;
463
463
  eventId: z.ZodString;
464
464
  bidderAccountId: z.ZodNullable<z.ZodString>;
465
465
  email: z.ZodNullable<z.ZodString>;
@@ -490,7 +490,7 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
490
490
  timestamp: number;
491
491
  organizationName: string | null;
492
492
  eventId: string;
493
- eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected";
493
+ eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
494
494
  screenshotUrl: string | null;
495
495
  attempt: number | null;
496
496
  viewedAt: number | null;
@@ -508,7 +508,7 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
508
508
  timestamp: number;
509
509
  organizationName: string | null;
510
510
  eventId: string;
511
- eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected";
511
+ eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
512
512
  screenshotUrl: string | null;
513
513
  attempt: number | null;
514
514
  viewedAt: number | null;
@@ -530,7 +530,7 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
530
530
  timestamp: number;
531
531
  organizationName: string | null;
532
532
  eventId: string;
533
- eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected";
533
+ eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
534
534
  screenshotUrl: string | null;
535
535
  attempt: number | null;
536
536
  viewedAt: number | null;
@@ -552,7 +552,7 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
552
552
  timestamp: number;
553
553
  organizationName: string | null;
554
554
  eventId: string;
555
- eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected";
555
+ eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
556
556
  screenshotUrl: string | null;
557
557
  attempt: number | null;
558
558
  viewedAt: number | null;
@@ -0,0 +1,28 @@
1
+ import { infer } from 'zod';
2
+ export declare const featureSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodString;
4
+ slug: import("zod").ZodString;
5
+ name: import("zod").ZodString;
6
+ description: import("zod").ZodString;
7
+ hasLimit: import("zod").ZodBoolean;
8
+ createdAt: import("zod").ZodNumber;
9
+ isActive: import("zod").ZodBoolean;
10
+ }, "strip", import("zod").ZodTypeAny, {
11
+ id: string;
12
+ name: string;
13
+ description: string;
14
+ createdAt: number;
15
+ isActive: boolean;
16
+ slug: string;
17
+ hasLimit: boolean;
18
+ }, {
19
+ id: string;
20
+ name: string;
21
+ description: string;
22
+ createdAt: number;
23
+ isActive: boolean;
24
+ slug: string;
25
+ hasLimit: boolean;
26
+ }>;
27
+ export interface Feature extends infer<typeof featureSchema> {
28
+ }
@@ -1,10 +1,12 @@
1
1
  export * from './account';
2
+ export * from './billing-config';
2
3
  export * from './agent';
3
4
  export * from './alert';
4
5
  export * from './bidder';
5
6
  export * from './campaign';
6
7
  export * from './chat';
7
8
  export * from './dashboard';
9
+ export * from './feature';
8
10
  export * from './golden-dataset';
9
11
  export * from './infrastructure';
10
12
  export * from './invoice';
@@ -2,10 +2,11 @@ import { infer, z } from "zod";
2
2
  export declare const bidderInstanceStatusEnum: z.ZodEnum<["available", "unavailable"]>;
3
3
  export declare const bidderInstanceSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
+ name: z.ZodString;
5
6
  ipAddress: z.ZodString;
6
7
  domain: z.ZodNullable<z.ZodString>;
7
8
  bidderAccounts: z.ZodArray<z.ZodString, "many">;
8
- gcp: z.ZodObject<{
9
+ gcp: z.ZodOptional<z.ZodObject<{
9
10
  instanceName: z.ZodString;
10
11
  machineType: z.ZodString;
11
12
  zone: z.ZodString;
@@ -20,8 +21,8 @@ export declare const bidderInstanceSchema: z.ZodObject<{
20
21
  instanceName: string;
21
22
  machineType: string;
22
23
  zone: string;
23
- }>;
24
- hetzner: z.ZodObject<{
24
+ }>>;
25
+ hetzner: z.ZodOptional<z.ZodObject<{
25
26
  id: z.ZodString;
26
27
  name: z.ZodString;
27
28
  type: z.ZodString;
@@ -39,52 +40,112 @@ export declare const bidderInstanceSchema: z.ZodObject<{
39
40
  name: string;
40
41
  image: string;
41
42
  createdAt: number;
42
- }>;
43
+ }>>;
44
+ isDefault: z.ZodDefault<z.ZodBoolean>;
43
45
  status: z.ZodEnum<["available", "unavailable"]>;
44
46
  createdAt: z.ZodNumber;
45
47
  updatedAt: z.ZodNumber;
46
48
  }, "strip", z.ZodTypeAny, {
47
49
  id: string;
50
+ name: string;
48
51
  status: "available" | "unavailable";
49
52
  createdAt: number;
50
53
  updatedAt: number;
51
54
  ipAddress: string;
52
55
  domain: string | null;
53
56
  bidderAccounts: string[];
54
- gcp: {
57
+ isDefault: boolean;
58
+ gcp?: {
55
59
  region: string;
56
60
  instanceName: string;
57
61
  machineType: string;
58
62
  zone: string;
59
- };
60
- hetzner: {
63
+ } | undefined;
64
+ hetzner?: {
61
65
  type: string;
62
66
  id: string;
63
67
  name: string;
64
68
  image: string;
65
69
  createdAt: number;
66
- };
70
+ } | undefined;
67
71
  }, {
68
72
  id: string;
73
+ name: string;
69
74
  status: "available" | "unavailable";
70
75
  createdAt: number;
71
76
  updatedAt: number;
72
77
  ipAddress: string;
73
78
  domain: string | null;
74
79
  bidderAccounts: string[];
75
- gcp: {
80
+ gcp?: {
76
81
  region: string;
77
82
  instanceName: string;
78
83
  machineType: string;
79
84
  zone: string;
80
- };
81
- hetzner: {
85
+ } | undefined;
86
+ hetzner?: {
82
87
  type: string;
83
88
  id: string;
84
89
  name: string;
85
90
  image: string;
86
91
  createdAt: number;
87
- };
92
+ } | undefined;
93
+ isDefault?: boolean | undefined;
88
94
  }>;
95
+ export declare const createBidderInstanceSchema: z.ZodObject<Pick<{
96
+ id: z.ZodString;
97
+ name: z.ZodString;
98
+ ipAddress: z.ZodString;
99
+ domain: z.ZodNullable<z.ZodString>;
100
+ bidderAccounts: z.ZodArray<z.ZodString, "many">;
101
+ gcp: z.ZodOptional<z.ZodObject<{
102
+ instanceName: z.ZodString;
103
+ machineType: z.ZodString;
104
+ zone: z.ZodString;
105
+ region: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ region: string;
108
+ instanceName: string;
109
+ machineType: string;
110
+ zone: string;
111
+ }, {
112
+ region: string;
113
+ instanceName: string;
114
+ machineType: string;
115
+ zone: string;
116
+ }>>;
117
+ hetzner: z.ZodOptional<z.ZodObject<{
118
+ id: z.ZodString;
119
+ name: z.ZodString;
120
+ type: z.ZodString;
121
+ image: z.ZodString;
122
+ createdAt: z.ZodNumber;
123
+ }, "strip", z.ZodTypeAny, {
124
+ type: string;
125
+ id: string;
126
+ name: string;
127
+ image: string;
128
+ createdAt: number;
129
+ }, {
130
+ type: string;
131
+ id: string;
132
+ name: string;
133
+ image: string;
134
+ createdAt: number;
135
+ }>>;
136
+ isDefault: z.ZodDefault<z.ZodBoolean>;
137
+ status: z.ZodEnum<["available", "unavailable"]>;
138
+ createdAt: z.ZodNumber;
139
+ updatedAt: z.ZodNumber;
140
+ }, "name" | "ipAddress" | "isDefault">, "strip", z.ZodTypeAny, {
141
+ name: string;
142
+ ipAddress: string;
143
+ isDefault: boolean;
144
+ }, {
145
+ name: string;
146
+ ipAddress: string;
147
+ isDefault?: boolean | undefined;
148
+ }>;
149
+ export type CreateBidderInstance = z.infer<typeof createBidderInstanceSchema>;
89
150
  export interface BidderInstance extends infer<typeof bidderInstanceSchema> {
90
151
  }
@@ -13,7 +13,7 @@ export declare const logEventSchema: z.ZodObject<{
13
13
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  timestamp: z.ZodNumber;
15
15
  }, "strip", z.ZodTypeAny, {
16
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded" | "verifyCredentialsFailed";
16
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded";
17
17
  reason: string | null;
18
18
  source: string;
19
19
  metadata: Record<string, unknown> | null;
@@ -25,7 +25,7 @@ export declare const logEventSchema: z.ZodObject<{
25
25
  resourceType: string;
26
26
  resourceId: string | null;
27
27
  }, {
28
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded" | "verifyCredentialsFailed";
28
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded";
29
29
  reason: string | null;
30
30
  source: string;
31
31
  metadata: Record<string, unknown> | null;
@@ -341,14 +341,17 @@ export declare const verifyCredentialsFailedEventMetadataSchema: z.ZodObject<{
341
341
  bidderAccountId: z.ZodString;
342
342
  errorMessage: z.ZodString;
343
343
  errorCode: z.ZodOptional<z.ZodString>;
344
+ screenshotUrl: z.ZodOptional<z.ZodString>;
344
345
  }, "strip", z.ZodTypeAny, {
345
346
  errorMessage: string;
346
347
  bidderAccountId: string;
347
348
  errorCode?: string | undefined;
349
+ screenshotUrl?: string | undefined;
348
350
  }, {
349
351
  errorMessage: string;
350
352
  bidderAccountId: string;
351
353
  errorCode?: string | undefined;
354
+ screenshotUrl?: string | undefined;
352
355
  }>;
353
356
  export declare const refreshRoomsFailedEventMetadataSchema: z.ZodObject<{
354
357
  bidderAccountId: z.ZodOptional<z.ZodString>;
@@ -618,7 +621,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
618
621
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
619
622
  timestamp: z.ZodNumber;
620
623
  }, "strip", z.ZodTypeAny, {
621
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded" | "verifyCredentialsFailed";
624
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded";
622
625
  reason: string | null;
623
626
  source: string;
624
627
  metadata: Record<string, unknown> | null;
@@ -630,7 +633,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
630
633
  resourceType: string;
631
634
  resourceId: string | null;
632
635
  }, {
633
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded" | "verifyCredentialsFailed";
636
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded";
634
637
  reason: string | null;
635
638
  source: string;
636
639
  metadata: Record<string, unknown> | null;
@@ -654,7 +657,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
654
657
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
655
658
  timestamp: z.ZodNumber;
656
659
  }, "strip", z.ZodTypeAny, {
657
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded" | "verifyCredentialsFailed";
660
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded";
658
661
  reason: string | null;
659
662
  source: string;
660
663
  metadata: Record<string, unknown> | null;
@@ -666,7 +669,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
666
669
  resourceType: string;
667
670
  resourceId: string | null;
668
671
  }, {
669
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded" | "verifyCredentialsFailed";
672
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "scheduleBidding" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed" | "verifyCredentialsSucceeded";
670
673
  reason: string | null;
671
674
  source: string;
672
675
  metadata: Record<string, unknown> | null;
@@ -274,6 +274,10 @@ export declare const planSchema: z.ZodObject<{
274
274
  }[] | undefined;
275
275
  }>;
276
276
  icon: z.ZodNullable<z.ZodString>;
277
+ includedProposals: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
278
+ overagePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
279
+ supportsCoupon: z.ZodOptional<z.ZodBoolean>;
280
+ featureConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
277
281
  }, "strip", z.ZodTypeAny, {
278
282
  id: string;
279
283
  name: string;
@@ -304,8 +308,8 @@ export declare const planSchema: z.ZodObject<{
304
308
  createdAt: number;
305
309
  isActive: boolean;
306
310
  archivedAt: number | null;
307
- icon: string | null;
308
311
  slug: string;
312
+ icon: string | null;
309
313
  features: {
310
314
  id: string;
311
315
  description: string;
@@ -313,6 +317,10 @@ export declare const planSchema: z.ZodObject<{
313
317
  icon: string | null;
314
318
  }[];
315
319
  hasFreeTrial: boolean;
320
+ includedProposals?: number | null | undefined;
321
+ overagePrice?: number | null | undefined;
322
+ supportsCoupon?: boolean | undefined;
323
+ featureConfig?: Record<string, number | null> | undefined;
316
324
  }, {
317
325
  id: string;
318
326
  name: string;
@@ -343,8 +351,8 @@ export declare const planSchema: z.ZodObject<{
343
351
  createdAt: number;
344
352
  isActive: boolean;
345
353
  archivedAt: number | null;
346
- icon: string | null;
347
354
  slug: string;
355
+ icon: string | null;
348
356
  features: {
349
357
  id: string;
350
358
  description: string;
@@ -352,6 +360,10 @@ export declare const planSchema: z.ZodObject<{
352
360
  icon: string | null;
353
361
  }[];
354
362
  hasFreeTrial: boolean;
363
+ includedProposals?: number | null | undefined;
364
+ overagePrice?: number | null | undefined;
365
+ supportsCoupon?: boolean | undefined;
366
+ featureConfig?: Record<string, number | null> | undefined;
355
367
  }>;
356
368
  export declare const planSlugEnum: z.ZodEnum<["lancer-unlimited-launch-offer"]>;
357
369
  export interface PlanStripeMetadata extends infer<typeof planStripeMetadataSchema> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.342",
3
+ "version": "1.2.344",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",