bereach 1.4.2 → 1.5.0
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 +71 -5
- package/esm/funcs/actions-connect-profile.d.ts +1 -1
- package/esm/funcs/actions-connect-profile.js +1 -1
- package/esm/funcs/actions-edit-profile.d.ts +18 -0
- package/esm/funcs/actions-edit-profile.d.ts.map +1 -0
- package/esm/funcs/actions-edit-profile.js +97 -0
- package/esm/funcs/actions-edit-profile.js.map +1 -0
- package/esm/funcs/chat-get-conversation-summary.d.ts +18 -0
- package/esm/funcs/chat-get-conversation-summary.d.ts.map +1 -0
- package/esm/funcs/chat-get-conversation-summary.js +100 -0
- package/esm/funcs/chat-get-conversation-summary.js.map +1 -0
- package/esm/funcs/chat-list-inbox.d.ts +1 -1
- package/esm/funcs/chat-list-inbox.js +1 -1
- package/esm/funcs/chat-save-conversation-summary.d.ts +18 -0
- package/esm/funcs/chat-save-conversation-summary.d.ts.map +1 -0
- package/esm/funcs/chat-save-conversation-summary.js +97 -0
- package/esm/funcs/chat-save-conversation-summary.js.map +1 -0
- package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
- package/esm/funcs/company-pages-get-analytics.js +1 -1
- package/esm/funcs/connectors-agent-snapshot.d.ts +18 -0
- package/esm/funcs/connectors-agent-snapshot.d.ts.map +1 -0
- package/esm/funcs/connectors-agent-snapshot.js +86 -0
- package/esm/funcs/connectors-agent-snapshot.js.map +1 -0
- package/esm/funcs/connectors-connector-heartbeat.d.ts +18 -0
- package/esm/funcs/connectors-connector-heartbeat.d.ts.map +1 -0
- package/esm/funcs/connectors-connector-heartbeat.js +99 -0
- package/esm/funcs/connectors-connector-heartbeat.js.map +1 -0
- package/esm/funcs/connectors-list-connectors.d.ts +18 -0
- package/esm/funcs/connectors-list-connectors.d.ts.map +1 -0
- package/esm/funcs/connectors-list-connectors.js +86 -0
- package/esm/funcs/connectors-list-connectors.js.map +1 -0
- package/esm/funcs/connectors-pull-task.d.ts +18 -0
- package/esm/funcs/connectors-pull-task.d.ts.map +1 -0
- package/esm/funcs/connectors-pull-task.js +86 -0
- package/esm/funcs/connectors-pull-task.js.map +1 -0
- package/esm/funcs/connectors-submit-task-result.d.ts +18 -0
- package/esm/funcs/connectors-submit-task-result.d.ts.map +1 -0
- package/esm/funcs/connectors-submit-task-result.js +103 -0
- package/esm/funcs/connectors-submit-task-result.js.map +1 -0
- package/esm/funcs/contacts-global-activities.d.ts +18 -0
- package/esm/funcs/contacts-global-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-global-activities.js +105 -0
- package/esm/funcs/contacts-global-activities.js.map +1 -0
- package/esm/funcs/profile-create-api-token.d.ts +18 -0
- package/esm/funcs/profile-create-api-token.d.ts.map +1 -0
- package/esm/funcs/profile-create-api-token.js +99 -0
- package/esm/funcs/profile-create-api-token.js.map +1 -0
- package/esm/funcs/profile-delete-api-token.d.ts +18 -0
- package/esm/funcs/profile-delete-api-token.d.ts.map +1 -0
- package/esm/funcs/profile-delete-api-token.js +99 -0
- package/esm/funcs/profile-delete-api-token.js.map +1 -0
- package/esm/funcs/profile-get-api-token.d.ts +18 -0
- package/esm/funcs/profile-get-api-token.d.ts.map +1 -0
- package/esm/funcs/profile-get-api-token.js +100 -0
- package/esm/funcs/profile-get-api-token.js.map +1 -0
- package/esm/funcs/profile-get-my-activity.d.ts +18 -0
- package/esm/funcs/profile-get-my-activity.d.ts.map +1 -0
- package/esm/funcs/profile-get-my-activity.js +104 -0
- package/esm/funcs/profile-get-my-activity.js.map +1 -0
- package/esm/funcs/profile-get-settings.d.ts +18 -0
- package/esm/funcs/profile-get-settings.d.ts.map +1 -0
- package/esm/funcs/profile-get-settings.js +86 -0
- package/esm/funcs/profile-get-settings.js.map +1 -0
- package/esm/funcs/profile-patch-settings.d.ts +18 -0
- package/esm/funcs/profile-patch-settings.d.ts.map +1 -0
- package/esm/funcs/profile-patch-settings.js +97 -0
- package/esm/funcs/profile-patch-settings.js.map +1 -0
- package/esm/funcs/profile-revalidate-linkedin.d.ts +18 -0
- package/esm/funcs/profile-revalidate-linkedin.d.ts.map +1 -0
- package/esm/funcs/profile-revalidate-linkedin.js +86 -0
- package/esm/funcs/profile-revalidate-linkedin.js.map +1 -0
- package/esm/funcs/sales-nav-search.d.ts +1 -1
- package/esm/funcs/sales-nav-search.js +1 -1
- package/esm/funcs/scheduled-messages-review-drafts.d.ts +18 -0
- package/esm/funcs/scheduled-messages-review-drafts.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-review-drafts.js +97 -0
- package/esm/funcs/scheduled-messages-review-drafts.js.map +1 -0
- package/esm/funcs/scrapers-collect-comment-replies.d.ts +1 -1
- package/esm/funcs/scrapers-collect-comment-replies.js +1 -1
- package/esm/funcs/scrapers-collect-comments.d.ts +1 -1
- package/esm/funcs/scrapers-collect-comments.js +1 -1
- package/esm/funcs/scrapers-collect-likes.d.ts +1 -1
- package/esm/funcs/scrapers-collect-likes.js +1 -1
- package/esm/funcs/scrapers-visit-profile.d.ts +2 -0
- package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
- package/esm/funcs/scrapers-visit-profile.js +2 -0
- package/esm/funcs/scrapers-visit-profile.js.map +1 -1
- package/esm/funcs/search-people.d.ts +2 -2
- package/esm/funcs/search-people.js +2 -2
- package/esm/funcs/search-search.d.ts +1 -1
- package/esm/funcs/search-search.js +1 -1
- package/esm/funcs/settings-get-dm-polling-settings.d.ts +18 -0
- package/esm/funcs/settings-get-dm-polling-settings.d.ts.map +1 -0
- package/esm/funcs/settings-get-dm-polling-settings.js +86 -0
- package/esm/funcs/settings-get-dm-polling-settings.js.map +1 -0
- package/esm/funcs/settings-patch-dm-polling-settings.d.ts +18 -0
- package/esm/funcs/settings-patch-dm-polling-settings.d.ts.map +1 -0
- package/esm/funcs/settings-patch-dm-polling-settings.js +97 -0
- package/esm/funcs/settings-patch-dm-polling-settings.js.map +1 -0
- package/esm/funcs/tasks-cancel-chain.d.ts +18 -0
- package/esm/funcs/tasks-cancel-chain.d.ts.map +1 -0
- package/esm/funcs/tasks-cancel-chain.js +102 -0
- package/esm/funcs/tasks-cancel-chain.js.map +1 -0
- package/esm/funcs/tasks-cancel-task.d.ts +18 -0
- package/esm/funcs/tasks-cancel-task.d.ts.map +1 -0
- package/esm/funcs/tasks-cancel-task.js +102 -0
- package/esm/funcs/tasks-cancel-task.js.map +1 -0
- package/esm/funcs/tasks-events-feed.d.ts +18 -0
- package/esm/funcs/tasks-events-feed.d.ts.map +1 -0
- package/esm/funcs/tasks-events-feed.js +101 -0
- package/esm/funcs/tasks-events-feed.js.map +1 -0
- package/esm/funcs/tasks-list-tasks.d.ts +18 -0
- package/esm/funcs/tasks-list-tasks.d.ts.map +1 -0
- package/esm/funcs/tasks-list-tasks.js +104 -0
- package/esm/funcs/tasks-list-tasks.js.map +1 -0
- package/esm/funcs/workspace-create-workspace-invite.d.ts +18 -0
- package/esm/funcs/workspace-create-workspace-invite.d.ts.map +1 -0
- package/esm/funcs/workspace-create-workspace-invite.js +97 -0
- package/esm/funcs/workspace-create-workspace-invite.js.map +1 -0
- package/esm/funcs/workspace-delete-workspace-account.d.ts +18 -0
- package/esm/funcs/workspace-delete-workspace-account.d.ts.map +1 -0
- package/esm/funcs/workspace-delete-workspace-account.js +102 -0
- package/esm/funcs/workspace-delete-workspace-account.js.map +1 -0
- package/esm/funcs/workspace-delete-workspace-invite.d.ts +18 -0
- package/esm/funcs/workspace-delete-workspace-invite.d.ts.map +1 -0
- package/esm/funcs/workspace-delete-workspace-invite.js +97 -0
- package/esm/funcs/workspace-delete-workspace-invite.js.map +1 -0
- package/esm/funcs/workspace-upgrade-workspace-account.d.ts +18 -0
- package/esm/funcs/workspace-upgrade-workspace-account.d.ts.map +1 -0
- package/esm/funcs/workspace-upgrade-workspace-account.js +97 -0
- package/esm/funcs/workspace-upgrade-workspace-account.js.map +1 -0
- package/esm/hooks/hooks.d.ts.map +1 -1
- package/esm/hooks/hooks.js +0 -2
- package/esm/hooks/hooks.js.map +1 -1
- package/esm/lib/config.d.ts +5 -5
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +6 -6
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +20 -5
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/models/operations/{search-contacts-campaign.d.ts → archive-response.d.ts} +1174 -1151
- package/esm/models/operations/archive-response.d.ts.map +1 -0
- package/esm/models/operations/{search-contacts-campaign.js → archive-response.js} +456 -461
- package/esm/models/operations/archive-response.js.map +1 -0
- package/esm/models/operations/delete-workspace-invite-response.d.ts +1374 -0
- package/esm/models/operations/delete-workspace-invite-response.d.ts.map +1 -0
- package/esm/models/operations/delete-workspace-invite-response.js +901 -0
- package/esm/models/operations/delete-workspace-invite-response.js.map +1 -0
- package/esm/models/operations/{update-schedule-response.d.ts → get-by-url-campaign.d.ts} +1629 -1291
- package/esm/models/operations/get-by-url-campaign.d.ts.map +1 -0
- package/esm/models/operations/{update-schedule-response.js → get-by-url-campaign.js} +534 -341
- package/esm/models/operations/get-by-url-campaign.js.map +1 -0
- package/esm/models/operations/index.d.ts +4 -3
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +4 -3
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/search-companies-response.d.ts +45 -12
- package/esm/models/operations/search-companies-response.d.ts.map +1 -1
- package/esm/models/operations/search-companies-response.js +10 -2
- package/esm/models/operations/search-companies-response.js.map +1 -1
- package/esm/models/operations/{update-account-response.d.ts → update-account-proxy-config-response.d.ts} +70 -38
- package/esm/models/operations/update-account-proxy-config-response.d.ts.map +1 -0
- package/esm/models/operations/{update-account-response.js → update-account-proxy-config-response.js} +27 -28
- package/esm/models/operations/update-account-proxy-config-response.js.map +1 -0
- package/esm/sdk/actions.d.ts +8 -1
- package/esm/sdk/actions.d.ts.map +1 -1
- package/esm/sdk/actions.js +11 -1
- package/esm/sdk/actions.js.map +1 -1
- package/esm/sdk/chat.d.ts +15 -1
- package/esm/sdk/chat.d.ts.map +1 -1
- package/esm/sdk/chat.js +21 -1
- package/esm/sdk/chat.js.map +1 -1
- package/esm/sdk/company-pages.d.ts +1 -1
- package/esm/sdk/company-pages.js +1 -1
- package/esm/sdk/connectors.d.ts +40 -0
- package/esm/sdk/connectors.d.ts.map +1 -0
- package/esm/sdk/connectors.js +58 -0
- package/esm/sdk/connectors.js.map +1 -0
- package/esm/sdk/contacts.d.ts +7 -0
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +10 -0
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/profile.d.ts +49 -0
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +70 -0
- package/esm/sdk/profile.js.map +1 -1
- package/esm/sdk/sales-nav.d.ts +1 -1
- package/esm/sdk/sales-nav.js +1 -1
- package/esm/sdk/scheduled-messages.d.ts +7 -0
- package/esm/sdk/scheduled-messages.d.ts.map +1 -1
- package/esm/sdk/scheduled-messages.js +10 -0
- package/esm/sdk/scheduled-messages.js.map +1 -1
- package/esm/sdk/scrapers.d.ts +5 -3
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +5 -3
- package/esm/sdk/scrapers.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +20 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/search.d.ts +3 -3
- package/esm/sdk/search.js +3 -3
- package/esm/sdk/settings.d.ts +19 -0
- package/esm/sdk/settings.d.ts.map +1 -0
- package/esm/sdk/settings.js +28 -0
- package/esm/sdk/settings.js.map +1 -0
- package/esm/sdk/tasks.d.ts +33 -0
- package/esm/sdk/tasks.d.ts.map +1 -0
- package/esm/sdk/tasks.js +48 -0
- package/esm/sdk/tasks.js.map +1 -0
- package/esm/sdk/workspace.d.ts +33 -0
- package/esm/sdk/workspace.d.ts.map +1 -0
- package/esm/sdk/workspace.js +48 -0
- package/esm/sdk/workspace.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/actions-connect-profile.ts +1 -1
- package/src/funcs/actions-edit-profile.ts +224 -0
- package/src/funcs/chat-get-conversation-summary.ts +229 -0
- package/src/funcs/chat-list-inbox.ts +1 -1
- package/src/funcs/chat-save-conversation-summary.ts +225 -0
- package/src/funcs/company-pages-get-analytics.ts +1 -1
- package/src/funcs/connectors-agent-snapshot.ts +205 -0
- package/src/funcs/connectors-connector-heartbeat.ts +230 -0
- package/src/funcs/connectors-list-connectors.ts +205 -0
- package/src/funcs/connectors-pull-task.ts +205 -0
- package/src/funcs/connectors-submit-task-result.ts +231 -0
- package/src/funcs/contacts-global-activities.ts +237 -0
- package/src/funcs/profile-create-api-token.ts +230 -0
- package/src/funcs/profile-delete-api-token.ts +230 -0
- package/src/funcs/profile-get-api-token.ts +229 -0
- package/src/funcs/profile-get-my-activity.ts +236 -0
- package/src/funcs/profile-get-settings.ts +205 -0
- package/src/funcs/profile-patch-settings.ts +224 -0
- package/src/funcs/profile-revalidate-linkedin.ts +205 -0
- package/src/funcs/sales-nav-search.ts +1 -1
- package/src/funcs/scheduled-messages-review-drafts.ts +224 -0
- package/src/funcs/scrapers-collect-comment-replies.ts +1 -1
- package/src/funcs/scrapers-collect-comments.ts +1 -1
- package/src/funcs/scrapers-collect-likes.ts +1 -1
- package/src/funcs/scrapers-visit-profile.ts +2 -0
- package/src/funcs/search-people.ts +2 -2
- package/src/funcs/search-search.ts +1 -1
- package/src/funcs/settings-get-dm-polling-settings.ts +205 -0
- package/src/funcs/settings-patch-dm-polling-settings.ts +225 -0
- package/src/funcs/tasks-cancel-chain.ts +229 -0
- package/src/funcs/tasks-cancel-task.ts +229 -0
- package/src/funcs/tasks-events-feed.ts +230 -0
- package/src/funcs/tasks-list-tasks.ts +233 -0
- package/src/funcs/workspace-create-workspace-invite.ts +225 -0
- package/src/funcs/workspace-delete-workspace-account.ts +230 -0
- package/src/funcs/workspace-delete-workspace-invite.ts +225 -0
- package/src/funcs/workspace-upgrade-workspace-account.ts +225 -0
- package/src/hooks/hooks.ts +0 -3
- package/src/lib/config.ts +6 -6
- package/src/lib/encodings.ts +23 -4
- package/src/lib/security.ts +14 -2
- package/src/models/operations/{search-contacts-campaign.ts → archive-response.ts} +2503 -2362
- package/src/models/operations/delete-workspace-invite-response.ts +2783 -0
- package/src/models/operations/{update-schedule-response.ts → get-by-url-campaign.ts} +3591 -2939
- package/src/models/operations/index.ts +4 -3
- package/src/models/operations/search-companies-response.ts +55 -14
- package/src/models/operations/{update-account-response.ts → update-account-proxy-config-response.ts} +112 -84
- package/src/sdk/actions.ts +19 -1
- package/src/sdk/chat.ts +37 -1
- package/src/sdk/company-pages.ts +1 -1
- package/src/sdk/connectors.ts +93 -0
- package/src/sdk/contacts.ts +18 -0
- package/src/sdk/profile.ts +122 -0
- package/src/sdk/sales-nav.ts +1 -1
- package/src/sdk/scheduled-messages.ts +18 -0
- package/src/sdk/scrapers.ts +5 -3
- package/src/sdk/sdk.ts +24 -0
- package/src/sdk/search.ts +3 -3
- package/src/sdk/settings.ts +43 -0
- package/src/sdk/tasks.ts +81 -0
- package/src/sdk/workspace.ts +81 -0
- package/esm/models/operations/search-contacts-campaign.d.ts.map +0 -1
- package/esm/models/operations/search-contacts-campaign.js.map +0 -1
- package/esm/models/operations/update-account-response.d.ts.map +0 -1
- package/esm/models/operations/update-account-response.js.map +0 -1
- package/esm/models/operations/update-schedule-response.d.ts.map +0 -1
- package/esm/models/operations/update-schedule-response.js.map +0 -1
|
@@ -7,6 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import * as openEnums from "../../types/enums.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { smartUnion } from "../../types/smart-union.js";
|
|
10
|
+
import { UpdateAccountProxyConfigResponse$inboundSchema, } from "./update-account-proxy-config-response.js";
|
|
10
11
|
export const RefreshType = {
|
|
11
12
|
Activity: "activity",
|
|
12
13
|
UgcPost: "ugcPost",
|
|
@@ -41,6 +42,17 @@ export const GetMyPostsMediaType = {
|
|
|
41
42
|
export const SortType = {
|
|
42
43
|
RecentlyAdded: "RECENTLY_ADDED",
|
|
43
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Type of activity to fetch
|
|
47
|
+
*/
|
|
48
|
+
export const QueryParamTabType = {
|
|
49
|
+
Comments: "COMMENTS",
|
|
50
|
+
Reactions: "REACTIONS",
|
|
51
|
+
};
|
|
52
|
+
export const TabTypeResponse = {
|
|
53
|
+
Comments: "COMMENTS",
|
|
54
|
+
Reactions: "REACTIONS",
|
|
55
|
+
};
|
|
44
56
|
export const FindConversationType = {
|
|
45
57
|
Audio: "audio",
|
|
46
58
|
SharedPost: "shared_post",
|
|
@@ -57,72 +69,31 @@ export const GetMessagesType = {
|
|
|
57
69
|
File: "file",
|
|
58
70
|
Unknown: "unknown",
|
|
59
71
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
CompanySearch: "company_search",
|
|
86
|
-
NetworkExpansion: "network_expansion",
|
|
87
|
-
BulkVisit: "bulk_visit",
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
|
|
91
|
-
*/
|
|
92
|
-
export const UpsertLifecycleStage = {
|
|
93
|
-
Contact: "contact",
|
|
94
|
-
Lead: "lead",
|
|
95
|
-
Qualified: "qualified",
|
|
96
|
-
Approved: "approved",
|
|
97
|
-
Rejected: "rejected",
|
|
98
|
-
};
|
|
99
|
-
export const SearchContactsLifecycleStage = {
|
|
100
|
-
Contact: "contact",
|
|
101
|
-
Lead: "lead",
|
|
102
|
-
Qualified: "qualified",
|
|
103
|
-
Approved: "approved",
|
|
104
|
-
Rejected: "rejected",
|
|
105
|
-
};
|
|
106
|
-
export const SearchContactsOutreachStatus = {
|
|
107
|
-
None: "none",
|
|
108
|
-
ConnectionSent: "connection_sent",
|
|
109
|
-
Connected: "connected",
|
|
110
|
-
DmSent: "dm_sent",
|
|
111
|
-
FollowedUp: "followed_up",
|
|
112
|
-
Replied: "replied",
|
|
113
|
-
InConversation: "in_conversation",
|
|
114
|
-
MeetingBooked: "meeting_booked",
|
|
115
|
-
Converted: "converted",
|
|
116
|
-
NotInterested: "not_interested",
|
|
117
|
-
};
|
|
118
|
-
export const DoNotContact = {
|
|
119
|
-
True: "true",
|
|
120
|
-
False: "false",
|
|
121
|
-
};
|
|
122
|
-
export const HasProfileData = {
|
|
123
|
-
True: "true",
|
|
124
|
-
False: "false",
|
|
125
|
-
};
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const UpdateAccountAccount$inboundSchema = z.object({
|
|
74
|
+
id: types.string(),
|
|
75
|
+
label: types.nullable(types.string()),
|
|
76
|
+
isDefault: types.boolean(),
|
|
77
|
+
linkedinProfileId: types.nullable(types.string()),
|
|
78
|
+
linkedinName: types.nullable(types.string()),
|
|
79
|
+
headline: types.nullable(types.string()),
|
|
80
|
+
profilePic: types.nullable(types.string()),
|
|
81
|
+
isValid: types.boolean(),
|
|
82
|
+
proxyConfig: types.nullable(UpdateAccountProxyConfigResponse$inboundSchema),
|
|
83
|
+
});
|
|
84
|
+
export function updateAccountAccountFromJSON(jsonString) {
|
|
85
|
+
return safeParse(jsonString, (x) => UpdateAccountAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAccountAccount' from JSON`);
|
|
86
|
+
}
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const UpdateAccountResponse$inboundSchema = z.object({
|
|
89
|
+
success: types.literal(true),
|
|
90
|
+
account: z.lazy(() => UpdateAccountAccount$inboundSchema),
|
|
91
|
+
creditsUsed: types.number(),
|
|
92
|
+
retryAfter: types.number(),
|
|
93
|
+
});
|
|
94
|
+
export function updateAccountResponseFromJSON(jsonString) {
|
|
95
|
+
return safeParse(jsonString, (x) => UpdateAccountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAccountResponse' from JSON`);
|
|
96
|
+
}
|
|
126
97
|
/** @internal */
|
|
127
98
|
export const RefreshPositionStartDate$inboundSchema = z.object({
|
|
128
99
|
month: types.nullable(types.number()),
|
|
@@ -143,10 +114,10 @@ export function refreshPositionEndDateFromJSON(jsonString) {
|
|
|
143
114
|
export const RefreshPosition$inboundSchema = z.object({
|
|
144
115
|
companyName: types.nullable(types.string()),
|
|
145
116
|
title: types.nullable(types.string()),
|
|
146
|
-
description:
|
|
117
|
+
description: z.optional(z.nullable(types.string())),
|
|
147
118
|
companyUrl: types.nullable(types.string()),
|
|
148
119
|
companyLogo: types.nullable(types.string()),
|
|
149
|
-
companyDescription:
|
|
120
|
+
companyDescription: z.optional(z.nullable(types.string())),
|
|
150
121
|
startDate: types.nullable(z.lazy(() => RefreshPositionStartDate$inboundSchema)),
|
|
151
122
|
endDate: types.nullable(z.lazy(() => RefreshPositionEndDate$inboundSchema)),
|
|
152
123
|
isCurrent: types.boolean(),
|
|
@@ -216,6 +187,7 @@ export const RefreshLastPost$inboundSchema = z.object({
|
|
|
216
187
|
postUrn: types.string(),
|
|
217
188
|
postId: types.string(),
|
|
218
189
|
type: RefreshType$inboundSchema,
|
|
190
|
+
isRepost: types.optional(types.boolean()),
|
|
219
191
|
media: types.optional(z.lazy(() => RefreshMedia$inboundSchema)),
|
|
220
192
|
});
|
|
221
193
|
export function refreshLastPostFromJSON(jsonString) {
|
|
@@ -235,9 +207,12 @@ export const RefreshResponse$inboundSchema = z.object({
|
|
|
235
207
|
positions: types.optional(z.array(z.lazy(() => RefreshPosition$inboundSchema))),
|
|
236
208
|
educations: types.optional(z.array(z.lazy(() => RefreshEducation$inboundSchema))),
|
|
237
209
|
connectionsCount: types.nullable(types.number()),
|
|
210
|
+
followersCount: z.optional(z.nullable(types.number())),
|
|
238
211
|
location: types.nullable(z.lazy(() => RefreshLocation$inboundSchema)),
|
|
239
212
|
isVerified: types.nullable(types.boolean()),
|
|
240
213
|
lastPosts: types.optional(z.array(z.lazy(() => RefreshLastPost$inboundSchema))),
|
|
214
|
+
lastComments: types.optional(z.array(z.any())),
|
|
215
|
+
lastReactions: types.optional(z.array(z.any())),
|
|
241
216
|
refreshed: types.literal(true),
|
|
242
217
|
creditsUsed: types.number(),
|
|
243
218
|
retryAfter: types.number(),
|
|
@@ -279,6 +254,7 @@ export const GetMyPostsPost$inboundSchema = z.object({
|
|
|
279
254
|
postUrn: types.string(),
|
|
280
255
|
postId: types.string(),
|
|
281
256
|
type: GetMyPostsType$inboundSchema,
|
|
257
|
+
isRepost: types.optional(types.boolean()),
|
|
282
258
|
media: types.optional(z.lazy(() => GetMyPostsMedia$inboundSchema)),
|
|
283
259
|
});
|
|
284
260
|
export function getMyPostsPostFromJSON(jsonString) {
|
|
@@ -356,10 +332,10 @@ export function connectionRequestWeeklyFromJSON(jsonString) {
|
|
|
356
332
|
}
|
|
357
333
|
/** @internal */
|
|
358
334
|
export const ConnectionRequest$inboundSchema = z.object({
|
|
359
|
-
daily: z.lazy(() => ConnectionRequestDaily$inboundSchema),
|
|
335
|
+
daily: types.nullable(z.lazy(() => ConnectionRequestDaily$inboundSchema)),
|
|
360
336
|
weekly: types.nullable(z.lazy(() => ConnectionRequestWeekly$inboundSchema)),
|
|
361
337
|
minIntervalSeconds: types.number(),
|
|
362
|
-
nextResetDaily: types.date(),
|
|
338
|
+
nextResetDaily: types.nullable(types.date()),
|
|
363
339
|
nextResetWeekly: types.nullable(types.date()),
|
|
364
340
|
});
|
|
365
341
|
export function connectionRequestFromJSON(jsonString) {
|
|
@@ -385,10 +361,10 @@ export function messageWeeklyFromJSON(jsonString) {
|
|
|
385
361
|
}
|
|
386
362
|
/** @internal */
|
|
387
363
|
export const GetLimitsMessage$inboundSchema = z.object({
|
|
388
|
-
daily: z.lazy(() => MessageDaily$inboundSchema),
|
|
364
|
+
daily: types.nullable(z.lazy(() => MessageDaily$inboundSchema)),
|
|
389
365
|
weekly: types.nullable(z.lazy(() => MessageWeekly$inboundSchema)),
|
|
390
366
|
minIntervalSeconds: types.number(),
|
|
391
|
-
nextResetDaily: types.date(),
|
|
367
|
+
nextResetDaily: types.nullable(types.date()),
|
|
392
368
|
nextResetWeekly: types.nullable(types.date()),
|
|
393
369
|
});
|
|
394
370
|
export function getLimitsMessageFromJSON(jsonString) {
|
|
@@ -414,10 +390,10 @@ export function profileVisitWeeklyFromJSON(jsonString) {
|
|
|
414
390
|
}
|
|
415
391
|
/** @internal */
|
|
416
392
|
export const ProfileVisit$inboundSchema = z.object({
|
|
417
|
-
daily: z.lazy(() => ProfileVisitDaily$inboundSchema),
|
|
393
|
+
daily: types.nullable(z.lazy(() => ProfileVisitDaily$inboundSchema)),
|
|
418
394
|
weekly: types.nullable(z.lazy(() => ProfileVisitWeekly$inboundSchema)),
|
|
419
395
|
minIntervalSeconds: types.number(),
|
|
420
|
-
nextResetDaily: types.date(),
|
|
396
|
+
nextResetDaily: types.nullable(types.date()),
|
|
421
397
|
nextResetWeekly: types.nullable(types.date()),
|
|
422
398
|
});
|
|
423
399
|
export function profileVisitFromJSON(jsonString) {
|
|
@@ -444,25 +420,183 @@ export function scrapingWeeklyFromJSON(jsonString) {
|
|
|
444
420
|
/** @internal */
|
|
445
421
|
export const Scraping$inboundSchema = z
|
|
446
422
|
.object({
|
|
447
|
-
daily: z.lazy(() => ScrapingDaily$inboundSchema),
|
|
423
|
+
daily: types.nullable(z.lazy(() => ScrapingDaily$inboundSchema)),
|
|
448
424
|
weekly: types.nullable(z.lazy(() => ScrapingWeekly$inboundSchema)),
|
|
449
425
|
minIntervalSeconds: types.number(),
|
|
450
|
-
nextResetDaily: types.date(),
|
|
426
|
+
nextResetDaily: types.nullable(types.date()),
|
|
451
427
|
nextResetWeekly: types.nullable(types.date()),
|
|
452
428
|
});
|
|
453
429
|
export function scrapingFromJSON(jsonString) {
|
|
454
430
|
return safeParse(jsonString, (x) => Scraping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scraping' from JSON`);
|
|
455
431
|
}
|
|
456
432
|
/** @internal */
|
|
433
|
+
export const PostDaily$inboundSchema = z
|
|
434
|
+
.object({
|
|
435
|
+
current: types.number(),
|
|
436
|
+
limit: types.number(),
|
|
437
|
+
remaining: types.number(),
|
|
438
|
+
});
|
|
439
|
+
export function postDailyFromJSON(jsonString) {
|
|
440
|
+
return safeParse(jsonString, (x) => PostDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostDaily' from JSON`);
|
|
441
|
+
}
|
|
442
|
+
/** @internal */
|
|
443
|
+
export const PostWeekly$inboundSchema = z
|
|
444
|
+
.object({
|
|
445
|
+
current: types.number(),
|
|
446
|
+
limit: types.number(),
|
|
447
|
+
remaining: types.number(),
|
|
448
|
+
});
|
|
449
|
+
export function postWeeklyFromJSON(jsonString) {
|
|
450
|
+
return safeParse(jsonString, (x) => PostWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostWeekly' from JSON`);
|
|
451
|
+
}
|
|
452
|
+
/** @internal */
|
|
453
|
+
export const GetLimitsPost$inboundSchema = z.object({
|
|
454
|
+
daily: types.nullable(z.lazy(() => PostDaily$inboundSchema)),
|
|
455
|
+
weekly: types.nullable(z.lazy(() => PostWeekly$inboundSchema)),
|
|
456
|
+
minIntervalSeconds: types.number(),
|
|
457
|
+
nextResetDaily: types.nullable(types.date()),
|
|
458
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
459
|
+
});
|
|
460
|
+
export function getLimitsPostFromJSON(jsonString) {
|
|
461
|
+
return safeParse(jsonString, (x) => GetLimitsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLimitsPost' from JSON`);
|
|
462
|
+
}
|
|
463
|
+
/** @internal */
|
|
464
|
+
export const AcceptInvitationDaily2$inboundSchema = z.object({
|
|
465
|
+
current: types.number(),
|
|
466
|
+
limit: types.number(),
|
|
467
|
+
remaining: types.number(),
|
|
468
|
+
});
|
|
469
|
+
export function acceptInvitationDaily2FromJSON(jsonString) {
|
|
470
|
+
return safeParse(jsonString, (x) => AcceptInvitationDaily2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptInvitationDaily2' from JSON`);
|
|
471
|
+
}
|
|
472
|
+
/** @internal */
|
|
473
|
+
export const AcceptInvitationWeekly2$inboundSchema = z.object({
|
|
474
|
+
current: types.number(),
|
|
475
|
+
limit: types.number(),
|
|
476
|
+
remaining: types.number(),
|
|
477
|
+
});
|
|
478
|
+
export function acceptInvitationWeekly2FromJSON(jsonString) {
|
|
479
|
+
return safeParse(jsonString, (x) => AcceptInvitationWeekly2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptInvitationWeekly2' from JSON`);
|
|
480
|
+
}
|
|
481
|
+
/** @internal */
|
|
482
|
+
export const AcceptInvitation$inboundSchema = z.object({
|
|
483
|
+
daily: types.nullable(z.lazy(() => AcceptInvitationDaily2$inboundSchema)),
|
|
484
|
+
weekly: types.nullable(z.lazy(() => AcceptInvitationWeekly2$inboundSchema)),
|
|
485
|
+
minIntervalSeconds: types.number(),
|
|
486
|
+
nextResetDaily: types.nullable(types.date()),
|
|
487
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
488
|
+
});
|
|
489
|
+
export function acceptInvitationFromJSON(jsonString) {
|
|
490
|
+
return safeParse(jsonString, (x) => AcceptInvitation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AcceptInvitation' from JSON`);
|
|
491
|
+
}
|
|
492
|
+
/** @internal */
|
|
493
|
+
export const CommentPostDaily$inboundSchema = z.object({
|
|
494
|
+
current: types.number(),
|
|
495
|
+
limit: types.number(),
|
|
496
|
+
remaining: types.number(),
|
|
497
|
+
});
|
|
498
|
+
export function commentPostDailyFromJSON(jsonString) {
|
|
499
|
+
return safeParse(jsonString, (x) => CommentPostDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommentPostDaily' from JSON`);
|
|
500
|
+
}
|
|
501
|
+
/** @internal */
|
|
502
|
+
export const CommentPostWeekly$inboundSchema = z.object({
|
|
503
|
+
current: types.number(),
|
|
504
|
+
limit: types.number(),
|
|
505
|
+
remaining: types.number(),
|
|
506
|
+
});
|
|
507
|
+
export function commentPostWeeklyFromJSON(jsonString) {
|
|
508
|
+
return safeParse(jsonString, (x) => CommentPostWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommentPostWeekly' from JSON`);
|
|
509
|
+
}
|
|
510
|
+
/** @internal */
|
|
511
|
+
export const CommentPost$inboundSchema = z
|
|
512
|
+
.object({
|
|
513
|
+
daily: types.nullable(z.lazy(() => CommentPostDaily$inboundSchema)),
|
|
514
|
+
weekly: types.nullable(z.lazy(() => CommentPostWeekly$inboundSchema)),
|
|
515
|
+
minIntervalSeconds: types.number(),
|
|
516
|
+
nextResetDaily: types.nullable(types.date()),
|
|
517
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
518
|
+
});
|
|
519
|
+
export function commentPostFromJSON(jsonString) {
|
|
520
|
+
return safeParse(jsonString, (x) => CommentPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CommentPost' from JSON`);
|
|
521
|
+
}
|
|
522
|
+
/** @internal */
|
|
523
|
+
export const ReplyCommentDaily$inboundSchema = z.object({
|
|
524
|
+
current: types.number(),
|
|
525
|
+
limit: types.number(),
|
|
526
|
+
remaining: types.number(),
|
|
527
|
+
});
|
|
528
|
+
export function replyCommentDailyFromJSON(jsonString) {
|
|
529
|
+
return safeParse(jsonString, (x) => ReplyCommentDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyCommentDaily' from JSON`);
|
|
530
|
+
}
|
|
531
|
+
/** @internal */
|
|
532
|
+
export const ReplyCommentWeekly$inboundSchema = z.object({
|
|
533
|
+
current: types.number(),
|
|
534
|
+
limit: types.number(),
|
|
535
|
+
remaining: types.number(),
|
|
536
|
+
});
|
|
537
|
+
export function replyCommentWeeklyFromJSON(jsonString) {
|
|
538
|
+
return safeParse(jsonString, (x) => ReplyCommentWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyCommentWeekly' from JSON`);
|
|
539
|
+
}
|
|
540
|
+
/** @internal */
|
|
541
|
+
export const ReplyComment$inboundSchema = z.object({
|
|
542
|
+
daily: types.nullable(z.lazy(() => ReplyCommentDaily$inboundSchema)),
|
|
543
|
+
weekly: types.nullable(z.lazy(() => ReplyCommentWeekly$inboundSchema)),
|
|
544
|
+
minIntervalSeconds: types.number(),
|
|
545
|
+
nextResetDaily: types.nullable(types.date()),
|
|
546
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
547
|
+
});
|
|
548
|
+
export function replyCommentFromJSON(jsonString) {
|
|
549
|
+
return safeParse(jsonString, (x) => ReplyComment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyComment' from JSON`);
|
|
550
|
+
}
|
|
551
|
+
/** @internal */
|
|
552
|
+
export const ChatSearchDaily$inboundSchema = z.object({
|
|
553
|
+
current: types.number(),
|
|
554
|
+
limit: types.number(),
|
|
555
|
+
remaining: types.number(),
|
|
556
|
+
});
|
|
557
|
+
export function chatSearchDailyFromJSON(jsonString) {
|
|
558
|
+
return safeParse(jsonString, (x) => ChatSearchDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatSearchDaily' from JSON`);
|
|
559
|
+
}
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const ChatSearchWeekly$inboundSchema = z.object({
|
|
562
|
+
current: types.number(),
|
|
563
|
+
limit: types.number(),
|
|
564
|
+
remaining: types.number(),
|
|
565
|
+
});
|
|
566
|
+
export function chatSearchWeeklyFromJSON(jsonString) {
|
|
567
|
+
return safeParse(jsonString, (x) => ChatSearchWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatSearchWeekly' from JSON`);
|
|
568
|
+
}
|
|
569
|
+
/** @internal */
|
|
570
|
+
export const ChatSearch$inboundSchema = z
|
|
571
|
+
.object({
|
|
572
|
+
daily: types.nullable(z.lazy(() => ChatSearchDaily$inboundSchema)),
|
|
573
|
+
weekly: types.nullable(z.lazy(() => ChatSearchWeekly$inboundSchema)),
|
|
574
|
+
minIntervalSeconds: types.number(),
|
|
575
|
+
nextResetDaily: types.nullable(types.date()),
|
|
576
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
577
|
+
});
|
|
578
|
+
export function chatSearchFromJSON(jsonString) {
|
|
579
|
+
return safeParse(jsonString, (x) => ChatSearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatSearch' from JSON`);
|
|
580
|
+
}
|
|
581
|
+
/** @internal */
|
|
457
582
|
export const Limits$inboundSchema = z.pipe(z.object({
|
|
458
583
|
connection_request: z.lazy(() => ConnectionRequest$inboundSchema),
|
|
459
584
|
message: z.lazy(() => GetLimitsMessage$inboundSchema),
|
|
460
585
|
profile_visit: z.lazy(() => ProfileVisit$inboundSchema),
|
|
461
586
|
scraping: z.lazy(() => Scraping$inboundSchema),
|
|
587
|
+
post: types.optional(z.lazy(() => GetLimitsPost$inboundSchema)),
|
|
588
|
+
accept_invitation: types.optional(z.lazy(() => AcceptInvitation$inboundSchema)),
|
|
589
|
+
comment_post: types.optional(z.lazy(() => CommentPost$inboundSchema)),
|
|
590
|
+
reply_comment: types.optional(z.lazy(() => ReplyComment$inboundSchema)),
|
|
591
|
+
chat_search: types.optional(z.lazy(() => ChatSearch$inboundSchema)),
|
|
462
592
|
}), z.transform((v) => {
|
|
463
593
|
return remap$(v, {
|
|
464
594
|
"connection_request": "connectionRequest",
|
|
465
595
|
"profile_visit": "profileVisit",
|
|
596
|
+
"accept_invitation": "acceptInvitation",
|
|
597
|
+
"comment_post": "commentPost",
|
|
598
|
+
"reply_comment": "replyComment",
|
|
599
|
+
"chat_search": "chatSearch",
|
|
466
600
|
});
|
|
467
601
|
}));
|
|
468
602
|
export function limitsFromJSON(jsonString) {
|
|
@@ -480,20 +614,20 @@ export function getLimitsResponseFromJSON(jsonString) {
|
|
|
480
614
|
return safeParse(jsonString, (x) => GetLimitsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLimitsResponse' from JSON`);
|
|
481
615
|
}
|
|
482
616
|
/** @internal */
|
|
483
|
-
export const
|
|
617
|
+
export const GetCreditsCredits$inboundSchema = z.object({
|
|
484
618
|
current: types.number(),
|
|
485
619
|
limit: types.nullable(types.number()),
|
|
486
620
|
remaining: types.nullable(types.number()),
|
|
487
621
|
percentage: types.number(),
|
|
488
622
|
isUnlimited: types.boolean(),
|
|
489
623
|
});
|
|
490
|
-
export function
|
|
491
|
-
return safeParse(jsonString, (x) =>
|
|
624
|
+
export function getCreditsCreditsFromJSON(jsonString) {
|
|
625
|
+
return safeParse(jsonString, (x) => GetCreditsCredits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCreditsCredits' from JSON`);
|
|
492
626
|
}
|
|
493
627
|
/** @internal */
|
|
494
628
|
export const GetCreditsResponse$inboundSchema = z.object({
|
|
495
629
|
success: types.literal(true),
|
|
496
|
-
credits: z.lazy(() =>
|
|
630
|
+
credits: z.lazy(() => GetCreditsCredits$inboundSchema),
|
|
497
631
|
creditsUsed: types.number(),
|
|
498
632
|
retryAfter: types.number(),
|
|
499
633
|
});
|
|
@@ -543,7 +677,7 @@ export const Appearances$inboundSchema = z
|
|
|
543
677
|
count: types.number(),
|
|
544
678
|
keywords: z.array(z.any()),
|
|
545
679
|
companies: z.array(z.any()),
|
|
546
|
-
raw: z.any(),
|
|
680
|
+
raw: types.optional(z.any()),
|
|
547
681
|
});
|
|
548
682
|
export function appearancesFromJSON(jsonString) {
|
|
549
683
|
return safeParse(jsonString, (x) => Appearances$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Appearances' from JSON`);
|
|
@@ -646,15 +780,20 @@ export function listConnectionsRequestToJSON(listConnectionsRequest) {
|
|
|
646
780
|
return JSON.stringify(ListConnectionsRequest$outboundSchema.parse(listConnectionsRequest));
|
|
647
781
|
}
|
|
648
782
|
/** @internal */
|
|
783
|
+
export const ConnectedAt$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
784
|
+
export function connectedAtFromJSON(jsonString) {
|
|
785
|
+
return safeParse(jsonString, (x) => ConnectedAt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectedAt' from JSON`);
|
|
786
|
+
}
|
|
787
|
+
/** @internal */
|
|
649
788
|
export const Connection$inboundSchema = z
|
|
650
789
|
.object({
|
|
651
790
|
name: types.string(),
|
|
652
791
|
headline: types.nullable(types.string()),
|
|
653
792
|
profileUrl: types.nullable(types.string()),
|
|
654
|
-
imageUrl: types.nullable(types.string()),
|
|
655
|
-
publicIdentifier: types.nullable(types.string()),
|
|
656
793
|
profileUrn: types.nullable(types.string()),
|
|
657
|
-
|
|
794
|
+
publicIdentifier: types.nullable(types.string()),
|
|
795
|
+
profilePicture: types.nullable(types.string()),
|
|
796
|
+
connectedAt: types.nullable(smartUnion([types.number(), types.string()])),
|
|
658
797
|
});
|
|
659
798
|
export function connectionFromJSON(jsonString) {
|
|
660
799
|
return safeParse(jsonString, (x) => Connection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Connection' from JSON`);
|
|
@@ -674,6 +813,233 @@ export function listConnectionsResponseFromJSON(jsonString) {
|
|
|
674
813
|
return safeParse(jsonString, (x) => ListConnectionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListConnectionsResponse' from JSON`);
|
|
675
814
|
}
|
|
676
815
|
/** @internal */
|
|
816
|
+
export const QueryParamTabType$outboundSchema = z.enum(QueryParamTabType);
|
|
817
|
+
/** @internal */
|
|
818
|
+
export const GetMyActivityRequest$outboundSchema = z.object({
|
|
819
|
+
tabType: z._default(QueryParamTabType$outboundSchema, "COMMENTS"),
|
|
820
|
+
companyId: z.optional(z.string()),
|
|
821
|
+
count: z._default(z.int(), 20),
|
|
822
|
+
start: z._default(z.int(), 0),
|
|
823
|
+
paginationToken: z.optional(z.string()),
|
|
824
|
+
});
|
|
825
|
+
export function getMyActivityRequestToJSON(getMyActivityRequest) {
|
|
826
|
+
return JSON.stringify(GetMyActivityRequest$outboundSchema.parse(getMyActivityRequest));
|
|
827
|
+
}
|
|
828
|
+
/** @internal */
|
|
829
|
+
export const TabTypeResponse$inboundSchema = openEnums.inboundSchema(TabTypeResponse);
|
|
830
|
+
/** @internal */
|
|
831
|
+
export const GetMyActivityResponse$inboundSchema = z.object({
|
|
832
|
+
success: types.literal(true),
|
|
833
|
+
actor: types.string(),
|
|
834
|
+
tabType: TabTypeResponse$inboundSchema,
|
|
835
|
+
items: z.array(z.any()),
|
|
836
|
+
count: types.number(),
|
|
837
|
+
total: types.number(),
|
|
838
|
+
start: types.number(),
|
|
839
|
+
paginationToken: types.nullable(types.string()),
|
|
840
|
+
creditsUsed: types.number(),
|
|
841
|
+
retryAfter: types.number(),
|
|
842
|
+
});
|
|
843
|
+
export function getMyActivityResponseFromJSON(jsonString) {
|
|
844
|
+
return safeParse(jsonString, (x) => GetMyActivityResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyActivityResponse' from JSON`);
|
|
845
|
+
}
|
|
846
|
+
/** @internal */
|
|
847
|
+
export const User$inboundSchema = z.object({
|
|
848
|
+
id: types.string(),
|
|
849
|
+
name: types.nullable(types.string()),
|
|
850
|
+
email: types.nullable(types.string()),
|
|
851
|
+
image: types.nullable(types.string()),
|
|
852
|
+
phone: types.nullable(types.string()),
|
|
853
|
+
createdAt: types.string(),
|
|
854
|
+
});
|
|
855
|
+
export function userFromJSON(jsonString) {
|
|
856
|
+
return safeParse(jsonString, (x) => User$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'User' from JSON`);
|
|
857
|
+
}
|
|
858
|
+
/** @internal */
|
|
859
|
+
export const GetSettingsLocation$inboundSchema = z.object({
|
|
860
|
+
country: types.nullable(types.string()),
|
|
861
|
+
city: types.nullable(types.string()),
|
|
862
|
+
});
|
|
863
|
+
export function getSettingsLocationFromJSON(jsonString) {
|
|
864
|
+
return safeParse(jsonString, (x) => GetSettingsLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSettingsLocation' from JSON`);
|
|
865
|
+
}
|
|
866
|
+
/** @internal */
|
|
867
|
+
export const Proxy$inboundSchema = z.catchall(z.object({
|
|
868
|
+
enabled: types.boolean(),
|
|
869
|
+
}), z.any());
|
|
870
|
+
export function proxyFromJSON(jsonString) {
|
|
871
|
+
return safeParse(jsonString, (x) => Proxy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Proxy' from JSON`);
|
|
872
|
+
}
|
|
873
|
+
/** @internal */
|
|
874
|
+
export const AnthropicKey$inboundSchema = z.object({
|
|
875
|
+
isSet: types.boolean(),
|
|
876
|
+
partial: types.nullable(types.string()),
|
|
877
|
+
});
|
|
878
|
+
export function anthropicKeyFromJSON(jsonString) {
|
|
879
|
+
return safeParse(jsonString, (x) => AnthropicKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicKey' from JSON`);
|
|
880
|
+
}
|
|
881
|
+
/** @internal */
|
|
882
|
+
export const Subscription$inboundSchema = z.object({
|
|
883
|
+
plan: types.string(),
|
|
884
|
+
tier: types.string(),
|
|
885
|
+
proSeatsIncluded: types.number(),
|
|
886
|
+
proSeatsUsed: types.number(),
|
|
887
|
+
status: types.nullable(types.string()),
|
|
888
|
+
currentPeriodEnd: types.nullable(types.string()),
|
|
889
|
+
hasStripe: types.boolean(),
|
|
890
|
+
});
|
|
891
|
+
export function subscriptionFromJSON(jsonString) {
|
|
892
|
+
return safeParse(jsonString, (x) => Subscription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Subscription' from JSON`);
|
|
893
|
+
}
|
|
894
|
+
/** @internal */
|
|
895
|
+
export const GetSettingsCredits$inboundSchema = z.object({
|
|
896
|
+
current: types.number(),
|
|
897
|
+
limit: types.nullable(types.number()),
|
|
898
|
+
isUnlimited: types.boolean(),
|
|
899
|
+
});
|
|
900
|
+
export function getSettingsCreditsFromJSON(jsonString) {
|
|
901
|
+
return safeParse(jsonString, (x) => GetSettingsCredits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSettingsCredits' from JSON`);
|
|
902
|
+
}
|
|
903
|
+
/** @internal */
|
|
904
|
+
export const LinkedinAccountProxy$inboundSchema = z.catchall(z.object({
|
|
905
|
+
enabled: types.boolean(),
|
|
906
|
+
}), z.any());
|
|
907
|
+
export function linkedinAccountProxyFromJSON(jsonString) {
|
|
908
|
+
return safeParse(jsonString, (x) => LinkedinAccountProxy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LinkedinAccountProxy' from JSON`);
|
|
909
|
+
}
|
|
910
|
+
/** @internal */
|
|
911
|
+
export const ApiKey$inboundSchema = z.object({
|
|
912
|
+
partialKey: types.string(),
|
|
913
|
+
createdAt: types.string(),
|
|
914
|
+
});
|
|
915
|
+
export function apiKeyFromJSON(jsonString) {
|
|
916
|
+
return safeParse(jsonString, (x) => ApiKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApiKey' from JSON`);
|
|
917
|
+
}
|
|
918
|
+
/** @internal */
|
|
919
|
+
export const LinkedinAccount$inboundSchema = z.object({
|
|
920
|
+
id: types.string(),
|
|
921
|
+
label: types.nullable(types.string()),
|
|
922
|
+
isDefault: types.boolean(),
|
|
923
|
+
linkedinName: types.nullable(types.string()),
|
|
924
|
+
linkedinEmail: types.nullable(types.string()),
|
|
925
|
+
profilePic: types.nullable(types.string()),
|
|
926
|
+
profileUrl: types.nullable(types.string()),
|
|
927
|
+
headline: types.nullable(types.string()),
|
|
928
|
+
isValid: types.boolean(),
|
|
929
|
+
isActive: types.boolean(),
|
|
930
|
+
validationError: types.nullable(types.string()),
|
|
931
|
+
accountPlan: types.nullable(types.string()),
|
|
932
|
+
credits: z.lazy(() => GetSettingsCredits$inboundSchema),
|
|
933
|
+
proxy: z.lazy(() => LinkedinAccountProxy$inboundSchema),
|
|
934
|
+
apiKey: types.nullable(z.lazy(() => ApiKey$inboundSchema)),
|
|
935
|
+
createdAt: types.string(),
|
|
936
|
+
});
|
|
937
|
+
export function linkedinAccountFromJSON(jsonString) {
|
|
938
|
+
return safeParse(jsonString, (x) => LinkedinAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LinkedinAccount' from JSON`);
|
|
939
|
+
}
|
|
940
|
+
/** @internal */
|
|
941
|
+
export const PendingInvite$inboundSchema = z.object({
|
|
942
|
+
id: types.string(),
|
|
943
|
+
email: types.nullable(types.string()),
|
|
944
|
+
name: types.nullable(types.string()),
|
|
945
|
+
code: types.string(),
|
|
946
|
+
maxUses: types.number(),
|
|
947
|
+
useCount: types.number(),
|
|
948
|
+
expiresAt: types.nullable(types.string()),
|
|
949
|
+
createdAt: types.string(),
|
|
950
|
+
});
|
|
951
|
+
export function pendingInviteFromJSON(jsonString) {
|
|
952
|
+
return safeParse(jsonString, (x) => PendingInvite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendingInvite' from JSON`);
|
|
953
|
+
}
|
|
954
|
+
/** @internal */
|
|
955
|
+
export const GetSettingsResponse$inboundSchema = z.object({
|
|
956
|
+
success: types.literal(true),
|
|
957
|
+
user: z.lazy(() => User$inboundSchema),
|
|
958
|
+
location: z.lazy(() => GetSettingsLocation$inboundSchema),
|
|
959
|
+
proxy: z.lazy(() => Proxy$inboundSchema),
|
|
960
|
+
anthropicKey: z.lazy(() => AnthropicKey$inboundSchema),
|
|
961
|
+
subscription: z.lazy(() => Subscription$inboundSchema),
|
|
962
|
+
linkedinAccounts: z.array(z.lazy(() => LinkedinAccount$inboundSchema)),
|
|
963
|
+
pendingInvites: z.array(z.lazy(() => PendingInvite$inboundSchema)),
|
|
964
|
+
});
|
|
965
|
+
export function getSettingsResponseFromJSON(jsonString) {
|
|
966
|
+
return safeParse(jsonString, (x) => GetSettingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSettingsResponse' from JSON`);
|
|
967
|
+
}
|
|
968
|
+
/** @internal */
|
|
969
|
+
export const PatchSettingsRequest$outboundSchema = z.object({
|
|
970
|
+
country: z.optional(z.string()),
|
|
971
|
+
city: z.optional(z.string()),
|
|
972
|
+
phone: z.optional(z.nullable(z.string())),
|
|
973
|
+
anthropicKey: z.optional(z.nullable(z.string())),
|
|
974
|
+
});
|
|
975
|
+
export function patchSettingsRequestToJSON(patchSettingsRequest) {
|
|
976
|
+
return JSON.stringify(PatchSettingsRequest$outboundSchema.parse(patchSettingsRequest));
|
|
977
|
+
}
|
|
978
|
+
/** @internal */
|
|
979
|
+
export const PatchSettingsResponse$inboundSchema = z.object({
|
|
980
|
+
success: types.literal(true),
|
|
981
|
+
});
|
|
982
|
+
export function patchSettingsResponseFromJSON(jsonString) {
|
|
983
|
+
return safeParse(jsonString, (x) => PatchSettingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchSettingsResponse' from JSON`);
|
|
984
|
+
}
|
|
985
|
+
/** @internal */
|
|
986
|
+
export const RevalidateLinkedinResponse$inboundSchema = z.object({
|
|
987
|
+
success: types.literal(true),
|
|
988
|
+
message: types.string(),
|
|
989
|
+
wasInvalid: types.boolean(),
|
|
990
|
+
});
|
|
991
|
+
export function revalidateLinkedinResponseFromJSON(jsonString) {
|
|
992
|
+
return safeParse(jsonString, (x) => RevalidateLinkedinResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RevalidateLinkedinResponse' from JSON`);
|
|
993
|
+
}
|
|
994
|
+
/** @internal */
|
|
995
|
+
export const GetApiTokenRequest$outboundSchema = z.object({
|
|
996
|
+
accountId: z.optional(z.string()),
|
|
997
|
+
});
|
|
998
|
+
export function getApiTokenRequestToJSON(getApiTokenRequest) {
|
|
999
|
+
return JSON.stringify(GetApiTokenRequest$outboundSchema.parse(getApiTokenRequest));
|
|
1000
|
+
}
|
|
1001
|
+
/** @internal */
|
|
1002
|
+
export const GetApiTokenResponse$inboundSchema = z.object({
|
|
1003
|
+
token: types.nullable(types.string()),
|
|
1004
|
+
partialKey: types.optional(types.string()),
|
|
1005
|
+
createdAt: types.optional(types.string()),
|
|
1006
|
+
accountId: types.optional(types.string()),
|
|
1007
|
+
});
|
|
1008
|
+
export function getApiTokenResponseFromJSON(jsonString) {
|
|
1009
|
+
return safeParse(jsonString, (x) => GetApiTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetApiTokenResponse' from JSON`);
|
|
1010
|
+
}
|
|
1011
|
+
/** @internal */
|
|
1012
|
+
export const CreateApiTokenRequest$outboundSchema = z.object({
|
|
1013
|
+
accountId: z.optional(z.string()),
|
|
1014
|
+
});
|
|
1015
|
+
export function createApiTokenRequestToJSON(createApiTokenRequest) {
|
|
1016
|
+
return JSON.stringify(CreateApiTokenRequest$outboundSchema.parse(createApiTokenRequest));
|
|
1017
|
+
}
|
|
1018
|
+
/** @internal */
|
|
1019
|
+
export const CreateApiTokenResponse$inboundSchema = z.object({
|
|
1020
|
+
success: types.literal(true),
|
|
1021
|
+
token: types.string(),
|
|
1022
|
+
partialKey: types.string(),
|
|
1023
|
+
accountId: types.string(),
|
|
1024
|
+
});
|
|
1025
|
+
export function createApiTokenResponseFromJSON(jsonString) {
|
|
1026
|
+
return safeParse(jsonString, (x) => CreateApiTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateApiTokenResponse' from JSON`);
|
|
1027
|
+
}
|
|
1028
|
+
/** @internal */
|
|
1029
|
+
export const DeleteApiTokenRequest$outboundSchema = z.object({
|
|
1030
|
+
accountId: z.optional(z.string()),
|
|
1031
|
+
});
|
|
1032
|
+
export function deleteApiTokenRequestToJSON(deleteApiTokenRequest) {
|
|
1033
|
+
return JSON.stringify(DeleteApiTokenRequest$outboundSchema.parse(deleteApiTokenRequest));
|
|
1034
|
+
}
|
|
1035
|
+
/** @internal */
|
|
1036
|
+
export const DeleteApiTokenResponse$inboundSchema = z.object({
|
|
1037
|
+
success: types.literal(true),
|
|
1038
|
+
});
|
|
1039
|
+
export function deleteApiTokenResponseFromJSON(jsonString) {
|
|
1040
|
+
return safeParse(jsonString, (x) => DeleteApiTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteApiTokenResponse' from JSON`);
|
|
1041
|
+
}
|
|
1042
|
+
/** @internal */
|
|
677
1043
|
export const Page$inboundSchema = z.object({
|
|
678
1044
|
id: types.string(),
|
|
679
1045
|
universalName: types.string(),
|
|
@@ -838,6 +1204,7 @@ export function getAnalyticsResponseFromJSON(jsonString) {
|
|
|
838
1204
|
/** @internal */
|
|
839
1205
|
export const ListInboxRequest$outboundSchema = z.object({
|
|
840
1206
|
nextCursor: z.optional(z.string()),
|
|
1207
|
+
count: z.optional(z.int()),
|
|
841
1208
|
});
|
|
842
1209
|
export function listInboxRequestToJSON(listInboxRequest) {
|
|
843
1210
|
return JSON.stringify(ListInboxRequest$outboundSchema.parse(listInboxRequest));
|
|
@@ -999,6 +1366,7 @@ export const FindConversationMessage$inboundSchema = z.object({
|
|
|
999
1366
|
senderProfileUrn: types.string(),
|
|
1000
1367
|
sender: z.lazy(() => FindConversationSender$inboundSchema),
|
|
1001
1368
|
attachments: z.array(z.lazy(() => FindConversationAttachment$inboundSchema)),
|
|
1369
|
+
isOutbound: types.boolean(),
|
|
1002
1370
|
});
|
|
1003
1371
|
export function findConversationMessageFromJSON(jsonString) {
|
|
1004
1372
|
return safeParse(jsonString, (x) => FindConversationMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindConversationMessage' from JSON`);
|
|
@@ -1009,6 +1377,8 @@ export const FindConversationResponse$inboundSchema = z.object({
|
|
|
1009
1377
|
found: types.boolean(),
|
|
1010
1378
|
conversation: types.nullable(z.lazy(() => FindConversationConversation$inboundSchema)),
|
|
1011
1379
|
messages: types.nullable(z.array(z.lazy(() => FindConversationMessage$inboundSchema))),
|
|
1380
|
+
prevCursor: z.optional(z.nullable(types.number())),
|
|
1381
|
+
userProfileUrn: types.optional(types.string()),
|
|
1012
1382
|
creditsUsed: types.number(),
|
|
1013
1383
|
retryAfter: types.number(),
|
|
1014
1384
|
});
|
|
@@ -1061,6 +1431,7 @@ export const GetMessagesMessage$inboundSchema = z.object({
|
|
|
1061
1431
|
senderProfileUrn: types.string(),
|
|
1062
1432
|
sender: z.lazy(() => GetMessagesSender$inboundSchema),
|
|
1063
1433
|
attachments: z.array(z.lazy(() => GetMessagesAttachment$inboundSchema)),
|
|
1434
|
+
isOutbound: types.boolean(),
|
|
1064
1435
|
});
|
|
1065
1436
|
export function getMessagesMessageFromJSON(jsonString) {
|
|
1066
1437
|
return safeParse(jsonString, (x) => GetMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMessagesMessage' from JSON`);
|
|
@@ -1209,380 +1580,4 @@ export const ArchiveResponse$inboundSchema = z.object({
|
|
|
1209
1580
|
export function archiveResponseFromJSON(jsonString) {
|
|
1210
1581
|
return safeParse(jsonString, (x) => ArchiveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArchiveResponse' from JSON`);
|
|
1211
1582
|
}
|
|
1212
|
-
|
|
1213
|
-
export const UnarchiveRequest$outboundSchema = z.object({
|
|
1214
|
-
conversationUrn: z.string(),
|
|
1215
|
-
});
|
|
1216
|
-
export function unarchiveRequestToJSON(unarchiveRequest) {
|
|
1217
|
-
return JSON.stringify(UnarchiveRequest$outboundSchema.parse(unarchiveRequest));
|
|
1218
|
-
}
|
|
1219
|
-
/** @internal */
|
|
1220
|
-
export const UnarchiveResponse$inboundSchema = z.object({
|
|
1221
|
-
success: types.literal(true),
|
|
1222
|
-
creditsUsed: types.number(),
|
|
1223
|
-
retryAfter: types.number(),
|
|
1224
|
-
});
|
|
1225
|
-
export function unarchiveResponseFromJSON(jsonString) {
|
|
1226
|
-
return safeParse(jsonString, (x) => UnarchiveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnarchiveResponse' from JSON`);
|
|
1227
|
-
}
|
|
1228
|
-
/** @internal */
|
|
1229
|
-
export const ListArchivedRequest$outboundSchema = z.object({
|
|
1230
|
-
nextCursor: z.optional(z.string()),
|
|
1231
|
-
});
|
|
1232
|
-
export function listArchivedRequestToJSON(listArchivedRequest) {
|
|
1233
|
-
return JSON.stringify(ListArchivedRequest$outboundSchema.parse(listArchivedRequest));
|
|
1234
|
-
}
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export const ListArchivedParticipant$inboundSchema = z.object({
|
|
1237
|
-
profileUrn: types.string(),
|
|
1238
|
-
firstName: types.string(),
|
|
1239
|
-
lastName: types.string(),
|
|
1240
|
-
profileUrl: types.nullable(types.string()),
|
|
1241
|
-
headline: types.nullable(types.string()),
|
|
1242
|
-
profilePicture: types.nullable(types.string()),
|
|
1243
|
-
publicIdentifier: types.nullable(types.string()),
|
|
1244
|
-
});
|
|
1245
|
-
export function listArchivedParticipantFromJSON(jsonString) {
|
|
1246
|
-
return safeParse(jsonString, (x) => ListArchivedParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedParticipant' from JSON`);
|
|
1247
|
-
}
|
|
1248
|
-
/** @internal */
|
|
1249
|
-
export const ListArchivedLastMessage$inboundSchema = z.object({
|
|
1250
|
-
text: types.nullable(types.string()),
|
|
1251
|
-
deliveredAt: types.number(),
|
|
1252
|
-
senderProfileUrn: types.string(),
|
|
1253
|
-
});
|
|
1254
|
-
export function listArchivedLastMessageFromJSON(jsonString) {
|
|
1255
|
-
return safeParse(jsonString, (x) => ListArchivedLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedLastMessage' from JSON`);
|
|
1256
|
-
}
|
|
1257
|
-
/** @internal */
|
|
1258
|
-
export const ListArchivedConversation$inboundSchema = z.object({
|
|
1259
|
-
conversationUrn: types.string(),
|
|
1260
|
-
conversationUrl: types.string(),
|
|
1261
|
-
lastActivityAt: types.number(),
|
|
1262
|
-
createdAt: types.number(),
|
|
1263
|
-
read: types.boolean(),
|
|
1264
|
-
unreadCount: types.number(),
|
|
1265
|
-
groupChat: types.boolean(),
|
|
1266
|
-
participants: z.array(z.lazy(() => ListArchivedParticipant$inboundSchema)),
|
|
1267
|
-
lastMessage: types.nullable(z.lazy(() => ListArchivedLastMessage$inboundSchema)),
|
|
1268
|
-
});
|
|
1269
|
-
export function listArchivedConversationFromJSON(jsonString) {
|
|
1270
|
-
return safeParse(jsonString, (x) => ListArchivedConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedConversation' from JSON`);
|
|
1271
|
-
}
|
|
1272
|
-
/** @internal */
|
|
1273
|
-
export const ListArchivedResponse$inboundSchema = z.object({
|
|
1274
|
-
success: types.literal(true),
|
|
1275
|
-
conversations: z.array(z.lazy(() => ListArchivedConversation$inboundSchema)),
|
|
1276
|
-
nextCursor: types.nullable(types.string()),
|
|
1277
|
-
creditsUsed: types.number(),
|
|
1278
|
-
retryAfter: types.number(),
|
|
1279
|
-
});
|
|
1280
|
-
export function listArchivedResponseFromJSON(jsonString) {
|
|
1281
|
-
return safeParse(jsonString, (x) => ListArchivedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListArchivedResponse' from JSON`);
|
|
1282
|
-
}
|
|
1283
|
-
/** @internal */
|
|
1284
|
-
export const ReactRequest$outboundSchema = z.object({
|
|
1285
|
-
messageUrn: z.string(),
|
|
1286
|
-
emoji: z.string(),
|
|
1287
|
-
conversationUrn: z.string(),
|
|
1288
|
-
});
|
|
1289
|
-
export function reactRequestToJSON(reactRequest) {
|
|
1290
|
-
return JSON.stringify(ReactRequest$outboundSchema.parse(reactRequest));
|
|
1291
|
-
}
|
|
1292
|
-
/** @internal */
|
|
1293
|
-
export const ReactResponse$inboundSchema = z.object({
|
|
1294
|
-
success: types.literal(true),
|
|
1295
|
-
creditsUsed: types.number(),
|
|
1296
|
-
retryAfter: types.number(),
|
|
1297
|
-
});
|
|
1298
|
-
export function reactResponseFromJSON(jsonString) {
|
|
1299
|
-
return safeParse(jsonString, (x) => ReactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReactResponse' from JSON`);
|
|
1300
|
-
}
|
|
1301
|
-
/** @internal */
|
|
1302
|
-
export const UnreactRequest$outboundSchema = z.object({
|
|
1303
|
-
messageUrn: z.string(),
|
|
1304
|
-
emoji: z.string(),
|
|
1305
|
-
conversationUrn: z.string(),
|
|
1306
|
-
});
|
|
1307
|
-
export function unreactRequestToJSON(unreactRequest) {
|
|
1308
|
-
return JSON.stringify(UnreactRequest$outboundSchema.parse(unreactRequest));
|
|
1309
|
-
}
|
|
1310
|
-
/** @internal */
|
|
1311
|
-
export const UnreactResponse$inboundSchema = z.object({
|
|
1312
|
-
success: types.literal(true),
|
|
1313
|
-
creditsUsed: types.number(),
|
|
1314
|
-
retryAfter: types.number(),
|
|
1315
|
-
});
|
|
1316
|
-
export function unreactResponseFromJSON(jsonString) {
|
|
1317
|
-
return safeParse(jsonString, (x) => UnreactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnreactResponse' from JSON`);
|
|
1318
|
-
}
|
|
1319
|
-
/** @internal */
|
|
1320
|
-
export const SendTypingIndicatorRequest$outboundSchema = z.object({
|
|
1321
|
-
conversationUrn: z.string(),
|
|
1322
|
-
});
|
|
1323
|
-
export function sendTypingIndicatorRequestToJSON(sendTypingIndicatorRequest) {
|
|
1324
|
-
return JSON.stringify(SendTypingIndicatorRequest$outboundSchema.parse(sendTypingIndicatorRequest));
|
|
1325
|
-
}
|
|
1326
|
-
/** @internal */
|
|
1327
|
-
export const SendTypingIndicatorResponse$inboundSchema = z.object({
|
|
1328
|
-
success: types.literal(true),
|
|
1329
|
-
creditsUsed: types.number(),
|
|
1330
|
-
retryAfter: types.number(),
|
|
1331
|
-
});
|
|
1332
|
-
export function sendTypingIndicatorResponseFromJSON(jsonString) {
|
|
1333
|
-
return safeParse(jsonString, (x) => SendTypingIndicatorResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendTypingIndicatorResponse' from JSON`);
|
|
1334
|
-
}
|
|
1335
|
-
/** @internal */
|
|
1336
|
-
export const GetUnreadCountResponse$inboundSchema = z.object({
|
|
1337
|
-
success: types.literal(true),
|
|
1338
|
-
unreadCount: types.number(),
|
|
1339
|
-
creditsUsed: types.number(),
|
|
1340
|
-
retryAfter: types.number(),
|
|
1341
|
-
});
|
|
1342
|
-
export function getUnreadCountResponseFromJSON(jsonString) {
|
|
1343
|
-
return safeParse(jsonString, (x) => GetUnreadCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUnreadCountResponse' from JSON`);
|
|
1344
|
-
}
|
|
1345
|
-
/** @internal */
|
|
1346
|
-
export const FilterRequest$outboundSchema = z.object({
|
|
1347
|
-
campaignSlug: z.string(),
|
|
1348
|
-
actionSlugs: z.string(),
|
|
1349
|
-
});
|
|
1350
|
-
export function filterRequestToJSON(filterRequest) {
|
|
1351
|
-
return JSON.stringify(FilterRequest$outboundSchema.parse(filterRequest));
|
|
1352
|
-
}
|
|
1353
|
-
/** @internal */
|
|
1354
|
-
export const CheckedSlug$inboundSchema = z
|
|
1355
|
-
.object({
|
|
1356
|
-
actionSlug: types.string(),
|
|
1357
|
-
completed: types.boolean(),
|
|
1358
|
-
});
|
|
1359
|
-
export function checkedSlugFromJSON(jsonString) {
|
|
1360
|
-
return safeParse(jsonString, (x) => CheckedSlug$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CheckedSlug' from JSON`);
|
|
1361
|
-
}
|
|
1362
|
-
/** @internal */
|
|
1363
|
-
export const FilterResponse$inboundSchema = z.object({
|
|
1364
|
-
filtered: types.boolean(),
|
|
1365
|
-
checkedSlugs: z.array(z.lazy(() => CheckedSlug$inboundSchema)),
|
|
1366
|
-
creditsUsed: types.number(),
|
|
1367
|
-
retryAfter: types.number(),
|
|
1368
|
-
});
|
|
1369
|
-
export function filterResponseFromJSON(jsonString) {
|
|
1370
|
-
return safeParse(jsonString, (x) => FilterResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterResponse' from JSON`);
|
|
1371
|
-
}
|
|
1372
|
-
/** @internal */
|
|
1373
|
-
export const GetStatusRequestBody$outboundSchema = z.object({
|
|
1374
|
-
profiles: z.array(z.string()),
|
|
1375
|
-
});
|
|
1376
|
-
export function getStatusRequestBodyToJSON(getStatusRequestBody) {
|
|
1377
|
-
return JSON.stringify(GetStatusRequestBody$outboundSchema.parse(getStatusRequestBody));
|
|
1378
|
-
}
|
|
1379
|
-
/** @internal */
|
|
1380
|
-
export const GetStatusRequest$outboundSchema = z.object({
|
|
1381
|
-
campaignSlug: z.string(),
|
|
1382
|
-
body: z.lazy(() => GetStatusRequestBody$outboundSchema),
|
|
1383
|
-
});
|
|
1384
|
-
export function getStatusRequestToJSON(getStatusRequest) {
|
|
1385
|
-
return JSON.stringify(GetStatusRequest$outboundSchema.parse(getStatusRequest));
|
|
1386
|
-
}
|
|
1387
|
-
/** @internal */
|
|
1388
|
-
export const GetStatusProfile$inboundSchema = z.object({
|
|
1389
|
-
profile: types.string(),
|
|
1390
|
-
message: types.boolean(),
|
|
1391
|
-
reply: types.boolean(),
|
|
1392
|
-
like: types.boolean(),
|
|
1393
|
-
visit: types.boolean(),
|
|
1394
|
-
connect: types.boolean(),
|
|
1395
|
-
});
|
|
1396
|
-
export function getStatusProfileFromJSON(jsonString) {
|
|
1397
|
-
return safeParse(jsonString, (x) => GetStatusProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStatusProfile' from JSON`);
|
|
1398
|
-
}
|
|
1399
|
-
/** @internal */
|
|
1400
|
-
export const GetStatusResponse$inboundSchema = z.object({
|
|
1401
|
-
success: types.literal(true),
|
|
1402
|
-
profiles: z.array(z.lazy(() => GetStatusProfile$inboundSchema)),
|
|
1403
|
-
creditsUsed: types.number(),
|
|
1404
|
-
retryAfter: types.number(),
|
|
1405
|
-
});
|
|
1406
|
-
export function getStatusResponseFromJSON(jsonString) {
|
|
1407
|
-
return safeParse(jsonString, (x) => GetStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStatusResponse' from JSON`);
|
|
1408
|
-
}
|
|
1409
|
-
/** @internal */
|
|
1410
|
-
export const SyncAction$outboundSchema = z
|
|
1411
|
-
.enum(SyncAction);
|
|
1412
|
-
/** @internal */
|
|
1413
|
-
export const SyncProfile$outboundSchema = z.object({
|
|
1414
|
-
profile: z.string(),
|
|
1415
|
-
actions: z.array(SyncAction$outboundSchema),
|
|
1416
|
-
});
|
|
1417
|
-
export function syncProfileToJSON(syncProfile) {
|
|
1418
|
-
return JSON.stringify(SyncProfile$outboundSchema.parse(syncProfile));
|
|
1419
|
-
}
|
|
1420
|
-
/** @internal */
|
|
1421
|
-
export const SyncRequestBody$outboundSchema = z.object({
|
|
1422
|
-
profiles: z.array(z.lazy(() => SyncProfile$outboundSchema)),
|
|
1423
|
-
});
|
|
1424
|
-
export function syncRequestBodyToJSON(syncRequestBody) {
|
|
1425
|
-
return JSON.stringify(SyncRequestBody$outboundSchema.parse(syncRequestBody));
|
|
1426
|
-
}
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export const SyncRequest$outboundSchema = z.object({
|
|
1429
|
-
campaignSlug: z.string(),
|
|
1430
|
-
body: z.lazy(() => SyncRequestBody$outboundSchema),
|
|
1431
|
-
});
|
|
1432
|
-
export function syncRequestToJSON(syncRequest) {
|
|
1433
|
-
return JSON.stringify(SyncRequest$outboundSchema.parse(syncRequest));
|
|
1434
|
-
}
|
|
1435
|
-
/** @internal */
|
|
1436
|
-
export const Synced$inboundSchema = z.object({
|
|
1437
|
-
profile: types.string(),
|
|
1438
|
-
actions: z.record(z.string(), types.boolean()),
|
|
1439
|
-
});
|
|
1440
|
-
export function syncedFromJSON(jsonString) {
|
|
1441
|
-
return safeParse(jsonString, (x) => Synced$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Synced' from JSON`);
|
|
1442
|
-
}
|
|
1443
|
-
/** @internal */
|
|
1444
|
-
export const SyncResponse$inboundSchema = z.object({
|
|
1445
|
-
success: types.literal(true),
|
|
1446
|
-
synced: z.array(z.lazy(() => Synced$inboundSchema)),
|
|
1447
|
-
creditsUsed: types.number(),
|
|
1448
|
-
retryAfter: types.number(),
|
|
1449
|
-
});
|
|
1450
|
-
export function syncResponseFromJSON(jsonString) {
|
|
1451
|
-
return safeParse(jsonString, (x) => SyncResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SyncResponse' from JSON`);
|
|
1452
|
-
}
|
|
1453
|
-
/** @internal */
|
|
1454
|
-
export const GetCampaignStatsRequest$outboundSchema = z.object({
|
|
1455
|
-
campaignSlug: z.string(),
|
|
1456
|
-
});
|
|
1457
|
-
export function getCampaignStatsRequestToJSON(getCampaignStatsRequest) {
|
|
1458
|
-
return JSON.stringify(GetCampaignStatsRequest$outboundSchema.parse(getCampaignStatsRequest));
|
|
1459
|
-
}
|
|
1460
|
-
/** @internal */
|
|
1461
|
-
export const GetCampaignStatsResponse$inboundSchema = z.object({
|
|
1462
|
-
success: types.literal(true),
|
|
1463
|
-
stats: z.record(z.string(), types.number()),
|
|
1464
|
-
totalProfiles: types.number(),
|
|
1465
|
-
creditsUsed: types.number(),
|
|
1466
|
-
retryAfter: types.number(),
|
|
1467
|
-
});
|
|
1468
|
-
export function getCampaignStatsResponseFromJSON(jsonString) {
|
|
1469
|
-
return safeParse(jsonString, (x) => GetCampaignStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStatsResponse' from JSON`);
|
|
1470
|
-
}
|
|
1471
|
-
/** @internal */
|
|
1472
|
-
export const UpsertSource$outboundSchema = z
|
|
1473
|
-
.enum(UpsertSource);
|
|
1474
|
-
/** @internal */
|
|
1475
|
-
export const UpsertLifecycleStage$outboundSchema = z.enum(UpsertLifecycleStage);
|
|
1476
|
-
/** @internal */
|
|
1477
|
-
export const UpsertContactRequest$outboundSchema = z.object({
|
|
1478
|
-
linkedinUrl: z.string(),
|
|
1479
|
-
profileUrn: z.optional(z.nullable(z.string())),
|
|
1480
|
-
publicIdentifier: z.optional(z.nullable(z.string())),
|
|
1481
|
-
name: z.string(),
|
|
1482
|
-
source: z._default(UpsertSource$outboundSchema, "manual_import"),
|
|
1483
|
-
sourceAngle: z.optional(z.string()),
|
|
1484
|
-
lifecycleStage: z.optional(UpsertLifecycleStage$outboundSchema),
|
|
1485
|
-
hotScore: z.optional(z.int()),
|
|
1486
|
-
qualificationNotes: z.optional(z.string()),
|
|
1487
|
-
notes: z.optional(z.string()),
|
|
1488
|
-
});
|
|
1489
|
-
export function upsertContactRequestToJSON(upsertContactRequest) {
|
|
1490
|
-
return JSON.stringify(UpsertContactRequest$outboundSchema.parse(upsertContactRequest));
|
|
1491
|
-
}
|
|
1492
|
-
/** @internal */
|
|
1493
|
-
export const UpsertRequest$outboundSchema = z.object({
|
|
1494
|
-
contacts: z.array(z.lazy(() => UpsertContactRequest$outboundSchema)),
|
|
1495
|
-
});
|
|
1496
|
-
export function upsertRequestToJSON(upsertRequest) {
|
|
1497
|
-
return JSON.stringify(UpsertRequest$outboundSchema.parse(upsertRequest));
|
|
1498
|
-
}
|
|
1499
|
-
/** @internal */
|
|
1500
|
-
export const UpsertResults$inboundSchema = z.object({
|
|
1501
|
-
created: types.number(),
|
|
1502
|
-
updated: types.number(),
|
|
1503
|
-
skipped: types.number(),
|
|
1504
|
-
errors: z.array(types.string()),
|
|
1505
|
-
});
|
|
1506
|
-
export function upsertResultsFromJSON(jsonString) {
|
|
1507
|
-
return safeParse(jsonString, (x) => UpsertResults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertResults' from JSON`);
|
|
1508
|
-
}
|
|
1509
|
-
/** @internal */
|
|
1510
|
-
export const UpsertContactResponse$inboundSchema = z.object({
|
|
1511
|
-
id: types.string(),
|
|
1512
|
-
linkedinUrl: types.string(),
|
|
1513
|
-
profileUrn: types.nullable(types.string()),
|
|
1514
|
-
publicIdentifier: types.nullable(types.string()),
|
|
1515
|
-
name: types.string(),
|
|
1516
|
-
lifecycleStage: types.string(),
|
|
1517
|
-
hotScore: types.number(),
|
|
1518
|
-
qualificationNotes: types.nullable(types.string()),
|
|
1519
|
-
notes: types.nullable(types.string()),
|
|
1520
|
-
stageChangedAt: types.nullable(types.string()),
|
|
1521
|
-
profileData: types.nullable(z.any()),
|
|
1522
|
-
profileUpdatedAt: types.nullable(types.string()),
|
|
1523
|
-
conversationData: types.nullable(z.any()),
|
|
1524
|
-
conversationUpdatedAt: types.nullable(types.string()),
|
|
1525
|
-
outreachStatus: types.string(),
|
|
1526
|
-
lastContactedAt: types.nullable(types.string()),
|
|
1527
|
-
lastRepliedAt: types.nullable(types.string()),
|
|
1528
|
-
nextFollowUpAt: types.nullable(types.string()),
|
|
1529
|
-
doNotContact: types.boolean(),
|
|
1530
|
-
tags: z.array(types.string()),
|
|
1531
|
-
createdAt: types.string(),
|
|
1532
|
-
updatedAt: types.string(),
|
|
1533
|
-
});
|
|
1534
|
-
export function upsertContactResponseFromJSON(jsonString) {
|
|
1535
|
-
return safeParse(jsonString, (x) => UpsertContactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertContactResponse' from JSON`);
|
|
1536
|
-
}
|
|
1537
|
-
/** @internal */
|
|
1538
|
-
export const UpsertResponse$inboundSchema = z.object({
|
|
1539
|
-
success: types.literal(true),
|
|
1540
|
-
results: z.lazy(() => UpsertResults$inboundSchema),
|
|
1541
|
-
contacts: z.array(z.lazy(() => UpsertContactResponse$inboundSchema)),
|
|
1542
|
-
creditsUsed: types.number(),
|
|
1543
|
-
retryAfter: types.number(),
|
|
1544
|
-
});
|
|
1545
|
-
export function upsertResponseFromJSON(jsonString) {
|
|
1546
|
-
return safeParse(jsonString, (x) => UpsertResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertResponse' from JSON`);
|
|
1547
|
-
}
|
|
1548
|
-
/** @internal */
|
|
1549
|
-
export const SearchContactsLifecycleStage$outboundSchema = z.enum(SearchContactsLifecycleStage);
|
|
1550
|
-
/** @internal */
|
|
1551
|
-
export const SearchContactsOutreachStatus$outboundSchema = z.enum(SearchContactsOutreachStatus);
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export const DoNotContact$outboundSchema = z
|
|
1554
|
-
.enum(DoNotContact);
|
|
1555
|
-
/** @internal */
|
|
1556
|
-
export const HasProfileData$outboundSchema = z.enum(HasProfileData);
|
|
1557
|
-
/** @internal */
|
|
1558
|
-
export const SearchContactsRequest$outboundSchema = z.object({
|
|
1559
|
-
linkedinUrl: z.optional(z.string()),
|
|
1560
|
-
name: z.optional(z.string()),
|
|
1561
|
-
lifecycleStage: z.optional(SearchContactsLifecycleStage$outboundSchema),
|
|
1562
|
-
sortBy: z.optional(z.string()),
|
|
1563
|
-
minHotScore: z.optional(z.int()),
|
|
1564
|
-
outreachStatus: z.optional(SearchContactsOutreachStatus$outboundSchema),
|
|
1565
|
-
tag: z.optional(z.string()),
|
|
1566
|
-
followUpBefore: z.optional(z.string()),
|
|
1567
|
-
doNotContact: z.optional(DoNotContact$outboundSchema),
|
|
1568
|
-
hasProfileData: z.optional(HasProfileData$outboundSchema),
|
|
1569
|
-
campaignId: z.optional(z.string()),
|
|
1570
|
-
limit: z._default(z.int(), 50),
|
|
1571
|
-
offset: z._default(z.int(), 0),
|
|
1572
|
-
});
|
|
1573
|
-
export function searchContactsRequestToJSON(searchContactsRequest) {
|
|
1574
|
-
return JSON.stringify(SearchContactsRequest$outboundSchema.parse(searchContactsRequest));
|
|
1575
|
-
}
|
|
1576
|
-
/** @internal */
|
|
1577
|
-
export const SearchContactsCampaign$inboundSchema = z.object({
|
|
1578
|
-
campaignId: types.string(),
|
|
1579
|
-
campaignName: types.string(),
|
|
1580
|
-
campaignStatus: types.string(),
|
|
1581
|
-
source: types.string(),
|
|
1582
|
-
sourceAngle: types.nullable(types.string()),
|
|
1583
|
-
addedAt: types.string(),
|
|
1584
|
-
});
|
|
1585
|
-
export function searchContactsCampaignFromJSON(jsonString) {
|
|
1586
|
-
return safeParse(jsonString, (x) => SearchContactsCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchContactsCampaign' from JSON`);
|
|
1587
|
-
}
|
|
1588
|
-
//# sourceMappingURL=search-contacts-campaign.js.map
|
|
1583
|
+
//# sourceMappingURL=archive-response.js.map
|