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.
- package/README.md +99 -94
- package/esm/lib/config.d.ts +4 -4
- package/esm/lib/config.js +4 -4
- package/esm/models/operations/get-campaign-stats-response.d.ts +20 -41
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -1
- package/esm/models/operations/get-campaign-stats-response.js +14 -43
- package/esm/models/operations/get-campaign-stats-response.js.map +1 -1
- package/esm/models/operations/send-linked-in-message-response.d.ts +44 -41
- package/esm/models/operations/send-linked-in-message-response.d.ts.map +1 -1
- package/esm/models/operations/send-linked-in-message-response.js +37 -37
- package/esm/models/operations/send-linked-in-message-response.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/operations/get-campaign-stats-response.ts +36 -110
- package/src/models/operations/send-linked-in-message-response.ts +81 -80
|
@@ -331,15 +331,15 @@ export type GetMyLinkedInProfileResponse = {
|
|
|
331
331
|
/**
|
|
332
332
|
* Total LinkedIn connections
|
|
333
333
|
*/
|
|
334
|
-
connectionsCount
|
|
334
|
+
connectionsCount: number | null;
|
|
335
335
|
/**
|
|
336
336
|
* Profile location
|
|
337
337
|
*/
|
|
338
|
-
location
|
|
338
|
+
location: GetMyLinkedInProfileLocation | null;
|
|
339
339
|
/**
|
|
340
340
|
* LinkedIn verification status
|
|
341
341
|
*/
|
|
342
|
-
isVerified
|
|
342
|
+
isVerified: boolean | null;
|
|
343
343
|
/**
|
|
344
344
|
* Last 5 posts (populated when posts have been fetched via /me/linkedin/posts)
|
|
345
345
|
*/
|
|
@@ -467,15 +467,15 @@ export type RefreshMyLinkedInProfileResponse = {
|
|
|
467
467
|
/**
|
|
468
468
|
* Total LinkedIn connections
|
|
469
469
|
*/
|
|
470
|
-
connectionsCount
|
|
470
|
+
connectionsCount: number | null;
|
|
471
471
|
/**
|
|
472
472
|
* Profile location
|
|
473
473
|
*/
|
|
474
|
-
location
|
|
474
|
+
location: RefreshMyLinkedInProfileLocation | null;
|
|
475
475
|
/**
|
|
476
476
|
* LinkedIn verification status
|
|
477
477
|
*/
|
|
478
|
-
isVerified
|
|
478
|
+
isVerified: boolean | null;
|
|
479
479
|
/**
|
|
480
480
|
* Last 5 posts (populated when posts have been fetched via /me/linkedin/posts)
|
|
481
481
|
*/
|
|
@@ -925,13 +925,13 @@ export type ListInboxConversationsParticipant = {
|
|
|
925
925
|
profileUrn: string;
|
|
926
926
|
firstName: string;
|
|
927
927
|
lastName: string;
|
|
928
|
-
profileUrl: string;
|
|
928
|
+
profileUrl: string | null;
|
|
929
929
|
headline: string | null;
|
|
930
930
|
profilePicture: string | null;
|
|
931
931
|
};
|
|
932
932
|
|
|
933
933
|
export type ListInboxConversationsLastMessage = {
|
|
934
|
-
text: string;
|
|
934
|
+
text: string | null;
|
|
935
935
|
deliveredAt: number;
|
|
936
936
|
senderProfileUrn: string;
|
|
937
937
|
};
|
|
@@ -983,13 +983,13 @@ export type SearchLinkedInConversationsParticipant = {
|
|
|
983
983
|
profileUrn: string;
|
|
984
984
|
firstName: string;
|
|
985
985
|
lastName: string;
|
|
986
|
-
profileUrl: string;
|
|
986
|
+
profileUrl: string | null;
|
|
987
987
|
headline: string | null;
|
|
988
988
|
profilePicture: string | null;
|
|
989
989
|
};
|
|
990
990
|
|
|
991
991
|
export type SearchLinkedInConversationsLastMessage = {
|
|
992
|
-
text: string;
|
|
992
|
+
text: string | null;
|
|
993
993
|
deliveredAt: number;
|
|
994
994
|
senderProfileUrn: string;
|
|
995
995
|
};
|
|
@@ -1037,37 +1037,17 @@ export type FindLinkedInConversationRequest = {
|
|
|
1037
1037
|
includeMessages?: boolean | undefined;
|
|
1038
1038
|
};
|
|
1039
1039
|
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
lastName: string;
|
|
1044
|
-
profileUrl: string;
|
|
1045
|
-
headline: string | null;
|
|
1046
|
-
profilePicture: string | null;
|
|
1047
|
-
};
|
|
1048
|
-
|
|
1049
|
-
export type FindLinkedInConversationLastMessage = {
|
|
1050
|
-
text: string;
|
|
1051
|
-
deliveredAt: number;
|
|
1052
|
-
senderProfileUrn: string;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1040
|
+
/**
|
|
1041
|
+
* Lightweight conversation reference (O(1) lookup returns URN only, not full details).
|
|
1042
|
+
*/
|
|
1055
1043
|
export type FindLinkedInConversationConversation = {
|
|
1056
1044
|
conversationUrn: string;
|
|
1057
|
-
conversationUrl: string;
|
|
1058
|
-
lastActivityAt: number;
|
|
1059
|
-
createdAt: number;
|
|
1060
|
-
read: boolean;
|
|
1061
|
-
unreadCount: number;
|
|
1062
|
-
groupChat: boolean;
|
|
1063
|
-
participants: Array<FindLinkedInConversationParticipant>;
|
|
1064
|
-
lastMessage: FindLinkedInConversationLastMessage | null;
|
|
1065
1045
|
};
|
|
1066
1046
|
|
|
1067
1047
|
export type FindLinkedInConversationSender = {
|
|
1068
1048
|
firstName: string;
|
|
1069
1049
|
lastName: string;
|
|
1070
|
-
profileUrl: string;
|
|
1050
|
+
profileUrl: string | null;
|
|
1071
1051
|
headline: string | null;
|
|
1072
1052
|
profilePicture: string | null;
|
|
1073
1053
|
};
|
|
@@ -1098,7 +1078,7 @@ export type FindLinkedInConversationAttachment = {
|
|
|
1098
1078
|
|
|
1099
1079
|
export type FindLinkedInConversationMessage = {
|
|
1100
1080
|
messageUrn: string;
|
|
1101
|
-
text: string;
|
|
1081
|
+
text: string | null;
|
|
1102
1082
|
deliveredAt: number;
|
|
1103
1083
|
senderProfileUrn: string;
|
|
1104
1084
|
sender: FindLinkedInConversationSender;
|
|
@@ -1111,6 +1091,9 @@ export type FindLinkedInConversationMessage = {
|
|
|
1111
1091
|
export type FindLinkedInConversationResponse = {
|
|
1112
1092
|
success: boolean;
|
|
1113
1093
|
found: boolean;
|
|
1094
|
+
/**
|
|
1095
|
+
* Lightweight conversation reference (O(1) lookup returns URN only, not full details).
|
|
1096
|
+
*/
|
|
1114
1097
|
conversation: FindLinkedInConversationConversation | null;
|
|
1115
1098
|
messages: Array<FindLinkedInConversationMessage> | null;
|
|
1116
1099
|
/**
|
|
@@ -1137,7 +1120,7 @@ export type GetConversationMessagesRequest = {
|
|
|
1137
1120
|
export type GetConversationMessagesSender = {
|
|
1138
1121
|
firstName: string;
|
|
1139
1122
|
lastName: string;
|
|
1140
|
-
profileUrl: string;
|
|
1123
|
+
profileUrl: string | null;
|
|
1141
1124
|
headline: string | null;
|
|
1142
1125
|
profilePicture: string | null;
|
|
1143
1126
|
};
|
|
@@ -1168,7 +1151,7 @@ export type GetConversationMessagesAttachment = {
|
|
|
1168
1151
|
|
|
1169
1152
|
export type GetConversationMessagesMessage = {
|
|
1170
1153
|
messageUrn: string;
|
|
1171
|
-
text: string;
|
|
1154
|
+
text: string | null;
|
|
1172
1155
|
deliveredAt: number;
|
|
1173
1156
|
senderProfileUrn: string;
|
|
1174
1157
|
sender: GetConversationMessagesSender;
|
|
@@ -1754,11 +1737,11 @@ export const GetMyLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
|
|
|
1754
1737
|
educations: types.optional(
|
|
1755
1738
|
z.array(z.lazy(() => GetMyLinkedInProfileEducation$inboundSchema)),
|
|
1756
1739
|
),
|
|
1757
|
-
connectionsCount:
|
|
1758
|
-
location:
|
|
1759
|
-
z.
|
|
1740
|
+
connectionsCount: types.nullable(types.number()),
|
|
1741
|
+
location: types.nullable(
|
|
1742
|
+
z.lazy(() => GetMyLinkedInProfileLocation$inboundSchema),
|
|
1760
1743
|
),
|
|
1761
|
-
isVerified: types.
|
|
1744
|
+
isVerified: types.nullable(types.boolean()),
|
|
1762
1745
|
lastPosts: types.optional(
|
|
1763
1746
|
z.array(z.lazy(() => GetMyLinkedInProfileLastPost$inboundSchema)),
|
|
1764
1747
|
),
|
|
@@ -1996,11 +1979,11 @@ export const RefreshMyLinkedInProfileResponse$inboundSchema: z.ZodMiniType<
|
|
|
1996
1979
|
educations: types.optional(
|
|
1997
1980
|
z.array(z.lazy(() => RefreshMyLinkedInProfileEducation$inboundSchema)),
|
|
1998
1981
|
),
|
|
1999
|
-
connectionsCount:
|
|
2000
|
-
location:
|
|
2001
|
-
z.
|
|
1982
|
+
connectionsCount: types.nullable(types.number()),
|
|
1983
|
+
location: types.nullable(
|
|
1984
|
+
z.lazy(() => RefreshMyLinkedInProfileLocation$inboundSchema),
|
|
2002
1985
|
),
|
|
2003
|
-
isVerified: types.
|
|
1986
|
+
isVerified: types.nullable(types.boolean()),
|
|
2004
1987
|
lastPosts: types.optional(
|
|
2005
1988
|
z.array(z.lazy(() => RefreshMyLinkedInProfileLastPost$inboundSchema)),
|
|
2006
1989
|
),
|
|
@@ -2533,7 +2516,7 @@ export const ListInboxConversationsParticipant$inboundSchema: z.ZodMiniType<
|
|
|
2533
2516
|
profileUrn: types.string(),
|
|
2534
2517
|
firstName: types.string(),
|
|
2535
2518
|
lastName: types.string(),
|
|
2536
|
-
profileUrl: types.string(),
|
|
2519
|
+
profileUrl: types.nullable(types.string()),
|
|
2537
2520
|
headline: types.nullable(types.string()),
|
|
2538
2521
|
profilePicture: types.nullable(types.string()),
|
|
2539
2522
|
});
|
|
@@ -2553,7 +2536,7 @@ export const ListInboxConversationsLastMessage$inboundSchema: z.ZodMiniType<
|
|
|
2553
2536
|
ListInboxConversationsLastMessage,
|
|
2554
2537
|
unknown
|
|
2555
2538
|
> = z.object({
|
|
2556
|
-
text: types.string(),
|
|
2539
|
+
text: types.nullable(types.string()),
|
|
2557
2540
|
deliveredAt: types.number(),
|
|
2558
2541
|
senderProfileUrn: types.string(),
|
|
2559
2542
|
});
|
|
@@ -2654,7 +2637,7 @@ export const SearchLinkedInConversationsParticipant$inboundSchema:
|
|
|
2654
2637
|
profileUrn: types.string(),
|
|
2655
2638
|
firstName: types.string(),
|
|
2656
2639
|
lastName: types.string(),
|
|
2657
|
-
profileUrl: types.string(),
|
|
2640
|
+
profileUrl: types.nullable(types.string()),
|
|
2658
2641
|
headline: types.nullable(types.string()),
|
|
2659
2642
|
profilePicture: types.nullable(types.string()),
|
|
2660
2643
|
});
|
|
@@ -2673,7 +2656,7 @@ export function searchLinkedInConversationsParticipantFromJSON(
|
|
|
2673
2656
|
/** @internal */
|
|
2674
2657
|
export const SearchLinkedInConversationsLastMessage$inboundSchema:
|
|
2675
2658
|
z.ZodMiniType<SearchLinkedInConversationsLastMessage, unknown> = z.object({
|
|
2676
|
-
text: types.string(),
|
|
2659
|
+
text: types.nullable(types.string()),
|
|
2677
2660
|
deliveredAt: types.number(),
|
|
2678
2661
|
senderProfileUrn: types.string(),
|
|
2679
2662
|
});
|
|
@@ -2773,69 +2756,12 @@ export function findLinkedInConversationRequestToJSON(
|
|
|
2773
2756
|
);
|
|
2774
2757
|
}
|
|
2775
2758
|
|
|
2776
|
-
/** @internal */
|
|
2777
|
-
export const FindLinkedInConversationParticipant$inboundSchema: z.ZodMiniType<
|
|
2778
|
-
FindLinkedInConversationParticipant,
|
|
2779
|
-
unknown
|
|
2780
|
-
> = z.object({
|
|
2781
|
-
profileUrn: types.string(),
|
|
2782
|
-
firstName: types.string(),
|
|
2783
|
-
lastName: types.string(),
|
|
2784
|
-
profileUrl: types.string(),
|
|
2785
|
-
headline: types.nullable(types.string()),
|
|
2786
|
-
profilePicture: types.nullable(types.string()),
|
|
2787
|
-
});
|
|
2788
|
-
|
|
2789
|
-
export function findLinkedInConversationParticipantFromJSON(
|
|
2790
|
-
jsonString: string,
|
|
2791
|
-
): SafeParseResult<FindLinkedInConversationParticipant, SDKValidationError> {
|
|
2792
|
-
return safeParse(
|
|
2793
|
-
jsonString,
|
|
2794
|
-
(x) =>
|
|
2795
|
-
FindLinkedInConversationParticipant$inboundSchema.parse(JSON.parse(x)),
|
|
2796
|
-
`Failed to parse 'FindLinkedInConversationParticipant' from JSON`,
|
|
2797
|
-
);
|
|
2798
|
-
}
|
|
2799
|
-
|
|
2800
|
-
/** @internal */
|
|
2801
|
-
export const FindLinkedInConversationLastMessage$inboundSchema: z.ZodMiniType<
|
|
2802
|
-
FindLinkedInConversationLastMessage,
|
|
2803
|
-
unknown
|
|
2804
|
-
> = z.object({
|
|
2805
|
-
text: types.string(),
|
|
2806
|
-
deliveredAt: types.number(),
|
|
2807
|
-
senderProfileUrn: types.string(),
|
|
2808
|
-
});
|
|
2809
|
-
|
|
2810
|
-
export function findLinkedInConversationLastMessageFromJSON(
|
|
2811
|
-
jsonString: string,
|
|
2812
|
-
): SafeParseResult<FindLinkedInConversationLastMessage, SDKValidationError> {
|
|
2813
|
-
return safeParse(
|
|
2814
|
-
jsonString,
|
|
2815
|
-
(x) =>
|
|
2816
|
-
FindLinkedInConversationLastMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2817
|
-
`Failed to parse 'FindLinkedInConversationLastMessage' from JSON`,
|
|
2818
|
-
);
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
2759
|
/** @internal */
|
|
2822
2760
|
export const FindLinkedInConversationConversation$inboundSchema: z.ZodMiniType<
|
|
2823
2761
|
FindLinkedInConversationConversation,
|
|
2824
2762
|
unknown
|
|
2825
2763
|
> = z.object({
|
|
2826
2764
|
conversationUrn: types.string(),
|
|
2827
|
-
conversationUrl: types.string(),
|
|
2828
|
-
lastActivityAt: types.number(),
|
|
2829
|
-
createdAt: types.number(),
|
|
2830
|
-
read: types.boolean(),
|
|
2831
|
-
unreadCount: types.number(),
|
|
2832
|
-
groupChat: types.boolean(),
|
|
2833
|
-
participants: z.array(
|
|
2834
|
-
z.lazy(() => FindLinkedInConversationParticipant$inboundSchema),
|
|
2835
|
-
),
|
|
2836
|
-
lastMessage: types.nullable(
|
|
2837
|
-
z.lazy(() => FindLinkedInConversationLastMessage$inboundSchema),
|
|
2838
|
-
),
|
|
2839
2765
|
});
|
|
2840
2766
|
|
|
2841
2767
|
export function findLinkedInConversationConversationFromJSON(
|
|
@@ -2856,7 +2782,7 @@ export const FindLinkedInConversationSender$inboundSchema: z.ZodMiniType<
|
|
|
2856
2782
|
> = z.object({
|
|
2857
2783
|
firstName: types.string(),
|
|
2858
2784
|
lastName: types.string(),
|
|
2859
|
-
profileUrl: types.string(),
|
|
2785
|
+
profileUrl: types.nullable(types.string()),
|
|
2860
2786
|
headline: types.nullable(types.string()),
|
|
2861
2787
|
profilePicture: types.nullable(types.string()),
|
|
2862
2788
|
});
|
|
@@ -2910,7 +2836,7 @@ export const FindLinkedInConversationMessage$inboundSchema: z.ZodMiniType<
|
|
|
2910
2836
|
unknown
|
|
2911
2837
|
> = z.object({
|
|
2912
2838
|
messageUrn: types.string(),
|
|
2913
|
-
text: types.string(),
|
|
2839
|
+
text: types.nullable(types.string()),
|
|
2914
2840
|
deliveredAt: types.number(),
|
|
2915
2841
|
senderProfileUrn: types.string(),
|
|
2916
2842
|
sender: z.lazy(() => FindLinkedInConversationSender$inboundSchema),
|
|
@@ -2988,7 +2914,7 @@ export const GetConversationMessagesSender$inboundSchema: z.ZodMiniType<
|
|
|
2988
2914
|
> = z.object({
|
|
2989
2915
|
firstName: types.string(),
|
|
2990
2916
|
lastName: types.string(),
|
|
2991
|
-
profileUrl: types.string(),
|
|
2917
|
+
profileUrl: types.nullable(types.string()),
|
|
2992
2918
|
headline: types.nullable(types.string()),
|
|
2993
2919
|
profilePicture: types.nullable(types.string()),
|
|
2994
2920
|
});
|
|
@@ -3041,7 +2967,7 @@ export const GetConversationMessagesMessage$inboundSchema: z.ZodMiniType<
|
|
|
3041
2967
|
unknown
|
|
3042
2968
|
> = z.object({
|
|
3043
2969
|
messageUrn: types.string(),
|
|
3044
|
-
text: types.string(),
|
|
2970
|
+
text: types.nullable(types.string()),
|
|
3045
2971
|
deliveredAt: types.number(),
|
|
3046
2972
|
senderProfileUrn: types.string(),
|
|
3047
2973
|
sender: z.lazy(() => GetConversationMessagesSender$inboundSchema),
|