bereach 0.1.2 → 0.2.1

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.
@@ -152,9 +152,9 @@ export type CollectLinkedInLikesType = ClosedEnum<
152
152
 
153
153
  export type CollectLinkedInLikesProfile = {
154
154
  name: string;
155
- headline?: string | null | undefined;
156
- profileUrl?: string | null | undefined;
157
- imageUrl?: string | null | undefined;
155
+ headline: string | null;
156
+ profileUrl: string | null;
157
+ imageUrl: string | null;
158
158
  type: CollectLinkedInLikesType;
159
159
  };
160
160
 
@@ -221,12 +221,12 @@ export type CollectLinkedInCommentsActionsCompleted = {
221
221
 
222
222
  export type CollectLinkedInCommentsProfile = {
223
223
  name: string;
224
- headline?: string | null | undefined;
225
- profileUrl?: string | null | undefined;
226
- imageUrl?: string | null | undefined;
224
+ headline: string | null;
225
+ profileUrl: string | null;
226
+ imageUrl: string | null;
227
227
  type: CollectLinkedInCommentsType;
228
228
  commentText?: string | undefined;
229
- timestamp?: number | null | undefined;
229
+ timestamp: number | null;
230
230
  isEdited?: boolean | undefined;
231
231
  /**
232
232
  * Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
@@ -258,9 +258,9 @@ export type CollectLinkedInCommentsProfile = {
258
258
  */
259
259
  actionsCompleted?: CollectLinkedInCommentsActionsCompleted | undefined;
260
260
  /**
261
- * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). Only present when campaignSlug is provided. null if the profile has not been visited recently.
261
+ * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). null if campaignSlug not provided or profile not visited recently.
262
262
  */
263
- knownDistance?: number | null | undefined;
263
+ knownDistance: number | null;
264
264
  };
265
265
 
266
266
  /**
@@ -330,12 +330,12 @@ export type CollectLinkedInCommentRepliesActionsCompleted = {
330
330
 
331
331
  export type Reply = {
332
332
  name: string;
333
- headline?: string | null | undefined;
334
- profileUrl?: string | null | undefined;
335
- imageUrl?: string | null | undefined;
333
+ headline: string | null;
334
+ profileUrl: string | null;
335
+ imageUrl: string | null;
336
336
  type: CollectLinkedInCommentRepliesType;
337
337
  commentText?: string | undefined;
338
- timestamp?: number | null | undefined;
338
+ timestamp: number | null;
339
339
  isEdited?: boolean | undefined;
340
340
  /**
341
341
  * Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
@@ -367,9 +367,9 @@ export type Reply = {
367
367
  */
368
368
  actionsCompleted?: CollectLinkedInCommentRepliesActionsCompleted | undefined;
369
369
  /**
370
- * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). Only present when campaignSlug is provided. null if the profile has not been visited recently.
370
+ * Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). null if campaignSlug not provided or profile not visited recently.
371
371
  */
372
- knownDistance?: number | null | undefined;
372
+ knownDistance: number | null;
373
373
  };
374
374
 
375
375
  /**
@@ -566,26 +566,29 @@ export type VisitLinkedInProfileResponse = {
566
566
  lastName: string;
567
567
  headline: string | null;
568
568
  publicIdentifier: string;
569
- profileUrl: string;
569
+ /**
570
+ * LinkedIn profile URL. Null when publicIdentifier is unavailable (restricted profiles).
571
+ */
572
+ profileUrl: string | null;
570
573
  /**
571
574
  * LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAAA...'). Use this for matching against inbox participants.
572
575
  */
573
- profileUrn?: string | undefined;
576
+ profileUrn: string | null;
574
577
  imageUrl: string | null;
575
- email?: string | null | undefined;
576
- location?: string | null | undefined;
578
+ email: string | null;
579
+ location: string | null;
577
580
  /**
578
581
  * Current company name (from most recent position)
579
582
  */
580
- company?: string | null | undefined;
583
+ company: string | null;
581
584
  /**
582
585
  * Current job title (from most recent position)
583
586
  */
584
- position?: string | null | undefined;
587
+ position: string | null;
585
588
  /**
586
589
  * Connection degree: 0 (self), 1 (direct connection), 2+ (2nd degree, 3rd degree, etc.), or null if unknown
587
590
  */
