linkedapi 1.4.11__tar.gz → 1.6.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 (166) hide show
  1. {linkedapi-1.4.11 → linkedapi-1.6.0}/PKG-INFO +1 -1
  2. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/__init__.py +23 -1
  3. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/client.py +126 -3
  4. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/errors.py +26 -2
  5. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/__init__.py +21 -0
  6. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_create_saved_search.py +3 -2
  7. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_delete_saved_search.py +1 -1
  8. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_remove_account_from_list.py +1 -1
  9. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_remove_lead_from_list.py +1 -1
  10. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_rename_list.py +0 -1
  11. linkedapi-1.6.0/linkedapi/operations/rc_archive_project.py +22 -0
  12. linkedapi-1.6.0/linkedapi/operations/rc_create_project.py +23 -0
  13. linkedapi-1.6.0/linkedapi/operations/rc_fetch_person.py +33 -0
  14. linkedapi-1.6.0/linkedapi/operations/rc_rename_project.py +20 -0
  15. linkedapi-1.6.0/linkedapi/operations/rc_retrieve_project_candidates.py +24 -0
  16. linkedapi-1.6.0/linkedapi/operations/rc_retrieve_projects.py +22 -0
  17. linkedapi-1.6.0/linkedapi/operations/rc_save_to_project.py +23 -0
  18. linkedapi-1.6.0/linkedapi/operations/rc_search_people.py +24 -0
  19. linkedapi-1.6.0/linkedapi/operations/rc_send_message.py +26 -0
  20. linkedapi-1.6.0/linkedapi/operations/rc_sync_inbox.py +20 -0
  21. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/__init__.py +108 -0
  22. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/admin/limits.py +3 -0
  23. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/message.py +21 -3
  24. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/nv_saved_searches.py +14 -2
  25. linkedapi-1.6.0/linkedapi/types/rc_people.py +172 -0
  26. linkedapi-1.6.0/linkedapi/types/rc_projects.py +76 -0
  27. linkedapi-1.6.0/linkedapi/types/signals.py +136 -0
  28. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/webhooks.py +47 -2
  29. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/webhooks/parse.py +3 -0
  30. {linkedapi-1.4.11 → linkedapi-1.6.0}/pyproject.toml +1 -1
  31. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_direct_methods.py +53 -0
  32. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_errors.py +49 -1
  33. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_limits_categories.py +10 -4
  34. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_nv_backlog.py +14 -0
  35. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_nv_list_management.py +0 -2
  36. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_open_vocabularies.py +15 -0
  37. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_operations.py +11 -1
  38. linkedapi-1.6.0/tests/test_rc_operations.py +259 -0
  39. linkedapi-1.6.0/tests/test_signals.py +217 -0
  40. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_webhooks.py +27 -0
  41. {linkedapi-1.4.11 → linkedapi-1.6.0}/.github/workflows/publish.yaml +0 -0
  42. {linkedapi-1.4.11 → linkedapi-1.6.0}/.gitignore +0 -0
  43. {linkedapi-1.4.11 → linkedapi-1.6.0}/LICENSE +0 -0
  44. {linkedapi-1.4.11 → linkedapi-1.6.0}/README.md +0 -0
  45. {linkedapi-1.4.11 → linkedapi-1.6.0}/examples/verify_webhook_signature.py +0 -0
  46. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/__init__.py +0 -0
  47. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/accounts.py +0 -0
  48. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/admin.py +0 -0
  49. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/http_client.py +0 -0
  50. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/limits.py +0 -0
  51. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/subscription.py +0 -0
  52. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/admin/webhooks.py +0 -0
  53. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/changelog.py +0 -0
  54. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/config.py +0 -0
  55. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/core/__init__.py +0 -0
  56. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/core/operation.py +0 -0
  57. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/core/polling.py +0 -0
  58. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/http/__init__.py +0 -0
  59. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/http/base.py +0 -0
  60. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/http/linked_api_http_client.py +0 -0
  61. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/__init__.py +0 -0
  62. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/array.py +0 -0
  63. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/base.py +0 -0
  64. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/endorse_person_skills.py +0 -0
  65. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/send_message.py +0 -0
  66. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/simple.py +0 -0
  67. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/then.py +0 -0
  68. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/mappers/void.py +0 -0
  69. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/accept_invitation.py +0 -0
  70. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/check_connection_status.py +0 -0
  71. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/comment_on_post.py +0 -0
  72. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/create_post.py +0 -0
  73. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/create_repost.py +0 -0
  74. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/custom_workflow.py +0 -0
  75. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/endorse_person_skill.py +0 -0
  76. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/endorse_person_skills.py +0 -0
  77. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/fetch_company.py +0 -0
  78. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/fetch_job.py +0 -0
  79. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/fetch_person.py +0 -0
  80. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/fetch_post.py +0 -0
  81. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/ignore_invitation.py +0 -0
  82. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/manage_conversation.py +0 -0
  83. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_create_list.py +0 -0
  84. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_delete_list.py +0 -0
  85. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_fetch_company.py +0 -0
  86. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_fetch_person.py +0 -0
  87. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_manage_conversation.py +0 -0
  88. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_retrieve_alerts.py +0 -0
  89. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_retrieve_list_accounts.py +0 -0
  90. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_retrieve_list_leads.py +0 -0
  91. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_retrieve_lists.py +0 -0
  92. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_retrieve_saved_searches.py +0 -0
  93. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_save_account.py +0 -0
  94. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_save_lead.py +0 -0
  95. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_search_companies.py +0 -0
  96. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_search_people.py +0 -0
  97. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_send_message.py +0 -0
  98. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_sync_conversation.py +0 -0
  99. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_sync_inbox.py +0 -0
  100. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_unsave_account.py +0 -0
  101. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/nv_unsave_lead.py +0 -0
  102. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/react_to_comment.py +0 -0
  103. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/react_to_post.py +0 -0
  104. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/remove_connection.py +0 -0
  105. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/reply_to_comment.py +0 -0
  106. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_connections.py +0 -0
  107. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_feed.py +0 -0
  108. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_invitations.py +0 -0
  109. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_pending_requests.py +0 -0
  110. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_performance.py +0 -0
  111. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_profile_viewers.py +0 -0
  112. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/retrieve_ssi.py +0 -0
  113. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/search_companies.py +0 -0
  114. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/search_jobs.py +0 -0
  115. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/search_people.py +0 -0
  116. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/search_posts.py +0 -0
  117. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/send_connection_request.py +0 -0
  118. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/send_message.py +0 -0
  119. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/sync_conversation.py +0 -0
  120. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/sync_inbox.py +0 -0
  121. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/sync_network.py +0 -0
  122. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/operations/withdraw_connection_request.py +0 -0
  123. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/py.typed +0 -0
  124. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/account.py +0 -0
  125. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/admin/__init__.py +0 -0
  126. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/admin/accounts.py +0 -0
  127. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/admin/config.py +0 -0
  128. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/admin/subscription.py +0 -0
  129. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/base.py +0 -0
  130. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/changelog.py +0 -0
  131. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/company.py +0 -0
  132. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/connection.py +0 -0
  133. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/feed.py +0 -0
  134. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/jobs.py +0 -0
  135. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/network.py +0 -0
  136. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/nv_alerts.py +0 -0
  137. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/nv_list_management.py +0 -0
  138. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/nv_list_members.py +0 -0
  139. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/nv_saved_subjects.py +0 -0
  140. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/params.py +0 -0
  141. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/person.py +0 -0
  142. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/post.py +0 -0
  143. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/profile_viewers.py +0 -0
  144. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/responses.py +0 -0
  145. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/search_companies.py +0 -0
  146. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/search_people.py +0 -0
  147. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/search_posts.py +0 -0
  148. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/statistics.py +0 -0
  149. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/viewer_state.py +0 -0
  150. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/types/workflow.py +0 -0
  151. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/webhooks/__init__.py +0 -0
  152. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/webhooks/headers.py +0 -0
  153. {linkedapi-1.4.11 → linkedapi-1.6.0}/linkedapi/webhooks/signature.py +0 -0
  154. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/conftest.py +0 -0
  155. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_admin.py +0 -0
  156. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_admin_webhooks.py +0 -0
  157. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_changelog.py +0 -0
  158. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_endorse_operations.py +0 -0
  159. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_http_client.py +0 -0
  160. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_mappers.py +0 -0
  161. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_models.py +0 -0
  162. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_nv_retrieve_alerts.py +0 -0
  163. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_nv_saved_subjects.py +0 -0
  164. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_polling.py +0 -0
  165. {linkedapi-1.4.11 → linkedapi-1.6.0}/tests/test_webhook_signature.py +0 -0
  166. {linkedapi-1.4.11 → linkedapi-1.6.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.11
3
+ Version: 1.6.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
@@ -74,6 +74,17 @@ from linkedapi.operations import (
74
74
  NvSyncInbox,
75
75
  NvUnsaveAccount,
76
76
  NvUnsaveLead,
77
+ RcArchiveProject,
78
+ RcCreateProject,
79
+ RcFetchPerson,
80
+ RcFetchPersonMapper,
81
+ RcRenameProject,
82
+ RcRetrieveProjectCandidates,
83
+ RcRetrieveProjects,
84
+ RcSaveToProject,
85
+ RcSearchPeople,
86
+ RcSendMessage,
87
+ RcSyncInbox,
77
88
  ReactToComment,
78
89
  ReactToPost,
79
90
  RemoveConnection,
@@ -105,7 +116,7 @@ from linkedapi.webhooks import (
105
116
  verify_webhook_signature,
106
117
  )
107
118
 
108
- __version__ = "1.4.11"
119
+ __version__ = "1.5.0"
109
120
  PredefinedOperation = Operation
110
121
 
111
122
  __all__ = [
@@ -176,6 +187,17 @@ __all__ = [
176
187
  "NvSyncInbox",
177
188
  "Operation",
178
189
  "PredefinedOperation",
190
+ "RcArchiveProject",
191
+ "RcCreateProject",
192
+ "RcFetchPerson",
193
+ "RcFetchPersonMapper",
194
+ "RcRenameProject",
195
+ "RcRetrieveProjectCandidates",
196
+ "RcRetrieveProjects",
197
+ "RcSaveToProject",
198
+ "RcSearchPeople",
199
+ "RcSendMessage",
200
+ "RcSyncInbox",
179
201
  "ReactToComment",
180
202
  "ReactToPost",
181
203
  "RemoveConnection",
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from typing import Any, overload
4
- from urllib.parse import urlencode
4
+ from urllib.parse import quote, urlencode
5
5
 
6
6
  from linkedapi.config import LinkedApiConfig
7
7
  from linkedapi.errors import LinkedApiError
@@ -46,6 +46,16 @@ from linkedapi.operations import (
46
46
  NvSyncInbox,
47
47
  NvUnsaveAccount,
48
48
  NvUnsaveLead,
49
+ RcArchiveProject,
50
+ RcCreateProject,
51
+ RcFetchPerson,
52
+ RcRenameProject,
53
+ RcRetrieveProjectCandidates,
54
+ RcRetrieveProjects,
55
+ RcSaveToProject,
56
+ RcSearchPeople,
57
+ RcSendMessage,
58
+ RcSyncInbox,
49
59
  ReactToComment,
50
60
  ReactToPost,
51
61
  RemoveConnection,
@@ -68,7 +78,7 @@ from linkedapi.operations import (
68
78
  SyncNetwork,
69
79
  WithdrawConnectionRequest,
70
80
  )
71
- from linkedapi.types import AccountInfo, LinkedApiActionError, serialize_value
81
+ from linkedapi.types import AccountInfo, LinkedApiActionError, LinkedApiResponse, serialize_value
72
82
  from linkedapi.types.message import (
73
83
  ConversationPollRequest,
74
84
  ConversationPollResult,
@@ -78,6 +88,14 @@ from linkedapi.types.message import (
78
88
  InboxPollRequest,
79
89
  )
80
90
  from linkedapi.types.network import NetworkEvent, NetworkPollRequest
91
+ from linkedapi.types.signals import (
92
+ CreateSignalParams,
93
+ GetSignalsParams,
94
+ Signal,
95
+ SignalEvent,
96
+ SignalIdParams,
97
+ SignalPollRequest,
98
+ )
81
99
  from linkedapi.types.statistics import ApiUsageAction, ApiUsageParams
82
100
 
83
101
 
@@ -151,6 +169,17 @@ class LinkedApi:
151
169
  self.nv_fetch_company = NvFetchCompany(self.http_client)
152
170
  self.nv_fetch_person = NvFetchPerson(self.http_client)
153
171
 
172
+ self.rc_archive_project = RcArchiveProject(self.http_client)
173
+ self.rc_create_project = RcCreateProject(self.http_client)
174
+ self.rc_fetch_person = RcFetchPerson(self.http_client)
175
+ self.rc_rename_project = RcRenameProject(self.http_client)
176
+ self.rc_retrieve_project_candidates = RcRetrieveProjectCandidates(self.http_client)
177
+ self.rc_retrieve_projects = RcRetrieveProjects(self.http_client)
178
+ self.rc_save_to_project = RcSaveToProject(self.http_client)
179
+ self.rc_search_people = RcSearchPeople(self.http_client)
180
+ self.rc_send_message = RcSendMessage(self.http_client)
181
+ self.rc_sync_inbox = RcSyncInbox(self.http_client)
182
+
154
183
  self.operations = [
155
184
  self.custom_workflow,
156
185
  self.send_message,
@@ -211,6 +240,16 @@ class LinkedApi:
211
240
  self.nv_search_people,
212
241
  self.nv_fetch_company,
213
242
  self.nv_fetch_person,
243
+ self.rc_archive_project,
244
+ self.rc_create_project,
245
+ self.rc_fetch_person,
246
+ self.rc_rename_project,
247
+ self.rc_retrieve_project_candidates,
248
+ self.rc_retrieve_projects,
249
+ self.rc_save_to_project,
250
+ self.rc_search_people,
251
+ self.rc_send_message,
252
+ self.rc_sync_inbox,
214
253
  ]
215
254
 
216
255
  def poll_conversations(
@@ -264,13 +303,14 @@ class LinkedApi:
264
303
  self,
265
304
  request: InboxPollRequest | None = None,
266
305
  ) -> MappedResponse[list[InboxMessage]] | MappedResponse[InboxPersonPollResult]:
267
- """Read the monitored standard or Sales Navigator inbox, newest messages first.
306
+ """Read the monitored standard, Sales Navigator or Recruiter Lite inbox, newest first.
268
307
 
269
308
  Without ``person_url`` the data is the list of inbox messages across every conversation.
270
309
  With ``person_url`` (use ``InboxPersonPollRequest``) the data is the whole known
271
310
  conversation with that person: the messages the inbox captured together with the history
272
311
  loaded by ``sync_conversation`` / ``nv_sync_conversation``, each message once, plus
273
312
  ``threads`` with ``history_from`` and ``history_complete``.
313
+ person_url also accepts a Recruiter profile URL (https://www.linkedin.com/talent/profile/...).
274
314
  """
275
315
 
276
316
  payload = serialize_value(request) if request is not None else {}
@@ -320,6 +360,75 @@ class LinkedApi:
320
360
  ],
321
361
  )
322
362
 
363
+ def create_signal(self, params: CreateSignalParams) -> MappedResponse[Signal]:
364
+ """Create a signal: one thing for the account to watch on LinkedIn.
365
+
366
+ Creating a signal that already exists on the account returns that signal instead of a
367
+ second one. Raises LinkedApiError "invalidRequestPayload" or "signalLimitReached".
368
+ """
369
+
370
+ result = _signal_result(self.http_client.post("/signals", serialize_value(params)))
371
+ return MappedResponse(data=Signal.model_validate(result), errors=[])
372
+
373
+ def get_signals(self, params: GetSignalsParams | None = None) -> MappedResponse[list[Signal]]:
374
+ """List the account's signals, optionally only those of one type or status."""
375
+
376
+ query = urlencode(serialize_value(params) if params is not None else {})
377
+ result = _signal_result(self.http_client.get(f"/signals?{query}" if query else "/signals"))
378
+ return MappedResponse(
379
+ data=[Signal.model_validate(item) for item in result.get("signals", [])],
380
+ errors=[],
381
+ )
382
+
383
+ def get_signal(self, params: SignalIdParams) -> MappedResponse[Signal]:
384
+ """Retrieve one signal. Raises LinkedApiError "signalNotFound"."""
385
+
386
+ result = _signal_result(self.http_client.get(_signal_path(params.signal_id)))
387
+ return MappedResponse(data=Signal.model_validate(result), errors=[])
388
+
389
+ def pause_signal(self, params: SignalIdParams) -> MappedResponse[Signal]:
390
+ """Pause a signal. A paused signal is not checked; its events stay available.
391
+
392
+ Raises LinkedApiError "signalNotFound" or "signalStopped".
393
+ """
394
+
395
+ result = _signal_result(self.http_client.post(f"{_signal_path(params.signal_id)}/pause"))
396
+ return MappedResponse(data=Signal.model_validate(result), errors=[])
397
+
398
+ def resume_signal(self, params: SignalIdParams) -> MappedResponse[Signal]:
399
+ """Resume a paused signal. Its first check reports what appeared while it was paused, as
400
+ far as LinkedIn still shows it.
401
+
402
+ Raises LinkedApiError "signalNotFound", "signalStopped" or "signalLimitReached".
403
+ """
404
+
405
+ result = _signal_result(self.http_client.post(f"{_signal_path(params.signal_id)}/resume"))
406
+ return MappedResponse(data=Signal.model_validate(result), errors=[])
407
+
408
+ def delete_signal(self, params: SignalIdParams) -> MappedResponse[bool]:
409
+ """Delete a signal. Its checks stop at once; the events it produced stay available
410
+ through poll_signals. Raises LinkedApiError "signalNotFound"."""
411
+
412
+ result = _signal_result(self.http_client.delete(_signal_path(params.signal_id)))
413
+ return MappedResponse(data=result.get("deleted") is True, errors=[])
414
+
415
+ def poll_signals(
416
+ self,
417
+ request: SignalPollRequest | None = None,
418
+ ) -> MappedResponse[list[SignalEvent]]:
419
+ """Read the events your signals detected, newest first.
420
+
421
+ Pass "since": without it every retained event is returned. On each next request pass the
422
+ "detected_at" of the newest event you have, and process each event once by its "id".
423
+ """
424
+
425
+ payload = serialize_value(request) if request is not None else {}
426
+ result = _signal_result(self.http_client.post("/signals/poll", payload))
427
+ return MappedResponse(
428
+ data=[SignalEvent.model_validate(item) for item in result.get("events", [])],
429
+ errors=[],
430
+ )
431
+
323
432
  def get_account_info(self) -> MappedResponse[AccountInfo]:
324
433
  """Retrieve basic information about the current LinkedIn account."""
325
434
 
@@ -345,3 +454,17 @@ class LinkedApi:
345
454
  response.error.type if response.error else "httpError",
346
455
  response.error.message if response.error else "",
347
456
  )
457
+
458
+
459
+ # Signal ids are opaque ("sigsub-..."), so they are quoted rather than validated.
460
+ def _signal_path(signal_id: str) -> str:
461
+ return f"/signals/{quote(signal_id, safe='')}"
462
+
463
+
464
+ def _signal_result(response: LinkedApiResponse[Any]) -> Any:
465
+ if response.success and response.result is not None:
466
+ return response.result
467
+ raise LinkedApiError(
468
+ response.error.type if response.error else "httpError",
469
+ response.error.message if response.error else "",
470
+ )
@@ -31,7 +31,10 @@ LinkedApiActionErrorType = Literal[
31
31
  "listNotDeletable",
32
32
  "listNotRenamable",
33
33
  "savedSearchNotFound",
34
- "interfaceLanguageNotSupported",
34
+ "savedSearchAlreadyExists",
35
+ "savedSearchLimitReached",
36
+ "savedSearchRenameUnconfirmed",
37
+ "savedSearchQueryMismatch",
35
38
  "postNotFound",
36
39
  "jobNotFound",
37
40
  "commentingNotAllowed",
@@ -50,6 +53,12 @@ LinkedApiActionErrorType = Literal[
50
53
  "mentionNotResolved",
51
54
  "repostNotAllowed",
52
55
  "alreadyReposted",
56
+ "recruiterSignInRequired",
57
+ "recruiterTwoStepVerificationRequired",
58
+ "recruiterMultipleSessionsDetected",
59
+ "inMailCreditRequired",
60
+ "inMailNotAvailable",
61
+ "projectNotFound",
53
62
  "noSalesNavigator",
54
63
  "salesNavigatorOnboardingRequired",
55
64
  "conversationsNotSynced",
@@ -86,7 +95,10 @@ LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
86
95
  "listNotDeletable",
87
96
  "listNotRenamable",
88
97
  "savedSearchNotFound",
89
- "interfaceLanguageNotSupported",
98
+ "savedSearchAlreadyExists",
99
+ "savedSearchLimitReached",
100
+ "savedSearchRenameUnconfirmed",
101
+ "savedSearchQueryMismatch",
90
102
  "postNotFound",
91
103
  "jobNotFound",
92
104
  "commentingNotAllowed",
@@ -105,6 +117,12 @@ LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
105
117
  "mentionNotResolved",
106
118
  "repostNotAllowed",
107
119
  "alreadyReposted",
120
+ "recruiterSignInRequired",
121
+ "recruiterTwoStepVerificationRequired",
122
+ "recruiterMultipleSessionsDetected",
123
+ "inMailCreditRequired",
124
+ "inMailNotAvailable",
125
+ "projectNotFound",
108
126
  "noSalesNavigator",
109
127
  "salesNavigatorOnboardingRequired",
110
128
  "conversationsNotSynced",
@@ -137,6 +155,9 @@ LinkedApiErrorType = Literal[
137
155
  "sessionNotFound",
138
156
  "noAvailableSeats",
139
157
  "dailyConnectionAttemptsExceeded",
158
+ "signalLimitReached",
159
+ "signalNotFound",
160
+ "signalStopped",
140
161
  ]
141
162
  LINKED_API_ERROR_TYPES: tuple[str, ...] = (
142
163
  "linkedApiTokenRequired",
@@ -162,6 +183,9 @@ LINKED_API_ERROR_TYPES: tuple[str, ...] = (
162
183
  "sessionNotFound",
163
184
  "noAvailableSeats",
164
185
  "dailyConnectionAttemptsExceeded",
186
+ "signalLimitReached",
187
+ "signalNotFound",
188
+ "signalStopped",
165
189
  )
166
190
 
167
191
 
@@ -36,6 +36,16 @@ from linkedapi.operations.nv_sync_conversation import NvSyncConversation
36
36
  from linkedapi.operations.nv_sync_inbox import NvSyncInbox
37
37
  from linkedapi.operations.nv_unsave_account import NvUnsaveAccount
38
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
39
49
  from linkedapi.operations.react_to_comment import ReactToComment
40
50
  from linkedapi.operations.react_to_post import ReactToPost
41
51
  from linkedapi.operations.remove_connection import RemoveConnection
@@ -103,6 +113,17 @@ __all__ = [
103
113
  "NvSyncInbox",
104
114
  "NvUnsaveAccount",
105
115
  "NvUnsaveLead",
116
+ "RcArchiveProject",
117
+ "RcCreateProject",
118
+ "RcFetchPerson",
119
+ "RcFetchPersonMapper",
120
+ "RcRenameProject",
121
+ "RcRetrieveProjectCandidates",
122
+ "RcRetrieveProjects",
123
+ "RcSaveToProject",
124
+ "RcSearchPeople",
125
+ "RcSendMessage",
126
+ "RcSyncInbox",
106
127
  "ReactToComment",
107
128
  "ReactToPost",
108
129
  "RemoveConnection",
@@ -6,8 +6,9 @@ from linkedapi.types import NvCreatedSavedSearch, NvCreateSavedSearchParams
6
6
 
7
7
 
8
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.
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.
11
12
  """
12
13
 
13
14
  operation_name = "nvCreateSavedSearch"
@@ -7,7 +7,7 @@ from linkedapi.types import NvDeleteSavedSearchParams
7
7
 
8
8
  class NvDeleteSavedSearch(Operation[NvDeleteSavedSearchParams, None]):
9
9
  """Delete an owned saved search by its string ID. An absent search returns
10
- savedSearchNotFound. English interface only.
10
+ savedSearchNotFound.
11
11
  """
12
12
 
13
13
  operation_name = "nvDeleteSavedSearch"
@@ -7,7 +7,7 @@ from linkedapi.types import NvRemoveAccountFromListParams
7
7
 
8
8
  class NvRemoveAccountFromList(Operation[NvRemoveAccountFromListParams, None]):
9
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.
10
+ last list. Repeating an absent membership succeeds.
11
11
  """
12
12
 
13
13
  operation_name = "nvRemoveAccountFromList"
@@ -7,7 +7,7 @@ from linkedapi.types import NvRemoveLeadFromListParams
7
7
 
8
8
  class NvRemoveLeadFromList(Operation[NvRemoveLeadFromListParams, None]):
9
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.
10
+ lists. Repeating an absent membership succeeds.
11
11
  """
12
12
 
13
13
  operation_name = "nvRemoveLeadFromList"
@@ -8,7 +8,6 @@ from linkedapi.types import NvCreatedList, NvRenameListParams
8
8
  class NvRenameList(Operation[NvRenameListParams, NvCreatedList]):
9
9
  """Rename an owned custom list. Trimmed name: 1-75 characters, no line breaks. Same name
10
10
  succeeds; duplicates return listAlreadyExists and system lists return listNotRenamable.
11
- English interface only.
12
11
  """
13
12
 
14
13
  operation_name = "nvRenameList"
@@ -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
+ )
@@ -0,0 +1,33 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ThenWorkflowMapper
5
+ from linkedapi.types import RcOpenPersonPageParams, RcOpenPersonPageResult
6
+
7
+
8
+ class RcFetchPersonMapper(ThenWorkflowMapper[RcOpenPersonPageParams, RcOpenPersonPageResult]):
9
+ def __init__(self) -> None:
10
+ super().__init__(
11
+ action_configs=[],
12
+ response_mappings=[],
13
+ base_action_type="rc.openPersonPage",
14
+ default_params={"basicInfo": True},
15
+ result_model=RcOpenPersonPageResult,
16
+ )
17
+
18
+
19
+ class RcFetchPerson(Operation[RcOpenPersonPageParams, RcOpenPersonPageResult]):
20
+ """Fetch a Recruiter Lite profile, optionally including recruiting activity.
21
+
22
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
23
+ basic_info defaults to True; recruiting_activity requests the seat's activity counts.
24
+ person_url must be a Recruiter profile URL (https://www.linkedin.com/talent/profile/...).
25
+
26
+ Action errors: personNotFound, limitExceeded, recruiterSignInRequired,
27
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
28
+ See https://linkedapi.io/docs/action-rc-open-person-page/
29
+ and https://linkedapi.io/docs/recruiter-lite-overview/
30
+ """
31
+
32
+ operation_name = "rcFetchPerson"
33
+ mapper = RcFetchPersonMapper()
@@ -0,0 +1,20 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import RcRenameProjectParams
6
+
7
+
8
+ class RcRenameProject(Operation[RcRenameProjectParams, None]):
9
+ """Rename a Recruiter Lite project and optionally update its description.
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-rename-project/
16
+ and https://linkedapi.io/docs/recruiter-lite-overview/
17
+ """
18
+
19
+ operation_name = "rcRenameProject"
20
+ mapper = VoidWorkflowMapper[RcRenameProjectParams]("rc.renameProject")
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import RcProjectCandidate, RcRetrieveProjectCandidatesParams
6
+
7
+
8
+ class RcRetrieveProjectCandidates(
9
+ Operation[RcRetrieveProjectCandidatesParams, list[RcProjectCandidate]]
10
+ ):
11
+ """Retrieve candidates from a Recruiter Lite project.
12
+
13
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
14
+
15
+ Action errors: projectNotFound, recruiterSignInRequired,
16
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
17
+ See https://linkedapi.io/docs/action-rc-retrieve-project-candidates/
18
+ and https://linkedapi.io/docs/recruiter-lite-overview/
19
+ """
20
+
21
+ operation_name = "rcRetrieveProjectCandidates"
22
+ mapper = ArrayWorkflowMapper[RcRetrieveProjectCandidatesParams, RcProjectCandidate](
23
+ "rc.retrieveProjectCandidates", RcProjectCandidate
24
+ )
@@ -0,0 +1,22 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import RcProject, RcRetrieveProjectsParams
6
+
7
+
8
+ class RcRetrieveProjects(Operation[RcRetrieveProjectsParams, list[RcProject]]):
9
+ """Retrieve Recruiter Lite projects.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+
13
+ Action errors: recruiterSignInRequired,
14
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
15
+ See https://linkedapi.io/docs/action-rc-retrieve-projects/
16
+ and https://linkedapi.io/docs/recruiter-lite-overview/
17
+ """
18
+
19
+ operation_name = "rcRetrieveProjects"
20
+ mapper = ArrayWorkflowMapper[RcRetrieveProjectsParams, RcProject](
21
+ "rc.retrieveProjects", RcProject
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 RcSaveToProjectParams, RcSaveToProjectResult
6
+
7
+
8
+ class RcSaveToProject(Operation[RcSaveToProjectParams, RcSaveToProjectResult]):
9
+ """Save a Recruiter Lite candidate to a project.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+
13
+ Action errors: projectNotFound, limitExceeded,
14
+ recruiterSignInRequired, recruiterTwoStepVerificationRequired,
15
+ recruiterMultipleSessionsDetected, unexpectedError.
16
+ See https://linkedapi.io/docs/action-rc-save-to-project/
17
+ and https://linkedapi.io/docs/recruiter-lite-overview/
18
+ """
19
+
20
+ operation_name = "rcSaveToProject"
21
+ mapper = SimpleWorkflowMapper[RcSaveToProjectParams, RcSaveToProjectResult](
22
+ "rc.saveToProject", result_model=RcSaveToProjectResult
23
+ )
@@ -0,0 +1,24 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import ArrayWorkflowMapper
5
+ from linkedapi.types import RcSearchPeopleParams, RcSearchPeopleResult
6
+
7
+
8
+ class RcSearchPeople(Operation[RcSearchPeopleParams, list[RcSearchPeopleResult]]):
9
+ """Search people on Recruiter Lite.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+ profile_languages accepts LinkedIn language codes such as en, es, in and _o.
13
+
14
+ Action errors: filterNotApplied, limitExceeded,
15
+ recruiterSignInRequired, recruiterTwoStepVerificationRequired,
16
+ recruiterMultipleSessionsDetected, unexpectedError.
17
+ See https://linkedapi.io/docs/action-rc-search-people/
18
+ and https://linkedapi.io/docs/recruiter-lite-overview/
19
+ """
20
+
21
+ operation_name = "rcSearchPeople"
22
+ mapper = ArrayWorkflowMapper[RcSearchPeopleParams, RcSearchPeopleResult](
23
+ "rc.searchPeople", RcSearchPeopleResult
24
+ )
@@ -0,0 +1,26 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import SimpleWorkflowMapper
5
+ from linkedapi.types import RcSendMessageParams, RcSendMessageResult
6
+
7
+
8
+ class RcSendMessage(Operation[RcSendMessageParams, RcSendMessageResult]):
9
+ """Send a Recruiter Lite InMail or reply to a thread.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+ Use person_url + subject + text for a new InMail, or thread_id + text for a reply.
13
+ Paid credits require allow_paid_credit=True; the default is free messages only.
14
+ After an unexpectedError, check Messages before resending: the send may have succeeded.
15
+
16
+ Action errors: personNotFound, messagingNotAllowed, inMailCreditRequired,
17
+ inMailNotAvailable, limitExceeded, recruiterSignInRequired,
18
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
19
+ See https://linkedapi.io/docs/action-rc-send-message/
20
+ and https://linkedapi.io/docs/recruiter-lite-overview/
21
+ """
22
+
23
+ operation_name = "rcSendMessage"
24
+ mapper = SimpleWorkflowMapper[RcSendMessageParams, RcSendMessageResult](
25
+ "rc.sendMessage", result_model=RcSendMessageResult
26
+ )
@@ -0,0 +1,20 @@
1
+ from __future__ import annotations
2
+
3
+ from linkedapi.core import Operation
4
+ from linkedapi.mappers import VoidWorkflowMapper
5
+ from linkedapi.types import RcSyncInboxParams
6
+
7
+
8
+ class RcSyncInbox(Operation[RcSyncInboxParams, None]):
9
+ """Enable whole-inbox monitoring for Recruiter Lite conversations.
10
+
11
+ Requires a Recruiter Lite seat and the Plus plan (plusPlanRequired otherwise).
12
+
13
+ Action errors: recruiterSignInRequired,
14
+ recruiterTwoStepVerificationRequired, recruiterMultipleSessionsDetected, unexpectedError.
15
+ See https://linkedapi.io/docs/action-rc-sync-inbox/
16
+ and https://linkedapi.io/docs/recruiter-lite-overview/
17
+ """
18
+
19
+ operation_name = "rcSyncInbox"
20
+ mapper = VoidWorkflowMapper[RcSyncInboxParams]("rc.syncInbox")