linq-python 0.19.0__tar.gz → 0.19.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.
- linq_python-0.19.1/.release-please-manifest.json +3 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/CHANGELOG.md +7 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/PKG-INFO +1 -1
- {linq_python-0.19.0 → linq_python-0.19.1}/api.md +27 -7
- {linq_python-0.19.0 → linq_python-0.19.1}/pyproject.toml +1 -1
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_client.py +22 -19
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_exceptions.py +24 -1
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_version.py +1 -1
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/chats/__init__.py +14 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/chats/chats.py +414 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/chats/messages.py +26 -2
- linq_python-0.19.1/src/linq/resources/chats/polls.py +309 -0
- linq_python-0.19.1/src/linq/resources/messages/__init__.py +33 -0
- {linq_python-0.19.0/src/linq/resources → linq_python-0.19.1/src/linq/resources/messages}/messages.py +414 -14
- linq_python-0.19.1/src/linq/resources/messages/poll.py +486 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat.py +13 -9
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_create_params.py +8 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_create_response.py +13 -9
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_created_webhook_event.py +13 -9
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_send_voicememo_params.py +8 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/__init__.py +3 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/message_send_params.py +8 -0
- linq_python-0.19.1/src/linq/types/chats/poll.py +44 -0
- linq_python-0.19.1/src/linq/types/chats/poll_create_params.py +34 -0
- linq_python-0.19.1/src/linq/types/chats/poll_envelope.py +29 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_create_params.py +8 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_edited_webhook_event.py +13 -9
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_event_v2.py +13 -9
- linq_python-0.19.1/src/linq/types/messages/__init__.py +6 -0
- linq_python-0.19.1/src/linq/types/messages/poll_add_options_params.py +16 -0
- linq_python-0.19.1/src/linq/types/messages/poll_vote_params.py +15 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/phone_number_status_updated_webhook_event.py +9 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/text_part_param.py +21 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_event_type.py +9 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/chats/test_messages.py +6 -0
- linq_python-0.19.1/tests/api_resources/chats/test_polls.py +140 -0
- linq_python-0.19.1/tests/api_resources/messages/__init__.py +1 -0
- linq_python-0.19.1/tests/api_resources/messages/test_poll.py +300 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_chats.py +8 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_messages.py +6 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/uv.lock +1 -1
- linq_python-0.19.0/.release-please-manifest.json +0 -3
- {linq_python-0.19.0 → linq_python-0.19.1}/.gitignore +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/CONTRIBUTING.md +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/LICENSE +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/README.md +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/SECURITY.md +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/bin/check-release-environment +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/bin/publish-pypi +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/examples/.keep +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/release-please-config.json +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/requirements-dev.lock +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_base_client.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_compat.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_constants.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_files.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_models.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_qs.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_resource.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_streaming.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_types.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_compat.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_datetime_parse.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_json.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_logs.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_path.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_proxy.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_reflection.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_resources_proxy.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_streams.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_sync.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_transform.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_typing.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/_utils/_utils.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/lib/.keep +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/pagination.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/py.typed +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/attachments.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/available_number.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/capability.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/chats/location.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/chats/participants.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/chats/typing.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/contact_card.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/experiences.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/payment_handles.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/payment_providers.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/payment_requests.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/payments.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/phone_numbers.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/phonenumbers.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/webhook_events.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/webhook_subscriptions.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/resources/webhooks.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/attachment_create_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/attachment_create_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/attachment_retrieve_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/available_number_retrieve_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/available_number_retrieve_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/capability_check_RCS_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/capability_check_i_message_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_group_icon_update_failed_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_group_icon_updated_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_group_name_update_failed_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_group_name_updated_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_leave_chat_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_list_chats_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_send_voicememo_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_typing_indicator_started_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_typing_indicator_stopped_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_update_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chat_update_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/get_chat_location_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/location_request_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/message_list_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/message_send_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/participant_add_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/participant_add_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/participant_remove_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/participant_remove_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/chats/sent_message.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/contact_card_create_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/contact_card_retrieve_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/contact_card_retrieve_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/contact_card_update_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/experience_list_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/experience_retrieve_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/handle_check_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/link_part_param.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/media_part_param.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_add_reaction_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_add_reaction_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_content_param.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_create_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_delivered_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_effect.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_effect_param.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_failed_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_list_messages_thread_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_read_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_received_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_sent_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_update_app_card_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_update_app_card_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/message_update_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/participant_added_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/participant_removed_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_create_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_credentials_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_handle_connection.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_handle_verify_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_provider.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_provider_connect_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_provider_connect_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_request.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_request_create_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_request_list_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/payment_request_list_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/phone_number_list_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/phone_number_update_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/phone_number_update_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/phonenumber_list_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/reaction_added_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/reaction_event_base.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/reaction_removed_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/reply_to.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/reply_to_param.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/schemas_media_part_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/schemas_message_effect.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/schemas_text_part_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/set_contact_card.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/chat_handle.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/link_part_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/media_part_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/reaction.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/reaction_type.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/service_type.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/text_decoration.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared/text_part_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared_params/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared_params/reaction_type.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared_params/service_type.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/shared_params/text_decoration.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/supported_content_type.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/unwrap_webhook_event.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_event_list_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_subscription.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_subscription_create_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_subscription_create_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_subscription_list_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/src/linq/types/webhook_subscription_update_params.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/chats/__init__.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/chats/test_location.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/chats/test_participants.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/chats/test_typing.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_attachments.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_available_number.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_capability.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_contact_card.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_experiences.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_payment_handles.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_payment_providers.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_payment_requests.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_payments.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_phone_numbers.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_phonenumbers.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_webhook_events.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_webhook_subscriptions.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/api_resources/test_webhooks.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/conftest.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/sample_file.txt +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_client.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_extract_files.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_files.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_models.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_qs.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_required_args.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_response.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_streaming.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_transform.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_utils/test_datetime_parse.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_utils/test_json.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_utils/test_path.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_utils/test_proxy.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/test_utils/test_typing.py +0 -0
- {linq_python-0.19.0 → linq_python-0.19.1}/tests/utils.py +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.19.1](https://github.com/linq-team/linq-python/compare/v0.19.0...v0.19.1) (2026-08-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* flatten poll subresources to avoid go compile errors ([7075b92](https://github.com/linq-team/linq-python/commit/7075b9271c2b9e981a8e4988cf6dfffa781157cb))
|
|
9
|
+
|
|
3
10
|
## [0.19.0](https://github.com/linq-team/linq-python/compare/v0.18.0...v0.19.0) (2026-08-04)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: linq-python
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.1
|
|
4
4
|
Summary: The official Python library for the linq-api-v3 API
|
|
5
5
|
Project-URL: Homepage, https://github.com/linq-team/linq-python
|
|
6
6
|
Project-URL: Repository, https://github.com/linq-team/linq-python
|
|
@@ -88,6 +88,18 @@ Methods:
|
|
|
88
88
|
- <code title="get /v3/chats/{chatId}/location">client.chats.location.<a href="./src/linq/resources/chats/location.py">retrieve</a>(chat_id) -> <a href="./src/linq/types/chats/get_chat_location_response.py">GetChatLocationResponse</a></code>
|
|
89
89
|
- <code title="post /v3/chats/{chatId}/location/request">client.chats.location.<a href="./src/linq/resources/chats/location.py">request</a>(chat_id) -> <a href="./src/linq/types/chats/location_request_response.py">LocationRequestResponse</a></code>
|
|
90
90
|
|
|
91
|
+
## Polls
|
|
92
|
+
|
|
93
|
+
Types:
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
from linq.types.chats import Poll, PollEnvelope
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Methods:
|
|
100
|
+
|
|
101
|
+
- <code title="post /v3/chats/{chatId}/polls">client.chats.polls.<a href="./src/linq/resources/chats/polls.py">create</a>(chat_id, \*\*<a href="src/linq/types/chats/poll_create_params.py">params</a>) -> <a href="./src/linq/types/chats/poll_envelope.py">PollEnvelope</a></code>
|
|
102
|
+
|
|
91
103
|
# Messages
|
|
92
104
|
|
|
93
105
|
Types:
|
|
@@ -105,13 +117,21 @@ from linq.types import (
|
|
|
105
117
|
|
|
106
118
|
Methods:
|
|
107
119
|
|
|
108
|
-
- <code title="post /v3/messages">client.messages.<a href="./src/linq/resources/messages.py">create</a>(\*\*<a href="src/linq/types/message_create_params.py">params</a>) -> <a href="./src/linq/types/message_create_response.py">MessageCreateResponse</a></code>
|
|
109
|
-
- <code title="get /v3/messages/{messageId}">client.messages.<a href="./src/linq/resources/messages.py">retrieve</a>(message_id) -> <a href="./src/linq/types/message.py">Message</a></code>
|
|
110
|
-
- <code title="patch /v3/messages/{messageId}">client.messages.<a href="./src/linq/resources/messages.py">update</a>(message_id, \*\*<a href="src/linq/types/message_update_params.py">params</a>) -> <a href="./src/linq/types/message.py">Message</a></code>
|
|
111
|
-
- <code title="delete /v3/messages/{messageId}">client.messages.<a href="./src/linq/resources/messages.py">delete</a>(message_id) -> None</code>
|
|
112
|
-
- <code title="post /v3/messages/{messageId}/reactions">client.messages.<a href="./src/linq/resources/messages.py">add_reaction</a>(message_id, \*\*<a href="src/linq/types/message_add_reaction_params.py">params</a>) -> <a href="./src/linq/types/message_add_reaction_response.py">MessageAddReactionResponse</a></code>
|
|
113
|
-
- <code title="get /v3/messages/{messageId}/thread">client.messages.<a href="./src/linq/resources/messages.py">list_messages_thread</a>(message_id, \*\*<a href="src/linq/types/message_list_messages_thread_params.py">params</a>) -> <a href="./src/linq/types/message.py">SyncListMessagesPagination[Message]</a></code>
|
|
114
|
-
- <code title="post /v3/messages/{messageId}/update">client.messages.<a href="./src/linq/resources/messages.py">update_app_card</a>(message_id, \*\*<a href="src/linq/types/message_update_app_card_params.py">params</a>) -> <a href="./src/linq/types/message_update_app_card_response.py">MessageUpdateAppCardResponse</a></code>
|
|
120
|
+
- <code title="post /v3/messages">client.messages.<a href="./src/linq/resources/messages/messages.py">create</a>(\*\*<a href="src/linq/types/message_create_params.py">params</a>) -> <a href="./src/linq/types/message_create_response.py">MessageCreateResponse</a></code>
|
|
121
|
+
- <code title="get /v3/messages/{messageId}">client.messages.<a href="./src/linq/resources/messages/messages.py">retrieve</a>(message_id) -> <a href="./src/linq/types/message.py">Message</a></code>
|
|
122
|
+
- <code title="patch /v3/messages/{messageId}">client.messages.<a href="./src/linq/resources/messages/messages.py">update</a>(message_id, \*\*<a href="src/linq/types/message_update_params.py">params</a>) -> <a href="./src/linq/types/message.py">Message</a></code>
|
|
123
|
+
- <code title="delete /v3/messages/{messageId}">client.messages.<a href="./src/linq/resources/messages/messages.py">delete</a>(message_id) -> None</code>
|
|
124
|
+
- <code title="post /v3/messages/{messageId}/reactions">client.messages.<a href="./src/linq/resources/messages/messages.py">add_reaction</a>(message_id, \*\*<a href="src/linq/types/message_add_reaction_params.py">params</a>) -> <a href="./src/linq/types/message_add_reaction_response.py">MessageAddReactionResponse</a></code>
|
|
125
|
+
- <code title="get /v3/messages/{messageId}/thread">client.messages.<a href="./src/linq/resources/messages/messages.py">list_messages_thread</a>(message_id, \*\*<a href="src/linq/types/message_list_messages_thread_params.py">params</a>) -> <a href="./src/linq/types/message.py">SyncListMessagesPagination[Message]</a></code>
|
|
126
|
+
- <code title="post /v3/messages/{messageId}/update">client.messages.<a href="./src/linq/resources/messages/messages.py">update_app_card</a>(message_id, \*\*<a href="src/linq/types/message_update_app_card_params.py">params</a>) -> <a href="./src/linq/types/message_update_app_card_response.py">MessageUpdateAppCardResponse</a></code>
|
|
127
|
+
|
|
128
|
+
## Poll
|
|
129
|
+
|
|
130
|
+
Methods:
|
|
131
|
+
|
|
132
|
+
- <code title="get /v3/messages/{messageId}/poll">client.messages.poll.<a href="./src/linq/resources/messages/poll.py">retrieve</a>(message_id) -> <a href="./src/linq/types/chats/poll_envelope.py">PollEnvelope</a></code>
|
|
133
|
+
- <code title="post /v3/messages/{messageId}/poll/options">client.messages.poll.<a href="./src/linq/resources/messages/poll.py">add_options</a>(message_id, \*\*<a href="src/linq/types/messages/poll_add_options_params.py">params</a>) -> <a href="./src/linq/types/chats/poll_envelope.py">PollEnvelope</a></code>
|
|
134
|
+
- <code title="post /v3/messages/{messageId}/poll/votes">client.messages.poll.<a href="./src/linq/resources/messages/poll.py">vote</a>(message_id, \*\*<a href="src/linq/types/messages/poll_vote_params.py">params</a>) -> <a href="./src/linq/types/chats/poll_envelope.py">PollEnvelope</a></code>
|
|
115
135
|
|
|
116
136
|
# Attachments
|
|
117
137
|
|
|
@@ -21,6 +21,7 @@ from ._types import (
|
|
|
21
21
|
)
|
|
22
22
|
from ._utils import (
|
|
23
23
|
is_given,
|
|
24
|
+
is_mapping,
|
|
24
25
|
is_mapping_t,
|
|
25
26
|
get_async_library,
|
|
26
27
|
)
|
|
@@ -53,7 +54,6 @@ if TYPE_CHECKING:
|
|
|
53
54
|
payment_providers,
|
|
54
55
|
webhook_subscriptions,
|
|
55
56
|
)
|
|
56
|
-
from .resources.messages import MessagesResource, AsyncMessagesResource
|
|
57
57
|
from .resources.payments import PaymentsResource, AsyncPaymentsResource
|
|
58
58
|
from .resources.webhooks import WebhooksResource, AsyncWebhooksResource
|
|
59
59
|
from .resources.capability import CapabilityResource, AsyncCapabilityResource
|
|
@@ -67,6 +67,7 @@ if TYPE_CHECKING:
|
|
|
67
67
|
from .resources.payment_handles import PaymentHandlesResource, AsyncPaymentHandlesResource
|
|
68
68
|
from .resources.available_number import AvailableNumberResource, AsyncAvailableNumberResource
|
|
69
69
|
from .resources.payment_requests import PaymentRequestsResource, AsyncPaymentRequestsResource
|
|
70
|
+
from .resources.messages.messages import MessagesResource, AsyncMessagesResource
|
|
70
71
|
from .resources.payment_providers import PaymentProvidersResource, AsyncPaymentProvidersResource
|
|
71
72
|
from .resources.webhook_subscriptions import WebhookSubscriptionsResource, AsyncWebhookSubscriptionsResource
|
|
72
73
|
|
|
@@ -1009,30 +1010,31 @@ class LinqAPIV3(SyncAPIClient):
|
|
|
1009
1010
|
body: object,
|
|
1010
1011
|
response: httpx.Response,
|
|
1011
1012
|
) -> APIStatusError:
|
|
1013
|
+
data = body.get("error", body) if is_mapping(body) else body
|
|
1012
1014
|
if response.status_code == 400:
|
|
1013
|
-
return _exceptions.BadRequestError(err_msg, response=response, body=
|
|
1015
|
+
return _exceptions.BadRequestError(err_msg, response=response, body=data)
|
|
1014
1016
|
|
|
1015
1017
|
if response.status_code == 401:
|
|
1016
|
-
return _exceptions.AuthenticationError(err_msg, response=response, body=
|
|
1018
|
+
return _exceptions.AuthenticationError(err_msg, response=response, body=data)
|
|
1017
1019
|
|
|
1018
1020
|
if response.status_code == 403:
|
|
1019
|
-
return _exceptions.PermissionDeniedError(err_msg, response=response, body=
|
|
1021
|
+
return _exceptions.PermissionDeniedError(err_msg, response=response, body=data)
|
|
1020
1022
|
|
|
1021
1023
|
if response.status_code == 404:
|
|
1022
|
-
return _exceptions.NotFoundError(err_msg, response=response, body=
|
|
1024
|
+
return _exceptions.NotFoundError(err_msg, response=response, body=data)
|
|
1023
1025
|
|
|
1024
1026
|
if response.status_code == 409:
|
|
1025
|
-
return _exceptions.ConflictError(err_msg, response=response, body=
|
|
1027
|
+
return _exceptions.ConflictError(err_msg, response=response, body=data)
|
|
1026
1028
|
|
|
1027
1029
|
if response.status_code == 422:
|
|
1028
|
-
return _exceptions.UnprocessableEntityError(err_msg, response=response, body=
|
|
1030
|
+
return _exceptions.UnprocessableEntityError(err_msg, response=response, body=data)
|
|
1029
1031
|
|
|
1030
1032
|
if response.status_code == 429:
|
|
1031
|
-
return _exceptions.RateLimitError(err_msg, response=response, body=
|
|
1033
|
+
return _exceptions.RateLimitError(err_msg, response=response, body=data)
|
|
1032
1034
|
|
|
1033
1035
|
if response.status_code >= 500:
|
|
1034
|
-
return _exceptions.InternalServerError(err_msg, response=response, body=
|
|
1035
|
-
return APIStatusError(err_msg, response=response, body=
|
|
1036
|
+
return _exceptions.InternalServerError(err_msg, response=response, body=data)
|
|
1037
|
+
return APIStatusError(err_msg, response=response, body=data)
|
|
1036
1038
|
|
|
1037
1039
|
|
|
1038
1040
|
class AsyncLinqAPIV3(AsyncAPIClient):
|
|
@@ -1962,30 +1964,31 @@ class AsyncLinqAPIV3(AsyncAPIClient):
|
|
|
1962
1964
|
body: object,
|
|
1963
1965
|
response: httpx.Response,
|
|
1964
1966
|
) -> APIStatusError:
|
|
1967
|
+
data = body.get("error", body) if is_mapping(body) else body
|
|
1965
1968
|
if response.status_code == 400:
|
|
1966
|
-
return _exceptions.BadRequestError(err_msg, response=response, body=
|
|
1969
|
+
return _exceptions.BadRequestError(err_msg, response=response, body=data)
|
|
1967
1970
|
|
|
1968
1971
|
if response.status_code == 401:
|
|
1969
|
-
return _exceptions.AuthenticationError(err_msg, response=response, body=
|
|
1972
|
+
return _exceptions.AuthenticationError(err_msg, response=response, body=data)
|
|
1970
1973
|
|
|
1971
1974
|
if response.status_code == 403:
|
|
1972
|
-
return _exceptions.PermissionDeniedError(err_msg, response=response, body=
|
|
1975
|
+
return _exceptions.PermissionDeniedError(err_msg, response=response, body=data)
|
|
1973
1976
|
|
|
1974
1977
|
if response.status_code == 404:
|
|
1975
|
-
return _exceptions.NotFoundError(err_msg, response=response, body=
|
|
1978
|
+
return _exceptions.NotFoundError(err_msg, response=response, body=data)
|
|
1976
1979
|
|
|
1977
1980
|
if response.status_code == 409:
|
|
1978
|
-
return _exceptions.ConflictError(err_msg, response=response, body=
|
|
1981
|
+
return _exceptions.ConflictError(err_msg, response=response, body=data)
|
|
1979
1982
|
|
|
1980
1983
|
if response.status_code == 422:
|
|
1981
|
-
return _exceptions.UnprocessableEntityError(err_msg, response=response, body=
|
|
1984
|
+
return _exceptions.UnprocessableEntityError(err_msg, response=response, body=data)
|
|
1982
1985
|
|
|
1983
1986
|
if response.status_code == 429:
|
|
1984
|
-
return _exceptions.RateLimitError(err_msg, response=response, body=
|
|
1987
|
+
return _exceptions.RateLimitError(err_msg, response=response, body=data)
|
|
1985
1988
|
|
|
1986
1989
|
if response.status_code >= 500:
|
|
1987
|
-
return _exceptions.InternalServerError(err_msg, response=response, body=
|
|
1988
|
-
return APIStatusError(err_msg, response=response, body=
|
|
1990
|
+
return _exceptions.InternalServerError(err_msg, response=response, body=data)
|
|
1991
|
+
return APIStatusError(err_msg, response=response, body=data)
|
|
1989
1992
|
|
|
1990
1993
|
|
|
1991
1994
|
class LinqAPIV3WithRawResponse:
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Any, Optional, cast
|
|
5
6
|
from typing_extensions import Literal
|
|
6
7
|
|
|
7
8
|
import httpx
|
|
8
9
|
|
|
10
|
+
from ._utils import is_dict
|
|
11
|
+
from ._models import construct_type
|
|
12
|
+
|
|
9
13
|
__all__ = [
|
|
10
14
|
"BadRequestError",
|
|
11
15
|
"AuthenticationError",
|
|
@@ -37,12 +41,31 @@ class APIError(LinqApiv3Error):
|
|
|
37
41
|
If there was no response associated with this error then it will be `None`.
|
|
38
42
|
"""
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
code: Optional[int]
|
|
45
|
+
"""Linq API error code."""
|
|
46
|
+
doc_url: Optional[str]
|
|
47
|
+
"""Link to documentation for this error code"""
|
|
48
|
+
retry_after: Optional[int] = None
|
|
49
|
+
"""Number of seconds to wait before retrying.
|
|
50
|
+
|
|
51
|
+
Only present on 429 rate limit errors.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
def __init__(self, message: str, request: httpx.Request, *, body: object | None) -> None:
|
|
41
55
|
super().__init__(message)
|
|
42
56
|
self.request = request
|
|
43
57
|
self.message = message
|
|
44
58
|
self.body = body
|
|
45
59
|
|
|
60
|
+
if is_dict(body):
|
|
61
|
+
self.code = cast(Any, construct_type(type_=int, value=body.get("code")))
|
|
62
|
+
self.doc_url = cast(Any, construct_type(type_=str, value=body.get("doc_url")))
|
|
63
|
+
self.retry_after = cast(Any, construct_type(type_=Optional[int], value=body.get("retry_after")))
|
|
64
|
+
else:
|
|
65
|
+
self.code = None
|
|
66
|
+
self.doc_url = None
|
|
67
|
+
self.retry_after = None
|
|
68
|
+
|
|
46
69
|
|
|
47
70
|
class APIResponseValidationError(APIError):
|
|
48
71
|
response: httpx.Response
|
|
@@ -8,6 +8,14 @@ from .chats import (
|
|
|
8
8
|
ChatsResourceWithStreamingResponse,
|
|
9
9
|
AsyncChatsResourceWithStreamingResponse,
|
|
10
10
|
)
|
|
11
|
+
from .polls import (
|
|
12
|
+
PollsResource,
|
|
13
|
+
AsyncPollsResource,
|
|
14
|
+
PollsResourceWithRawResponse,
|
|
15
|
+
AsyncPollsResourceWithRawResponse,
|
|
16
|
+
PollsResourceWithStreamingResponse,
|
|
17
|
+
AsyncPollsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
11
19
|
from .typing import (
|
|
12
20
|
TypingResource,
|
|
13
21
|
AsyncTypingResource,
|
|
@@ -66,6 +74,12 @@ __all__ = [
|
|
|
66
74
|
"AsyncLocationResourceWithRawResponse",
|
|
67
75
|
"LocationResourceWithStreamingResponse",
|
|
68
76
|
"AsyncLocationResourceWithStreamingResponse",
|
|
77
|
+
"PollsResource",
|
|
78
|
+
"AsyncPollsResource",
|
|
79
|
+
"PollsResourceWithRawResponse",
|
|
80
|
+
"AsyncPollsResourceWithRawResponse",
|
|
81
|
+
"PollsResourceWithStreamingResponse",
|
|
82
|
+
"AsyncPollsResourceWithStreamingResponse",
|
|
69
83
|
"ChatsResource",
|
|
70
84
|
"AsyncChatsResource",
|
|
71
85
|
"ChatsResourceWithRawResponse",
|