588
- memberDistance?: number | null | undefined;
591
+ memberDistance: number | null;
589
592
  /**
590
593
  * Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
591
594
  */
@@ -674,7 +677,7 @@ export type SimilarCompany = {
674
677
  };
675
678
 
676
679
  /**
677
- * Workplace policy (only present when includeWorkplacePolicy=true)
680
+ * Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
678
681
  */
679
682
  export type WorkplacePolicy = {
680
683
  title: string | null;
@@ -735,9 +738,9 @@ export type VisitLinkedInCompanyResponse = {
735
738
  */
736
739
  similarCompanies: Array<SimilarCompany>;
737
740
  /**
738
- * Workplace policy (only present when includeWorkplacePolicy=true)
741
+ * Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
739
742
  */
740
- workplacePolicy?: WorkplacePolicy | null | undefined;
743
+ workplacePolicy: WorkplacePolicy | null;
741
744
  /**
742
745
  * Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
743
746
  */
@@ -1001,7 +1004,7 @@ export type SearchLinkedInTypeCompany = ClosedEnum<
1001
1004
  export type SearchLinkedInItemsCompany = {
1002
1005
  type: SearchLinkedInTypeCompany;
1003
1006
  name: string;
1004
- profileUrl: string;
1007
+ profileUrl: string | null;
1005
1008
  summary: string | null;
1006
1009
  industry: string | null;
1007
1010
  location: string | null;
@@ -1033,7 +1036,7 @@ export type SearchLinkedInCurrentPosition = {
1033
1036
  export type SearchLinkedInItemsPeople = {
1034
1037
  type: SearchLinkedInTypePeople;
1035
1038
  name: string;
1036
- profileUrl: string;
1039
+ profileUrl: string | null;
1037
1040
  headline: string | null;
1038
1041
  location: string | null;
1039
1042
  profilePicture: string | null;
@@ -1351,7 +1354,7 @@ export type SearchLinkedInPeopleCurrentPosition = {
1351
1354
  export type SearchLinkedInPeopleItem = {
1352
1355
  type: SearchLinkedInPeopleType;
1353
1356
  name: string;
1354
- profileUrl: string;
1357
+ profileUrl: string | null;
1355
1358
  headline: string | null;
1356
1359
  location: string | null;
1357
1360
  profilePicture: string | null;
@@ -1447,7 +1450,7 @@ export type SearchLinkedInCompaniesType = ClosedEnum<
1447
1450
  export type SearchLinkedInCompaniesItem = {
1448
1451
  type: SearchLinkedInCompaniesType;
1449
1452
  name: string;
1450
- profileUrl: string;
1453
+ profileUrl: string | null;
1451
1454
  summary: string | null;
1452
1455
  industry: string | null;
1453
1456
  location: string | null;
@@ -1690,7 +1693,7 @@ export type SearchLinkedInByUrlTypeCompany = ClosedEnum<
1690
1693
  export type SearchLinkedInByUrlItemsCompany = {
1691
1694
  type: SearchLinkedInByUrlTypeCompany;
1692
1695
  name: string;
1693
- profileUrl: string;
1696
+ profileUrl: string | null;
1694
1697
  summary: string | null;
1695
1698
  industry: string | null;
1696
1699
  location: string | null;
@@ -1722,7 +1725,7 @@ export type SearchLinkedInByUrlCurrentPosition = {
1722
1725
  export type SearchLinkedInByUrlItemsPeople = {
1723
1726
  type: SearchLinkedInByUrlTypePeople;
1724
1727
  name: string;
1725
- profileUrl: string;
1728
+ profileUrl: string | null;
1726
1729
  headline: string | null;
1727
1730
  location: string | null;
1728
1731
  profilePicture: string | null;
@@ -1902,10 +1905,10 @@ export type ListLinkedInInvitationsRequest = {
1902
1905
  * Profile info of the person who sent the invitation
1903
1906
  */
1904
1907
  export type FromMember = {
1905
- name?: string | null | undefined;
1906
- headline?: string | null | undefined;
1907
- profileUrl?: string | null | undefined;
1908
- profilePicture?: string | null | undefined;
1908
+ name: string | null;
1909
+ headline: string | null;
1910
+ profileUrl: string | null;
1911
+ profilePicture: string | null;
1909
1912
  };
1910
1913
 
1911
1914
  export type Invitation = {
@@ -1924,27 +1927,27 @@ export type Invitation = {
1924
1927
  /**
1925
1928
  * ISO 8601 timestamp when invitation was sent
1926
1929
  */
1927
- sentAt?: string | null | undefined;
1930
+ sentAt: string | null;
1928
1931
  /**
1929
1932
  * Custom message included with the invitation
1930
1933
  */
1931
- message?: string | null | undefined;
1934
+ message: string | null;
1932
1935
  /**
1933
1936
  * Sender's profile ID (pass to accept endpoint)
1934
1937
  */
1935
- senderProfileId?: string | null | undefined;
1938
+ senderProfileId: string | null;
1936
1939
  /**
1937
1940
  * Sender's first name (pass to accept endpoint)
1938
1941
  */
1939
- senderFirstName?: string | null | undefined;
1942
+ senderFirstName: string | null;
1940
1943
  /**
1941
1944
  * Sender's last name (pass to accept endpoint)
1942
1945
  */
1943
- senderLastName?: string | null | undefined;
1946
+ senderLastName: string | null;
1944
1947
  /**
1945
1948
  * Profile info of the person who sent the invitation
1946
1949
  */
1947
- fromMember?: FromMember | null | undefined;
1950
+ fromMember: FromMember | null;
1948
1951
  };
1949
1952
 
1950
1953
  /**
@@ -2507,9 +2510,9 @@ export const CollectLinkedInLikesProfile$inboundSchema: z.ZodMiniType<
2507
2510
  unknown
2508
2511
  > = z.object({
2509
2512
  name: types.string(),
2510
- headline: z.optional(z.nullable(types.string())),
2511
- profileUrl: z.optional(z.nullable(types.string())),
2512
- imageUrl: z.optional(z.nullable(types.string())),
2513
+ headline: types.nullable(types.string()),
2514
+ profileUrl: types.nullable(types.string()),
2515
+ imageUrl: types.nullable(types.string()),
2513
2516
  type: CollectLinkedInLikesType$inboundSchema,
2514
2517
  });
2515
2518
 
@@ -2615,12 +2618,12 @@ export const CollectLinkedInCommentsProfile$inboundSchema: z.ZodMiniType<
2615
2618
  unknown
2616
2619
  > = z.object({
2617
2620
  name: types.string(),
2618
- headline: z.optional(z.nullable(types.string())),
2619
- profileUrl: z.optional(z.nullable(types.string())),
2620
- imageUrl: z.optional(z.nullable(types.string())),
2621
+ headline: types.nullable(types.string()),
2622
+ profileUrl: types.nullable(types.string()),
2623
+ imageUrl: types.nullable(types.string()),
2621
2624
  type: CollectLinkedInCommentsType$inboundSchema,
2622
2625
  commentText: types.optional(types.string()),
2623
- timestamp: z.optional(z.nullable(types.number())),
2626
+ timestamp: types.nullable(types.number()),
2624
2627
  isEdited: types.optional(types.boolean()),
2625
2628
  commentUrn: types.optional(types.string()),
2626
2629
  commentHash: types.optional(types.string()),
@@ -2632,7 +2635,7 @@ export const CollectLinkedInCommentsProfile$inboundSchema: z.ZodMiniType<
2632
2635
  actionsCompleted: types.optional(
2633
2636
  z.lazy(() => CollectLinkedInCommentsActionsCompleted$inboundSchema),
2634
2637
  ),
2635
- knownDistance: z.optional(z.nullable(types.number())),
2638
+ knownDistance: types.nullable(types.number()),
2636
2639
  });
2637
2640
 
2638
2641
  export function collectLinkedInCommentsProfileFromJSON(
@@ -2735,12 +2738,12 @@ export function collectLinkedInCommentRepliesActionsCompletedFromJSON(
2735
2738
  /** @internal */
2736
2739
  export const Reply$inboundSchema: z.ZodMiniType<Reply, unknown> = z.object({
2737
2740
  name: types.string(),
2738
- headline: z.optional(z.nullable(types.string())),
2739
- profileUrl: z.optional(z.nullable(types.string())),
2740
- imageUrl: z.optional(z.nullable(types.string())),
2741
+ headline: types.nullable(types.string()),
2742
+ profileUrl: types.nullable(types.string()),
2743
+ imageUrl: types.nullable(types.string()),
2741
2744
  type: CollectLinkedInCommentRepliesType$inboundSchema,
2742
2745
  commentText: types.optional(types.string()),
2743
- timestamp: z.optional(z.nullable(types.number())),
2746
+ timestamp: types.nullable(types.number()),
2744
2747
  isEdited: types.optional(types.boolean()),
2745
2748
  commentUrn: types.optional(types.string()),
2746
2749
  commentHash: types.optional(types.string()),
@@ -2752,7 +2755,7 @@ export const Reply$inboundSchema: z.ZodMiniType<Reply, unknown> = z.object({
2752
2755
  actionsCompleted: types.optional(
2753
2756
  z.lazy(() => CollectLinkedInCommentRepliesActionsCompleted$inboundSchema),
2754
2757
  ),
2755
- knownDistance: z.optional(z.nullable(types.number())),
2758
+ knownDistance: types.nullable(types.number()),
2756
2759
  });
2757
2760
 
2758
2761
  export function replyFromJSON(
@@ -3092,14 +3095,14 @@ export const VisitLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
3092
3095
  lastName: types.string(),
3093
3096
  headline: types.nullable(types.string()),
3094
3097
  publicIdentifier: types.string(),
3095
- profileUrl: types.string(),
3096
- profileUrn: types.optional(types.string()),
3098
+ profileUrl: types.nullable(types.string()),
3099
+ profileUrn: types.nullable(types.string()),
3097
3100
  imageUrl: types.nullable(types.string()),
3098
- email: z.optional(z.nullable(types.string())),
3099
- location: z.optional(z.nullable(types.string())),
3100
- company: z.optional(z.nullable(types.string())),
3101
- position: z.optional(z.nullable(types.string())),
3102
- memberDistance: z.optional(z.nullable(types.number())),
3101
+ email: types.nullable(types.string()),
3102
+ location: types.nullable(types.string()),
3103
+ company: types.nullable(types.string()),
3104
+ position: types.nullable(types.string()),
3105
+ memberDistance: types.nullable(types.number()),
3103
3106
  pendingConnection: PendingConnection$inboundSchema,
3104
3107
  positions: types.optional(
3105
3108
  z.array(z.lazy(() => VisitLinkedInProfilePosition$inboundSchema)),
@@ -3322,9 +3325,7 @@ export const VisitLinkedInCompanyResponse$inboundSchema: z.ZodMiniType<
3322
3325
  hashtags: z.array(types.string()),
3323
3326
  affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
3324
3327
  similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
3325
- workplacePolicy: z.optional(
3326
- z.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
3327
- ),
3328
+ workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
3328
3329
  creditsUsed: types.number(),
3329
3330
  retryAfter: types.number(),
3330
3331
  });
@@ -3509,7 +3510,7 @@ export const SearchLinkedInItemsCompany$inboundSchema: z.ZodMiniType<
3509
3510
  > = z.object({
3510
3511
  type: SearchLinkedInTypeCompany$inboundSchema,
3511
3512
  name: types.string(),
3512
- profileUrl: types.string(),
3513
+ profileUrl: types.nullable(types.string()),
3513
3514
  summary: types.nullable(types.string()),
3514
3515
  industry: types.nullable(types.string()),
3515
3516
  location: types.nullable(types.string()),
@@ -3563,7 +3564,7 @@ export const SearchLinkedInItemsPeople$inboundSchema: z.ZodMiniType<
3563
3564
  > = z.object({
3564
3565
  type: SearchLinkedInTypePeople$inboundSchema,
3565
3566
  name: types.string(),
3566
- profileUrl: types.string(),
3567
+ profileUrl: types.nullable(types.string()),
3567
3568
  headline: types.nullable(types.string()),
3568
3569
  location: types.nullable(types.string()),
3569
3570
  profilePicture: types.nullable(types.string()),
@@ -3965,7 +3966,7 @@ export const SearchLinkedInPeopleItem$inboundSchema: z.ZodMiniType<
3965
3966
  > = z.object({
3966
3967
  type: SearchLinkedInPeopleType$inboundSchema,
3967
3968
  name: types.string(),
3968
- profileUrl: types.string(),
3969
+ profileUrl: types.nullable(types.string()),
3969
3970
  headline: types.nullable(types.string()),
3970
3971
  location: types.nullable(types.string()),
3971
3972
  profilePicture: types.nullable(types.string()),
@@ -4090,7 +4091,7 @@ export const SearchLinkedInCompaniesItem$inboundSchema: z.ZodMiniType<
4090
4091
  > = z.object({
4091
4092
  type: SearchLinkedInCompaniesType$inboundSchema,
4092
4093
  name: types.string(),
4093
- profileUrl: types.string(),
4094
+ profileUrl: types.nullable(types.string()),
4094
4095
  summary: types.nullable(types.string()),
4095
4096
  industry: types.nullable(types.string()),
4096
4097
  location: types.nullable(types.string()),
@@ -4375,7 +4376,7 @@ export const SearchLinkedInByUrlItemsCompany$inboundSchema: z.ZodMiniType<
4375
4376
  > = z.object({
4376
4377
  type: SearchLinkedInByUrlTypeCompany$inboundSchema,
4377
4378
  name: types.string(),
4378
- profileUrl: types.string(),
4379
+ profileUrl: types.nullable(types.string()),
4379
4380
  summary: types.nullable(types.string()),
4380
4381
  industry: types.nullable(types.string()),
4381
4382
  location: types.nullable(types.string()),
@@ -4430,7 +4431,7 @@ export const SearchLinkedInByUrlItemsPeople$inboundSchema: z.ZodMiniType<
4430
4431
  > = z.object({
4431
4432
  type: SearchLinkedInByUrlTypePeople$inboundSchema,
4432
4433
  name: types.string(),
4433
- profileUrl: types.string(),
4434
+ profileUrl: types.nullable(types.string()),
4434
4435
  headline: types.nullable(types.string()),
4435
4436
  location: types.nullable(types.string()),
4436
4437
  profilePicture: types.nullable(types.string()),
@@ -4737,10 +4738,10 @@ export function listLinkedInInvitationsRequestToJSON(
4737
4738
  /** @internal */
4738
4739
  export const FromMember$inboundSchema: z.ZodMiniType<FromMember, unknown> = z
4739
4740
  .object({
4740
- name: z.optional(z.nullable(types.string())),
4741
- headline: z.optional(z.nullable(types.string())),
4742
- profileUrl: z.optional(z.nullable(types.string())),
4743
- profilePicture: z.optional(z.nullable(types.string())),
4741
+ name: types.nullable(types.string()),
4742
+ headline: types.nullable(types.string()),
4743
+ profileUrl: types.nullable(types.string()),
4744
+ profilePicture: types.nullable(types.string()),
4744
4745
  });
4745
4746
 
4746
4747
  export function fromMemberFromJSON(
@@ -4759,12 +4760,12 @@ export const Invitation$inboundSchema: z.ZodMiniType<Invitation, unknown> = z
4759
4760
  invitationId: types.string(),
4760
4761
  sharedSecret: types.string(),
4761
4762
  entityUrn: types.string(),
4762
- sentAt: z.optional(z.nullable(types.string())),
4763
- message: z.optional(z.nullable(types.string())),
4764
- senderProfileId: z.optional(z.nullable(types.string())),
4765
- senderFirstName: z.optional(z.nullable(types.string())),
4766
- senderLastName: z.optional(z.nullable(types.string())),
4767
- fromMember: z.optional(z.nullable(z.lazy(() => FromMember$inboundSchema))),
4763
+ sentAt: types.nullable(types.string()),
4764
+ message: types.nullable(types.string()),
4765
+ senderProfileId: types.nullable(types.string()),
4766
+ senderFirstName: types.nullable(types.string()),
4767
+ senderLastName: types.nullable(types.string()),
4768
+ fromMember: types.nullable(z.lazy(() => FromMember$inboundSchema)),
4768
4769
  });
4769
4770
 
4770
4771
  export function invitationFromJSON(