hellopivot-sdk 0.1.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.
- hellopivot_sdk-0.1.0/.gitignore +6 -0
- hellopivot_sdk-0.1.0/PKG-INFO +71 -0
- hellopivot_sdk-0.1.0/README.md +61 -0
- hellopivot_sdk-0.1.0/pyproject.toml +44 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/__init__.py +8 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/create_block_response_attachment.py +197 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/create_response_for_block.py +197 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/delete_block_response_attachment.py +176 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/delete_response_for_block.py +176 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/get_block_by_id.py +174 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/get_block_responses_by_block_id.py +176 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/send_response_for_block.py +179 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/blocks/update_response_for_block.py +197 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/groups/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/groups/create_group_members_by_group_id.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/groups/delete_group_members_by_group_id.py +215 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/groups/get_group_members_by_group_id.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/groups/get_groups_by_organization_id.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/invites/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/invites/revoke_invite_by_id.py +204 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/create_label.py +195 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/delete_label.py +174 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/get_labels_by_organization_id.py +176 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/remove_label_from_space.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/update_label.py +195 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/labels/update_space_labels.py +197 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/create_room_members_by_room_id.py +197 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_message_by_id.py +247 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_messages_by_parent_id.py +230 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_messages_by_room_id.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_room_active_participants.py +176 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_room_by_id.py +174 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_room_messages.py +236 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_room_recording_by_id.py +214 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_room_recordings_by_room_id.py +232 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/get_thread_messages.py +250 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/invite_to_room_by_emails.py +197 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/rooms/revoke_room_invite.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/add_group_to_space.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/copy_space.py +209 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/create_space.py +195 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/create_space_members_by_space_id.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/create_space_role.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/delete_space_member.py +204 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/get_assignment_blocks_by_space_id.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/get_room_blocks_by_space_id.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/get_space_by_id.py +188 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/get_space_members.py +204 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/get_space_roles.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/get_spaces_by_organization_id.py +248 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/hide_space.py +188 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/invite_to_space_by_emails.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/revoke_space_invite.py +204 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/update_space.py +209 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/spaces/update_space_member.py +225 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/users/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/users/delete_user.py +192 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/users/delete_verified_user_or_remove_from_org.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/users/get_user_context_by_organization_id.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/__init__.py +1 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/create_webhook.py +201 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/delete_webhook.py +190 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/get_webhook_logs.py +226 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/get_webhooks_by_organization_id.py +176 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/rotate_webhook_secret.py +180 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/api/webhooks/update_webhook.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/client.py +244 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/errors.py +16 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/__init__.py +359 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/add_group_to_space_content.py +71 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/add_group_to_space_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/asset.py +138 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/asset_type.py +9 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/attachment.py +156 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/attachment_mime_type.py +14 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/attachment_type.py +12 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block.py +644 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_ancestor.py +78 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_ancestor_type.py +12 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_attachment.py +106 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_current_user_access_level.py +14 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_default_layout.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_organization_sharing_level.py +14 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_public_sharing_level.py +14 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_response.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_response_attachment.py +115 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_response_reaction.py +90 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_response_status.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_space_member_sharing_level.py +14 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_template_type.py +12 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/block_type.py +50 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/chapter.py +97 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/copy_space_content.py +63 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/copy_space_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_block_response_attachment_content.py +63 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_block_response_attachment_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_group_members_by_group_id_content.py +63 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_group_members_by_group_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_label_content.py +71 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_label_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_response_for_block_content.py +80 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_response_for_block_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_room_members_by_room_id_content.py +72 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_room_members_by_room_id_content_role.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_room_members_by_room_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_content.py +211 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_content_link_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_content_organization_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_content_public_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_content_type.py +15 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_members_by_space_id_content.py +79 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_members_by_space_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_role_content.py +97 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_role_content_permissions_item.py +19 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_role_content_type.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_space_role_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_webhook_content.py +104 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/create_webhook_response.py +86 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/custom_web_view.py +181 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/custom_web_view_open_style.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/custom_web_view_status.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_block_response_attachment_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_group_members_by_group_id_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_label_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_response_for_block_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_space_member_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_user_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_verified_user_or_remove_from_org_response.py +85 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/delete_webhook_response.py +62 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_assignment_blocks_by_space_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_block_by_id_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_block_responses_by_block_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_group_members_by_group_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_groups_by_organization_id_response.py +90 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_labels_by_organization_id_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_message_by_id_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_messages_by_parent_id_response.py +99 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_messages_by_room_id_response.py +90 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_room_active_participants_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_room_blocks_by_space_id_response.py +105 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_room_by_id_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_room_messages_response.py +136 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_room_recording_by_id_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_room_recordings_by_room_id_response.py +117 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_space_by_id_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_space_members_response.py +90 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_space_roles_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_spaces_by_organization_id_response.py +90 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_spaces_by_organization_id_sort_by.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_spaces_by_organization_id_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_thread_messages_response.py +121 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_user_context_by_organization_id_response.py +124 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_webhook_logs_response.py +91 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/get_webhooks_by_organization_id_response.py +82 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/google_protobuf_any.py +62 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/group.py +178 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/hide_space_response.py +61 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/invite.py +79 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/invite_to_room_by_emails_content.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/invite_to_room_by_emails_response.py +81 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/invite_to_space_by_emails_content.py +79 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/invite_to_space_by_emails_response.py +92 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/label.py +140 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/last_seen_info.py +79 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/member_info.py +88 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/member_presence_info.py +114 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/member_presence_info_state.py +12 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/member_view.py +88 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/message.py +399 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/message_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/message_type.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/persisted_breakout_data.py +72 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/reaction.py +103 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/reaction_emoji.py +63 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/receipt.py +79 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/remove_label_from_space_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/revoke_invite_by_id_response.py +85 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/revoke_room_invite_response.py +85 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/revoke_space_invite_response.py +85 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/rich_content.py +126 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/rich_content_paragraph.py +180 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/rich_content_segment.py +279 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/rich_content_sub_segment.py +270 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room.py +374 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_call_type.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_info.py +88 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_invitation.py +131 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_invite.py +72 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_invite_role.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_member.py +165 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_member_role.py +12 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_member_stats.py +79 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_member_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_recording.py +230 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_recording_recording_type.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_recording_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/room_type.py +14 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/rotate_webhook_secret_response.py +62 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/send_response_for_block_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/sentence.py +88 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space.py +529 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_invite.py +94 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_link_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_member.py +231 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_member_status.py +15 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_organization_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_public_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_role.py +161 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_role_permissions_item.py +19 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_role_type.py +10 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_status.py +12 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_template_type.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/space_type.py +15 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/status.py +106 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/transcript.py +150 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_label_content.py +70 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_label_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_response_for_block_content.py +71 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_response_for_block_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_content.py +239 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_content_link_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_content_organization_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_content_public_sharing.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_content_type.py +15 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_labels_content.py +63 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_labels_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_member_content.py +89 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_member_content_status.py +15 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_member_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_space_response.py +76 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_webhook_content.py +126 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_webhook_content_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/update_webhook_response.py +77 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/user.py +281 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/user_email.py +120 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/user_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook.py +195 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_filter.py +66 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_log.py +151 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_status.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_subscription.py +120 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_subscription_input.py +105 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_subscription_input_subject_type.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_subscription_input_subscription_type.py +16 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_subscription_subject_type.py +11 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/models/webhook_subscription_subscription_type.py +16 -0
- hellopivot_sdk-0.1.0/src/hellopivot_sdk/types.py +54 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hellopivot-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python SDK for the Pivot REST API
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
Requires-Dist: attrs>=25.4.0
|
|
7
|
+
Requires-Dist: httpx<0.29.0,>=0.28.1
|
|
8
|
+
Requires-Dist: python-dateutil<3.0.0,>=2.9.0.post0
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# hellopivot-sdk
|
|
12
|
+
|
|
13
|
+
Official Python SDK for the Pivot REST API.
|
|
14
|
+
|
|
15
|
+
This SDK is generated from `apps/rest/openapi.yaml` with
|
|
16
|
+
[`openapi-python-client`](https://github.com/openapi-generators/openapi-python-client).
|
|
17
|
+
To keep hardcoded code to a minimum, nearly all request/response models and endpoint
|
|
18
|
+
functions are generated code.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install hellopivot-sdk
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick start
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import os
|
|
30
|
+
|
|
31
|
+
from hellopivot_sdk import AuthenticatedClient
|
|
32
|
+
from hellopivot_sdk.api.spaces import get_spaces_by_organization_id
|
|
33
|
+
|
|
34
|
+
client = AuthenticatedClient(
|
|
35
|
+
base_url="https://api.pivot.app",
|
|
36
|
+
token=os.environ["PIVOT_API_KEY"],
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
with client as authenticated_client:
|
|
40
|
+
response = get_spaces_by_organization_id.sync(
|
|
41
|
+
organization_id="your-org-id",
|
|
42
|
+
offset=0,
|
|
43
|
+
client=authenticated_client,
|
|
44
|
+
)
|
|
45
|
+
print(response)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Development
|
|
49
|
+
|
|
50
|
+
This project uses [uv](https://docs.astral.sh/uv/) for dependency management and
|
|
51
|
+
packaging.
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
cd libs/pivot-python-sdk
|
|
55
|
+
uv sync --group dev
|
|
56
|
+
uv run --group dev python scripts/codegen.py
|
|
57
|
+
uv run --group dev ruff check --select I .
|
|
58
|
+
uv run --group dev pytest
|
|
59
|
+
uv build
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Regenerating from OpenAPI
|
|
63
|
+
|
|
64
|
+
Run this any time `apps/rest/openapi.yaml` changes:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pnpm nx codegen pivot-python-sdk
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Generated files live in `libs/pivot-python-sdk/src/hellopivot_sdk/`.
|
|
71
|
+
Do not edit generated files manually.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# hellopivot-sdk
|
|
2
|
+
|
|
3
|
+
Official Python SDK for the Pivot REST API.
|
|
4
|
+
|
|
5
|
+
This SDK is generated from `apps/rest/openapi.yaml` with
|
|
6
|
+
[`openapi-python-client`](https://github.com/openapi-generators/openapi-python-client).
|
|
7
|
+
To keep hardcoded code to a minimum, nearly all request/response models and endpoint
|
|
8
|
+
functions are generated code.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pip install hellopivot-sdk
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Quick start
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
import os
|
|
20
|
+
|
|
21
|
+
from hellopivot_sdk import AuthenticatedClient
|
|
22
|
+
from hellopivot_sdk.api.spaces import get_spaces_by_organization_id
|
|
23
|
+
|
|
24
|
+
client = AuthenticatedClient(
|
|
25
|
+
base_url="https://api.pivot.app",
|
|
26
|
+
token=os.environ["PIVOT_API_KEY"],
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
with client as authenticated_client:
|
|
30
|
+
response = get_spaces_by_organization_id.sync(
|
|
31
|
+
organization_id="your-org-id",
|
|
32
|
+
offset=0,
|
|
33
|
+
client=authenticated_client,
|
|
34
|
+
)
|
|
35
|
+
print(response)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
This project uses [uv](https://docs.astral.sh/uv/) for dependency management and
|
|
41
|
+
packaging.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
cd libs/pivot-python-sdk
|
|
45
|
+
uv sync --group dev
|
|
46
|
+
uv run --group dev python scripts/codegen.py
|
|
47
|
+
uv run --group dev ruff check --select I .
|
|
48
|
+
uv run --group dev pytest
|
|
49
|
+
uv build
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Regenerating from OpenAPI
|
|
53
|
+
|
|
54
|
+
Run this any time `apps/rest/openapi.yaml` changes:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm nx codegen pivot-python-sdk
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Generated files live in `libs/pivot-python-sdk/src/hellopivot_sdk/`.
|
|
61
|
+
Do not edit generated files manually.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "hellopivot-sdk"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Official Python SDK for the Pivot REST API"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"attrs>=25.4.0",
|
|
9
|
+
"httpx>=0.28.1,<0.29.0",
|
|
10
|
+
"python-dateutil>=2.9.0.post0,<3.0.0",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
[dependency-groups]
|
|
14
|
+
dev = [
|
|
15
|
+
"openapi-python-client>=0.28.1",
|
|
16
|
+
"pytest>=8.4.2",
|
|
17
|
+
"pyyaml>=6.0.3",
|
|
18
|
+
"ruff>=0.15.0",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[build-system]
|
|
22
|
+
requires = ["hatchling>=1.27.0"]
|
|
23
|
+
build-backend = "hatchling.build"
|
|
24
|
+
|
|
25
|
+
[tool.hatch.build.targets.wheel]
|
|
26
|
+
packages = ["src/hellopivot_sdk"]
|
|
27
|
+
|
|
28
|
+
[tool.hatch.build.targets.sdist]
|
|
29
|
+
include = [
|
|
30
|
+
"/README.md",
|
|
31
|
+
"/pyproject.toml",
|
|
32
|
+
"/src/hellopivot_sdk",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[tool.pytest.ini_options]
|
|
36
|
+
pythonpath = ["src"]
|
|
37
|
+
testpaths = ["tests"]
|
|
38
|
+
|
|
39
|
+
[tool.ruff]
|
|
40
|
+
line-length = 120
|
|
41
|
+
target-version = "py310"
|
|
42
|
+
|
|
43
|
+
[tool.ruff.lint]
|
|
44
|
+
select = ["I"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, cast
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.create_block_response_attachment_content import CreateBlockResponseAttachmentContent
|
|
10
|
+
from ...models.create_block_response_attachment_response import CreateBlockResponseAttachmentResponse
|
|
11
|
+
from ...models.status import Status
|
|
12
|
+
from ...types import UNSET, Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
response_id: str,
|
|
17
|
+
*,
|
|
18
|
+
body: CreateBlockResponseAttachmentContent,
|
|
19
|
+
) -> dict[str, Any]:
|
|
20
|
+
headers: dict[str, Any] = {}
|
|
21
|
+
|
|
22
|
+
_kwargs: dict[str, Any] = {
|
|
23
|
+
"method": "post",
|
|
24
|
+
"url": "/v1/blocks/responses/{response_id}/attachments".format(
|
|
25
|
+
response_id=quote(str(response_id), safe=""),
|
|
26
|
+
),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_kwargs["json"] = body.to_dict()
|
|
30
|
+
|
|
31
|
+
headers["Content-Type"] = "application/json"
|
|
32
|
+
|
|
33
|
+
_kwargs["headers"] = headers
|
|
34
|
+
return _kwargs
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
39
|
+
) -> CreateBlockResponseAttachmentResponse | Status:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = CreateBlockResponseAttachmentResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_200
|
|
44
|
+
|
|
45
|
+
if client.raise_on_unexpected_status:
|
|
46
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
+
|
|
48
|
+
try:
|
|
49
|
+
response_default = Status.from_dict(response.json())
|
|
50
|
+
except ValueError:
|
|
51
|
+
response_default = Status.from_dict({})
|
|
52
|
+
|
|
53
|
+
return response_default
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _safe_http_status(code: int) -> int | HTTPStatus:
|
|
57
|
+
try:
|
|
58
|
+
return HTTPStatus(code)
|
|
59
|
+
except ValueError:
|
|
60
|
+
return code
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _build_response(
|
|
64
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
65
|
+
) -> Response[CreateBlockResponseAttachmentResponse | Status]:
|
|
66
|
+
return Response(
|
|
67
|
+
status_code=_safe_http_status(response.status_code),
|
|
68
|
+
content=response.content,
|
|
69
|
+
headers=response.headers,
|
|
70
|
+
parsed=_parse_response(client=client, response=response),
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def sync_detailed(
|
|
75
|
+
response_id: str,
|
|
76
|
+
*,
|
|
77
|
+
client: AuthenticatedClient | Client,
|
|
78
|
+
body: CreateBlockResponseAttachmentContent,
|
|
79
|
+
) -> Response[CreateBlockResponseAttachmentResponse | Status]:
|
|
80
|
+
"""Create an attachment for a block response
|
|
81
|
+
|
|
82
|
+
Adds a file to a block response.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
response_id (str):
|
|
86
|
+
body (CreateBlockResponseAttachmentContent):
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
Response[CreateBlockResponseAttachmentResponse | Status]
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
kwargs = _get_kwargs(
|
|
97
|
+
response_id=response_id,
|
|
98
|
+
body=body,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
response = client.get_httpx_client().request(
|
|
102
|
+
**kwargs,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
return _build_response(client=client, response=response)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def sync(
|
|
109
|
+
response_id: str,
|
|
110
|
+
*,
|
|
111
|
+
client: AuthenticatedClient | Client,
|
|
112
|
+
body: CreateBlockResponseAttachmentContent,
|
|
113
|
+
) -> CreateBlockResponseAttachmentResponse | Status | None:
|
|
114
|
+
"""Create an attachment for a block response
|
|
115
|
+
|
|
116
|
+
Adds a file to a block response.
|
|
117
|
+
|
|
118
|
+
Args:
|
|
119
|
+
response_id (str):
|
|
120
|
+
body (CreateBlockResponseAttachmentContent):
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
CreateBlockResponseAttachmentResponse | Status
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
return sync_detailed(
|
|
131
|
+
response_id=response_id,
|
|
132
|
+
client=client,
|
|
133
|
+
body=body,
|
|
134
|
+
).parsed
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def asyncio_detailed(
|
|
138
|
+
response_id: str,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient | Client,
|
|
141
|
+
body: CreateBlockResponseAttachmentContent,
|
|
142
|
+
) -> Response[CreateBlockResponseAttachmentResponse | Status]:
|
|
143
|
+
"""Create an attachment for a block response
|
|
144
|
+
|
|
145
|
+
Adds a file to a block response.
|
|
146
|
+
|
|
147
|
+
Args:
|
|
148
|
+
response_id (str):
|
|
149
|
+
body (CreateBlockResponseAttachmentContent):
|
|
150
|
+
|
|
151
|
+
Raises:
|
|
152
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
153
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
154
|
+
|
|
155
|
+
Returns:
|
|
156
|
+
Response[CreateBlockResponseAttachmentResponse | Status]
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
kwargs = _get_kwargs(
|
|
160
|
+
response_id=response_id,
|
|
161
|
+
body=body,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
165
|
+
|
|
166
|
+
return _build_response(client=client, response=response)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
async def asyncio(
|
|
170
|
+
response_id: str,
|
|
171
|
+
*,
|
|
172
|
+
client: AuthenticatedClient | Client,
|
|
173
|
+
body: CreateBlockResponseAttachmentContent,
|
|
174
|
+
) -> CreateBlockResponseAttachmentResponse | Status | None:
|
|
175
|
+
"""Create an attachment for a block response
|
|
176
|
+
|
|
177
|
+
Adds a file to a block response.
|
|
178
|
+
|
|
179
|
+
Args:
|
|
180
|
+
response_id (str):
|
|
181
|
+
body (CreateBlockResponseAttachmentContent):
|
|
182
|
+
|
|
183
|
+
Raises:
|
|
184
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
185
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
186
|
+
|
|
187
|
+
Returns:
|
|
188
|
+
CreateBlockResponseAttachmentResponse | Status
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
return (
|
|
192
|
+
await asyncio_detailed(
|
|
193
|
+
response_id=response_id,
|
|
194
|
+
client=client,
|
|
195
|
+
body=body,
|
|
196
|
+
)
|
|
197
|
+
).parsed
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, cast
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.create_response_for_block_content import CreateResponseForBlockContent
|
|
10
|
+
from ...models.create_response_for_block_response import CreateResponseForBlockResponse
|
|
11
|
+
from ...models.status import Status
|
|
12
|
+
from ...types import UNSET, Response
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
block_id: str,
|
|
17
|
+
*,
|
|
18
|
+
body: CreateResponseForBlockContent,
|
|
19
|
+
) -> dict[str, Any]:
|
|
20
|
+
headers: dict[str, Any] = {}
|
|
21
|
+
|
|
22
|
+
_kwargs: dict[str, Any] = {
|
|
23
|
+
"method": "post",
|
|
24
|
+
"url": "/v1/blocks/{block_id}/responses".format(
|
|
25
|
+
block_id=quote(str(block_id), safe=""),
|
|
26
|
+
),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_kwargs["json"] = body.to_dict()
|
|
30
|
+
|
|
31
|
+
headers["Content-Type"] = "application/json"
|
|
32
|
+
|
|
33
|
+
_kwargs["headers"] = headers
|
|
34
|
+
return _kwargs
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
39
|
+
) -> CreateResponseForBlockResponse | Status:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = CreateResponseForBlockResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_200
|
|
44
|
+
|
|
45
|
+
if client.raise_on_unexpected_status:
|
|
46
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
+
|
|
48
|
+
try:
|
|
49
|
+
response_default = Status.from_dict(response.json())
|
|
50
|
+
except ValueError:
|
|
51
|
+
response_default = Status.from_dict({})
|
|
52
|
+
|
|
53
|
+
return response_default
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _safe_http_status(code: int) -> int | HTTPStatus:
|
|
57
|
+
try:
|
|
58
|
+
return HTTPStatus(code)
|
|
59
|
+
except ValueError:
|
|
60
|
+
return code
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _build_response(
|
|
64
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
65
|
+
) -> Response[CreateResponseForBlockResponse | Status]:
|
|
66
|
+
return Response(
|
|
67
|
+
status_code=_safe_http_status(response.status_code),
|
|
68
|
+
content=response.content,
|
|
69
|
+
headers=response.headers,
|
|
70
|
+
parsed=_parse_response(client=client, response=response),
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def sync_detailed(
|
|
75
|
+
block_id: str,
|
|
76
|
+
*,
|
|
77
|
+
client: AuthenticatedClient | Client,
|
|
78
|
+
body: CreateResponseForBlockContent,
|
|
79
|
+
) -> Response[CreateResponseForBlockResponse | Status]:
|
|
80
|
+
"""Create block response
|
|
81
|
+
|
|
82
|
+
Creates a new response for a block.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
block_id (str):
|
|
86
|
+
body (CreateResponseForBlockContent):
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
Response[CreateResponseForBlockResponse | Status]
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
kwargs = _get_kwargs(
|
|
97
|
+
block_id=block_id,
|
|
98
|
+
body=body,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
response = client.get_httpx_client().request(
|
|
102
|
+
**kwargs,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
return _build_response(client=client, response=response)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def sync(
|
|
109
|
+
block_id: str,
|
|
110
|
+
*,
|
|
111
|
+
client: AuthenticatedClient | Client,
|
|
112
|
+
body: CreateResponseForBlockContent,
|
|
113
|
+
) -> CreateResponseForBlockResponse | Status | None:
|
|
114
|
+
"""Create block response
|
|
115
|
+
|
|
116
|
+
Creates a new response for a block.
|
|
117
|
+
|
|
118
|
+
Args:
|
|
119
|
+
block_id (str):
|
|
120
|
+
body (CreateResponseForBlockContent):
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
CreateResponseForBlockResponse | Status
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
return sync_detailed(
|
|
131
|
+
block_id=block_id,
|
|
132
|
+
client=client,
|
|
133
|
+
body=body,
|
|
134
|
+
).parsed
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def asyncio_detailed(
|
|
138
|
+
block_id: str,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient | Client,
|
|
141
|
+
body: CreateResponseForBlockContent,
|
|
142
|
+
) -> Response[CreateResponseForBlockResponse | Status]:
|
|
143
|
+
"""Create block response
|
|
144
|
+
|
|
145
|
+
Creates a new response for a block.
|
|
146
|
+
|
|
147
|
+
Args:
|
|
148
|
+
block_id (str):
|
|
149
|
+
body (CreateResponseForBlockContent):
|
|
150
|
+
|
|
151
|
+
Raises:
|
|
152
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
153
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
154
|
+
|
|
155
|
+
Returns:
|
|
156
|
+
Response[CreateResponseForBlockResponse | Status]
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
kwargs = _get_kwargs(
|
|
160
|
+
block_id=block_id,
|
|
161
|
+
body=body,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
165
|
+
|
|
166
|
+
return _build_response(client=client, response=response)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
async def asyncio(
|
|
170
|
+
block_id: str,
|
|
171
|
+
*,
|
|
172
|
+
client: AuthenticatedClient | Client,
|
|
173
|
+
body: CreateResponseForBlockContent,
|
|
174
|
+
) -> CreateResponseForBlockResponse | Status | None:
|
|
175
|
+
"""Create block response
|
|
176
|
+
|
|
177
|
+
Creates a new response for a block.
|
|
178
|
+
|
|
179
|
+
Args:
|
|
180
|
+
block_id (str):
|
|
181
|
+
body (CreateResponseForBlockContent):
|
|
182
|
+
|
|
183
|
+
Raises:
|
|
184
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
185
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
186
|
+
|
|
187
|
+
Returns:
|
|
188
|
+
CreateResponseForBlockResponse | Status
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
return (
|
|
192
|
+
await asyncio_detailed(
|
|
193
|
+
block_id=block_id,
|
|
194
|
+
client=client,
|
|
195
|
+
body=body,
|
|
196
|
+
)
|
|
197
|
+
).parsed
|