linkedapi 1.4.10__tar.gz → 1.5.0__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 (164) hide show
  1. {linkedapi-1.4.10 → linkedapi-1.5.0}/PKG-INFO +1 -1
  2. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/__init__.py +53 -1
  3. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/client.py +78 -1
  4. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/errors.py +30 -0
  5. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/__init__.py +51 -0
  6. linkedapi-1.5.0/linkedapi/operations/nv_create_list.py +19 -0
  7. linkedapi-1.5.0/linkedapi/operations/nv_create_saved_search.py +17 -0
  8. linkedapi-1.5.0/linkedapi/operations/nv_delete_list.py +16 -0
  9. linkedapi-1.5.0/linkedapi/operations/nv_delete_saved_search.py +14 -0
  10. linkedapi-1.5.0/linkedapi/operations/nv_remove_account_from_list.py +14 -0
  11. linkedapi-1.5.0/linkedapi/operations/nv_remove_lead_from_list.py +14 -0
  12. linkedapi-1.5.0/linkedapi/operations/nv_rename_list.py +16 -0
  13. linkedapi-1.5.0/linkedapi/operations/nv_retrieve_list_accounts.py +14 -0
  14. linkedapi-1.5.0/linkedapi/operations/nv_retrieve_list_leads.py +14 -0
  15. linkedapi-1.5.0/linkedapi/operations/nv_retrieve_lists.py +12 -0
  16. linkedapi-1.5.0/linkedapi/operations/nv_retrieve_saved_searches.py +14 -0
  17. linkedapi-1.5.0/linkedapi/operations/nv_save_account.py +17 -0
  18. linkedapi-1.5.0/linkedapi/operations/nv_save_lead.py +18 -0
  19. linkedapi-1.5.0/linkedapi/operations/nv_unsave_account.py +12 -0
  20. linkedapi-1.5.0/linkedapi/operations/nv_unsave_lead.py +13 -0
  21. linkedapi-1.5.0/linkedapi/operations/rc_archive_project.py +22 -0
  22. linkedapi-1.5.0/linkedapi/operations/rc_create_project.py +23 -0
  23. linkedapi-1.5.0/linkedapi/operations/rc_fetch_person.py +33 -0
  24. linkedapi-1.5.0/linkedapi/operations/rc_rename_project.py +20 -0
  25. linkedapi-1.5.0/linkedapi/operations/rc_retrieve_project_candidates.py +24 -0
  26. linkedapi-1.5.0/linkedapi/operations/rc_retrieve_projects.py +22 -0
  27. linkedapi-1.5.0/linkedapi/operations/rc_save_to_project.py +23 -0
  28. linkedapi-1.5.0/linkedapi/operations/rc_search_people.py +24 -0
  29. linkedapi-1.5.0/linkedapi/operations/rc_send_message.py +26 -0
  30. linkedapi-1.5.0/linkedapi/operations/rc_sync_inbox.py +20 -0
  31. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/__init__.py +126 -0
  32. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/admin/limits.py +3 -0
  33. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/message.py +21 -3
  34. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/nv_alerts.py +2 -0
  35. linkedapi-1.5.0/linkedapi/types/nv_list_management.py +35 -0
  36. linkedapi-1.5.0/linkedapi/types/nv_list_members.py +44 -0
  37. linkedapi-1.5.0/linkedapi/types/nv_saved_searches.py +51 -0
  38. linkedapi-1.5.0/linkedapi/types/nv_saved_subjects.py +39 -0
  39. linkedapi-1.5.0/linkedapi/types/rc_people.py +172 -0
  40. linkedapi-1.5.0/linkedapi/types/rc_projects.py +76 -0
  41. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/webhooks.py +3 -2
  42. {linkedapi-1.4.10 → linkedapi-1.5.0}/pyproject.toml +1 -1
  43. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_direct_methods.py +53 -0
  44. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_errors.py +51 -0
  45. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_limits_categories.py +10 -4
  46. linkedapi-1.5.0/tests/test_nv_backlog.py +236 -0
  47. linkedapi-1.5.0/tests/test_nv_list_management.py +148 -0
  48. linkedapi-1.5.0/tests/test_nv_saved_subjects.py +186 -0
  49. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_operations.py +26 -1
  50. linkedapi-1.5.0/tests/test_rc_operations.py +259 -0
  51. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_webhooks.py +27 -0
  52. {linkedapi-1.4.10 → linkedapi-1.5.0}/.github/workflows/publish.yaml +0 -0
  53. {linkedapi-1.4.10 → linkedapi-1.5.0}/.gitignore +0 -0
  54. {linkedapi-1.4.10 → linkedapi-1.5.0}/LICENSE +0 -0
  55. {linkedapi-1.4.10 → linkedapi-1.5.0}/README.md +0 -0
  56. {linkedapi-1.4.10 → linkedapi-1.5.0}/examples/verify_webhook_signature.py +0 -0
  57. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/__init__.py +0 -0
  58. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/accounts.py +0 -0
  59. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/admin.py +0 -0
  60. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/http_client.py +0 -0
  61. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/limits.py +0 -0
  62. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/subscription.py +0 -0
  63. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/admin/webhooks.py +0 -0
  64. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/changelog.py +0 -0
  65. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/config.py +0 -0
  66. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/core/__init__.py +0 -0
  67. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/core/operation.py +0 -0
  68. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/core/polling.py +0 -0
  69. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/http/__init__.py +0 -0
  70. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/http/base.py +0 -0
  71. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/http/linked_api_http_client.py +0 -0
  72. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/__init__.py +0 -0
  73. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/array.py +0 -0
  74. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/base.py +0 -0
  75. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/endorse_person_skills.py +0 -0
  76. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/send_message.py +0 -0
  77. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/simple.py +0 -0
  78. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/then.py +0 -0
  79. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/mappers/void.py +0 -0
  80. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/accept_invitation.py +0 -0
  81. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/check_connection_status.py +0 -0
  82. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/comment_on_post.py +0 -0
  83. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/create_post.py +0 -0
  84. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/create_repost.py +0 -0
  85. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/custom_workflow.py +0 -0
  86. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/endorse_person_skill.py +0 -0
  87. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/endorse_person_skills.py +0 -0
  88. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/fetch_company.py +0 -0
  89. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/fetch_job.py +0 -0
  90. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/fetch_person.py +0 -0
  91. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/fetch_post.py +0 -0
  92. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/ignore_invitation.py +0 -0
  93. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/manage_conversation.py +0 -0
  94. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_fetch_company.py +0 -0
  95. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_fetch_person.py +0 -0
  96. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_manage_conversation.py +0 -0
  97. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_retrieve_alerts.py +0 -0
  98. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_search_companies.py +0 -0
  99. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_search_people.py +0 -0
  100. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_send_message.py +0 -0
  101. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_sync_conversation.py +0 -0
  102. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/nv_sync_inbox.py +0 -0
  103. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/react_to_comment.py +0 -0
  104. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/react_to_post.py +0 -0
  105. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/remove_connection.py +0 -0
  106. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/reply_to_comment.py +0 -0
  107. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_connections.py +0 -0
  108. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_feed.py +0 -0
  109. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_invitations.py +0 -0
  110. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_pending_requests.py +0 -0
  111. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_performance.py +0 -0
  112. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_profile_viewers.py +0 -0
  113. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/retrieve_ssi.py +0 -0
  114. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/search_companies.py +0 -0
  115. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/search_jobs.py +0 -0
  116. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/search_people.py +0 -0
  117. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/search_posts.py +0 -0
  118. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/send_connection_request.py +0 -0
  119. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/send_message.py +0 -0
  120. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/sync_conversation.py +0 -0
  121. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/sync_inbox.py +0 -0
  122. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/sync_network.py +0 -0
  123. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/operations/withdraw_connection_request.py +0 -0
  124. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/py.typed +0 -0
  125. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/account.py +0 -0
  126. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/admin/__init__.py +0 -0
  127. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/admin/accounts.py +0 -0
  128. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/admin/config.py +0 -0
  129. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/admin/subscription.py +0 -0
  130. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/base.py +0 -0
  131. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/changelog.py +0 -0
  132. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/company.py +0 -0
  133. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/connection.py +0 -0
  134. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/feed.py +0 -0
  135. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/jobs.py +0 -0
  136. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/network.py +0 -0
  137. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/params.py +0 -0
  138. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/person.py +0 -0
  139. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/post.py +0 -0
  140. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/profile_viewers.py +0 -0
  141. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/responses.py +0 -0
  142. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/search_companies.py +0 -0
  143. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/search_people.py +0 -0
  144. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/search_posts.py +0 -0
  145. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/statistics.py +0 -0
  146. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/viewer_state.py +0 -0
  147. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/types/workflow.py +0 -0
  148. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/webhooks/__init__.py +0 -0
  149. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/webhooks/headers.py +0 -0
  150. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/webhooks/parse.py +0 -0
  151. {linkedapi-1.4.10 → linkedapi-1.5.0}/linkedapi/webhooks/signature.py +0 -0
  152. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/conftest.py +0 -0
  153. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_admin.py +0 -0
  154. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_admin_webhooks.py +0 -0
  155. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_changelog.py +0 -0
  156. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_endorse_operations.py +0 -0
  157. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_http_client.py +0 -0
  158. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_mappers.py +0 -0
  159. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_models.py +0 -0
  160. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_nv_retrieve_alerts.py +0 -0
  161. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_open_vocabularies.py +0 -0
  162. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_polling.py +0 -0
  163. {linkedapi-1.4.10 → linkedapi-1.5.0}/tests/test_webhook_signature.py +0 -0
  164. {linkedapi-1.4.10 → linkedapi-1.5.0}/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.5.0
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,43 @@ 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,
77
+ RcArchiveProject,
78
+ RcCreateProject,
79
+ RcFetchPerson,
80
+ RcFetchPersonMapper,
81
+ RcRenameProject,
82
+ RcRetrieveProjectCandidates,
83
+ RcRetrieveProjects,
84
+ RcSaveToProject,
85
+ RcSearchPeople,
86
+ RcSendMessage,
87
+ RcSyncInbox,
62
88
  ReactToComment,
