linq-python 0.41.2__tar.gz → 0.42.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.
- linq_python-0.42.0/.release-please-manifest.json +3 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/CHANGELOG.md +7 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/PKG-INFO +1 -1
- {linq_python-0.41.2 → linq_python-0.42.0}/api.md +22 -13
- {linq_python-0.41.2 → linq_python-0.42.0}/pyproject.toml +1 -1
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_version.py +1 -1
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/__init__.py +13 -0
- linq_python-0.42.0/src/linq/types/connection_created_webhook_event.py +212 -0
- linq_python-0.42.0/src/linq/types/connection_revoked_webhook_event.py +212 -0
- linq_python-0.42.0/src/linq/types/location_sharing_started_webhook_event.py +111 -0
- linq_python-0.42.0/src/linq/types/location_sharing_stopped_webhook_event.py +109 -0
- linq_python-0.42.0/src/linq/types/payment_authorized_webhook_event.py +212 -0
- linq_python-0.42.0/src/linq/types/payment_canceled_webhook_event.py +212 -0
- linq_python-0.42.0/src/linq/types/payment_declined_webhook_event.py +212 -0
- linq_python-0.42.0/src/linq/types/payment_expired_webhook_event.py +212 -0
- linq_python-0.42.0/src/linq/types/payment_succeeded_webhook_event.py +212 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/unwrap_webhook_event.py +18 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/uv.lock +1 -1
- linq_python-0.41.2/.release-please-manifest.json +0 -3
- {linq_python-0.41.2 → linq_python-0.42.0}/.gitignore +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/CONTRIBUTING.md +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/LICENSE +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/README.md +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/SECURITY.md +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/bin/check-release-environment +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/bin/publish-pypi +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/examples/.keep +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/release-please-config.json +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/requirements-dev.lock +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_base_client.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_client.py +12 -12
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_compat.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_constants.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_exceptions.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_files.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_models.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_qs.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_resource.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_streaming.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_types.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_compat.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_datetime_parse.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_json.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_logs.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_path.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_proxy.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_reflection.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_resources_proxy.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_streams.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_sync.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_transform.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_typing.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/_utils/_utils.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/lib/.keep +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/pagination.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/py.typed +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/__init__.py +2 -2
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/attachments.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/available_number.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/blocked_handles.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/capability.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/background.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/chats.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/location.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/messages.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/participants.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/polls.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/chats/typing.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/contact_card.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/experiences.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/messages/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/messages/messages.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/messages/poll.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/payment_handles.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/payment_providers.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/payment_requests.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/payments.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/phone_numbers.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/phonenumbers.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/webhook_events.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/webhook_subscriptions.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/resources/webhooks.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/attachment_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/attachment_create_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/attachment_retrieve_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/available_number_retrieve_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/available_number_retrieve_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/blocked_handle_block_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/blocked_handle_block_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/blocked_handle_entry.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/blocked_handle_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/blocked_handle_unblock_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/capability_check_RCS_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/capability_check_i_message_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_background_update_failed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_background_updated_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_create_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_created_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_group_icon_update_failed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_group_icon_updated_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_group_name_update_failed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_group_name_updated_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_leave_chat_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_list_chats_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_send_voicememo_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_send_voicememo_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_typing_indicator_started_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_typing_indicator_stopped_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_update_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chat_update_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/background_set_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/get_chat_location_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/location_request_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/message_list_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/message_send_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/message_send_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/participant_add_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/participant_add_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/participant_remove_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/participant_remove_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/poll.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/poll_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/poll_envelope.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/chats/sent_message.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/contact_card_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/contact_card_received_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/contact_card_retrieve_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/contact_card_retrieve_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/contact_card_update_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/experience_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/experience_retrieve_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/handle_check_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/link_part_param.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/media_part_param.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_add_reaction_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_add_reaction_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_content_param.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_create_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_delivered_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_edited_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_effect.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_effect_param.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_event_v2.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_failed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_list_messages_thread_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_read_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_received_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_sent_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_update_app_card_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_update_app_card_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/message_update_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/messages/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/messages/poll_add_options_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/messages/poll_vote_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/participant_added_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/participant_removed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_credentials_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_handle_connection.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_handle_verify_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_provider.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_provider_connect_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_provider_connect_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_request.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_request_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_request_list_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/payment_request_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/phone_number_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/phone_number_status_updated_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/phone_number_update_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/phone_number_update_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/phonenumber_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_delivered_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_failed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_reaction_added_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_read_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_received_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_sent_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_updated_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_vote_added_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/poll_vote_removed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reaction_added_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reaction_event_base.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reaction_removed_webhook_event.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reply_to.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reply_to_param.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_action_item.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_audit.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_audit_started.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_driver.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_driver_key.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_evidence.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_opt_out_chat.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_report.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/reputation_unhealthy_chat.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/schemas_media_part_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/schemas_message_effect.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/schemas_text_part_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/set_contact_card.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/chat_handle.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/link_part_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/media_part_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/reaction.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/reaction_type.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/service_type.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/text_decoration.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared/text_part_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared_params/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared_params/reaction_type.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared_params/service_type.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/shared_params/text_decoration.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/supported_content_type.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/text_part_param.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_event_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_event_type.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_subscription.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_subscription_create_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_subscription_create_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_subscription_list_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/src/linq/types/webhook_subscription_update_params.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/test_background.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/test_location.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/test_messages.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/test_participants.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/test_polls.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/chats/test_typing.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/messages/__init__.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/messages/test_poll.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_attachments.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_available_number.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_blocked_handles.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_capability.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_chats.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_contact_card.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_experiences.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_messages.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_payment_handles.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_payment_providers.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_payment_requests.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_payments.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_phone_numbers.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_phonenumbers.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_webhook_events.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_webhook_subscriptions.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/api_resources/test_webhooks.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/conftest.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/sample_file.txt +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_client.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_extract_files.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_files.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_models.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_qs.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_required_args.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_response.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_streaming.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_transform.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_utils/test_json.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_utils/test_path.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_utils/test_proxy.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/test_utils/test_typing.py +0 -0
- {linq_python-0.41.2 → linq_python-0.42.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.42.0](https://github.com/linq-team/linq-python/compare/v0.41.2...v0.42.0) (2026-09-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add webhook events for connections, location sharing, and payments ([1ebce1a](https://github.com/linq-team/linq-python/commit/1ebce1a87a0bf9f93559fcfbc250694753bfa01b))
|
|
9
|
+
|
|
3
10
|
## [0.41.2](https://github.com/linq-team/linq-python/compare/v0.41.1...v0.41.2) (2026-09-02)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: linq-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.42.0
|
|
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
|
|
@@ -338,19 +338,6 @@ Methods:
|
|
|
338
338
|
- <code title="get /v3/webhook-subscriptions">client.webhook_subscriptions.<a href="./src/linq/resources/webhook_subscriptions.py">list</a>() -> <a href="./src/linq/types/webhook_subscription_list_response.py">WebhookSubscriptionListResponse</a></code>
|
|
339
339
|
- <code title="delete /v3/webhook-subscriptions/{subscriptionId}">client.webhook_subscriptions.<a href="./src/linq/resources/webhook_subscriptions.py">delete</a>(subscription_id) -> None</code>
|
|
340
340
|
|
|
341
|
-
# Capability
|
|
342
|
-
|
|
343
|
-
Types:
|
|
344
|
-
|
|
345
|
-
```python
|
|
346
|
-
from linq.types import HandleCheck, HandleCheckResponse
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
Methods:
|
|
350
|
-
|
|
351
|
-
- <code title="post /v3/capability/check_imessage">client.capability.<a href="./src/linq/resources/capability.py">check_i_message</a>(\*\*<a href="src/linq/types/capability_check_i_message_params.py">params</a>) -> <a href="./src/linq/types/handle_check_response.py">HandleCheckResponse</a></code>
|
|
352
|
-
- <code title="post /v3/capability/check_rcs">client.capability.<a href="./src/linq/resources/capability.py">check_RCS</a>(\*\*<a href="src/linq/types/capability_check_RCS_params.py">params</a>) -> <a href="./src/linq/types/handle_check_response.py">HandleCheckResponse</a></code>
|
|
353
|
-
|
|
354
341
|
# Webhooks
|
|
355
342
|
|
|
356
343
|
Types:
|
|
@@ -393,10 +380,32 @@ from linq.types import (
|
|
|
393
380
|
ChatBackgroundUpdateFailedWebhookEvent,
|
|
394
381
|
ContactCardReceivedWebhookEvent,
|
|
395
382
|
PhoneNumberStatusUpdatedWebhookEvent,
|
|
383
|
+
ConnectionCreatedWebhookEvent,
|
|
384
|
+
ConnectionRevokedWebhookEvent,
|
|
385
|
+
LocationSharingStartedWebhookEvent,
|
|
386
|
+
LocationSharingStoppedWebhookEvent,
|
|
387
|
+
PaymentAuthorizedWebhookEvent,
|
|
388
|
+
PaymentCanceledWebhookEvent,
|
|
389
|
+
PaymentDeclinedWebhookEvent,
|
|
390
|
+
PaymentExpiredWebhookEvent,
|
|
391
|
+
PaymentSucceededWebhookEvent,
|
|
396
392
|
UnwrapWebhookEvent,
|
|
397
393
|
)
|
|
398
394
|
```
|
|
399
395
|
|
|
396
|
+
# Capability
|
|
397
|
+
|
|
398
|
+
Types:
|
|
399
|
+
|
|
400
|
+
```python
|
|
401
|
+
from linq.types import HandleCheck, HandleCheckResponse
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
Methods:
|
|
405
|
+
|
|
406
|
+
- <code title="post /v3/capability/check_imessage">client.capability.<a href="./src/linq/resources/capability.py">check_i_message</a>(\*\*<a href="src/linq/types/capability_check_i_message_params.py">params</a>) -> <a href="./src/linq/types/handle_check_response.py">HandleCheckResponse</a></code>
|
|
407
|
+
- <code title="post /v3/capability/check_rcs">client.capability.<a href="./src/linq/resources/capability.py">check_RCS</a>(\*\*<a href="src/linq/types/capability_check_RCS_params.py">params</a>) -> <a href="./src/linq/types/handle_check_response.py">HandleCheckResponse</a></code>
|
|
408
|
+
|
|
400
409
|
# ContactCard
|
|
401
410
|
|
|
402
411
|
Types:
|
|
@@ -94,19 +94,26 @@ from .reaction_added_webhook_event import ReactionAddedWebhookEvent as ReactionA
|
|
|
94
94
|
from .blocked_handle_block_response import BlockedHandleBlockResponse as BlockedHandleBlockResponse
|
|
95
95
|
from .blocked_handle_unblock_params import BlockedHandleUnblockParams as BlockedHandleUnblockParams
|
|
96
96
|
from .message_add_reaction_response import MessageAddReactionResponse as MessageAddReactionResponse
|
|
97
|
+
from .payment_expired_webhook_event import PaymentExpiredWebhookEvent as PaymentExpiredWebhookEvent
|
|
97
98
|
from .payment_request_create_params import PaymentRequestCreateParams as PaymentRequestCreateParams
|
|
98
99
|
from .payment_request_list_response import PaymentRequestListResponse as PaymentRequestListResponse
|
|
99
100
|
from .poll_vote_added_webhook_event import PollVoteAddedWebhookEvent as PollVoteAddedWebhookEvent
|
|
100
101
|
from .contact_card_retrieve_response import ContactCardRetrieveResponse as ContactCardRetrieveResponse
|
|
101
102
|
from .message_received_webhook_event import MessageReceivedWebhookEvent as MessageReceivedWebhookEvent
|
|
102
103
|
from .message_update_app_card_params import MessageUpdateAppCardParams as MessageUpdateAppCardParams
|
|
104
|
+
from .payment_canceled_webhook_event import PaymentCanceledWebhookEvent as PaymentCanceledWebhookEvent
|
|
105
|
+
from .payment_declined_webhook_event import PaymentDeclinedWebhookEvent as PaymentDeclinedWebhookEvent
|
|
103
106
|
from .reaction_removed_webhook_event import ReactionRemovedWebhookEvent as ReactionRemovedWebhookEvent
|
|
104
107
|
from .message_delivered_webhook_event import MessageDeliveredWebhookEvent as MessageDeliveredWebhookEvent
|
|
105
108
|
from .participant_added_webhook_event import ParticipantAddedWebhookEvent as ParticipantAddedWebhookEvent
|
|
106
109
|
from .payment_provider_connect_params import PaymentProviderConnectParams as PaymentProviderConnectParams
|
|
110
|
+
from .payment_succeeded_webhook_event import PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent
|
|
107
111
|
from .poll_vote_removed_webhook_event import PollVoteRemovedWebhookEvent as PollVoteRemovedWebhookEvent
|
|
108
112
|
from .available_number_retrieve_params import AvailableNumberRetrieveParams as AvailableNumberRetrieveParams
|
|
113
|
+
from .connection_created_webhook_event import ConnectionCreatedWebhookEvent as ConnectionCreatedWebhookEvent
|
|
114
|
+
from .connection_revoked_webhook_event import ConnectionRevokedWebhookEvent as ConnectionRevokedWebhookEvent
|
|
109
115
|
from .message_update_app_card_response import MessageUpdateAppCardResponse as MessageUpdateAppCardResponse
|
|
116
|
+
from .payment_authorized_webhook_event import PaymentAuthorizedWebhookEvent as PaymentAuthorizedWebhookEvent
|
|
110
117
|
from .capability_check_i_message_params import CapabilityCheckIMessageParams as CapabilityCheckIMessageParams
|
|
111
118
|
from .participant_removed_webhook_event import ParticipantRemovedWebhookEvent as ParticipantRemovedWebhookEvent
|
|
112
119
|
from .payment_provider_connect_response import PaymentProviderConnectResponse as PaymentProviderConnectResponse
|
|
@@ -123,6 +130,12 @@ from .chat_background_updated_webhook_event import (
|
|
|
123
130
|
)
|
|
124
131
|
from .chat_group_icon_updated_webhook_event import ChatGroupIconUpdatedWebhookEvent as ChatGroupIconUpdatedWebhookEvent
|
|
125
132
|
from .chat_group_name_updated_webhook_event import ChatGroupNameUpdatedWebhookEvent as ChatGroupNameUpdatedWebhookEvent
|
|
133
|
+
from .location_sharing_started_webhook_event import (
|
|
134
|
+
LocationSharingStartedWebhookEvent as LocationSharingStartedWebhookEvent,
|
|
135
|
+
)
|
|
136
|
+
from .location_sharing_stopped_webhook_event import (
|
|
137
|
+
LocationSharingStoppedWebhookEvent as LocationSharingStoppedWebhookEvent,
|
|
138
|
+
)
|
|
126
139
|
from .phone_number_status_updated_webhook_event import (
|
|
127
140
|
PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent,
|
|
128
141
|
)
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["ConnectionCreatedWebhookEvent", "Data", "DataDiscount", "DataNatural", "DataStripe"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DataDiscount(BaseModel):
|
|
13
|
+
"""Subscription mode — the discount Stripe applied, read back
|
|
14
|
+
from the coupon.
|
|
15
|
+
|
|
16
|
+
Absent when none was applied.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
coupon: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
label: Optional[str] = None
|
|
22
|
+
"""Name of the coupon/promo code displayed to customers."""
|
|
23
|
+
|
|
24
|
+
promotion_code: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class DataNatural(BaseModel):
|
|
28
|
+
"""Natural-rail join keys, present when `rail: natural`."""
|
|
29
|
+
|
|
30
|
+
payment_request_id: Optional[str] = None
|
|
31
|
+
"""The Natural payment request (`prq_...`)."""
|
|
32
|
+
|
|
33
|
+
transaction_id: Optional[str] = None
|
|
34
|
+
"""The settled transaction (`txn_...`)."""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class DataStripe(BaseModel):
|
|
38
|
+
"""
|
|
39
|
+
Ids of the Stripe objects on your connected account — join
|
|
40
|
+
keys into your own Stripe Dashboard/API. Manage a
|
|
41
|
+
subscription's post-checkout lifecycle with `subscription_id`.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
customer_id: Optional[str] = None
|
|
45
|
+
"""
|
|
46
|
+
The Customer the request is attached to (`cus_...`). Always set in subscription
|
|
47
|
+
mode; set in payment mode only when the request was created with a
|
|
48
|
+
`customer_id`.
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
payment_intent_id: Optional[str] = None
|
|
52
|
+
"""The PaymentIntent collected at checkout (`pi_...`)."""
|
|
53
|
+
|
|
54
|
+
subscription_id: Optional[str] = None
|
|
55
|
+
"""Subscription mode — the Subscription (`sub_...`)."""
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class Data(BaseModel):
|
|
59
|
+
"""
|
|
60
|
+
The payment request, as returned by
|
|
61
|
+
`GET /v3/payment_requests/{paymentRequestId}`.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
id: str
|
|
65
|
+
"""The payment request id."""
|
|
66
|
+
|
|
67
|
+
amount: int
|
|
68
|
+
"""What was charged at checkout, in the currency's minor units.
|
|
69
|
+
|
|
70
|
+
In `subscription` mode this is the first invoice's total — all items after any
|
|
71
|
+
discounts are applied.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
checkout_url: str
|
|
75
|
+
"""
|
|
76
|
+
URL the recipient opens to pay
|
|
77
|
+
(`https://zero.linqapp.com/pay/{slug}?session=...`).
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
created_at: datetime
|
|
81
|
+
|
|
82
|
+
currency: str
|
|
83
|
+
|
|
84
|
+
object: str
|
|
85
|
+
|
|
86
|
+
status: Literal["succeeded", "failed", "canceled", "expired"]
|
|
87
|
+
|
|
88
|
+
description: Optional[str] = None
|
|
89
|
+
|
|
90
|
+
discount: Optional[DataDiscount] = None
|
|
91
|
+
"""Subscription mode — the discount Stripe applied, read back from the coupon.
|
|
92
|
+
|
|
93
|
+
Absent when none was applied.
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
interval: Optional[Literal["day", "week", "month", "year"]] = None
|
|
97
|
+
"""Subscription mode — how often the subscription renews."""
|
|
98
|
+
|
|
99
|
+
interval_count: Optional[int] = None
|
|
100
|
+
"""Subscription mode — intervals per renewal."""
|
|
101
|
+
|
|
102
|
+
metadata: Optional[Dict[str, str]] = None
|
|
103
|
+
|
|
104
|
+
mode: Optional[Literal["payment", "subscription"]] = None
|
|
105
|
+
"""Whether the request collected a one-time charge or started a subscription."""
|
|
106
|
+
|
|
107
|
+
natural: Optional[DataNatural] = None
|
|
108
|
+
"""Natural-rail join keys, present when `rail: natural`."""
|
|
109
|
+
|
|
110
|
+
price_id: Optional[str] = None
|
|
111
|
+
"""Subscription mode — the recurring price subscribed to."""
|
|
112
|
+
|
|
113
|
+
quantity: Optional[int] = None
|
|
114
|
+
"""Subscription mode — units of the price subscribed to."""
|
|
115
|
+
|
|
116
|
+
rail: Optional[Literal["stripe", "natural"]] = None
|
|
117
|
+
"""The rail this request settled on."""
|
|
118
|
+
|
|
119
|
+
stripe: Optional[DataStripe] = None
|
|
120
|
+
"""
|
|
121
|
+
Ids of the Stripe objects on your connected account — join keys into your own
|
|
122
|
+
Stripe Dashboard/API. Manage a subscription's post-checkout lifecycle with
|
|
123
|
+
`subscription_id`.
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
trial_end: Optional[datetime] = None
|
|
127
|
+
"""Subscription mode — when the free trial ends and the first charge happens.
|
|
128
|
+
|
|
129
|
+
On a trial request, `payment.succeeded` means the payment method was collected
|
|
130
|
+
($0 moved).
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
updated_at: Optional[datetime] = None
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class ConnectionCreatedWebhookEvent(BaseModel):
|
|
137
|
+
api_version: str
|
|
138
|
+
"""API version for the webhook payload format"""
|
|
139
|
+
|
|
140
|
+
created_at: datetime
|
|
141
|
+
"""When the event was created"""
|
|
142
|
+
|
|
143
|
+
data: Data
|
|
144
|
+
"""
|
|
145
|
+
The payment request, as returned by
|
|
146
|
+
`GET /v3/payment_requests/{paymentRequestId}`.
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
event_id: str
|
|
150
|
+
"""Unique identifier for this event (for deduplication)"""
|
|
151
|
+
|
|
152
|
+
event_type: Literal[
|
|
153
|
+
"payment.succeeded",
|
|
154
|
+
"payment.canceled",
|
|
155
|
+
"payment.expired",
|
|
156
|
+
"message.sent",
|
|
157
|
+
"message.received",
|
|
158
|
+
"message.read",
|
|
159
|
+
"message.delivered",
|
|
160
|
+
"message.failed",
|
|
161
|
+
"message.edited",
|
|
162
|
+
"reaction.added",
|
|
163
|
+
"reaction.removed",
|
|
164
|
+
"poll.received",
|
|
165
|
+
"poll.failed",
|
|
166
|
+
"poll.sent",
|
|
167
|
+
"poll.delivered",
|
|
168
|
+
"poll.read",
|
|
169
|
+
"poll.updated",
|
|
170
|
+
"poll.vote.added",
|
|
171
|
+
"poll.vote.removed",
|
|
172
|
+
"poll.reaction.added",
|
|
173
|
+
"participant.added",
|
|
174
|
+
"participant.removed",
|
|
175
|
+
"chat.created",
|
|
176
|
+
"chat.group_name_updated",
|
|
177
|
+
"chat.group_icon_updated",
|
|
178
|
+
"chat.group_name_update_failed",
|
|
179
|
+
"chat.group_icon_update_failed",
|
|
180
|
+
"chat.background_updated",
|
|
181
|
+
"chat.background_update_failed",
|
|
182
|
+
"chat.typing_indicator.started",
|
|
183
|
+
"chat.typing_indicator.stopped",
|
|
184
|
+
"phone_number.status_updated",
|
|
185
|
+
"contact_card.received",
|
|
186
|
+
"call.initiated",
|
|
187
|
+
"call.ringing",
|
|
188
|
+
"call.answered",
|
|
189
|
+
"call.ended",
|
|
190
|
+
"call.failed",
|
|
191
|
+
"call.declined",
|
|
192
|
+
"call.no_answer",
|
|
193
|
+
"location.sharing.started",
|
|
194
|
+
"location.sharing.stopped",
|
|
195
|
+
"payment.declined",
|
|
196
|
+
"payment.authorized",
|
|
197
|
+
"connection.created",
|
|
198
|
+
"connection.revoked",
|
|
199
|
+
]
|
|
200
|
+
|
|
201
|
+
partner_id: str
|
|
202
|
+
"""Partner identifier. Present on all webhooks for cross-referencing."""
|
|
203
|
+
|
|
204
|
+
trace_id: str
|
|
205
|
+
"""Trace ID for debugging and correlation across systems."""
|
|
206
|
+
|
|
207
|
+
webhook_version: str
|
|
208
|
+
"""
|
|
209
|
+
Date-based webhook payload version. Determined by the `?version=` query
|
|
210
|
+
parameter in your webhook subscription URL. If no version parameter is
|
|
211
|
+
specified, defaults based on subscription creation date.
|
|
212
|
+
"""
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["ConnectionRevokedWebhookEvent", "Data", "DataDiscount", "DataNatural", "DataStripe"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DataDiscount(BaseModel):
|
|
13
|
+
"""Subscription mode — the discount Stripe applied, read back
|
|
14
|
+
from the coupon.
|
|
15
|
+
|
|
16
|
+
Absent when none was applied.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
coupon: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
label: Optional[str] = None
|
|
22
|
+
"""Name of the coupon/promo code displayed to customers."""
|
|
23
|
+
|
|
24
|
+
promotion_code: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class DataNatural(BaseModel):
|
|
28
|
+
"""Natural-rail join keys, present when `rail: natural`."""
|
|
29
|
+
|
|
30
|
+
payment_request_id: Optional[str] = None
|
|
31
|
+
"""The Natural payment request (`prq_...`)."""
|
|
32
|
+
|
|
33
|
+
transaction_id: Optional[str] = None
|
|
34
|
+
"""The settled transaction (`txn_...`)."""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class DataStripe(BaseModel):
|
|
38
|
+
"""
|
|
39
|
+
Ids of the Stripe objects on your connected account — join
|
|
40
|
+
keys into your own Stripe Dashboard/API. Manage a
|
|
41
|
+
subscription's post-checkout lifecycle with `subscription_id`.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
customer_id: Optional[str] = None
|
|
45
|
+
"""
|
|
46
|
+
The Customer the request is attached to (`cus_...`). Always set in subscription
|
|
47
|
+
mode; set in payment mode only when the request was created with a
|
|
48
|
+
`customer_id`.
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
payment_intent_id: Optional[str] = None
|
|
52
|
+
"""The PaymentIntent collected at checkout (`pi_...`)."""
|
|
53
|
+
|
|
54
|
+
subscription_id: Optional[str] = None
|
|
55
|
+
"""Subscription mode — the Subscription (`sub_...`)."""
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class Data(BaseModel):
|
|
59
|
+
"""
|
|
60
|
+
The payment request, as returned by
|
|
61
|
+
`GET /v3/payment_requests/{paymentRequestId}`.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
id: str
|
|
65
|
+
"""The payment request id."""
|
|
66
|
+
|
|
67
|
+
amount: int
|
|
68
|
+
"""What was charged at checkout, in the currency's minor units.
|
|
69
|
+
|
|
70
|
+
In `subscription` mode this is the first invoice's total — all items after any
|
|
71
|
+
discounts are applied.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
checkout_url: str
|
|
75
|
+
"""
|
|
76
|
+
URL the recipient opens to pay
|
|
77
|
+
(`https://zero.linqapp.com/pay/{slug}?session=...`).
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
created_at: datetime
|
|
81
|
+
|
|
82
|
+
currency: str
|
|
83
|
+
|
|
84
|
+
object: str
|
|
85
|
+
|
|
86
|
+
status: Literal["succeeded", "failed", "canceled", "expired"]
|
|
87
|
+
|
|
88
|
+
description: Optional[str] = None
|
|
89
|
+
|
|
90
|
+
discount: Optional[DataDiscount] = None
|
|
91
|
+
"""Subscription mode — the discount Stripe applied, read back from the coupon.
|
|
92
|
+
|
|
93
|
+
Absent when none was applied.
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
interval: Optional[Literal["day", "week", "month", "year"]] = None
|
|
97
|
+
"""Subscription mode — how often the subscription renews."""
|
|
98
|
+
|
|
99
|
+
interval_count: Optional[int] = None
|
|
100
|
+
"""Subscription mode — intervals per renewal."""
|
|
101
|
+
|
|
102
|
+
metadata: Optional[Dict[str, str]] = None
|
|
103
|
+
|
|
104
|
+
mode: Optional[Literal["payment", "subscription"]] = None
|
|
105
|
+
"""Whether the request collected a one-time charge or started a subscription."""
|
|
106
|
+
|
|
107
|
+
natural: Optional[DataNatural] = None
|
|
108
|
+
"""Natural-rail join keys, present when `rail: natural`."""
|
|
109
|
+
|
|
110
|
+
price_id: Optional[str] = None
|
|
111
|
+
"""Subscription mode — the recurring price subscribed to."""
|
|
112
|
+
|
|
113
|
+
quantity: Optional[int] = None
|
|
114
|
+
"""Subscription mode — units of the price subscribed to."""
|
|
115
|
+
|
|
116
|
+
rail: Optional[Literal["stripe", "natural"]] = None
|
|
117
|
+
"""The rail this request settled on."""
|
|
118
|
+
|
|
119
|
+
stripe: Optional[DataStripe] = None
|
|
120
|
+
"""
|
|
121
|
+
Ids of the Stripe objects on your connected account — join keys into your own
|
|
122
|
+
Stripe Dashboard/API. Manage a subscription's post-checkout lifecycle with
|
|
123
|
+
`subscription_id`.
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
trial_end: Optional[datetime] = None
|
|
127
|
+
"""Subscription mode — when the free trial ends and the first charge happens.
|
|
128
|
+
|
|
129
|
+
On a trial request, `payment.succeeded` means the payment method was collected
|
|
130
|
+
($0 moved).
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
updated_at: Optional[datetime] = None
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class ConnectionRevokedWebhookEvent(BaseModel):
|
|
137
|
+
api_version: str
|
|
138
|
+
"""API version for the webhook payload format"""
|
|
139
|
+
|
|
140
|
+
created_at: datetime
|
|
141
|
+
"""When the event was created"""
|
|
142
|
+
|
|
143
|
+
data: Data
|
|
144
|
+
"""
|
|
145
|
+
The payment request, as returned by
|
|
146
|
+
`GET /v3/payment_requests/{paymentRequestId}`.
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
event_id: str
|
|
150
|
+
"""Unique identifier for this event (for deduplication)"""
|
|
151
|
+
|
|
152
|
+
event_type: Literal[
|
|
153
|
+
"payment.succeeded",
|
|
154
|
+
"payment.canceled",
|
|
155
|
+
"payment.expired",
|
|
156
|
+
"message.sent",
|
|
157
|
+
"message.received",
|
|
158
|
+
"message.read",
|
|
159
|
+
"message.delivered",
|
|
160
|
+
"message.failed",
|
|
161
|
+
"message.edited",
|
|
162
|
+
"reaction.added",
|
|
163
|
+
"reaction.removed",
|
|
164
|
+
"poll.received",
|
|
165
|
+
"poll.failed",
|
|
166
|
+
"poll.sent",
|
|
167
|
+
"poll.delivered",
|
|
168
|
+
"poll.read",
|
|
169
|
+
"poll.updated",
|
|
170
|
+
"poll.vote.added",
|
|
171
|
+
"poll.vote.removed",
|
|
172
|
+
"poll.reaction.added",
|
|
173
|
+
"participant.added",
|
|
174
|
+
"participant.removed",
|
|
175
|
+
"chat.created",
|
|
176
|
+
"chat.group_name_updated",
|
|
177
|
+
"chat.group_icon_updated",
|
|
178
|
+
"chat.group_name_update_failed",
|
|
179
|
+
"chat.group_icon_update_failed",
|
|
180
|
+
"chat.background_updated",
|
|
181
|
+
"chat.background_update_failed",
|
|
182
|
+
"chat.typing_indicator.started",
|
|
183
|
+
"chat.typing_indicator.stopped",
|
|
184
|
+
"phone_number.status_updated",
|
|
185
|
+
"contact_card.received",
|
|
186
|
+
"call.initiated",
|
|
187
|
+
"call.ringing",
|
|
188
|
+
"call.answered",
|
|
189
|
+
"call.ended",
|
|
190
|
+
"call.failed",
|
|
191
|
+
"call.declined",
|
|
192
|
+
"call.no_answer",
|
|
193
|
+
"location.sharing.started",
|
|
194
|
+
"location.sharing.stopped",
|
|
195
|
+
"payment.declined",
|
|
196
|
+
"payment.authorized",
|
|
197
|
+
"connection.created",
|
|
198
|
+
"connection.revoked",
|
|
199
|
+
]
|
|
200
|
+
|
|
201
|
+
partner_id: str
|
|
202
|
+
"""Partner identifier. Present on all webhooks for cross-referencing."""
|
|
203
|
+
|
|
204
|
+
trace_id: str
|
|
205
|
+
"""Trace ID for debugging and correlation across systems."""
|
|
206
|
+
|
|
207
|
+
webhook_version: str
|
|
208
|
+
"""
|
|
209
|
+
Date-based webhook payload version. Determined by the `?version=` query
|
|
210
|
+
parameter in your webhook subscription URL. If no version parameter is
|
|
211
|
+
specified, defaults based on subscription creation date.
|
|
212
|
+
"""
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["LocationSharingStartedWebhookEvent", "Data"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Data(BaseModel):
|
|
13
|
+
began_at: Optional[datetime] = None
|
|
14
|
+
"""When location sharing started.
|
|
15
|
+
|
|
16
|
+
Always present: falls back to when the share was first observed if the device
|
|
17
|
+
reported no start time.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
chat_id: Optional[str] = None
|
|
21
|
+
"""The chat this share was first sent to.
|
|
22
|
+
|
|
23
|
+
Location sharing is per-contact rather than per-chat, so the location may also
|
|
24
|
+
be visible in other chats with the same handle; this identifies where the share
|
|
25
|
+
originated and does not change if the contact later shares into another chat.
|
|
26
|
+
Null when the originating chat could not be determined.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
ends_at: Optional[datetime] = None
|
|
30
|
+
"""When location sharing will expire. Null when sharing indefinitely."""
|
|
31
|
+
|
|
32
|
+
shared_by: str
|
|
33
|
+
"""Phone number of the person sharing their location"""
|
|
34
|
+
|
|
35
|
+
shared_with: str
|
|
36
|
+
"""Your phone number receiving the location"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class LocationSharingStartedWebhookEvent(BaseModel):
|
|
40
|
+
api_version: str
|
|
41
|
+
"""API version for the webhook payload format"""
|
|
42
|
+
|
|
43
|
+
created_at: datetime
|
|
44
|
+
"""When the event was created"""
|
|
45
|
+
|
|
46
|
+
data: Data
|
|
47
|
+
|
|
48
|
+
event_id: str
|
|
49
|
+
"""Unique identifier for this event (for deduplication)"""
|
|
50
|
+
|
|
51
|
+
event_type: Literal[
|
|
52
|
+
"location.sharing.started",
|
|
53
|
+
"message.sent",
|
|
54
|
+
"message.received",
|
|
55
|
+
"message.read",
|
|
56
|
+
"message.delivered",
|
|
57
|
+
"message.failed",
|
|
58
|
+
"message.edited",
|
|
59
|
+
"reaction.added",
|
|
60
|
+
"reaction.removed",
|
|
61
|
+
"poll.received",
|
|
62
|
+
"poll.failed",
|
|
63
|
+
"poll.sent",
|
|
64
|
+
"poll.delivered",
|
|
65
|
+
"poll.read",
|
|
66
|
+
"poll.updated",
|
|
67
|
+
"poll.vote.added",
|
|
68
|
+
"poll.vote.removed",
|
|
69
|
+
"poll.reaction.added",
|
|
70
|
+
"participant.added",
|
|
71
|
+
"participant.removed",
|
|
72
|
+
"chat.created",
|
|
73
|
+
"chat.group_name_updated",
|
|
74
|
+
"chat.group_icon_updated",
|
|
75
|
+
"chat.group_name_update_failed",
|
|
76
|
+
"chat.group_icon_update_failed",
|
|
77
|
+
"chat.background_updated",
|
|
78
|
+
"chat.background_update_failed",
|
|
79
|
+
"chat.typing_indicator.started",
|
|
80
|
+
"chat.typing_indicator.stopped",
|
|
81
|
+
"phone_number.status_updated",
|
|
82
|
+
"contact_card.received",
|
|
83
|
+
"call.initiated",
|
|
84
|
+
"call.ringing",
|
|
85
|
+
"call.answered",
|
|
86
|
+
"call.ended",
|
|
87
|
+
"call.failed",
|
|
88
|
+
"call.declined",
|
|
89
|
+
"call.no_answer",
|
|
90
|
+
"location.sharing.stopped",
|
|
91
|
+
"payment.succeeded",
|
|
92
|
+
"payment.canceled",
|
|
93
|
+
"payment.expired",
|
|
94
|
+
"payment.declined",
|
|
95
|
+
"payment.authorized",
|
|
96
|
+
"connection.created",
|
|
97
|
+
"connection.revoked",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
partner_id: str
|
|
101
|
+
"""Partner identifier. Present on all webhooks for cross-referencing."""
|
|
102
|
+
|
|
103
|
+
trace_id: str
|
|
104
|
+
"""Trace ID for debugging and correlation across systems."""
|
|
105
|
+
|
|
106
|
+
webhook_version: str
|
|
107
|
+
"""
|
|
108
|
+
Date-based webhook payload version. Determined by the `?version=` query
|
|
109
|
+
parameter in your webhook subscription URL. If no version parameter is
|
|
110
|
+
specified, defaults based on subscription creation date.
|
|
111
|
+
"""
|