linkedapi 1.4.10__tar.gz → 1.4.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. {linkedapi-1.4.10 → linkedapi-1.4.11}/PKG-INFO +1 -1
  2. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/__init__.py +31 -1
  3. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/client.py +45 -0
  4. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/errors.py +12 -0
  5. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/__init__.py +30 -0
  6. linkedapi-1.4.11/linkedapi/operations/nv_create_list.py +19 -0
  7. linkedapi-1.4.11/linkedapi/operations/nv_create_saved_search.py +16 -0
  8. linkedapi-1.4.11/linkedapi/operations/nv_delete_list.py +16 -0
  9. linkedapi-1.4.11/linkedapi/operations/nv_delete_saved_search.py +14 -0
  10. linkedapi-1.4.11/linkedapi/operations/nv_remove_account_from_list.py +14 -0
  11. linkedapi-1.4.11/linkedapi/operations/nv_remove_lead_from_list.py +14 -0
  12. linkedapi-1.4.11/linkedapi/operations/nv_rename_list.py +17 -0
  13. linkedapi-1.4.11/linkedapi/operations/nv_retrieve_list_accounts.py +14 -0
  14. linkedapi-1.4.11/linkedapi/operations/nv_retrieve_list_leads.py +14 -0
  15. linkedapi-1.4.11/linkedapi/operations/nv_retrieve_lists.py +12 -0
  16. linkedapi-1.4.11/linkedapi/operations/nv_retrieve_saved_searches.py +14 -0
  17. linkedapi-1.4.11/linkedapi/operations/nv_save_account.py +17 -0
  18. linkedapi-1.4.11/linkedapi/operations/nv_save_lead.py +18 -0
  19. linkedapi-1.4.11/linkedapi/operations/nv_unsave_account.py +12 -0
  20. linkedapi-1.4.11/linkedapi/operations/nv_unsave_lead.py +13 -0
  21. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/__init__.py +50 -0
  22. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/nv_alerts.py +2 -0
  23. linkedapi-1.4.11/linkedapi/types/nv_list_management.py +35 -0
  24. linkedapi-1.4.11/linkedapi/types/nv_list_members.py +44 -0
  25. linkedapi-1.4.11/linkedapi/types/nv_saved_searches.py +39 -0
  26. linkedapi-1.4.11/linkedapi/types/nv_saved_subjects.py +39 -0
  27. {linkedapi-1.4.10 → linkedapi-1.4.11}/pyproject.toml +1 -1
  28. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_errors.py +6 -0
  29. linkedapi-1.4.11/tests/test_nv_backlog.py +222 -0
  30. linkedapi-1.4.11/tests/test_nv_list_management.py +150 -0
  31. linkedapi-1.4.11/tests/test_nv_saved_subjects.py +186 -0
  32. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_operations.py +16 -1
  33. {linkedapi-1.4.10 → linkedapi-1.4.11}/.github/workflows/publish.yaml +0 -0
  34. {linkedapi-1.4.10 → linkedapi-1.4.11}/.gitignore +0 -0
  35. {linkedapi-1.4.10 → linkedapi-1.4.11}/LICENSE +0 -0
  36. {linkedapi-1.4.10 → linkedapi-1.4.11}/README.md +0 -0
  37. {linkedapi-1.4.10 → linkedapi-1.4.11}/examples/verify_webhook_signature.py +0 -0
  38. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/__init__.py +0 -0
  39. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/accounts.py +0 -0
  40. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/admin.py +0 -0
  41. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/http_client.py +0 -0
  42. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/limits.py +0 -0
  43. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/subscription.py +0 -0
  44. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/admin/webhooks.py +0 -0
  45. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/changelog.py +0 -0
  46. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/config.py +0 -0
  47. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/core/__init__.py +0 -0
  48. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/core/operation.py +0 -0
  49. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/core/polling.py +0 -0
  50. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/http/__init__.py +0 -0
  51. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/http/base.py +0 -0
  52. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/http/linked_api_http_client.py +0 -0
  53. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/__init__.py +0 -0
  54. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/array.py +0 -0
  55. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/base.py +0 -0
  56. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/endorse_person_skills.py +0 -0
  57. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/send_message.py +0 -0
  58. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/simple.py +0 -0
  59. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/then.py +0 -0
  60. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/mappers/void.py +0 -0
  61. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/accept_invitation.py +0 -0
  62. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/check_connection_status.py +0 -0
  63. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/comment_on_post.py +0 -0
  64. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/create_post.py +0 -0
  65. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/create_repost.py +0 -0
  66. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/custom_workflow.py +0 -0
  67. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/endorse_person_skill.py +0 -0
  68. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/endorse_person_skills.py +0 -0
  69. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/fetch_company.py +0 -0
  70. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/fetch_job.py +0 -0
  71. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/fetch_person.py +0 -0
  72. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/fetch_post.py +0 -0
  73. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/ignore_invitation.py +0 -0
  74. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/manage_conversation.py +0 -0
  75. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_fetch_company.py +0 -0
  76. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_fetch_person.py +0 -0
  77. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_manage_conversation.py +0 -0
  78. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_retrieve_alerts.py +0 -0
  79. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_search_companies.py +0 -0
  80. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_search_people.py +0 -0
  81. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_send_message.py +0 -0
  82. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_sync_conversation.py +0 -0
  83. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/nv_sync_inbox.py +0 -0
  84. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/react_to_comment.py +0 -0
  85. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/react_to_post.py +0 -0
  86. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/remove_connection.py +0 -0
  87. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/reply_to_comment.py +0 -0
  88. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_connections.py +0 -0
  89. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_feed.py +0 -0
  90. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_invitations.py +0 -0
  91. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_pending_requests.py +0 -0
  92. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_performance.py +0 -0
  93. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_profile_viewers.py +0 -0
  94. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/retrieve_ssi.py +0 -0
  95. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/search_companies.py +0 -0
  96. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/search_jobs.py +0 -0
  97. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/search_people.py +0 -0
  98. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/search_posts.py +0 -0
  99. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/send_connection_request.py +0 -0
  100. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/send_message.py +0 -0
  101. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/sync_conversation.py +0 -0
  102. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/sync_inbox.py +0 -0
  103. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/sync_network.py +0 -0
  104. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/operations/withdraw_connection_request.py +0 -0
  105. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/py.typed +0 -0
  106. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/account.py +0 -0
  107. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/admin/__init__.py +0 -0
  108. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/admin/accounts.py +0 -0
  109. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/admin/config.py +0 -0
  110. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/admin/limits.py +0 -0
  111. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/admin/subscription.py +0 -0
  112. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/base.py +0 -0
  113. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/changelog.py +0 -0
  114. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/company.py +0 -0
  115. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/connection.py +0 -0
  116. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/feed.py +0 -0
  117. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/jobs.py +0 -0
  118. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/message.py +0 -0
  119. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/network.py +0 -0
  120. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/params.py +0 -0
  121. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/person.py +0 -0
  122. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/post.py +0 -0
  123. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/profile_viewers.py +0 -0
  124. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/responses.py +0 -0
  125. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/search_companies.py +0 -0
  126. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/search_people.py +0 -0
  127. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/search_posts.py +0 -0
  128. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/statistics.py +0 -0
  129. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/viewer_state.py +0 -0
  130. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/webhooks.py +0 -0
  131. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/types/workflow.py +0 -0
  132. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/webhooks/__init__.py +0 -0
  133. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/webhooks/headers.py +0 -0
  134. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/webhooks/parse.py +0 -0
  135. {linkedapi-1.4.10 → linkedapi-1.4.11}/linkedapi/webhooks/signature.py +0 -0
  136. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/conftest.py +0 -0
  137. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_admin.py +0 -0
  138. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_admin_webhooks.py +0 -0
  139. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_changelog.py +0 -0
  140. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_direct_methods.py +0 -0
  141. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_endorse_operations.py +0 -0
  142. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_http_client.py +0 -0
  143. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_limits_categories.py +0 -0
  144. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_mappers.py +0 -0
  145. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_models.py +0 -0
  146. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_nv_retrieve_alerts.py +0 -0
  147. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_open_vocabularies.py +0 -0
  148. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_polling.py +0 -0
  149. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_webhook_signature.py +0 -0
  150. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_webhooks.py +0 -0
  151. {linkedapi-1.4.10 → linkedapi-1.4.11}/tests/test_working_hours_contract.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: linkedapi