63
89
  ReactToPost,
64
90
  RemoveConnection,
@@ -90,7 +116,7 @@ from linkedapi.webhooks import (
90
116
  verify_webhook_signature,
91
117
  )
92
118
 
93
- __version__ = "1.4.10"
119
+ __version__ = "1.5.0"
94
120
  PredefinedOperation = Operation
95
121
 
96
122
  __all__ = [
@@ -139,6 +165,21 @@ __all__ = [
139
165
  "NvFetchPersonMapper",
140
166
  "NvManageConversation",
141
167
  "NvRetrieveAlerts",
168
+ "NvRetrieveLists",
169
+ "NvDeleteList",
170
+ "NvCreateList",
171
+ "NvDeleteSavedSearch",
172
+ "NvCreateSavedSearch",
173
+ "NvRetrieveSavedSearches",
174
+ "NvRenameList",
175
+ "NvRemoveAccountFromList",
176
+ "NvRemoveLeadFromList",
177
+ "NvRetrieveListAccounts",
178
+ "NvRetrieveListLeads",
179
+ "NvUnsaveAccount",
180
+ "NvSaveAccount",
181
+ "NvUnsaveLead",
182
+ "NvSaveLead",
142
183
  "NvSearchCompanies",
143
184
  "NvSearchPeople",
144
185
  "NvSendMessage",
@@ -146,6 +187,17 @@ __all__ = [
146
187
  "NvSyncInbox",
147
188
  "Operation",
148
189
  "PredefinedOperation",
190
+ "RcArchiveProject",
191
+ "RcCreateProject",
192
+ "RcFetchPerson",
193
+ "RcFetchPersonMapper",
194
+ "RcRenameProject",
195
+ "RcRetrieveProjectCandidates",
196
+ "RcRetrieveProjects",
197
+ "RcSaveToProject",
198
+ "RcSearchPeople",
199
+ "RcSendMessage",
200
+ "RcSyncInbox",
149
201
  "ReactToComment",
150
202
  "ReactToPost",
151
203
  "RemoveConnection",
@@ -22,15 +22,40 @@ 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,
49
+ RcArchiveProject,
50
+ RcCreateProject,
51
+ RcFetchPerson,
52
+ RcRenameProject,
53
+ RcRetrieveProjectCandidates,
54
+ RcRetrieveProjects,
55
+ RcSaveToProject,
56
+ RcSearchPeople,
57
+ RcSendMessage,
58
+ RcSyncInbox,
34
59
  ReactToComment,
35
60
  ReactToPost,
36
61
  RemoveConnection,
@@ -116,11 +141,37 @@ class LinkedApi:
116
141
  self.nv_sync_inbox = NvSyncInbox(self.http_client)
117
142
  self.nv_manage_conversation = NvManageConversation(self.http_client)
118
143
  self.nv_retrieve_alerts = NvRetrieveAlerts(self.http_client)
144
+ self.nv_retrieve_lists = NvRetrieveLists(self.http_client)
145
+ self.nv_delete_list = NvDeleteList(self.http_client)
146
+ self.nv_create_list = NvCreateList(self.http_client)
147
+ self.nv_delete_saved_search = NvDeleteSavedSearch(self.http_client)
148
+ self.nv_create_saved_search = NvCreateSavedSearch(self.http_client)
149
+ self.nv_retrieve_saved_searches = NvRetrieveSavedSearches(self.http_client)
150
+ self.nv_rename_list = NvRenameList(self.http_client)
151
+ self.nv_remove_account_from_list = NvRemoveAccountFromList(self.http_client)
152
+ self.nv_remove_lead_from_list = NvRemoveLeadFromList(self.http_client)
153
+ self.nv_retrieve_list_accounts = NvRetrieveListAccounts(self.http_client)
154
+ self.nv_retrieve_list_leads = NvRetrieveListLeads(self.http_client)
155
+ self.nv_unsave_account = NvUnsaveAccount(self.http_client)
156
+ self.nv_save_account = NvSaveAccount(self.http_client)
157
+ self.nv_unsave_lead = NvUnsaveLead(self.http_client)
158
+ self.nv_save_lead = NvSaveLead(self.http_client)
119
159
  self.nv_search_companies = NvSearchCompanies(self.http_client)
120
160
  self.nv_search_people = NvSearchPeople(self.http_client)
121
161
  self.nv_fetch_company = NvFetchCompany(self.http_client)
122
162
  self.nv_fetch_person = NvFetchPerson(self.http_client)
123
163
 
164
+ self.rc_archive_project = RcArchiveProject(self.http_client)
165
+ self.rc_create_project = RcCreateProject(self.http_client)
166
+ self.rc_fetch_person = RcFetchPerson(self.http_client)
167
+ self.rc_rename_project = RcRenameProject(self.http_client)
168
+ self.rc_retrieve_project_candidates = RcRetrieveProjectCandidates(self.http_client)
169
+ self.rc_retrieve_projects = RcRetrieveProjects(self.http_client)
170
+ self.rc_save_to_project = RcSaveToProject(self.http_client)
171
+ self.rc_search_people = RcSearchPeople(self.http_client)
172
+ self.rc_send_message = RcSendMessage(self.http_client)
173
+ self.rc_sync_inbox = RcSyncInbox(self.http_client)
174
+
124
175
  self.operations = [
125
176
  self.custom_workflow,
126
177
  self.send_message,
@@ -162,10 +213,35 @@ class LinkedApi:
162
213
  self.nv_sync_inbox,
163
214
  self.nv_manage_conversation,
164
215
  self.nv_retrieve_alerts,
216
+ self.nv_retrieve_lists,
217
+ self.nv_delete_list,
218
+ self.nv_create_list,
219
+ self.nv_delete_saved_search,
220
+ self.nv_create_saved_search,
221
+ self.nv_retrieve_saved_searches,
222
+ self.nv_rename_list,
223
+ self.nv_remove_account_from_list,
224
+ self.nv_remove_lead_from_list,
225
+ self.nv_retrieve_list_accounts,
226
+ self.nv_retrieve_list_leads,
227
+ self.nv_unsave_account,
228
+ self.nv_save_account,
229
+ self.nv_unsave_lead,
230
+ self.nv_save_lead,
165
231
  self.nv_search_companies,
166
232
  self.nv_search_people,
167
233
  self.nv_fetch_company,
168
234
  self.nv_fetch_person,
235
+ self.rc_archive_project,
236
+ self.rc_create_project,
237
+ self.rc_fetch_person,
238
+ self.rc_rename_project,
239
+ self.rc_retrieve_project_candidates,
240
+ self.rc_retrieve_projects,
241
+ self.rc_save_to_project,
242
+ self.rc_search_people,
243
+ self.rc_send_message,
244
+ self.rc_sync_inbox,
169
245
  ]
170
246
 
171
247
  def poll_conversations(
@@ -219,13 +295,14 @@ class LinkedApi:
219
295
  self,
220
296
  request: InboxPollRequest | None = None,
221
297
  ) -> MappedResponse[list[InboxMessage]] | MappedResponse[InboxPersonPollResult]:
222
- """Read the monitored standard or Sales Navigator inbox, newest messages first.
298
+ """Read the monitored standard, Sales Navigator or Recruiter Lite inbox, newest first.
223
299
 
224
300
  Without ``person_url`` the data is the list of inbox messages across every conversation.
225
301
  With ``person_url`` (use ``InboxPersonPollRequest``) the data is the whole known
226
302
  conversation with that person: the messages the inbox captured together with the history
227
303
  loaded by ``sync_conversation`` / ``nv_sync_conversation``, each message once, plus
228
304
  ``threads`` with ``history_from`` and ``history_complete``.
305
+ person_url also accepts a Recruiter profile URL (https://www.linkedin.com/talent/profile/...).
229
306
  """
230
307
 
231
308
  payload = serialize_value(request) if request is not None else {}
@@ -26,6 +26,15 @@ LinkedApiActionErrorType = Literal[
26
26
  "searchTemporarilyUnavailable",
27
27
  "filterNotApplied",
28
28
  "companyNotFound",
29
+ "listNotFound",
30
+ "listAlreadyExists",
31
+ "listNotDeletable",
32
+ "listNotRenamable",
33
+ "savedSearchNotFound",
34
+ "savedSearchAlreadyExists",
35
+ "savedSearchLimitReached",
36
+ "savedSearchRenameUnconfirmed",
37
+ "savedSearchQueryMismatch",
29
38
  "postNotFound",
30
39
  "jobNotFound",
31
40
  "commentingNotAllowed",
@@ -44,6 +53,12 @@ LinkedApiActionErrorType = Literal[
44
53
  "mentionNotResolved",
45
54
  "repostNotAllowed",
46
55
  "alreadyReposted",
56
+ "recruiterSignInRequired",
57
+ "recruiterTwoStepVerificationRequired",
58
+ "recruiterMultipleSessionsDetected",
59
+ "inMailCreditRequired",
60
+ "inMailNotAvailable",
61
+ "projectNotFound",
47
62
  "noSalesNavigator",
48
63
  "salesNavigatorOnboardingRequired",
49
64
  "conversationsNotSynced",
@@ -75,6 +90,15 @@ LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
75
90
  "searchTemporarilyUnavailable",
76
91
  "filterNotApplied",
77
92
  "companyNotFound",
93
+ "listNotFound",
94
+ "listAlreadyExists",
95
+ "listNotDeletable",
96
+ "listNotRenamable",
97
+ "savedSearchNotFound",
98
+ "savedSearchAlreadyExists",
99
+ "savedSearchLimitReached",
100
+ "savedSearchRenameUnconfirmed",
101
+ "savedSearchQueryMismatch",
78
102
  "postNotFound",
79
103
  "jobNotFound",
80
104
  "commentingNotAllowed",
@@ -93,6 +117,12 @@ LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
93
117
  "mentionNotResolved",
94
118
  "repostNotAllowed",
95
119
  "alreadyReposted",
120
+ "recruiterSignInRequired",
121
+ "recruiterTwoStepVerificationRequired",
122
+ "recruiterMultipleSessionsDetected",
123
+ "inMailCreditRequired",
124
+ "inMailNotAvailable",
125
+ "projectNotFound",
96
126
  "noSalesNavigator",
97
127
  "salesNavigatorOnboardingRequired",
98
128
  "conversationsNotSynced",
@@ -12,15 +12,40 @@ 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
39
+ from linkedapi.operations.rc_archive_project import RcArchiveProject
40
+ from linkedapi.operations.rc_create_project import RcCreateProject
41
+ from linkedapi.operations.rc_fetch_person import RcFetchPerson, RcFetchPersonMapper
42
+ from linkedapi.operations.rc_rename_project import RcRenameProject
43
+ from linkedapi.operations.rc_retrieve_project_candidates import RcRetrieveProjectCandidates
44
+ from linkedapi.operations.rc_retrieve_projects import RcRetrieveProjects
45
+ from linkedapi.operations.rc_save_to_project import RcSaveToProject
46
+ from linkedapi.operations.rc_search_people import RcSearchPeople
47
+ from linkedapi.operations.rc_send_message import RcSendMessage
48
+ from linkedapi.operations.rc_sync_inbox import RcSyncInbox
24
49
  from linkedapi.operations.react_to_comment import ReactToComment
25
50
  from linkedapi.operations.react_to_post import ReactToPost
26
51
  from linkedapi.operations.remove_connection import RemoveConnection
@@ -62,17 +87,43 @@ __all__ = [
62
87
  "FetchPostMapper",
63
88
  "IgnoreInvitation",
64
89
  "ManageConversation",
90
+ "NvCreateList",
91
+ "NvCreateSavedSearch",
92
+ "NvDeleteList",
93
+ "NvDeleteSavedSearch",
65
94
  "NvFetchCompany",
66
95
  "NvFetchCompanyMapper",
67
96
  "NvFetchPerson",
68
97
  "NvFetchPersonMapper",
69
98
  "NvManageConversation",
99
+ "NvRemoveAccountFromList",
100
+ "NvRemoveLeadFromList",
101
+ "NvRenameList",
70
102
  "NvRetrieveAlerts",
103
+ "NvRetrieveListAccounts",
104
+ "NvRetrieveListLeads",
105
+ "NvRetrieveLists",
106
+ "NvRetrieveSavedSearches",
107
+ "NvSaveAccount",
108
+ "NvSaveLead",
71
109
  "NvSearchCompanies",
72
110
  "NvSearchPeople",
73
111
  "NvSendMessage",
74
112
  "NvSyncConversation",
75
113
  "NvSyncInbox",
114
+ "NvUnsaveAccount",
115
+ "NvUnsaveLead",
116
+ "RcArchiveProject",
117
+ "RcCreateProject",
118
+ "RcFetchPerson",
119
+ "RcFetchPersonMapper",
120
+ "RcRenameProject",
121
+ "RcRetrieveProjectCandidates",
122
+ "RcRetrieveProjects",
123
+ "RcSaveToProject",
124
+ "RcSearchPeople",
125
+ "RcSendMessage",
126
+ "RcSyncInbox",
76
127
  "ReactToComment",
77
128
  "ReactToPost",
78
129
  "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,17 @@
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. Optional name: trimmed,
10
+ single line, 1-256 characters, unique per type (savedSearchAlreadyExists). Returns its id,
11
+ name, type and URL.
12
+ """
13
+
14
+ operation_name = "nvCreateSavedSearch"
15
+ mapper = SimpleWorkflowMapper[NvCreateSavedSearchParams, NvCreatedSavedSearch](
16
+ "nv.createSavedSearch", result_model=NvCreatedSavedSearch
17
+ )
@@ -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.
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.
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.
11
+ """
12
+
13
+ operation_name = "nvRemoveLeadFromList"
14
+ mapper = VoidWorkflowMapper[NvRemoveLeadFromListParams]("nv.removeLeadFromList")
@@ -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 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
+ """
12
+
13
+ operation_name = "nvRenameList"
14
+ mapper = SimpleWorkflowMapper[NvRenameListParams, NvCreatedList](
15
+ "nv.renameList", result_model=NvCreatedList
16
+ )
@@ -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")
@@ -0,0 +1,22 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import SimpleWorkflowMapper
5
+ from linkedapi.types import RcArchiveProjectParams, RcArchiveProjectResult
6
+
7
+
8
+ class RcArchiveProject(Operation[RcArchiveProjectParams, RcArchiveProjectResult]):
9
+ """Archive a Recruiter Lite project.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+
13
+ Action errors: projectNotFound, recruiterSignInRequired,
14
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
15
+ See https://linkedapi.io/docs/action-rc-archive-project/
16
+ and https://linkedapi.io/docs/recruiter-lite-overview/
17
+ """
18
+
19
+ operation_name = "rcArchiveProject"
20
+ mapper = SimpleWorkflowMapper[RcArchiveProjectParams, RcArchiveProjectResult](
21
+ "rc.archiveProject", result_model=RcArchiveProjectResult
22
+ )
@@ -0,0 +1,23 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import SimpleWorkflowMapper
5
+ from linkedapi.types import RcCreatedProject, RcCreateProjectParams
6
+
7
+
8
+ class RcCreateProject(Operation[RcCreateProjectParams, RcCreatedProject]):
9
+ """Create a private Recruiter Lite project by name.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+ After a failure, check existing projects before creating again: creation may have succeeded.
13
+
14
+ Action errors: recruiterSignInRequired,
15
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
16
+ See https://linkedapi.io/docs/action-rc-create-project/
17
+ and https://linkedapi.io/docs/recruiter-lite-overview/
18
+ """
19
+
20
+ operation_name = "rcCreateProject"
21
+ mapper = SimpleWorkflowMapper[RcCreateProjectParams, RcCreatedProject](
22
+ "rc.createProject", result_model=RcCreatedProject
23
+ )