linkedapi 1.6.0__tar.gz → 1.6.1__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.6.0 → linkedapi-1.6.1}/PKG-INFO +1 -1
  2. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/__init__.py +1 -1
  3. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/fetch_person.py +2 -0
  4. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/__init__.py +4 -0
  5. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/nv_alerts.py +3 -0
  6. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/person.py +16 -0
  7. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/signals.py +20 -4
  8. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/webhooks.py +3 -0
  9. {linkedapi-1.6.0 → linkedapi-1.6.1}/pyproject.toml +1 -1
  10. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_operations.py +61 -0
  11. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_signals.py +65 -2
  12. {linkedapi-1.6.0 → linkedapi-1.6.1}/.github/workflows/publish.yaml +0 -0
  13. {linkedapi-1.6.0 → linkedapi-1.6.1}/.gitignore +0 -0
  14. {linkedapi-1.6.0 → linkedapi-1.6.1}/LICENSE +0 -0
  15. {linkedapi-1.6.0 → linkedapi-1.6.1}/README.md +0 -0
  16. {linkedapi-1.6.0 → linkedapi-1.6.1}/examples/verify_webhook_signature.py +0 -0
  17. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/__init__.py +0 -0
  18. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/accounts.py +0 -0
  19. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/admin.py +0 -0
  20. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/http_client.py +0 -0
  21. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/limits.py +0 -0
  22. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/subscription.py +0 -0
  23. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/admin/webhooks.py +0 -0
  24. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/changelog.py +0 -0
  25. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/client.py +0 -0
  26. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/config.py +0 -0
  27. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/core/__init__.py +0 -0
  28. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/core/operation.py +0 -0
  29. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/core/polling.py +0 -0
  30. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/errors.py +0 -0
  31. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/http/__init__.py +0 -0
  32. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/http/base.py +0 -0
  33. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/http/linked_api_http_client.py +0 -0
  34. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/__init__.py +0 -0
  35. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/array.py +0 -0
  36. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/base.py +0 -0
  37. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/endorse_person_skills.py +0 -0
  38. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/send_message.py +0 -0
  39. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/simple.py +0 -0
  40. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/then.py +0 -0
  41. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/mappers/void.py +0 -0
  42. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/__init__.py +0 -0
  43. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/accept_invitation.py +0 -0
  44. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/check_connection_status.py +0 -0
  45. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/comment_on_post.py +0 -0
  46. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/create_post.py +0 -0
  47. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/create_repost.py +0 -0
  48. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/custom_workflow.py +0 -0
  49. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/endorse_person_skill.py +0 -0
  50. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/endorse_person_skills.py +0 -0
  51. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/fetch_company.py +0 -0
  52. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/fetch_job.py +0 -0
  53. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/fetch_post.py +0 -0
  54. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/ignore_invitation.py +0 -0
  55. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/manage_conversation.py +0 -0
  56. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_create_list.py +0 -0
  57. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_create_saved_search.py +0 -0
  58. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_delete_list.py +0 -0
  59. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_delete_saved_search.py +0 -0
  60. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_fetch_company.py +0 -0
  61. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_fetch_person.py +0 -0
  62. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_manage_conversation.py +0 -0
  63. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_remove_account_from_list.py +0 -0
  64. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_remove_lead_from_list.py +0 -0
  65. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_rename_list.py +0 -0
  66. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_retrieve_alerts.py +0 -0
  67. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_retrieve_list_accounts.py +0 -0
  68. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_retrieve_list_leads.py +0 -0
  69. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_retrieve_lists.py +0 -0
  70. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_retrieve_saved_searches.py +0 -0
  71. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_save_account.py +0 -0
  72. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_save_lead.py +0 -0
  73. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_search_companies.py +0 -0
  74. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_search_people.py +0 -0
  75. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_send_message.py +0 -0
  76. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_sync_conversation.py +0 -0
  77. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_sync_inbox.py +0 -0
  78. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_unsave_account.py +0 -0
  79. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/nv_unsave_lead.py +0 -0
  80. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_archive_project.py +0 -0
  81. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_create_project.py +0 -0
  82. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_fetch_person.py +0 -0
  83. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_rename_project.py +0 -0
  84. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_retrieve_project_candidates.py +0 -0
  85. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_retrieve_projects.py +0 -0
  86. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_save_to_project.py +0 -0
  87. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_search_people.py +0 -0
  88. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_send_message.py +0 -0
  89. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/rc_sync_inbox.py +0 -0
  90. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/react_to_comment.py +0 -0
  91. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/react_to_post.py +0 -0
  92. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/remove_connection.py +0 -0
  93. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/reply_to_comment.py +0 -0
  94. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_connections.py +0 -0
  95. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_feed.py +0 -0
  96. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_invitations.py +0 -0
  97. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_pending_requests.py +0 -0
  98. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_performance.py +0 -0
  99. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_profile_viewers.py +0 -0
  100. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/retrieve_ssi.py +0 -0
  101. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/search_companies.py +0 -0
  102. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/search_jobs.py +0 -0
  103. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/search_people.py +0 -0
  104. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/search_posts.py +0 -0
  105. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/send_connection_request.py +0 -0
  106. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/send_message.py +0 -0
  107. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/sync_conversation.py +0 -0
  108. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/sync_inbox.py +0 -0
  109. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/sync_network.py +0 -0
  110. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/operations/withdraw_connection_request.py +0 -0
  111. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/py.typed +0 -0
  112. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/account.py +0 -0
  113. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/admin/__init__.py +0 -0
  114. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/admin/accounts.py +0 -0
  115. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/admin/config.py +0 -0
  116. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/admin/limits.py +0 -0
  117. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/admin/subscription.py +0 -0
  118. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/base.py +0 -0
  119. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/changelog.py +0 -0
  120. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/company.py +0 -0
  121. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/connection.py +0 -0
  122. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/feed.py +0 -0
  123. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/jobs.py +0 -0
  124. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/message.py +0 -0
  125. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/network.py +0 -0
  126. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/nv_list_management.py +0 -0
  127. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/nv_list_members.py +0 -0
  128. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/nv_saved_searches.py +0 -0
  129. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/nv_saved_subjects.py +0 -0
  130. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/params.py +0 -0
  131. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/post.py +0 -0
  132. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/profile_viewers.py +0 -0
  133. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/rc_people.py +0 -0
  134. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/rc_projects.py +0 -0
  135. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/responses.py +0 -0
  136. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/search_companies.py +0 -0
  137. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/search_people.py +0 -0
  138. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/search_posts.py +0 -0
  139. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/statistics.py +0 -0
  140. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/viewer_state.py +0 -0
  141. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/types/workflow.py +0 -0
  142. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/webhooks/__init__.py +0 -0
  143. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/webhooks/headers.py +0 -0
  144. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/webhooks/parse.py +0 -0
  145. {linkedapi-1.6.0 → linkedapi-1.6.1}/linkedapi/webhooks/signature.py +0 -0
  146. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/conftest.py +0 -0
  147. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_admin.py +0 -0
  148. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_admin_webhooks.py +0 -0
  149. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_changelog.py +0 -0
  150. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_direct_methods.py +0 -0
  151. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_endorse_operations.py +0 -0
  152. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_errors.py +0 -0
  153. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_http_client.py +0 -0
  154. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_limits_categories.py +0 -0
  155. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_mappers.py +0 -0
  156. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_models.py +0 -0
  157. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_nv_backlog.py +0 -0
  158. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_nv_list_management.py +0 -0
  159. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_nv_retrieve_alerts.py +0 -0
  160. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_nv_saved_subjects.py +0 -0
  161. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_open_vocabularies.py +0 -0
  162. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_polling.py +0 -0
  163. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_rc_operations.py +0 -0
  164. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_webhook_signature.py +0 -0
  165. {linkedapi-1.6.0 → linkedapi-1.6.1}/tests/test_webhooks.py +0 -0
  166. {linkedapi-1.6.0 → linkedapi-1.6.1}/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.6.0
