Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion linkedapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
verify_webhook_signature,
)

__version__ = "1.4.7"
__version__ = "1.4.8"
PredefinedOperation = Operation

__all__ = [
Expand Down
34 changes: 34 additions & 0 deletions linkedapi/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@
LinkedApiActionErrorType = Literal[
"personNotFound",
"selfProfileNotAllowed",
"personLikelyChangedPublicUrl",
"messagingNotAllowed",
"alreadyPending",
"alreadyConnected",
"emailRequired",
"noteTooLong",
"noteLimitExceeded",
"invitationAlreadyReceived",
"requestNotAllowed",
"notPending",
"noPendingRequest",
"retrievingNotAllowed",
"connectionNotFound",
"skillNotFound",
"endorsementUnavailable",
"limitExceeded",
"searchingNotAllowed",
"searchInterfaceMismatch",
"searchTemporarilyUnavailable",
"filterNotApplied",
"companyNotFound",
"postNotFound",
Expand All @@ -29,31 +33,46 @@
"replyingNotAllowed",
"duplicateComment",
"noPostingPermission",
"textTooLong",
"unsupportedAttachmentType",
"missingDocumentName",
"urlNotAccessible",
"fileTooLarge",
"unsupportedMimeType",
"tooManyAttachments",
"mixingNotAllowed",
"mentionNotResolved",
"repostNotAllowed",
"alreadyReposted",
"noSalesNavigator",
"salesNavigatorOnboardingRequired",
"conversationsNotSynced",
"threadNotFound",
"ssiNotAvailable",
"unexpectedError",
]
LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
"personNotFound",
"selfProfileNotAllowed",
"personLikelyChangedPublicUrl",
"messagingNotAllowed",
"alreadyPending",
"alreadyConnected",
"emailRequired",
"noteTooLong",
"noteLimitExceeded",
"invitationAlreadyReceived",
"requestNotAllowed",
"notPending",
"noPendingRequest",
"retrievingNotAllowed",
"connectionNotFound",
"skillNotFound",
"endorsementUnavailable",
"limitExceeded",
"searchingNotAllowed",
"searchInterfaceMismatch",
"searchTemporarilyUnavailable",
"filterNotApplied",
"companyNotFound",
"postNotFound",
Expand All @@ -63,12 +82,23 @@
"replyingNotAllowed",
"duplicateComment",
"noPostingPermission",
"textTooLong",
"unsupportedAttachmentType",
"missingDocumentName",
"urlNotAccessible",
"fileTooLarge",
"unsupportedMimeType",
"tooManyAttachments",
"mixingNotAllowed",
"mentionNotResolved",
"repostNotAllowed",
"alreadyReposted",
"noSalesNavigator",
"salesNavigatorOnboardingRequired",
"conversationsNotSynced",
"threadNotFound",
"ssiNotAvailable",
"unexpectedError",
)

LinkedApiErrorType = Literal[
Expand All @@ -86,6 +116,8 @@
"workflowTimeout",
"outsideWorkingHours",
"workingHoursWaitExpired",
"cancelledByUser",
"unexpectedError",
"httpError",
"tooManyRequests",
"accountNotFound",
Expand All @@ -109,6 +141,8 @@
"workflowTimeout",
"outsideWorkingHours",
"workingHoursWaitExpired",
"cancelledByUser",
"unexpectedError",
"httpError",
"tooManyRequests",
"accountNotFound",
Expand Down
2 changes: 1 addition & 1 deletion linkedapi/types/admin/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from linkedapi.types.base import LinkedApiModel

SubscriptionStatusValue = Literal["active", "trialing", "past_due", "canceled"]
SubscriptionStatusValue = Literal["active", "trialing", "past_due", "unpaid", "canceled"]
SeatType = Literal["core", "plus"]
BillingPeriod = Literal["month", "year"]
SetSeatsStatus = Literal["complete", "processing"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "linkedapi"
version = "1.4.7"
version = "1.4.8"
description = "Official synchronous Python SDK for Linked API."
readme = "README.md"
requires-python = ">=3.10"
Expand Down
17 changes: 17 additions & 0 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def test_error_type_sets_match_node_contract() -> None:
"workflowTimeout",
"outsideWorkingHours",
"workingHoursWaitExpired",
"cancelledByUser",
"unexpectedError",
"httpError",
"tooManyRequests",
"accountNotFound",
Expand All @@ -34,21 +36,25 @@ def test_error_type_sets_match_node_contract() -> None:
assert LINKED_API_ACTION_ERROR_TYPES == (
"personNotFound",
"selfProfileNotAllowed",
"personLikelyChangedPublicUrl",
"messagingNotAllowed",
"alreadyPending",
"alreadyConnected",
"emailRequired",
"noteTooLong",
"noteLimitExceeded",
"invitationAlreadyReceived",
"requestNotAllowed",
"notPending",
"noPendingRequest",
"retrievingNotAllowed",
"connectionNotFound",
"skillNotFound",
"endorsementUnavailable",
"limitExceeded",
"searchingNotAllowed",
"searchInterfaceMismatch",
"searchTemporarilyUnavailable",
"filterNotApplied",
"companyNotFound",
"postNotFound",
Expand All @@ -58,12 +64,23 @@ def test_error_type_sets_match_node_contract() -> None:
"replyingNotAllowed",
"duplicateComment",
"noPostingPermission",
"textTooLong",
"unsupportedAttachmentType",
"missingDocumentName",
"urlNotAccessible",
"fileTooLarge",
"unsupportedMimeType",
"tooManyAttachments",
"mixingNotAllowed",
"mentionNotResolved",
"repostNotAllowed",
"alreadyReposted",
"noSalesNavigator",
"salesNavigatorOnboardingRequired",
"conversationsNotSynced",
"threadNotFound",
"ssiNotAvailable",
"unexpectedError",
)


Expand Down