hellopivot-sdk 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/PKG-INFO +1 -1
  2. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/pyproject.toml +1 -1
  3. hellopivot_sdk-0.1.2/src/hellopivot_sdk/api/blocks/create_block_sharing_rule.py +197 -0
  4. hellopivot_sdk-0.1.2/src/hellopivot_sdk/api/blocks/delete_block_sharing_rule.py +190 -0
  5. hellopivot_sdk-0.1.2/src/hellopivot_sdk/api/blocks/get_sharing_rules_by_block_id.py +176 -0
  6. hellopivot_sdk-0.1.2/src/hellopivot_sdk/api/blocks/update_block_sharing_rule.py +197 -0
  7. hellopivot_sdk-0.1.2/src/hellopivot_sdk/api/users/get_users_by_organization_id.py +190 -0
  8. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/__init__.py +26 -0
  9. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/block_sharing_rule.py +180 -0
  10. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/block_sharing_rule_rule.py +14 -0
  11. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/block_sharing_rule_status.py +10 -0
  12. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/create_block_sharing_rule_content.py +80 -0
  13. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/create_block_sharing_rule_content_rule.py +14 -0
  14. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/create_block_sharing_rule_response.py +76 -0
  15. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/delete_block_sharing_rule_response.py +61 -0
  16. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/get_sharing_rules_by_block_id_response.py +81 -0
  17. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/get_users_by_organization_id_response.py +90 -0
  18. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/rule_subject.py +97 -0
  19. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/update_block_sharing_rule_content.py +80 -0
  20. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/update_block_sharing_rule_content_rule.py +14 -0
  21. hellopivot_sdk-0.1.2/src/hellopivot_sdk/models/update_block_sharing_rule_response.py +76 -0
  22. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/.gitignore +0 -0
  23. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/README.md +0 -0
  24. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/__init__.py +0 -0
  25. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/__init__.py +0 -0
  26. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/__init__.py +0 -0
  27. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/create_block_response_attachment.py +0 -0
  28. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/create_response_for_block.py +0 -0
  29. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/delete_block_response_attachment.py +0 -0
  30. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/delete_response_for_block.py +0 -0
  31. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/get_block_by_id.py +0 -0
  32. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/get_block_responses_by_block_id.py +0 -0
  33. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/send_response_for_block.py +0 -0
  34. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/blocks/update_response_for_block.py +0 -0
  35. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/groups/__init__.py +0 -0
  36. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/groups/create_group_members_by_group_id.py +0 -0
  37. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/groups/delete_group_members_by_group_id.py +0 -0
  38. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/groups/get_group_members_by_group_id.py +0 -0
  39. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/groups/get_groups_by_organization_id.py +0 -0
  40. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/invites/__init__.py +0 -0
  41. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/invites/revoke_invite_by_id.py +0 -0
  42. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/__init__.py +0 -0
  43. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/create_label.py +0 -0
  44. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/delete_label.py +0 -0
  45. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/get_labels_by_organization_id.py +0 -0
  46. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/remove_label_from_space.py +0 -0
  47. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/update_label.py +0 -0
  48. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/labels/update_space_labels.py +0 -0
  49. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/__init__.py +0 -0
  50. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/create_room.py +0 -0
  51. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/create_room_members_by_room_id.py +0 -0
  52. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_message_by_id.py +0 -0
  53. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_messages_by_parent_id.py +0 -0
  54. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_messages_by_room_id.py +0 -0
  55. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_room_by_id.py +0 -0
  56. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_room_messages.py +0 -0
  57. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_room_recording_by_id.py +0 -0
  58. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_room_recordings_by_room_id.py +0 -0
  59. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/get_thread_messages.py +0 -0
  60. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/invite_to_room_by_emails.py +0 -0
  61. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/revoke_room_invite.py +0 -0
  62. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/send_message.py +0 -0
  63. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/rooms/update_room.py +0 -0
  64. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/__init__.py +0 -0
  65. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/add_group_to_space.py +0 -0
  66. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/copy_space.py +0 -0
  67. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/create_space.py +0 -0
  68. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/create_space_members_by_space_id.py +0 -0
  69. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/create_space_role.py +0 -0
  70. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/delete_space_member.py +0 -0
  71. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/get_assignment_blocks_by_space_id.py +0 -0
  72. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/get_room_blocks_by_space_id.py +0 -0
  73. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/get_space_by_id.py +0 -0
  74. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/get_space_members.py +0 -0
  75. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/get_space_roles.py +0 -0
  76. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/get_spaces_by_organization_id.py +0 -0
  77. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/hide_space.py +0 -0
  78. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/invite_to_space_by_emails.py +0 -0
  79. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/revoke_space_invite.py +0 -0
  80. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/update_space.py +0 -0
  81. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/spaces/update_space_member.py +0 -0
  82. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/users/__init__.py +0 -0
  83. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/users/delete_user.py +0 -0
  84. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/users/delete_verified_user_or_remove_from_org.py +0 -0
  85. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/users/get_user_context_by_organization_id.py +0 -0
  86. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/__init__.py +0 -0
  87. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/create_webhook.py +0 -0
  88. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/delete_webhook.py +0 -0
  89. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/get_webhook_logs.py +0 -0
  90. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/get_webhooks_by_organization_id.py +0 -0
  91. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/rotate_webhook_secret.py +0 -0
  92. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/api/webhooks/update_webhook.py +0 -0
  93. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/client.py +0 -0
  94. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/errors.py +0 -0
  95. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/add_group_to_space_content.py +0 -0
  96. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/add_group_to_space_response.py +0 -0
  97. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/asset.py +0 -0
  98. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/asset_type.py +0 -0
  99. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/attachment.py +0 -0
  100. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/attachment_mime_type.py +0 -0
  101. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/attachment_type.py +0 -0
  102. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block.py +0 -0
  103. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_ancestor.py +0 -0
  104. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_ancestor_type.py +0 -0
  105. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_attachment.py +0 -0
  106. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_current_user_access_level.py +0 -0
  107. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_default_layout.py +0 -0
  108. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_organization_sharing_level.py +0 -0
  109. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_public_sharing_level.py +0 -0
  110. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_response.py +0 -0
  111. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_response_attachment.py +0 -0
  112. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_response_reaction.py +0 -0
  113. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_response_status.py +0 -0
  114. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_space_member_sharing_level.py +0 -0
  115. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_template_type.py +0 -0
  116. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/block_type.py +0 -0
  117. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/chapter.py +0 -0
  118. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/copy_space_content.py +0 -0
  119. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/copy_space_response.py +0 -0
  120. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_block_response_attachment_content.py +0 -0
  121. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_block_response_attachment_response.py +0 -0
  122. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_group_members_by_group_id_content.py +0 -0
  123. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_group_members_by_group_id_response.py +0 -0
  124. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_label_content.py +0 -0
  125. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_label_response.py +0 -0
  126. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_response_for_block_content.py +0 -0
  127. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_response_for_block_response.py +0 -0
  128. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_room_content.py +0 -0
  129. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_room_content_room_type.py +0 -0
  130. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_room_members_by_room_id_content.py +0 -0
  131. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_room_members_by_room_id_content_role.py +0 -0
  132. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_room_members_by_room_id_response.py +0 -0
  133. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_room_response.py +0 -0
  134. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_content.py +0 -0
  135. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_content_link_sharing.py +0 -0
  136. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_content_organization_sharing.py +0 -0
  137. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_content_public_sharing.py +0 -0
  138. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_content_type.py +0 -0
  139. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_members_by_space_id_content.py +0 -0
  140. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_members_by_space_id_response.py +0 -0
  141. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_response.py +0 -0
  142. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_role_content.py +0 -0
  143. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_role_content_permissions_item.py +0 -0
  144. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_role_content_type.py +0 -0
  145. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_space_role_response.py +0 -0
  146. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_webhook_content.py +0 -0
  147. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/create_webhook_response.py +0 -0
  148. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/custom_web_view.py +0 -0
  149. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/custom_web_view_open_style.py +0 -0
  150. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/custom_web_view_status.py +0 -0
  151. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_block_response_attachment_response.py +0 -0
  152. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_group_members_by_group_id_response.py +0 -0
  153. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_label_response.py +0 -0
  154. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_response_for_block_response.py +0 -0
  155. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_space_member_response.py +0 -0
  156. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_user_response.py +0 -0
  157. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_verified_user_or_remove_from_org_response.py +0 -0
  158. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/delete_webhook_response.py +0 -0
  159. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_assignment_blocks_by_space_id_response.py +0 -0
  160. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_block_by_id_response.py +0 -0
  161. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_block_responses_by_block_id_response.py +0 -0
  162. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_group_members_by_group_id_response.py +0 -0
  163. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_groups_by_organization_id_response.py +0 -0
  164. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_labels_by_organization_id_response.py +0 -0
  165. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_message_by_id_response.py +0 -0
  166. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_messages_by_parent_id_response.py +0 -0
  167. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_messages_by_room_id_response.py +0 -0
  168. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_room_blocks_by_space_id_response.py +0 -0
  169. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_room_by_id_response.py +0 -0
  170. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_room_messages_response.py +0 -0
  171. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_room_recording_by_id_response.py +0 -0
  172. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_room_recordings_by_room_id_response.py +0 -0
  173. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_space_by_id_response.py +0 -0
  174. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_space_members_response.py +0 -0
  175. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_space_roles_response.py +0 -0
  176. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_spaces_by_organization_id_response.py +0 -0
  177. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_spaces_by_organization_id_sort_by.py +0 -0
  178. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_spaces_by_organization_id_space_types_item.py +0 -0
  179. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_spaces_by_organization_id_status.py +0 -0
  180. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_thread_messages_response.py +0 -0
  181. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_user_context_by_organization_id_response.py +0 -0
  182. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_webhook_logs_response.py +0 -0
  183. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/get_webhooks_by_organization_id_response.py +0 -0
  184. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/google_protobuf_any.py +0 -0
  185. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/group.py +0 -0
  186. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/hide_space_response.py +0 -0
  187. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/invite.py +0 -0
  188. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/invite_to_room_by_emails_content.py +0 -0
  189. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/invite_to_room_by_emails_response.py +0 -0
  190. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/invite_to_space_by_emails_content.py +0 -0
  191. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/invite_to_space_by_emails_response.py +0 -0
  192. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/label.py +0 -0
  193. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/last_seen_info.py +0 -0
  194. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/member_info.py +0 -0
  195. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/member_presence_info.py +0 -0
  196. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/member_presence_info_state.py +0 -0
  197. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/member_view.py +0 -0
  198. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/message.py +0 -0
  199. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/message_status.py +0 -0
  200. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/message_type.py +0 -0
  201. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/persisted_breakout_data.py +0 -0
  202. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/reaction.py +0 -0
  203. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/reaction_emoji.py +0 -0
  204. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/receipt.py +0 -0
  205. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/remove_label_from_space_response.py +0 -0
  206. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/revoke_invite_by_id_response.py +0 -0
  207. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/revoke_room_invite_response.py +0 -0
  208. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/revoke_space_invite_response.py +0 -0
  209. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/rich_content.py +0 -0
  210. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/rich_content_paragraph.py +0 -0
  211. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/rich_content_segment.py +0 -0
  212. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/rich_content_sub_segment.py +0 -0
  213. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room.py +0 -0
  214. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_call_type.py +0 -0
  215. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_info.py +0 -0
  216. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_invitation.py +0 -0
  217. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_invite.py +0 -0
  218. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_invite_role.py +0 -0
  219. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_member.py +0 -0
  220. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_member_role.py +0 -0
  221. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_member_status.py +0 -0
  222. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_recording.py +0 -0
  223. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_recording_recording_type.py +0 -0
  224. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_recording_status.py +0 -0
  225. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_status.py +0 -0
  226. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/room_type.py +0 -0
  227. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/rotate_webhook_secret_response.py +0 -0
  228. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/send_message_content.py +0 -0
  229. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/send_message_response.py +0 -0
  230. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/send_response_for_block_response.py +0 -0
  231. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/sentence.py +0 -0
  232. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space.py +0 -0
  233. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_invite.py +0 -0
  234. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_link_sharing.py +0 -0
  235. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_member.py +0 -0
  236. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_member_status.py +0 -0
  237. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_organization_sharing.py +0 -0
  238. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_public_sharing.py +0 -0
  239. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_role.py +0 -0
  240. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_role_permissions_item.py +0 -0
  241. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_role_type.py +0 -0
  242. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_status.py +0 -0
  243. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_template_type.py +0 -0
  244. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/space_type.py +0 -0
  245. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/status.py +0 -0
  246. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/transcript.py +0 -0
  247. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_label_content.py +0 -0
  248. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_label_response.py +0 -0
  249. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_response_for_block_content.py +0 -0
  250. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_response_for_block_response.py +0 -0
  251. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_room_content.py +0 -0
  252. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_room_content_room_type.py +0 -0
  253. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_room_response.py +0 -0
  254. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_content.py +0 -0
  255. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_content_link_sharing.py +0 -0
  256. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_content_organization_sharing.py +0 -0
  257. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_content_public_sharing.py +0 -0
  258. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_content_type.py +0 -0
  259. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_labels_content.py +0 -0
  260. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_labels_response.py +0 -0
  261. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_member_content.py +0 -0
  262. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_member_content_status.py +0 -0
  263. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_member_response.py +0 -0
  264. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_space_response.py +0 -0
  265. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_webhook_content.py +0 -0
  266. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_webhook_content_status.py +0 -0
  267. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/update_webhook_response.py +0 -0
  268. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/user.py +0 -0
  269. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/user_email.py +0 -0
  270. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/user_status.py +0 -0
  271. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook.py +0 -0
  272. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_filter.py +0 -0
  273. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_log.py +0 -0
  274. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_status.py +0 -0
  275. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_subscription.py +0 -0
  276. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_subscription_input.py +0 -0
  277. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_subscription_input_subject_type.py +0 -0
  278. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_subscription_input_subscription_type.py +0 -0
  279. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_subscription_subject_type.py +0 -0
  280. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/models/webhook_subscription_subscription_type.py +0 -0
  281. {hellopivot_sdk-0.1.1 → hellopivot_sdk-0.1.2}/src/hellopivot_sdk/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hellopivot-sdk
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Official Python SDK for the Pivot REST API
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: attrs>=25.4.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hellopivot-sdk"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Official Python SDK for the Pivot REST API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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_sharing_rule_content import CreateBlockSharingRuleContent
10
+ from ...models.create_block_sharing_rule_response import CreateBlockSharingRuleResponse
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: CreateBlockSharingRuleContent,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+
22
+ _kwargs: dict[str, Any] = {
23
+ "method": "post",
24
+ "url": "/v1/blocks/{block_id}/sharing-rules".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
+ ) -> CreateBlockSharingRuleResponse | Status:
40
+ if response.status_code == 200:
41
+ response_200 = CreateBlockSharingRuleResponse.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[CreateBlockSharingRuleResponse | 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: CreateBlockSharingRuleContent,
79
+ ) -> Response[CreateBlockSharingRuleResponse | Status]:
80
+ """Create block sharing rule
81
+
82
+ Creates a sharing rule for a block.
83
+
84
+ Args:
85
+ block_id (str):
86
+ body (CreateBlockSharingRuleContent):
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[CreateBlockSharingRuleResponse | 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: CreateBlockSharingRuleContent,
113
+ ) -> CreateBlockSharingRuleResponse | Status | None:
114
+ """Create block sharing rule
115
+
116
+ Creates a sharing rule for a block.
117
+
118
+ Args:
119
+ block_id (str):
120
+ body (CreateBlockSharingRuleContent):
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
+ CreateBlockSharingRuleResponse | 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: CreateBlockSharingRuleContent,
142
+ ) -> Response[CreateBlockSharingRuleResponse | Status]:
143
+ """Create block sharing rule
144
+
145
+ Creates a sharing rule for a block.
146
+
147
+ Args:
148
+ block_id (str):
149
+ body (CreateBlockSharingRuleContent):
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[CreateBlockSharingRuleResponse | 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: CreateBlockSharingRuleContent,
174
+ ) -> CreateBlockSharingRuleResponse | Status | None:
175
+ """Create block sharing rule
176
+
177
+ Creates a sharing rule for a block.
178
+
179
+ Args:
180
+ block_id (str):
181
+ body (CreateBlockSharingRuleContent):
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
+ CreateBlockSharingRuleResponse | Status
189
+ """
190
+
191
+ return (
192
+ await asyncio_detailed(
193
+ block_id=block_id,
194
+ client=client,
195
+ body=body,
196
+ )
197
+ ).parsed
@@ -0,0 +1,190 @@
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.delete_block_sharing_rule_response import DeleteBlockSharingRuleResponse
10
+ from ...models.status import Status
11
+ from ...types import UNSET, Response
12
+
13
+
14
+ def _get_kwargs(
15
+ block_id: str,
16
+ sharing_rule_id: str,
17
+ ) -> dict[str, Any]:
18
+
19
+ _kwargs: dict[str, Any] = {
20
+ "method": "delete",
21
+ "url": "/v1/blocks/{block_id}/sharing-rules/{sharing_rule_id}".format(
22
+ block_id=quote(str(block_id), safe=""),
23
+ sharing_rule_id=quote(str(sharing_rule_id), safe=""),
24
+ ),
25
+ }
26
+
27
+ return _kwargs
28
+
29
+
30
+ def _parse_response(
31
+ *, client: AuthenticatedClient | Client, response: httpx.Response
32
+ ) -> DeleteBlockSharingRuleResponse | Status:
33
+ if response.status_code == 200:
34
+ response_200 = DeleteBlockSharingRuleResponse.from_dict(response.json())
35
+
36
+ return response_200
37
+
38
+ if client.raise_on_unexpected_status:
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+ try:
42
+ response_default = Status.from_dict(response.json())
43
+ except ValueError:
44
+ response_default = Status.from_dict({})
45
+
46
+ return response_default
47
+
48
+
49
+ def _safe_http_status(code: int) -> int | HTTPStatus:
50
+ try:
51
+ return HTTPStatus(code)
52
+ except ValueError:
53
+ return code
54
+
55
+
56
+ def _build_response(
57
+ *, client: AuthenticatedClient | Client, response: httpx.Response
58
+ ) -> Response[DeleteBlockSharingRuleResponse | Status]:
59
+ return Response(
60
+ status_code=_safe_http_status(response.status_code),
61
+ content=response.content,
62
+ headers=response.headers,
63
+ parsed=_parse_response(client=client, response=response),
64
+ )
65
+
66
+
67
+ def sync_detailed(
68
+ block_id: str,
69
+ sharing_rule_id: str,
70
+ *,
71
+ client: AuthenticatedClient | Client,
72
+ ) -> Response[DeleteBlockSharingRuleResponse | Status]:
73
+ """Delete block sharing rule
74
+
75
+ Deletes a sharing rule.
76
+
77
+ Args:
78
+ block_id (str):
79
+ sharing_rule_id (str):
80
+
81
+ Raises:
82
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
83
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
84
+
85
+ Returns:
86
+ Response[DeleteBlockSharingRuleResponse | Status]
87
+ """
88
+
89
+ kwargs = _get_kwargs(
90
+ block_id=block_id,
91
+ sharing_rule_id=sharing_rule_id,
92
+ )
93
+
94
+ response = client.get_httpx_client().request(
95
+ **kwargs,
96
+ )
97
+
98
+ return _build_response(client=client, response=response)
99
+
100
+
101
+ def sync(
102
+ block_id: str,
103
+ sharing_rule_id: str,
104
+ *,
105
+ client: AuthenticatedClient | Client,
106
+ ) -> DeleteBlockSharingRuleResponse | Status | None:
107
+ """Delete block sharing rule
108
+
109
+ Deletes a sharing rule.
110
+
111
+ Args:
112
+ block_id (str):
113
+ sharing_rule_id (str):
114
+
115
+ Raises:
116
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
117
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
118
+
119
+ Returns:
120
+ DeleteBlockSharingRuleResponse | Status
121
+ """
122
+
123
+ return sync_detailed(
124
+ block_id=block_id,
125
+ sharing_rule_id=sharing_rule_id,
126
+ client=client,
127
+ ).parsed
128
+
129
+
130
+ async def asyncio_detailed(
131
+ block_id: str,
132
+ sharing_rule_id: str,
133
+ *,
134
+ client: AuthenticatedClient | Client,
135
+ ) -> Response[DeleteBlockSharingRuleResponse | Status]:
136
+ """Delete block sharing rule
137
+
138
+ Deletes a sharing rule.
139
+
140
+ Args:
141
+ block_id (str):
142
+ sharing_rule_id (str):
143
+
144
+ Raises:
145
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
146
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
147
+
148
+ Returns:
149
+ Response[DeleteBlockSharingRuleResponse | Status]
150
+ """
151
+
152
+ kwargs = _get_kwargs(
153
+ block_id=block_id,
154
+ sharing_rule_id=sharing_rule_id,
155
+ )
156
+
157
+ response = await client.get_async_httpx_client().request(**kwargs)
158
+
159
+ return _build_response(client=client, response=response)
160
+
161
+
162
+ async def asyncio(
163
+ block_id: str,
164
+ sharing_rule_id: str,
165
+ *,
166
+ client: AuthenticatedClient | Client,
167
+ ) -> DeleteBlockSharingRuleResponse | Status | None:
168
+ """Delete block sharing rule
169
+
170
+ Deletes a sharing rule.
171
+
172
+ Args:
173
+ block_id (str):
174
+ sharing_rule_id (str):
175
+
176
+ Raises:
177
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
178
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
179
+
180
+ Returns:
181
+ DeleteBlockSharingRuleResponse | Status
182
+ """
183
+
184
+ return (
185
+ await asyncio_detailed(
186
+ block_id=block_id,
187
+ sharing_rule_id=sharing_rule_id,
188
+ client=client,
189
+ )
190
+ ).parsed
@@ -0,0 +1,176 @@
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.get_sharing_rules_by_block_id_response import GetSharingRulesByBlockIdResponse
10
+ from ...models.status import Status
11
+ from ...types import UNSET, Response
12
+
13
+
14
+ def _get_kwargs(
15
+ block_id: str,
16
+ ) -> dict[str, Any]:
17
+
18
+ _kwargs: dict[str, Any] = {
19
+ "method": "get",
20
+ "url": "/v1/blocks/{block_id}/sharing-rules".format(
21
+ block_id=quote(str(block_id), safe=""),
22
+ ),
23
+ }
24
+
25
+ return _kwargs
26
+
27
+
28
+ def _parse_response(
29
+ *, client: AuthenticatedClient | Client, response: httpx.Response
30
+ ) -> GetSharingRulesByBlockIdResponse | Status:
31
+ if response.status_code == 200:
32
+ response_200 = GetSharingRulesByBlockIdResponse.from_dict(response.json())
33
+
34
+ return response_200
35
+
36
+ if client.raise_on_unexpected_status:
37
+ raise errors.UnexpectedStatus(response.status_code, response.content)
38
+
39
+ try:
40
+ response_default = Status.from_dict(response.json())
41
+ except ValueError:
42
+ response_default = Status.from_dict({})
43
+
44
+ return response_default
45
+
46
+
47
+ def _safe_http_status(code: int) -> int | HTTPStatus:
48
+ try:
49
+ return HTTPStatus(code)
50
+ except ValueError:
51
+ return code
52
+
53
+
54
+ def _build_response(
55
+ *, client: AuthenticatedClient | Client, response: httpx.Response
56
+ ) -> Response[GetSharingRulesByBlockIdResponse | Status]:
57
+ return Response(
58
+ status_code=_safe_http_status(response.status_code),
59
+ content=response.content,
60
+ headers=response.headers,
61
+ parsed=_parse_response(client=client, response=response),
62
+ )
63
+
64
+
65
+ def sync_detailed(
66
+ block_id: str,
67
+ *,
68
+ client: AuthenticatedClient | Client,
69
+ ) -> Response[GetSharingRulesByBlockIdResponse | Status]:
70
+ """List block sharing rules
71
+
72
+ Returns sharing rules configured for a block.
73
+
74
+ Args:
75
+ block_id (str):
76
+
77
+ Raises:
78
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
79
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
80
+
81
+ Returns:
82
+ Response[GetSharingRulesByBlockIdResponse | Status]
83
+ """
84
+
85
+ kwargs = _get_kwargs(
86
+ block_id=block_id,
87
+ )
88
+
89
+ response = client.get_httpx_client().request(
90
+ **kwargs,
91
+ )
92
+
93
+ return _build_response(client=client, response=response)
94
+
95
+
96
+ def sync(
97
+ block_id: str,
98
+ *,
99
+ client: AuthenticatedClient | Client,
100
+ ) -> GetSharingRulesByBlockIdResponse | Status | None:
101
+ """List block sharing rules
102
+
103
+ Returns sharing rules configured for a block.
104
+
105
+ Args:
106
+ block_id (str):
107
+
108
+ Raises:
109
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
110
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
111
+
112
+ Returns:
113
+ GetSharingRulesByBlockIdResponse | Status
114
+ """
115
+
116
+ return sync_detailed(
117
+ block_id=block_id,
118
+ client=client,
119
+ ).parsed
120
+
121
+
122
+ async def asyncio_detailed(
123
+ block_id: str,
124
+ *,
125
+ client: AuthenticatedClient | Client,
126
+ ) -> Response[GetSharingRulesByBlockIdResponse | Status]:
127
+ """List block sharing rules
128
+
129
+ Returns sharing rules configured for a block.
130
+
131
+ Args:
132
+ block_id (str):
133
+
134
+ Raises:
135
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
136
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
137
+
138
+ Returns:
139
+ Response[GetSharingRulesByBlockIdResponse | Status]
140
+ """
141
+
142
+ kwargs = _get_kwargs(
143
+ block_id=block_id,
144
+ )
145
+
146
+ response = await client.get_async_httpx_client().request(**kwargs)
147
+
148
+ return _build_response(client=client, response=response)
149
+
150
+
151
+ async def asyncio(
152
+ block_id: str,
153
+ *,
154
+ client: AuthenticatedClient | Client,
155
+ ) -> GetSharingRulesByBlockIdResponse | Status | None:
156
+ """List block sharing rules
157
+
158
+ Returns sharing rules configured for a block.
159
+
160
+ Args:
161
+ block_id (str):
162
+
163
+ Raises:
164
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
165
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
166
+
167
+ Returns:
168
+ GetSharingRulesByBlockIdResponse | Status
169
+ """
170
+
171
+ return (
172
+ await asyncio_detailed(
173
+ block_id=block_id,
174
+ client=client,
175
+ )
176
+ ).parsed