3
- Version: 1.4.10
3
+ Version: 1.4.11
4
4
  Summary: Official synchronous Python SDK for Linked API.
5
5
  Project-URL: Homepage, https://linkedapi.io
6
6
  Project-URL: Repository, https://github.com/Linked-API/linkedapi-python
@@ -48,17 +48,32 @@ from linkedapi.operations import (
48
48
  FetchPostMapper,
49
49
  IgnoreInvitation,
50
50
  ManageConversation,
51
+ NvCreateList,
52
+ NvCreateSavedSearch,
53
+ NvDeleteList,
54
+ NvDeleteSavedSearch,
51
55
  NvFetchCompany,
52
56
  NvFetchCompanyMapper,
53
57
  NvFetchPerson,
54
58
  NvFetchPersonMapper,
55
59
  NvManageConversation,
60
+ NvRemoveAccountFromList,
61
+ NvRemoveLeadFromList,
62
+ NvRenameList,
56
63
  NvRetrieveAlerts,
64
+ NvRetrieveListAccounts,
65
+ NvRetrieveListLeads,
66
+ NvRetrieveLists,
67
+ NvRetrieveSavedSearches,
68
+ NvSaveAccount,
69
+ NvSaveLead,
57
70
  NvSearchCompanies,
58
71
  NvSearchPeople,
59
72
  NvSendMessage,
60
73
  NvSyncConversation,
61
74
  NvSyncInbox,
75
+ NvUnsaveAccount,
76
+ NvUnsaveLead,
62
77
  ReactToComment,
63
78
  ReactToPost,
64
79
  RemoveConnection,
@@ -90,7 +105,7 @@ from linkedapi.webhooks import (
90
105
  verify_webhook_signature,
91
106
  )
92
107
 
93
- __version__ = "1.4.10"
108
+ __version__ = "1.4.11"
94
109
  PredefinedOperation = Operation
95
110
 
96
111
  __all__ = [
@@ -139,6 +154,21 @@ __all__ = [
139
154
  "NvFetchPersonMapper",
140
155
  "NvManageConversation",
141
156
  "NvRetrieveAlerts",
157
+ "NvRetrieveLists",
158
+ "NvDeleteList",
159
+ "NvCreateList",
160
+ "NvDeleteSavedSearch",
161
+ "NvCreateSavedSearch",
162
+ "NvRetrieveSavedSearches",
163
+ "NvRenameList",
164
+ "NvRemoveAccountFromList",
165
+ "NvRemoveLeadFromList",
166
+ "NvRetrieveListAccounts",
167
+ "NvRetrieveListLeads",
168
+ "NvUnsaveAccount",
169
+ "NvSaveAccount",
170
+ "NvUnsaveLead",
171
+ "NvSaveLead",
142
172
  "NvSearchCompanies",
143
173
  "NvSearchPeople",
144
174
  "NvSendMessage",
@@ -22,15 +22,30 @@ from linkedapi.operations import (
22
22
  FetchPost,
23
23
  IgnoreInvitation,
24
24
  ManageConversation,
25
+ NvCreateList,
26
+ NvCreateSavedSearch,
27
+ NvDeleteList,
28
+ NvDeleteSavedSearch,
25
29
  NvFetchCompany,
26
30
  NvFetchPerson,
27
31
  NvManageConversation,
32
+ NvRemoveAccountFromList,
33
+ NvRemoveLeadFromList,
34
+ NvRenameList,
28
35
  NvRetrieveAlerts,
36
+ NvRetrieveListAccounts,
37
+ NvRetrieveListLeads,
38
+ NvRetrieveLists,
39
+ NvRetrieveSavedSearches,
40
+ NvSaveAccount,
41
+ NvSaveLead,
29
42
  NvSearchCompanies,
30
43
  NvSearchPeople,
31
44
  NvSendMessage,
32
45
  NvSyncConversation,
33
46
  NvSyncInbox,
47
+ NvUnsaveAccount,
48
+ NvUnsaveLead,
34
49
  ReactToComment,
35
50
  ReactToPost,
36
51
  RemoveConnection,
@@ -116,6 +131,21 @@ class LinkedApi:
116
131
  self.nv_sync_inbox = NvSyncInbox(self.http_client)
117
132
  self.nv_manage_conversation = NvManageConversation(self.http_client)
118
133
  self.nv_retrieve_alerts = NvRetrieveAlerts(self.http_client)
134
+ self.nv_retrieve_lists = NvRetrieveLists(self.http_client)
135
+ self.nv_delete_list = NvDeleteList(self.http_client)
136
+ self.nv_create_list = NvCreateList(self.http_client)
137
+ self.nv_delete_saved_search = NvDeleteSavedSearch(self.http_client)
138
+ self.nv_create_saved_search = NvCreateSavedSearch(self.http_client)
139
+ self.nv_retrieve_saved_searches = NvRetrieveSavedSearches(self.http_client)
140
+ self.nv_rename_list = NvRenameList(self.http_client)
141
+ self.nv_remove_account_from_list = NvRemoveAccountFromList(self.http_client)
142
+ self.nv_remove_lead_from_list = NvRemoveLeadFromList(self.http_client)
143
+ self.nv_retrieve_list_accounts = NvRetrieveListAccounts(self.http_client)
144
+ self.nv_retrieve_list_leads = NvRetrieveListLeads(self.http_client)
145
+ self.nv_unsave_account = NvUnsaveAccount(self.http_client)
146
+ self.nv_save_account = NvSaveAccount(self.http_client)
147
+ self.nv_unsave_lead = NvUnsaveLead(self.http_client)
148
+ self.nv_save_lead = NvSaveLead(self.http_client)
119
149
  self.nv_search_companies = NvSearchCompanies(self.http_client)
120
150
  self.nv_search_people = NvSearchPeople(self.http_client)
121
151
  self.nv_fetch_company = NvFetchCompany(self.http_client)
@@ -162,6 +192,21 @@ class LinkedApi:
162
192
  self.nv_sync_inbox,
163
193
  self.nv_manage_conversation,
164
194
  self.nv_retrieve_alerts,
195
+ self.nv_retrieve_lists,
196
+ self.nv_delete_list,
197
+ self.nv_create_list,
198
+ self.nv_delete_saved_search,
199
+ self.nv_create_saved_search,
200
+ self.nv_retrieve_saved_searches,
201
+ self.nv_rename_list,
202
+ self.nv_remove_account_from_list,
203
+ self.nv_remove_lead_from_list,
204
+ self.nv_retrieve_list_accounts,
205
+ self.nv_retrieve_list_leads,
206
+ self.nv_unsave_account,
207
+ self.nv_save_account,
208
+ self.nv_unsave_lead,
209
+ self.nv_save_lead,
165
210
  self.nv_search_companies,
166
211
  self.nv_search_people,
167
212
  self.nv_fetch_company,
@@ -26,6 +26,12 @@ LinkedApiActionErrorType = Literal[
26
26
  "searchTemporarilyUnavailable",
27
27
  "filterNotApplied",
28
28
  "companyNotFound",
29
+ "listNotFound",
30
+ "listAlreadyExists",
31
+ "listNotDeletable",
32
+ "listNotRenamable",
33
+ "savedSearchNotFound",
34
+ "interfaceLanguageNotSupported",
29
35
  "postNotFound",
30
36
  "jobNotFound",
31
37
  "commentingNotAllowed",
@@ -75,6 +81,12 @@ LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
75
81
  "searchTemporarilyUnavailable",
76
82
  "filterNotApplied",
77
83
  "companyNotFound",
84
+ "listNotFound",
85
+ "listAlreadyExists",
86
+ "listNotDeletable",
87
+ "listNotRenamable",
88
+ "savedSearchNotFound",
89
+ "interfaceLanguageNotSupported",
78
90
  "postNotFound",
79
91
  "jobNotFound",
80
92
  "commentingNotAllowed",
@@ -12,15 +12,30 @@ from linkedapi.operations.fetch_person import FetchPerson, FetchPersonMapper
12
12
  from linkedapi.operations.fetch_post import FetchPost, FetchPostMapper
13
13
  from linkedapi.operations.ignore_invitation import IgnoreInvitation
14
14
  from linkedapi.operations.manage_conversation import ManageConversation
15
+ from linkedapi.operations.nv_create_list import NvCreateList
16
+ from linkedapi.operations.nv_create_saved_search import NvCreateSavedSearch
17
+ from linkedapi.operations.nv_delete_list import NvDeleteList
18
+ from linkedapi.operations.nv_delete_saved_search import NvDeleteSavedSearch
15
19
  from linkedapi.operations.nv_fetch_company import NvFetchCompany, NvFetchCompanyMapper
16
20
  from linkedapi.operations.nv_fetch_person import NvFetchPerson, NvFetchPersonMapper
17
21
  from linkedapi.operations.nv_manage_conversation import NvManageConversation
22
+ from linkedapi.operations.nv_remove_account_from_list import NvRemoveAccountFromList
23
+ from linkedapi.operations.nv_remove_lead_from_list import NvRemoveLeadFromList
24
+ from linkedapi.operations.nv_rename_list import NvRenameList
18
25
  from linkedapi.operations.nv_retrieve_alerts import NvRetrieveAlerts
26
+ from linkedapi.operations.nv_retrieve_list_accounts import NvRetrieveListAccounts
27
+ from linkedapi.operations.nv_retrieve_list_leads import NvRetrieveListLeads
28
+ from linkedapi.operations.nv_retrieve_lists import NvRetrieveLists
29
+ from linkedapi.operations.nv_retrieve_saved_searches import NvRetrieveSavedSearches
30
+ from linkedapi.operations.nv_save_account import NvSaveAccount
31
+ from linkedapi.operations.nv_save_lead import NvSaveLead
19
32
  from linkedapi.operations.nv_search_companies import NvSearchCompanies
20
33
  from linkedapi.operations.nv_search_people import NvSearchPeople
21
34
  from linkedapi.operations.nv_send_message import NvSendMessage
22
35
  from linkedapi.operations.nv_sync_conversation import NvSyncConversation
23
36
  from linkedapi.operations.nv_sync_inbox import NvSyncInbox
37
+ from linkedapi.operations.nv_unsave_account import NvUnsaveAccount
38
+ from linkedapi.operations.nv_unsave_lead import NvUnsaveLead
24
39
  from linkedapi.operations.react_to_comment import ReactToComment
25
40
  from linkedapi.operations.react_to_post import ReactToPost
26
41
  from linkedapi.operations.remove_connection import RemoveConnection
@@ -62,17 +77,32 @@ __all__ = [
62
77
  "FetchPostMapper",
63
78
  "IgnoreInvitation",
64
79
  "ManageConversation",
80
+ "NvCreateList",
81
+ "NvCreateSavedSearch",
82
+ "NvDeleteList",
83
+ "NvDeleteSavedSearch",
65
84
  "NvFetchCompany",
66
85
  "NvFetchCompanyMapper",
67
86
  "NvFetchPerson",
68
87
  "NvFetchPersonMapper",
69
88
  "NvManageConversation",
89
+ "NvRemoveAccountFromList",
90
+ "NvRemoveLeadFromList",
91
+ "NvRenameList",
70
92
  "NvRetrieveAlerts",
93
+ "NvRetrieveListAccounts",
94
+ "NvRetrieveListLeads",
95
+ "NvRetrieveLists",
96
+ "NvRetrieveSavedSearches",
97
+ "NvSaveAccount",
98
+ "NvSaveLead",
71
99
  "NvSearchCompanies",
72
100
  "NvSearchPeople",
73
101
  "NvSendMessage",
74
102
  "NvSyncConversation",
75
103
  "NvSyncInbox",
104
+ "NvUnsaveAccount",
105
+ "NvUnsaveLead",
76
106
  "ReactToComment",
77
107
  "ReactToPost",
78
108
  "RemoveConnection",
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import SimpleWorkflowMapper
5
+ from linkedapi.types import NvCreatedList, NvCreateListParams
6
+
7
+
8
+ class NvCreateList(Operation[NvCreateListParams, NvCreatedList]):
9
+ """Create an owned list, returning its string ID, stored name, type and URL.
10
+
11
+ Name is trimmed (1-75 characters). Description has surrounding spaces trimmed, at most
12
+ 350 characters after trimming, and is omitted when blank. Same-type names
13
+ equal after trimming, case-sensitive, including system lists, return listAlreadyExists.
14
+ """
15
+
16
+ operation_name = "nvCreateList"
17
+ mapper = SimpleWorkflowMapper[NvCreateListParams, NvCreatedList](
18
+ "nv.createList", result_model=NvCreatedList
19
+ )
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import SimpleWorkflowMapper
5
+ from linkedapi.types import NvCreatedSavedSearch, NvCreateSavedSearchParams
6
+
7
+
8
+ class NvCreateSavedSearch(Operation[NvCreateSavedSearchParams, NvCreatedSavedSearch]):
9
+ """Save a Sales Navigator search URL matching the requested type. Returns its id, name,
10
+ type and URL. English interface only.
11
+ """
12
+
13
+ operation_name = "nvCreateSavedSearch"
14
+ mapper = SimpleWorkflowMapper[NvCreateSavedSearchParams, NvCreatedSavedSearch](
15
+ "nv.createSavedSearch", result_model=NvCreatedSavedSearch
16
+ )
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvDeleteListParams
6
+
7
+
8
+ class NvDeleteList(Operation[NvDeleteListParams, None]):
9
+ """Delete one owned list by string ID, keeping members saved and in their other lists.
10
+
11
+ Unknown, shared or already-deleted lists return listNotFound. System lists without a
12
+ Delete action return listNotDeletable. Success has no result data.
13
+ """
14
+
15
+ operation_name = "nvDeleteList"
16
+ mapper = VoidWorkflowMapper[NvDeleteListParams]("nv.deleteList")
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvDeleteSavedSearchParams
6
+
7
+
8
+ class NvDeleteSavedSearch(Operation[NvDeleteSavedSearchParams, None]):
9
+ """Delete an owned saved search by its string ID. An absent search returns
10
+ savedSearchNotFound. English interface only.
11
+ """
12
+
13
+ operation_name = "nvDeleteSavedSearch"
14
+ mapper = VoidWorkflowMapper[NvDeleteSavedSearchParams]("nv.deleteSavedSearch")
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvRemoveAccountFromListParams
6
+
7
+
8
+ class NvRemoveAccountFromList(Operation[NvRemoveAccountFromListParams, None]):
9
+ """Remove an account from exactly one owned custom list, keeping it saved even after its
10
+ last list. Repeating an absent membership succeeds. English interface only.
11
+ """
12
+
13
+ operation_name = "nvRemoveAccountFromList"
14
+ mapper = VoidWorkflowMapper[NvRemoveAccountFromListParams]("nv.removeAccountFromList")
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvRemoveLeadFromListParams
6
+
7
+
8
+ class NvRemoveLeadFromList(Operation[NvRemoveLeadFromListParams, None]):
9
+ """Remove a lead from exactly one owned custom list, keeping it saved and in its other
10
+ lists. Repeating an absent membership succeeds. English interface only.
11
+ """
12
+
13
+ operation_name = "nvRemoveLeadFromList"
14
+ mapper = VoidWorkflowMapper[NvRemoveLeadFromListParams]("nv.removeLeadFromList")
@@ -0,0 +1,17 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import SimpleWorkflowMapper
5
+ from linkedapi.types import NvCreatedList, NvRenameListParams
6
+
7
+
8
+ class NvRenameList(Operation[NvRenameListParams, NvCreatedList]):
9
+ """Rename an owned custom list. Trimmed name: 1-75 characters, no line breaks. Same name
10
+ succeeds; duplicates return listAlreadyExists and system lists return listNotRenamable.
11
+ English interface only.
12
+ """
13
+
14
+ operation_name = "nvRenameList"
15
+ mapper = SimpleWorkflowMapper[NvRenameListParams, NvCreatedList](
16
+ "nv.renameList", result_model=NvCreatedList
17
+ )
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import NvListAccount, NvRetrieveListAccountsParams
6
+
7
+
8
+ class NvRetrieveListAccounts(Operation[NvRetrieveListAccountsParams, list[NvListAccount]]):
9
+ """Retrieve list accounts from an owned Sales Navigator list."""
10
+
11
+ operation_name = "nvRetrieveListAccounts"
12
+ mapper = ArrayWorkflowMapper[NvRetrieveListAccountsParams, NvListAccount](
13
+ "nv.retrieveListAccounts", NvListAccount
14
+ )
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import NvListLead, NvRetrieveListLeadsParams
6
+
7
+
8
+ class NvRetrieveListLeads(Operation[NvRetrieveListLeadsParams, list[NvListLead]]):
9
+ """Retrieve list leads from an owned Sales Navigator list."""
10
+
11
+ operation_name = "nvRetrieveListLeads"
12
+ mapper = ArrayWorkflowMapper[NvRetrieveListLeadsParams, NvListLead](
13
+ "nv.retrieveListLeads", NvListLead
14
+ )
@@ -0,0 +1,12 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import NvList, NvRetrieveListsParams
6
+
7
+
8
+ class NvRetrieveLists(Operation[NvRetrieveListsParams, list[NvList]]):
9
+ """Retrieve owned lists, preserving string IDs, upstream sources, and nullable counts."""
10
+
11
+ operation_name = "nvRetrieveLists"
12
+ mapper = ArrayWorkflowMapper[NvRetrieveListsParams, NvList]("nv.retrieveLists", NvList)
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import NvRetrieveSavedSearchesParams, NvSavedSearch
6
+
7
+
8
+ class NvRetrieveSavedSearches(Operation[NvRetrieveSavedSearchesParams, list[NvSavedSearch]]):
9
+ """Retrieve owned saved searches of the requested type."""
10
+
11
+ operation_name = "nvRetrieveSavedSearches"
12
+ mapper = ArrayWorkflowMapper[NvRetrieveSavedSearchesParams, NvSavedSearch](
13
+ "nv.retrieveSavedSearches", NvSavedSearch
14
+ )
@@ -0,0 +1,17 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvSaveAccountParams
6
+
7
+
8
+ class NvSaveAccount(Operation[NvSaveAccountParams, None]):
9
+ """Ensure an account is saved and optionally in one list, leaving other lists untouched.
10
+ Without listId, leave lists unchanged. Repeating succeeds without changes. Current
11
+ limitation: If you have more than 10 account lists, Sales Navigator shows ten lists at a
12
+ time. If the requested list is not shown, the call fails with unexpectedError. The
13
+ account may already be saved, but not added to that list.
14
+ """
15
+
16
+ operation_name = "nvSaveAccount"
17
+ mapper = VoidWorkflowMapper[NvSaveAccountParams]("nv.saveAccount")
@@ -0,0 +1,18 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvSaveLeadParams
6
+
7
+
8
+ class NvSaveLead(Operation[NvSaveLeadParams, None]):
9
+ """Ensure a lead is saved; with listId, also ensure membership in that one list, leaving other
10
+ lists untouched. Without listId, leave lists unchanged. Repeating succeeds without
11
+ changes. Saving a lead may also save its current company in Sales Navigator. Current
12
+ limitation: If you have more than 10 lead lists, Sales Navigator shows ten lists at a
13
+ time. If the requested list is not shown, the call fails with unexpectedError. The lead
14
+ may already be saved, but not added to that list.
15
+ """
16
+
17
+ operation_name = "nvSaveLead"
18
+ mapper = VoidWorkflowMapper[NvSaveLeadParams]("nv.saveLead")
@@ -0,0 +1,12 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvUnsaveAccountParams
6
+
7
+
8
+ class NvUnsaveAccount(Operation[NvUnsaveAccountParams, None]):
9
+ """Unsave the account only; its saved leads stay saved. Repeating succeeds without changes."""
10
+
11
+ operation_name = "nvUnsaveAccount"
12
+ mapper = VoidWorkflowMapper[NvUnsaveAccountParams]("nv.unsaveAccount")
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import NvUnsaveLeadParams
6
+
7
+
8
+ class NvUnsaveLead(Operation[NvUnsaveLeadParams, None]):
9
+ """Use Sales Navigator's native unsave: the lead is no longer saved and leaves every custom list
10
+ the user owns. Repeating succeeds without changes."""
11
+
12
+ operation_name = "nvUnsaveLead"
13
+ mapper = VoidWorkflowMapper[NvUnsaveLeadParams]("nv.unsaveLead")
@@ -143,6 +143,35 @@ from linkedapi.types.nv_alerts import (
143
143
  NvRetrieveAlertsFilter,
144
144
  NvRetrieveAlertsParams,
145
145
  )
146
+ from linkedapi.types.nv_list_management import (
147
+ NvCreatedList,
148
+ NvCreateListParams,
149
+ NvDeleteListParams,
150
+ NvRenameListParams,
151
+ )
152
+ from linkedapi.types.nv_list_members import (
153
+ NvListAccount,
154
+ NvListLead,
155
+ NvRemoveAccountFromListParams,
156
+ NvRemoveLeadFromListParams,
157
+ NvRetrieveListAccountsParams,
158
+ NvRetrieveListLeadsParams,
159
+ )
160
+ from linkedapi.types.nv_saved_searches import (
161
+ NvCreatedSavedSearch,
162
+ NvCreateSavedSearchParams,
163
+ NvDeleteSavedSearchParams,
164
+ NvRetrieveSavedSearchesParams,
165
+ NvSavedSearch,
166
+ )
167
+ from linkedapi.types.nv_saved_subjects import (
168
+ NvList,
169
+ NvRetrieveListsParams,
170
+ NvSaveAccountParams,
171
+ NvSaveLeadParams,
172
+ NvUnsaveAccountParams,
173
+ NvUnsaveLeadParams,
174
+ )
146
175
  from linkedapi.types.params import BaseActionParams, LimitParams, LimitSinceParams
147
176
  from linkedapi.types.person import (
148
177
  BaseFetchPersonParams,
@@ -426,13 +455,32 @@ __all__ = [
426
455
  "NvCompanyEmployeeFilter",
427
456
  "NvCompanyEmployeeRetrievalConfig",
428
457
  "NvConnectionDegreeFilter",
458
+ "NvCreateListParams",
459
+ "NvCreateSavedSearchParams",
460
+ "NvCreatedList",
461
+ "NvCreatedSavedSearch",
462
+ "NvDeleteListParams",
463
+ "NvDeleteSavedSearchParams",
429
464
  "NvFetchCompanyParams",
430
465
  "NvFetchCompanyResult",
466
+ "NvList",
467
+ "NvListAccount",
468
+ "NvListLead",
431
469
  "NvManageConversationParams",
432
470
  "NvOpenPersonPageParams",
433
471
  "NvOpenPersonPageResult",
472
+ "NvRemoveAccountFromListParams",
473
+ "NvRemoveLeadFromListParams",
474
+ "NvRenameListParams",
434
475
  "NvRetrieveAlertsFilter",
435
476
  "NvRetrieveAlertsParams",
477
+ "NvRetrieveListAccountsParams",
478
+ "NvRetrieveListLeadsParams",
479
+ "NvRetrieveListsParams",
480
+ "NvRetrieveSavedSearchesParams",
481
+ "NvSaveAccountParams",
482
+ "NvSaveLeadParams",
483
+ "NvSavedSearch",
436
484
  "NvSearchCompaniesFilter",
437
485
  "NvSearchCompaniesParams",
438
486
  "NvSearchCompanyResult",
@@ -443,6 +491,8 @@ __all__ = [
443
491
  "NvSyncConversationParams",
444
492
  "NvSyncConversationResult",
445
493
  "NvSyncInboxParams",
494
+ "NvUnsaveAccountParams",
495
+ "NvUnsaveLeadParams",
446
496
  "PendingConnectionSession",
447
497
  "Person",
448
498
  "PersonEducation",
@@ -9,6 +9,8 @@ from linkedapi.types.params import BaseActionParams
9
9
 
10
10
 
11
11
  class NvRetrieveAlertsFilter(LinkedApiModel):
12
+ list_id: str | None = Field(default=None, pattern=r"^[1-9]\d*$")
13
+ subjects: list[str] | None = None
12
14
  category: Literal["lead", "account"] | None = None
13
15
  types: list[str] | None = None
14
16
  since: str | None = None
@@ -0,0 +1,35 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Annotated, Literal
4
+
5
+ from pydantic import Field, StringConstraints
6
+
7
+ from linkedapi.types.base import LinkedApiModel
8
+ from linkedapi.types.params import BaseActionParams
9
+
10
+
11
+ class NvCreateListParams(BaseActionParams):
12
+ type: Literal["lead", "account"]
13
+ name: Annotated[str, StringConstraints(strip_whitespace=True, min_length=1, max_length=75)]
14
+ description: str | None = Field(default=None, max_length=350)
15
+
16
+
17
+ class NvDeleteListParams(BaseActionParams):
18
+ list_id: str = Field(min_length=1)
19
+
20
+
21
+ class NvCreatedList(LinkedApiModel):
22
+ id: str
23
+ name: str
24
+ type: Literal["lead", "account"] | str
25
+ url: str
26
+
27
+
28
+ class NvRenameListParams(BaseActionParams):
29
+ list_id: str = Field(min_length=1)
30
+ name: Annotated[
31
+ str,
32
+ StringConstraints(
33
+ strip_whitespace=True, min_length=1, max_length=75, pattern=r"^[^\r\n]+$"
34
+ ),
35
+ ]
@@ -0,0 +1,44 @@
1
+ from __future__ import annotations
2
+
3
+ from pydantic import Field
4
+
5
+ from linkedapi.types.base import LinkedApiModel
6
+ from linkedapi.types.params import BaseActionParams
7
+
8
+
9
+ class NvRetrieveListLeadsParams(BaseActionParams):
10
+ list_id: str = Field(min_length=1)
11
+ limit: int | None = Field(default=None, ge=1, le=1000)
12
+
13
+
14
+ class NvRetrieveListAccountsParams(BaseActionParams):
15
+ list_id: str = Field(min_length=1)
16
+ limit: int | None = Field(default=None, ge=1, le=1000)
17
+
18
+
19
+ class NvRemoveLeadFromListParams(BaseActionParams):
20
+ person_hashed_url: str = Field(min_length=1)
21
+ list_id: str = Field(min_length=1)
22
+
23
+
24
+ class NvRemoveAccountFromListParams(BaseActionParams):
25
+ company_hashed_url: str = Field(min_length=1)
26
+ list_id: str = Field(min_length=1)
27
+
28
+
29
+ class NvListLead(LinkedApiModel):
30
+ name: str
31
+ urn: str
32
+ hashed_url: str
33
+ position: str | None
34
+ company_name: str | None
35
+ location: str | None
36
+ added_to_list_at: str | None
37
+
38
+
39
+ class NvListAccount(LinkedApiModel):
40
+ name: str
41
+ urn: str
42
+ hashed_url: str
43
+ industry: str | None
44
+ employees_count: int | None