3
+ Version: 1.6.1
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
@@ -116,7 +116,7 @@ from linkedapi.webhooks import (
116
116
  verify_webhook_signature,
117
117
  )
118
118
 
119
- __version__ = "1.5.0"
119
+ __version__ = "1.6.1"
120
120
  PredefinedOperation = Operation
121
121
 
122
122
  __all__ = [
@@ -13,6 +13,7 @@ class FetchPersonMapper(ThenWorkflowMapper[FetchPersonParams, Person]):
13
13
  ActionConfig("retrieve_education", "st.retrievePersonEducation"),
14
14
  ActionConfig("retrieve_skills", "st.retrievePersonSkills"),
15
15
  ActionConfig("retrieve_languages", "st.retrievePersonLanguages"),
16
+ ActionConfig("retrieve_contact_info", "st.retrievePersonContactInfo"),
16
17
  ActionConfig("retrieve_posts", "st.retrievePersonPosts", "posts_retrieval_config"),
17
18
  ActionConfig(
18
19
  "retrieve_comments", "st.retrievePersonComments", "comments_retrieval_config"
@@ -26,6 +27,7 @@ class FetchPersonMapper(ThenWorkflowMapper[FetchPersonParams, Person]):
26
27
  ResponseMapping("st.retrievePersonEducation", "education"),
27
28
  ResponseMapping("st.retrievePersonSkills", "skills"),
28
29
  ResponseMapping("st.retrievePersonLanguages", "languages"),
30
+ ResponseMapping("st.retrievePersonContactInfo", "contactInfo"),
29
31
  ResponseMapping("st.retrievePersonPosts", "posts"),
30
32
  ResponseMapping("st.retrievePersonComments", "comments"),
31
33
  ResponseMapping("st.retrievePersonReactions", "reactions"),
@@ -188,6 +188,8 @@ from linkedapi.types.person import (
188
188
  LanguageProficiency,
189
189
  LocationType,
190
190
  Person,
191
+ PersonBirthday,
192
+ PersonContactInfo,
191
193
  PersonEducation,
192
194
  PersonExperience,
193
195
  PersonLanguage,
@@ -555,6 +557,8 @@ __all__ = [
555
557
  "NvUnsaveLeadParams",
556
558
  "PendingConnectionSession",
557
559
  "Person",
560
+ "PersonBirthday",
561
+ "PersonContactInfo",
558
562
  "PersonEducation",
559
563
  "PersonExperience",
560
564
  "PersonLanguage",
@@ -10,6 +10,9 @@ from linkedapi.types.params import BaseActionParams
10
10
 
11
11
  class NvRetrieveAlertsFilter(LinkedApiModel):
12
12
  list_id: str | None = Field(default=None, pattern=r"^[1-9]\d*$")
13
+ # Subjects to keep, ORed: Sales Navigator identities or hashed URLs, or the
14
+ # "urn:li:member:<id>" / "urn:li:organization:<id>" values nv_retrieve_list_leads and
15
+ # nv_retrieve_list_accounts return.
13
16
  subjects: list[str] | None = None
14
17
  category: Literal["lead", "account"] | None = None
15
18
  types: list[str] | None = None
@@ -34,6 +34,7 @@ class BaseFetchPersonParams(BaseActionParams):
34
34
  retrieve_education: bool | None = None
35
35
  retrieve_skills: bool | None = None
36
36
  retrieve_languages: bool | None = None
37
+ retrieve_contact_info: bool | None = None
37
38
  retrieve_posts: bool | None = None
38
39
  retrieve_comments: bool | None = None
39
40
  retrieve_reactions: bool | None = None
@@ -44,6 +45,7 @@ class BaseFetchPersonParamsWide(BaseFetchPersonParams):
44
45
  retrieve_education: Literal[True] = True
45
46
  retrieve_skills: Literal[True] = True
46
47
  retrieve_languages: Literal[True] = True
48
+ retrieve_contact_info: Literal[True] = True
47
49
  retrieve_posts: Literal[True] = True
48
50
  retrieve_comments: Literal[True] = True
49
51
  retrieve_reactions: Literal[True] = True
@@ -99,6 +101,19 @@ class PersonLanguage(BaseActionParams):
99
101
  proficiency: LanguageProficiency | str | None = None
100
102
 
101
103
 
104
+ class PersonBirthday(BaseActionParams):
105
+ month: int | None = None
106
+ day: int | None = None
107
+
108
+
109
+ class PersonContactInfo(BaseActionParams):
110
+ email: str | None = None
111
+ phones: list[str] | None = None
112
+ websites: list[str] | None = None
113
+ birthday: PersonBirthday | None = None
114
+ connected_at: str | None = None
115
+
116
+
102
117
  class Person(BaseActionParams):
103
118
  name: str | None = None
104
119
  urn: str | None = None
@@ -118,6 +133,7 @@ class Person(BaseActionParams):
118
133
  education: list[PersonEducation] | None = None
119
134
  skills: list[PersonSkill] | None = None
120
135
  languages: list[PersonLanguage] | None = None
136
+ contact_info: PersonContactInfo | None = None
121
137
  posts: list[Post] | None = None
122
138
  comments: list[Comment] | None = None
123
139
  reactions: list[Reaction] | None = None
@@ -5,6 +5,7 @@ from typing import Any, Literal
5
5
  from pydantic import Field
6
6
 
7
7
  from linkedapi.types.base import LinkedApiModel
8
+ from linkedapi.types.nv_alerts import NvAlert
8
9
  from linkedapi.types.post import PostAuthor, PostComment, ReactionType
9
10
  from linkedapi.types.profile_viewers import ProfileViewer
10
11
  from linkedapi.types.search_posts import (
@@ -22,9 +23,12 @@ SignalType = Literal[
22
23
  "postEngagement",
23
24
  "network",
24
25
  "profileViewers",
26
+ "listAlerts",
25
27
  ]
26
28
  SignalStatus = Literal["active", "paused", "stopped"]
27
- SignalStoppedReason = Literal["targetNotFound", "watchPeriodEnded"]
29
+ SignalStoppedReason = Literal[
30
+ "targetNotFound", "watchPeriodEnded", "noSalesNavigator", "listTooLarge"
31
+ ]
28
32
  SignalEventType = Literal[
29
33
  "postPublished",
30
34
  "postFound",
@@ -34,6 +38,7 @@ SignalEventType = Literal[
34
38
  "connectionAccepted",
35
39
  "connectionAdded",
36
40
  "connectionRequestReceived",
41
+ "alertPublished",
37
42
  ]
38
43
 
39
44
 
@@ -54,8 +59,10 @@ class CreateSignalParams(LinkedApiModel):
54
59
 
55
60
  "personPosts" takes "person_url", "companyPosts" takes "company_url", "postSearch" takes
56
61
  "term" (a phrase or a list of up to three) and an optional "filter", "postEngagement" takes
57
- "post_url" or "my_posts=True", and "network" and "profileViewers" take none. "label" is your
58
- own identifier, up to 64 characters, returned with the signal and every event it produces.
62
+ "post_url" or "my_posts=True", "listAlerts" takes "list_id" (the id of one of the account's
63
+ own Sales Navigator lists, as nv_retrieve_lists returns it), and "network" and
64
+ "profileViewers" take none. "label" is your own identifier, up to 64 characters, returned
65
+ with the signal and every event it produces.
59
66
  """
60
67
 
61
68
  type: SignalType
@@ -66,6 +73,7 @@ class CreateSignalParams(LinkedApiModel):
66
73
  my_posts: Literal[True] | None = None
67
74
  term: str | list[str] | None = None
68
75
  filter: SignalPostSearchFilter | None = None
76
+ list_id: str | None = Field(default=None, pattern=r"^[1-9]\d*$")
69
77
 
70
78
 
71
79
  class GetSignalsParams(LinkedApiModel):
@@ -104,6 +112,7 @@ class Signal(LinkedApiModel):
104
112
  my_posts: bool | None = None
105
113
  term: str | list[str] | None = None
106
114
  filter: dict[str, Any] | None = None
115
+ list_id: str | None = None
107
116
 
108
117
 
109
118
  class SignalComment(PostComment):
@@ -118,7 +127,11 @@ class SignalReaction(LinkedApiModel):
118
127
  class SignalEvent(LinkedApiModel):
119
128
  """One event a signal detected. Which subject fields are set depends on "type": "post" for
120
129
  postPublished and postFound, "post_url" with "comment" or "reaction", "viewer" for
121
- profileViewed, and "person_urn" with "person_url" for the connection events."""
130
+ profileViewed, "person_urn" with "person_url" for the connection events, and "alert" with
131
+ "subject_urn" and "subject_hashed_url" for alertPublished. "alert" is the alert exactly as
132
+ nv_retrieve_alerts returns it; "subject_urn" ("urn:li:member:<id>" or
133
+ "urn:li:organization:<id>") and "subject_hashed_url" are in the forms nv_retrieve_list_leads
134
+ and nv_retrieve_list_accounts return."""
122
135
 
123
136
  id: str | None = None
124
137
  signal_id: str | None = None
@@ -134,3 +147,6 @@ class SignalEvent(LinkedApiModel):
134
147
  viewer: ProfileViewer | None = None
135
148
  person_urn: str | None = None
136
149
  person_url: str | None = None
150
+ alert: NvAlert | None = None
151
+ subject_urn: str | None = None
152
+ subject_hashed_url: str | None = None
@@ -30,6 +30,7 @@ WebhookEventType = Literal[
30
30
  "signal.connectionAccepted",
31
31
  "signal.connectionAdded",
32
32
  "signal.connectionRequestReceived",
33
+ "signal.alertPublished",
33
34
  "webhook.test",
34
35
  ]
35
36
  WebhookEventSelector = Literal[
@@ -53,6 +54,7 @@ WebhookEventSelector = Literal[
53
54
  "signal.connectionAccepted",
54
55
  "signal.connectionAdded",
55
56
  "signal.connectionRequestReceived",
57
+ "signal.alertPublished",
56
58
  "workflow.*",
57
59
  "account.*",
58
60
  "inbox.*",
@@ -258,6 +260,7 @@ class SignalWebhookEvent(LinkedApiModel):
258
260
  "signal.connectionAccepted",
259
261
  "signal.connectionAdded",
260
262
  "signal.connectionRequestReceived",
263
+ "signal.alertPublished",
261
264
  ]
262
265
  | str
263
266
  )
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "linkedapi"
7
- version = "1.6.0"
7
+ version = "1.6.1"
8
8
  description = "Official synchronous Python SDK for Linked API."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -422,3 +422,64 @@ def test_execute_and_result_flow_returns_pydantic_data(
422
422
  )
423
423
  assert result.data is not None
424
424
  assert result.data.public_url == "https://www.linkedin.com/in/jane-doe"
425
+
426
+
427
+ def test_fetch_person_retrieves_and_maps_contact_info(
428
+ fake_http_client: FakeHttpClient,
429
+ person_data: dict[str, object],
430
+ ) -> None:
431
+ linkedapi = LinkedApi(fake_http_client)
432
+ contact_info = {
433
+ "email": "person@example.com",
434
+ "phones": ["555-0100"],
435
+ "websites": ["https://example.com/"],
436
+ "birthday": {"month": 11, "day": 13},
437
+ "connectedAt": "2026-11-11T00:00:00.000Z",
438
+ }
439
+ fake_http_client.queue_response(result={"workflowId": "wf1", "workflowStatus": "pending"})
440
+ fake_http_client.queue_response(
441
+ result={
442
+ "workflowStatus": "completed",
443
+ "completion": {
444
+ "actionType": "st.openPersonPage",
445
+ "success": True,
446
+ "data": {
447
+ **person_data,
448
+ "then": [
449
+ {
450
+ "actionType": "st.retrievePersonContactInfo",
451
+ "success": True,
452
+ "data": contact_info,
453
+ }
454
+ ],
455
+ },
456
+ },
457
+ }
458
+ )
459
+
460
+ workflow = linkedapi.fetch_person.execute(
461
+ FetchPersonParams(person_url="u", retrieve_contact_info=True)
462
+ )
463
+ result = linkedapi.fetch_person.result(workflow.workflow_id, poll_interval=0.001, timeout=1.0)
464
+
465
+ assert fake_http_client.calls[0] == (
466
+ "POST",
467
+ "/workflows",
468
+ {
469
+ "actionType": "st.openPersonPage",
470
+ "basicInfo": True,
471
+ "personUrl": "u",
472
+ "then": [{"actionType": "st.retrievePersonContactInfo"}],
473
+ },
474
+ )
475
+ assert result.data is not None
476
+ assert result.data.contact_info is not None
477
+ assert result.data.contact_info.email == "person@example.com"
478
+ assert result.data.contact_info.phones == ["555-0100"]
479
+ assert result.data.contact_info.websites == ["https://example.com/"]
480
+ assert result.data.contact_info.birthday is not None
481
+ assert (result.data.contact_info.birthday.month, result.data.contact_info.birthday.day) == (
482
+ 11,
483
+ 13,
484
+ )
485
+ assert result.data.contact_info.connected_at == "2026-11-11T00:00:00.000Z"
@@ -52,6 +52,35 @@ COMMENT_EVENT: dict[str, Any] = {
52
52
  }
53
53
 
54
54
 
55
+ ALERT_EVENT: dict[str, Any] = {
56
+ "id": "sigev-2",
57
+ "signalId": "sigsub-3",
58
+ "signalType": "listAlerts",
59
+ "label": None,
60
+ "type": "alertPublished",
61
+ "detectedAt": "2026-11-19T08:34:49Z",
62
+ "alert": {
63
+ "id": "urn:li:notificationV2:(ACCOUNT_SHARED_UPDATE,1)",
64
+ "type": "ACCOUNT_SHARED_UPDATE",
65
+ "publishedAt": "2026-11-18T19:34:09.903Z",
66
+ "subject": {
67
+ "type": "account",
68
+ "urn": "urn:li:fs_salesCompany:1000",
69
+ "name": "Example Co",
70
+ "url": "https://www.linkedin.com/sales/company/1000",
71
+ "saved": True,
72
+ },
73
+ "headline": "Example Co posted",
74
+ "text": None,
75
+ "subline": None,
76
+ "url": None,
77
+ "relatedEntityUrn": "urn:li:share:1",
78
+ },
79
+ "subjectUrn": "urn:li:organization:1000",
80
+ "subjectHashedUrl": "https://www.linkedin.com/company/1000",
81
+ }
82
+
83
+
55
84
  def test_create_signal_posts_the_target_and_returns_the_signal(
56
85
  fake_http_client: FakeHttpClient,
57
86
  ) -> None:
@@ -84,6 +113,24 @@ def test_create_signal_posts_the_target_and_returns_the_signal(
84
113
  assert result.data.filter == {"contentType": "videos"}
85
114
 
86
115
 
116
+ def test_create_list_alerts_signal_posts_the_list_id_as_a_string(
117
+ fake_http_client: FakeHttpClient,
118
+ ) -> None:
119
+ fake_http_client.queue_response(
120
+ result={**SIGNAL, "type": "listAlerts", "term": None, "filter": None, "listId": "722"}
121
+ )
122
+
123
+ result = LinkedApi(fake_http_client).create_signal(
124
+ CreateSignalParams(type="listAlerts", list_id="7224792536903495680")
125
+ )
126
+
127
+ assert fake_http_client.calls == [
128
+ ("POST", "/signals", {"type": "listAlerts", "listId": "7224792536903495680"})
129
+ ]
130
+ assert result.data is not None
131
+ assert result.data.list_id == "722"
132
+
133
+
87
134
  @pytest.mark.parametrize(
88
135
  "params, path",
89
136
  [
@@ -160,6 +207,21 @@ def test_poll_signals_posts_the_filters_and_parses_event_subjects(
160
207
  assert event.comment.parent_comment_urn == "urn:li:comment:(activity:1,2)"
161
208
 
162
209
 
210
+ def test_poll_signals_parses_alert_events(fake_http_client: FakeHttpClient) -> None:
211
+ fake_http_client.queue_response(result={"events": [ALERT_EVENT]})
212
+
213
+ result = LinkedApi(fake_http_client).poll_signals()
214
+
215
+ assert result.data is not None
216
+ event = result.data[0]
217
+ assert event.type == "alertPublished"
218
+ assert event.alert is not None
219
+ assert event.alert.related_entity_urn == "urn:li:share:1"
220
+ assert event.alert.subject.urn == "urn:li:fs_salesCompany:1000"
221
+ assert event.subject_urn == "urn:li:organization:1000"
222
+ assert event.subject_hashed_url == "https://www.linkedin.com/company/1000"
223
+
224
+
163
225
  def test_poll_signals_without_request_sends_empty_body(fake_http_client: FakeHttpClient) -> None:
164
226
  fake_http_client.queue_response(result={"events": []})
165
227
 
@@ -211,7 +273,8 @@ def test_parse_signal_webhook_event() -> None:
211
273
 
212
274
  def test_webhook_selection_accepts_signal_events() -> None:
213
275
  params = SetWebhookParams(
214
- url="https://example.test/hook", events=["signal.*", "signal.postFound"]
276
+ url="https://example.test/hook",
277
+ events=["signal.*", "signal.postFound", "signal.alertPublished"],
215
278
  )
216
279
 
217
- assert params.events == ["signal.*", "signal.postFound"]
280
+ assert params.events == ["signal.*", "signal.postFound", "signal.alertPublished"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes