anchorbrowser 0.6.0__tar.gz → 0.6.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 (197) hide show
  1. anchorbrowser-0.6.2/.release-please-manifest.json +3 -0
  2. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/CHANGELOG.md +13 -0
  3. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/PKG-INFO +1 -1
  4. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/pyproject.toml +1 -1
  5. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_base_client.py +134 -11
  6. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_client.py +9 -1
  7. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_models.py +16 -1
  8. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_types.py +9 -0
  9. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_version.py +1 -1
  10. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/task.py +16 -0
  11. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/task_run_params.py +6 -0
  12. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_client.py +185 -2
  13. anchorbrowser-0.6.0/.release-please-manifest.json +0 -3
  14. anchorbrowser-0.6.0/src/anchorbrowser/resources/task/run.py +0 -217
  15. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/.gitignore +0 -0
  16. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/CONTRIBUTING.md +0 -0
  17. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/LICENSE +0 -0
  18. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/README.md +0 -0
  19. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/SECURITY.md +0 -0
  20. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/api.md +0 -0
  21. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/bin/check-release-environment +0 -0
  22. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/bin/publish-pypi +0 -0
  23. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/examples/.keep +0 -0
  24. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/noxfile.py +0 -0
  25. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/release-please-config.json +0 -0
  26. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/requirements-dev.lock +0 -0
  27. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/requirements.lock +0 -0
  28. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/__init__.py +0 -0
  29. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_compat.py +0 -0
  30. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_constants.py +0 -0
  31. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_exceptions.py +0 -0
  32. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_files.py +0 -0
  33. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_qs.py +0 -0
  34. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_resource.py +0 -0
  35. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_response.py +0 -0
  36. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_streaming.py +0 -0
  37. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/__init__.py +0 -0
  38. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_compat.py +0 -0
  39. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_datetime_parse.py +0 -0
  40. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_logs.py +0 -0
  41. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_proxy.py +0 -0
  42. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_reflection.py +0 -0
  43. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_resources_proxy.py +0 -0
  44. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_streams.py +0 -0
  45. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_sync.py +0 -0
  46. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_transform.py +0 -0
  47. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_typing.py +0 -0
  48. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/_utils/_utils.py +0 -0
  49. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/lib/.keep +0 -0
  50. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/lib/agent.py +0 -0
  51. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/lib/browser.py +0 -0
  52. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/py.typed +0 -0
  53. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/__init__.py +0 -0
  54. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/agent.py +0 -0
  55. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/applications/__init__.py +0 -0
  56. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/applications/applications.py +0 -0
  57. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/applications/auth_flows.py +0 -0
  58. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/browser.py +0 -0
  59. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/events.py +0 -0
  60. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/extensions.py +0 -0
  61. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/identities.py +0 -0
  62. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/profiles.py +0 -0
  63. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/__init__.py +0 -0
  64. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/agent/__init__.py +0 -0
  65. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/agent/agent.py +0 -0
  66. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/agent/files.py +0 -0
  67. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/all.py +0 -0
  68. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/clipboard.py +0 -0
  69. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/keyboard.py +0 -0
  70. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/mouse.py +0 -0
  71. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/recordings/__init__.py +0 -0
  72. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/recordings/primary.py +0 -0
  73. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/recordings/recordings.py +0 -0
  74. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/sessions/sessions.py +0 -0
  75. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/resources/tools.py +0 -0
  76. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/__init__.py +0 -0
  77. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_create_identity_token_params.py +0 -0
  78. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_create_identity_token_response.py +0 -0
  79. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_create_params.py +0 -0
  80. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_create_response.py +0 -0
  81. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_delete_response.py +0 -0
  82. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_list_identities_params.py +0 -0
  83. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_list_identities_response.py +0 -0
  84. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_list_params.py +0 -0
  85. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_list_response.py +0 -0
  86. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/application_retrieve_response.py +0 -0
  87. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/__init__.py +0 -0
  88. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/auth_flow_create_params.py +0 -0
  89. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/auth_flow_create_response.py +0 -0
  90. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/auth_flow_delete_response.py +0 -0
  91. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/auth_flow_list_response.py +0 -0
  92. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/auth_flow_update_params.py +0 -0
  93. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/applications/auth_flow_update_response.py +0 -0
  94. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/event_signal_params.py +0 -0
  95. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/event_wait_for_params.py +0 -0
  96. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/event_wait_for_response.py +0 -0
  97. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/extension_delete_response.py +0 -0
  98. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/extension_list_response.py +0 -0
  99. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/extension_manifest.py +0 -0
  100. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/extension_retrieve_response.py +0 -0
  101. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/extension_upload_params.py +0 -0
  102. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/extension_upload_response.py +0 -0
  103. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_create_params.py +0 -0
  104. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_create_response.py +0 -0
  105. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_delete_response.py +0 -0
  106. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_retrieve_credentials_response.py +0 -0
  107. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_retrieve_response.py +0 -0
  108. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_update_params.py +0 -0
  109. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/identity_update_response.py +0 -0
  110. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/profile_create_params.py +0 -0
  111. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/profile_list_response.py +0 -0
  112. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/profile_retrieve_response.py +0 -0
  113. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_copy_response.py +0 -0
  114. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_create_params.py +0 -0
  115. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_create_response.py +0 -0
  116. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_drag_and_drop_params.py +0 -0
  117. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_drag_and_drop_response.py +0 -0
  118. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_goto_params.py +0 -0
  119. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_goto_response.py +0 -0
  120. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_list_pages_response.py +0 -0
  121. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_paste_params.py +0 -0
  122. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_paste_response.py +0 -0
  123. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_retrieve_downloads_response.py +0 -0
  124. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_retrieve_response.py +0 -0
  125. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_scroll_params.py +0 -0
  126. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_scroll_response.py +0 -0
  127. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_upload_file_params.py +0 -0
  128. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/session_upload_file_response.py +0 -0
  129. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/__init__.py +0 -0
  130. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/agent/__init__.py +0 -0
  131. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/agent/file_list_response.py +0 -0
  132. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/agent/file_upload_params.py +0 -0
  133. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/agent/file_upload_response.py +0 -0
  134. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/all_status_response.py +0 -0
  135. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/clipboard_get_response.py +0 -0
  136. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/clipboard_set_params.py +0 -0
  137. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/clipboard_set_response.py +0 -0
  138. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/keyboard_shortcut_params.py +0 -0
  139. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/keyboard_shortcut_response.py +0 -0
  140. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/keyboard_type_params.py +0 -0
  141. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/keyboard_type_response.py +0 -0
  142. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/mouse_click_params.py +0 -0
  143. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/mouse_click_response.py +0 -0
  144. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/mouse_double_click_params.py +0 -0
  145. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/mouse_double_click_response.py +0 -0
  146. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/mouse_move_params.py +0 -0
  147. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/mouse_move_response.py +0 -0
  148. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/recording_list_response.py +0 -0
  149. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/recording_pause_response.py +0 -0
  150. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/recording_resume_response.py +0 -0
  151. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/sessions/recordings/__init__.py +0 -0
  152. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/shared/__init__.py +0 -0
  153. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/shared/success_response.py +0 -0
  154. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/task_create_params.py +0 -0
  155. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/task_create_response.py +0 -0
  156. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/task_list_params.py +0 -0
  157. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/task_list_response.py +0 -0
  158. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/task_run_response.py +0 -0
  159. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/tool_fetch_webpage_params.py +0 -0
  160. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/tool_fetch_webpage_response.py +0 -0
  161. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/tool_perform_web_task_params.py +0 -0
  162. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/tool_perform_web_task_response.py +0 -0
  163. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/src/anchorbrowser/types/tool_screenshot_webpage_params.py +0 -0
  164. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/__init__.py +0 -0
  165. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/__init__.py +0 -0
  166. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/__init__.py +0 -0
  167. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/agent/test_files.py +0 -0
  168. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/recordings/__init__.py +0 -0
  169. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/recordings/test_primary.py +0 -0
  170. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/test_agent.py +0 -0
  171. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/test_all.py +0 -0
  172. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/test_clipboard.py +0 -0
  173. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/test_keyboard.py +0 -0
  174. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/test_mouse.py +0 -0
  175. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/sessions/test_recordings.py +0 -0
  176. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_events.py +0 -0
  177. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_extensions.py +0 -0
  178. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_identities.py +0 -0
  179. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_profiles.py +0 -0
  180. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_sessions.py +0 -0
  181. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_task.py +0 -0
  182. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/api_resources/test_tools.py +0 -0
  183. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/conftest.py +0 -0
  184. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/sample_file.txt +0 -0
  185. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_deepcopy.py +0 -0
  186. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_extract_files.py +0 -0
  187. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_files.py +0 -0
  188. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_models.py +0 -0
  189. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_qs.py +0 -0
  190. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_required_args.py +0 -0
  191. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_response.py +0 -0
  192. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_streaming.py +0 -0
  193. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_transform.py +0 -0
  194. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_utils/test_datetime_parse.py +0 -0
  195. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_utils/test_proxy.py +0 -0
  196. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/test_utils/test_typing.py +0 -0
  197. {anchorbrowser-0.6.0 → anchorbrowser-0.6.2}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.6.2"
3
+ }
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.2 (2026-01-14)
4
+
5
+ Full Changelog: [v0.6.1...v0.6.2](https://github.com/anchorbrowser/AnchorBrowser-SDK-Python/compare/v0.6.1...v0.6.2)
6
+
7
+ ### Features
8
+
9
+ * added cleanup session ([028df9f](https://github.com/anchorbrowser/AnchorBrowser-SDK-Python/commit/028df9f2a5c709db205c75a3bf525e599deda75f))
10
+ * **client:** add support for binary request streaming ([d496f05](https://github.com/anchorbrowser/AnchorBrowser-SDK-Python/commit/d496f05331dc564dfa14cf68e7ed3fefbb9d204e))
11
+
12
+ ## 0.6.1 (2026-01-05)
13
+
14
+ Full Changelog: [v0.6.0...v0.6.1](https://github.com/anchorbrowser/AnchorBrowser-SDK-Python/compare/v0.6.0...v0.6.1)
15
+
3
16
  ## 0.6.0 (2026-01-05)
4
17
 
5
18
  Full Changelog: [v0.5.4...v0.6.0](https://github.com/anchorbrowser/AnchorBrowser-SDK-Python/compare/v0.5.4...v0.6.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anchorbrowser
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: The official Python library for the anchorbrowser API
5
5
  Project-URL: Homepage, https://github.com/anchorbrowser/AnchorBrowser-SDK-Python
6
6
  Project-URL: Repository, https://github.com/anchorbrowser/AnchorBrowser-SDK-Python
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "anchorbrowser"
3
- version = "0.6.0"
3
+ version = "0.6.2"
4
4
  description = "The official Python library for the anchorbrowser API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -9,6 +9,7 @@ import asyncio
9
9
  import inspect
10
10
  import logging
11
11
  import platform
12
+ import warnings
12
13
  import email.utils
13
14
  from types import TracebackType
14
15
  from random import random
@@ -51,9 +52,11 @@ from ._types import (
51
52
  ResponseT,
52
53
  AnyMapping,
53
54
  PostParser,
55
+ BinaryTypes,
54
56
  RequestFiles,
55
57
  HttpxSendArgs,
56
58
  RequestOptions,
59
+ AsyncBinaryTypes,
57
60
  HttpxRequestFiles,
58
61
  ModelBuilderProtocol,
59
62
  not_given,
@@ -477,8 +480,19 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
477
480
  retries_taken: int = 0,
478
481
  ) -> httpx.Request:
479
482
  if log.isEnabledFor(logging.DEBUG):
480
- log.debug("Request options: %s", model_dump(options, exclude_unset=True))
481
-
483
+ log.debug(
484
+ "Request options: %s",
485
+ model_dump(
486
+ options,
487
+ exclude_unset=True,
488
+ # Pydantic v1 can't dump every type we support in content, so we exclude it for now.
489
+ exclude={
490
+ "content",
491
+ }
492
+ if PYDANTIC_V1
493
+ else {},
494
+ ),
495
+ )
482
496
  kwargs: dict[str, Any] = {}
483
497
 
484
498
  json_data = options.json_data
@@ -532,7 +546,13 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
532
546
  is_body_allowed = options.method.lower() != "get"
533
547
 
534
548
  if is_body_allowed:
535
- if isinstance(json_data, bytes):
549
+ if options.content is not None and json_data is not None:
550
+ raise TypeError("Passing both `content` and `json_data` is not supported")
551
+ if options.content is not None and files is not None:
552
+ raise TypeError("Passing both `content` and `files` is not supported")
553
+ if options.content is not None:
554
+ kwargs["content"] = options.content
555
+ elif isinstance(json_data, bytes):
536
556
  kwargs["content"] = json_data
537
557
  else:
538
558
  kwargs["json"] = json_data if is_given(json_data) else None
@@ -1194,6 +1214,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1194
1214
  *,
1195
1215
  cast_to: Type[ResponseT],
1196
1216
  body: Body | None = None,
1217
+ content: BinaryTypes | None = None,
1197
1218
  options: RequestOptions = {},
1198
1219
  files: RequestFiles | None = None,
1199
1220
  stream: Literal[False] = False,
@@ -1206,6 +1227,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1206
1227
  *,
1207
1228
  cast_to: Type[ResponseT],
1208
1229
  body: Body | None = None,
1230
+ content: BinaryTypes | None = None,
1209
1231
  options: RequestOptions = {},
1210
1232
  files: RequestFiles | None = None,
1211
1233
  stream: Literal[True],
@@ -1219,6 +1241,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1219
1241
  *,
1220
1242
  cast_to: Type[ResponseT],
1221
1243
  body: Body | None = None,
1244
+ content: BinaryTypes | None = None,
1222
1245
  options: RequestOptions = {},
1223
1246
  files: RequestFiles | None = None,
1224
1247
  stream: bool,
@@ -1231,13 +1254,25 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1231
1254
  *,
1232
1255
  cast_to: Type[ResponseT],
1233
1256
  body: Body | None = None,
1257
+ content: BinaryTypes | None = None,
1234
1258
  options: RequestOptions = {},
1235
1259
  files: RequestFiles | None = None,
1236
1260
  stream: bool = False,
1237
1261
  stream_cls: type[_StreamT] | None = None,
1238
1262
  ) -> ResponseT | _StreamT:
1263
+ if body is not None and content is not None:
1264
+ raise TypeError("Passing both `body` and `content` is not supported")
1265
+ if files is not None and content is not None:
1266
+ raise TypeError("Passing both `files` and `content` is not supported")
1267
+ if isinstance(body, bytes):
1268
+ warnings.warn(
1269
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1270
+ "Please pass raw bytes via the `content` parameter instead.",
1271
+ DeprecationWarning,
1272
+ stacklevel=2,
1273
+ )
1239
1274
  opts = FinalRequestOptions.construct(
1240
- method="post", url=path, json_data=body, files=to_httpx_files(files), **options
1275
+ method="post", url=path, json_data=body, content=content, files=to_httpx_files(files), **options
1241
1276
  )
1242
1277
  return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
1243
1278
 
@@ -1247,11 +1282,23 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1247
1282
  *,
1248
1283
  cast_to: Type[ResponseT],
1249
1284
  body: Body | None = None,
1285
+ content: BinaryTypes | None = None,
1250
1286
  files: RequestFiles | None = None,
1251
1287
  options: RequestOptions = {},
1252
1288
  ) -> ResponseT:
1289
+ if body is not None and content is not None:
1290
+ raise TypeError("Passing both `body` and `content` is not supported")
1291
+ if files is not None and content is not None:
1292
+ raise TypeError("Passing both `files` and `content` is not supported")
1293
+ if isinstance(body, bytes):
1294
+ warnings.warn(
1295
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1296
+ "Please pass raw bytes via the `content` parameter instead.",
1297
+ DeprecationWarning,
1298
+ stacklevel=2,
1299
+ )
1253
1300
  opts = FinalRequestOptions.construct(
1254
- method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1301
+ method="patch", url=path, json_data=body, content=content, files=to_httpx_files(files), **options
1255
1302
  )
1256
1303
  return self.request(cast_to, opts)
1257
1304
 
@@ -1261,11 +1308,23 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1261
1308
  *,
1262
1309
  cast_to: Type[ResponseT],
1263
1310
  body: Body | None = None,
1311
+ content: BinaryTypes | None = None,
1264
1312
  files: RequestFiles | None = None,
1265
1313
  options: RequestOptions = {},
1266
1314
  ) -> ResponseT:
1315
+ if body is not None and content is not None:
1316
+ raise TypeError("Passing both `body` and `content` is not supported")
1317
+ if files is not None and content is not None:
1318
+ raise TypeError("Passing both `files` and `content` is not supported")
1319
+ if isinstance(body, bytes):
1320
+ warnings.warn(
1321
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1322
+ "Please pass raw bytes via the `content` parameter instead.",
1323
+ DeprecationWarning,
1324
+ stacklevel=2,
1325
+ )
1267
1326
  opts = FinalRequestOptions.construct(
1268
- method="put", url=path, json_data=body, files=to_httpx_files(files), **options
1327
+ method="put", url=path, json_data=body, content=content, files=to_httpx_files(files), **options
1269
1328
  )
1270
1329
  return self.request(cast_to, opts)
1271
1330
 
@@ -1275,9 +1334,19 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1275
1334
  *,
1276
1335
  cast_to: Type[ResponseT],
1277
1336
  body: Body | None = None,
1337
+ content: BinaryTypes | None = None,
1278
1338
  options: RequestOptions = {},
1279
1339
  ) -> ResponseT:
1280
- opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, **options)
1340
+ if body is not None and content is not None:
1341
+ raise TypeError("Passing both `body` and `content` is not supported")
1342
+ if isinstance(body, bytes):
1343
+ warnings.warn(
1344
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1345
+ "Please pass raw bytes via the `content` parameter instead.",
1346
+ DeprecationWarning,
1347
+ stacklevel=2,
1348
+ )
1349
+ opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, content=content, **options)
1281
1350
  return self.request(cast_to, opts)
1282
1351
 
1283
1352
  def get_api_list(
@@ -1717,6 +1786,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1717
1786
  *,
1718
1787
  cast_to: Type[ResponseT],
1719
1788
  body: Body | None = None,
1789
+ content: AsyncBinaryTypes | None = None,
1720
1790
  files: RequestFiles | None = None,
1721
1791
  options: RequestOptions = {},
1722
1792
  stream: Literal[False] = False,
@@ -1729,6 +1799,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1729
1799
  *,
1730
1800
  cast_to: Type[ResponseT],
1731
1801
  body: Body | None = None,
1802
+ content: AsyncBinaryTypes | None = None,
1732
1803
  files: RequestFiles | None = None,
1733
1804
  options: RequestOptions = {},
1734
1805
  stream: Literal[True],
@@ -1742,6 +1813,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1742
1813
  *,
1743
1814
  cast_to: Type[ResponseT],
1744
1815
  body: Body | None = None,
1816
+ content: AsyncBinaryTypes | None = None,
1745
1817
  files: RequestFiles | None = None,
1746
1818
  options: RequestOptions = {},
1747
1819
  stream: bool,
@@ -1754,13 +1826,25 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1754
1826
  *,
1755
1827
  cast_to: Type[ResponseT],
1756
1828
  body: Body | None = None,
1829
+ content: AsyncBinaryTypes | None = None,
1757
1830
  files: RequestFiles | None = None,
1758
1831
  options: RequestOptions = {},
1759
1832
  stream: bool = False,
1760
1833
  stream_cls: type[_AsyncStreamT] | None = None,
1761
1834
  ) -> ResponseT | _AsyncStreamT:
1835
+ if body is not None and content is not None:
1836
+ raise TypeError("Passing both `body` and `content` is not supported")
1837
+ if files is not None and content is not None:
1838
+ raise TypeError("Passing both `files` and `content` is not supported")
1839
+ if isinstance(body, bytes):
1840
+ warnings.warn(
1841
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1842
+ "Please pass raw bytes via the `content` parameter instead.",
1843
+ DeprecationWarning,
1844
+ stacklevel=2,
1845
+ )
1762
1846
  opts = FinalRequestOptions.construct(
1763
- method="post", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1847
+ method="post", url=path, json_data=body, content=content, files=await async_to_httpx_files(files), **options
1764
1848
  )
1765
1849
  return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
1766
1850
 
@@ -1770,11 +1854,28 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1770
1854
  *,
1771
1855
  cast_to: Type[ResponseT],
1772
1856
  body: Body | None = None,
1857
+ content: AsyncBinaryTypes | None = None,
1773
1858
  files: RequestFiles | None = None,
1774
1859
  options: RequestOptions = {},
1775
1860
  ) -> ResponseT:
1861
+ if body is not None and content is not None:
1862
+ raise TypeError("Passing both `body` and `content` is not supported")
1863
+ if files is not None and content is not None:
1864
+ raise TypeError("Passing both `files` and `content` is not supported")
1865
+ if isinstance(body, bytes):
1866
+ warnings.warn(
1867
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1868
+ "Please pass raw bytes via the `content` parameter instead.",
1869
+ DeprecationWarning,
1870
+ stacklevel=2,
1871
+ )
1776
1872
  opts = FinalRequestOptions.construct(
1777
- method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1873
+ method="patch",
1874
+ url=path,
1875
+ json_data=body,
1876
+ content=content,
1877
+ files=await async_to_httpx_files(files),
1878
+ **options,
1778
1879
  )
1779
1880
  return await self.request(cast_to, opts)
1780
1881
 
@@ -1784,11 +1885,23 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1784
1885
  *,
1785
1886
  cast_to: Type[ResponseT],
1786
1887
  body: Body | None = None,
1888
+ content: AsyncBinaryTypes | None = None,
1787
1889
  files: RequestFiles | None = None,
1788
1890
  options: RequestOptions = {},
1789
1891
  ) -> ResponseT:
1892
+ if body is not None and content is not None:
1893
+ raise TypeError("Passing both `body` and `content` is not supported")
1894
+ if files is not None and content is not None:
1895
+ raise TypeError("Passing both `files` and `content` is not supported")
1896
+ if isinstance(body, bytes):
1897
+ warnings.warn(
1898
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1899
+ "Please pass raw bytes via the `content` parameter instead.",
1900
+ DeprecationWarning,
1901
+ stacklevel=2,
1902
+ )
1790
1903
  opts = FinalRequestOptions.construct(
1791
- method="put", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1904
+ method="put", url=path, json_data=body, content=content, files=await async_to_httpx_files(files), **options
1792
1905
  )
1793
1906
  return await self.request(cast_to, opts)
1794
1907
 
@@ -1798,9 +1911,19 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1798
1911
  *,
1799
1912
  cast_to: Type[ResponseT],
1800
1913
  body: Body | None = None,
1914
+ content: AsyncBinaryTypes | None = None,
1801
1915
  options: RequestOptions = {},
1802
1916
  ) -> ResponseT:
1803
- opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, **options)
1917
+ if body is not None and content is not None:
1918
+ raise TypeError("Passing both `body` and `content` is not supported")
1919
+ if isinstance(body, bytes):
1920
+ warnings.warn(
1921
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1922
+ "Please pass raw bytes via the `content` parameter instead.",
1923
+ DeprecationWarning,
1924
+ stacklevel=2,
1925
+ )
1926
+ opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, content=content, **options)
1804
1927
  return await self.request(cast_to, opts)
1805
1928
 
1806
1929
  def get_api_list(
@@ -21,7 +21,7 @@ from ._types import (
21
21
  )
22
22
  from ._utils import is_given, get_async_library
23
23
  from ._version import __version__
24
- from .resources import task, agent, tools, events, browser, profiles, extensions, identities
24
+ from .resources import task, agent, tools, events, browser, profiles, extensions, identities, applications
25
25
  from ._streaming import Stream as Stream, AsyncStream as AsyncStream
26
26
  from ._exceptions import APIStatusError, AnchorbrowserError
27
27
  from ._base_client import (
@@ -53,6 +53,7 @@ class Anchorbrowser(SyncAPIClient):
53
53
  events: events.EventsResource
54
54
  task: task.TaskResource
55
55
  identities: identities.IdentitiesResource
56
+ applications: applications.ApplicationsResource
56
57
  with_raw_response: AnchorbrowserWithRawResponse
57
58
  with_streaming_response: AnchorbrowserWithStreamedResponse
58
59
 
@@ -119,6 +120,7 @@ class Anchorbrowser(SyncAPIClient):
119
120
  self.events = events.EventsResource(self)
120
121
  self.task = task.TaskResource(self)
121
122
  self.identities = identities.IdentitiesResource(self)
123
+ self.applications = applications.ApplicationsResource(self)
122
124
  self.with_raw_response = AnchorbrowserWithRawResponse(self)
123
125
  self.with_streaming_response = AnchorbrowserWithStreamedResponse(self)
124
126
 
@@ -237,6 +239,7 @@ class AsyncAnchorbrowser(AsyncAPIClient):
237
239
  events: events.AsyncEventsResource
238
240
  task: task.AsyncTaskResource
239
241
  identities: identities.AsyncIdentitiesResource
242
+ applications: applications.AsyncApplicationsResource
240
243
  with_raw_response: AsyncAnchorbrowserWithRawResponse
241
244
  with_streaming_response: AsyncAnchorbrowserWithStreamedResponse
242
245
 
@@ -303,6 +306,7 @@ class AsyncAnchorbrowser(AsyncAPIClient):
303
306
  self.events = events.AsyncEventsResource(self)
304
307
  self.task = task.AsyncTaskResource(self)
305
308
  self.identities = identities.AsyncIdentitiesResource(self)
309
+ self.applications = applications.AsyncApplicationsResource(self)
306
310
  self.with_raw_response = AsyncAnchorbrowserWithRawResponse(self)
307
311
  self.with_streaming_response = AsyncAnchorbrowserWithStreamedResponse(self)
308
312
 
@@ -424,6 +428,7 @@ class AnchorbrowserWithRawResponse:
424
428
  self.events = events.EventsResourceWithRawResponse(client.events)
425
429
  self.task = task.TaskResourceWithRawResponse(client.task)
426
430
  self.identities = identities.IdentitiesResourceWithRawResponse(client.identities)
431
+ self.applications = applications.ApplicationsResourceWithRawResponse(client.applications)
427
432
 
428
433
 
429
434
  class AsyncAnchorbrowserWithRawResponse:
@@ -439,6 +444,7 @@ class AsyncAnchorbrowserWithRawResponse:
439
444
  self.events = events.AsyncEventsResourceWithRawResponse(client.events)
440
445
  self.task = task.AsyncTaskResourceWithRawResponse(client.task)
441
446
  self.identities = identities.AsyncIdentitiesResourceWithRawResponse(client.identities)
447
+ self.applications = applications.AsyncApplicationsResourceWithRawResponse(client.applications)
442
448
 
443
449
 
444
450
  class AnchorbrowserWithStreamedResponse:
@@ -454,6 +460,7 @@ class AnchorbrowserWithStreamedResponse:
454
460
  self.events = events.EventsResourceWithStreamingResponse(client.events)
455
461
  self.task = task.TaskResourceWithStreamingResponse(client.task)
456
462
  self.identities = identities.IdentitiesResourceWithStreamingResponse(client.identities)
463
+ self.applications = applications.ApplicationsResourceWithStreamingResponse(client.applications)
457
464
 
458
465
 
459
466
  class AsyncAnchorbrowserWithStreamedResponse:
@@ -469,6 +476,7 @@ class AsyncAnchorbrowserWithStreamedResponse:
469
476
  self.events = events.AsyncEventsResourceWithStreamingResponse(client.events)
470
477
  self.task = task.AsyncTaskResourceWithStreamingResponse(client.task)
471
478
  self.identities = identities.AsyncIdentitiesResourceWithStreamingResponse(client.identities)
479
+ self.applications = applications.AsyncApplicationsResourceWithStreamingResponse(client.applications)
472
480
 
473
481
  Client = Anchorbrowser
474
482
 
@@ -3,7 +3,20 @@ from __future__ import annotations
3
3
  import os
4
4
  import inspect
5
5
  import weakref
6
- from typing import TYPE_CHECKING, Any, Type, Union, Generic, TypeVar, Callable, Optional, cast
6
+ from typing import (
7
+ IO,
8
+ TYPE_CHECKING,
9
+ Any,
10
+ Type,
11
+ Union,
12
+ Generic,
13
+ TypeVar,
14
+ Callable,
15
+ Iterable,
16
+ Optional,
17
+ AsyncIterable,
18
+ cast,
19
+ )
7
20
  from datetime import date, datetime
8
21
  from typing_extensions import (
9
22
  List,
@@ -787,6 +800,7 @@ class FinalRequestOptionsInput(TypedDict, total=False):
787
800
  timeout: float | Timeout | None
788
801
  files: HttpxRequestFiles | None
789
802
  idempotency_key: str
803
+ content: Union[bytes, bytearray, IO[bytes], Iterable[bytes], AsyncIterable[bytes], None]
790
804
  json_data: Body
791
805
  extra_json: AnyMapping
792
806
  follow_redirects: bool
@@ -805,6 +819,7 @@ class FinalRequestOptions(pydantic.BaseModel):
805
819
  post_parser: Union[Callable[[Any], Any], NotGiven] = NotGiven()
806
820
  follow_redirects: Union[bool, None] = None
807
821
 
822
+ content: Union[bytes, bytearray, IO[bytes], Iterable[bytes], AsyncIterable[bytes], None] = None
808
823
  # It should be noted that we cannot use `json` here as that would override
809
824
  # a BaseModel method in an incompatible fashion.
810
825
  json_data: Union[Body, None] = None
@@ -13,9 +13,11 @@ from typing import (
13
13
  Mapping,
14
14
  TypeVar,
15
15
  Callable,
16
+ Iterable,
16
17
  Iterator,
17
18
  Optional,
18
19
  Sequence,
20
+ AsyncIterable,
19
21
  )
20
22
  from typing_extensions import (
21
23
  Set,
@@ -56,6 +58,13 @@ if TYPE_CHECKING:
56
58
  else:
57
59
  Base64FileInput = Union[IO[bytes], PathLike]
58
60
  FileContent = Union[IO[bytes], bytes, PathLike] # PathLike is not subscriptable in Python 3.8.
61
+
62
+
63
+ # Used for sending raw binary data / streaming data in request bodies
64
+ # e.g. for file uploads without multipart encoding
65
+ BinaryTypes = Union[bytes, bytearray, IO[bytes], Iterable[bytes]]
66
+ AsyncBinaryTypes = Union[bytes, bytearray, IO[bytes], AsyncIterable[bytes]]
67
+
59
68
  FileTypes = Union[
60
69
  # file (or bytes)
61
70
  FileContent,
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "anchorbrowser"
4
- __version__ = "0.6.0" # x-release-please-version
4
+ __version__ = "0.6.2" # x-release-please-version
@@ -157,8 +157,10 @@ class TaskResource(SyncAPIResource):
157
157
  *,
158
158
  task_id: str,
159
159
  async_: bool | Omit = omit,
160
+ cleanup_sessions: bool | Omit = omit,
160
161
  inputs: Dict[str, str] | Omit = omit,
161
162
  override_browser_configuration: task_run_params.OverrideBrowserConfiguration | Omit = omit,
163
+ session_id: str | Omit = omit,
162
164
  version: str | Omit = omit,
163
165
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
164
166
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -178,10 +180,14 @@ class TaskResource(SyncAPIResource):
178
180
 
179
181
  async_: Whether to run the task asynchronously.
180
182
 
183
+ cleanup_sessions: Whether to cleanup browser sessions after task execution. Defaults to true.
184
+
181
185
  inputs: Environment variables for task execution (keys must start with ANCHOR\\__)
182
186
 
183
187
  override_browser_configuration: Override browser configuration for this execution
184
188
 
189
+ session_id: Optional existing browser session ID to use for task execution
190
+
185
191
  version: Version to run (draft, latest, or version number)
186
192
 
187
193
  extra_headers: Send extra headers
@@ -198,8 +204,10 @@ class TaskResource(SyncAPIResource):
198
204
  {
199
205
  "task_id": task_id,
200
206
  "async_": async_,
207
+ "cleanup_sessions": cleanup_sessions,
201
208
  "inputs": inputs,
202
209
  "override_browser_configuration": override_browser_configuration,
210
+ "session_id": session_id,
203
211
  "version": version,
204
212
  },
205
213
  task_run_params.RunExecuteParams,
@@ -342,8 +350,10 @@ class AsyncTaskResource(AsyncAPIResource):
342
350
  *,
343
351
  task_id: str,
344
352
  async_: bool | Omit = omit,
353
+ cleanup_sessions: bool | Omit = omit,
345
354
  inputs: Dict[str, str] | Omit = omit,
346
355
  override_browser_configuration: task_run_params.OverrideBrowserConfiguration | Omit = omit,
356
+ session_id: str | Omit = omit,
347
357
  version: str | Omit = omit,
348
358
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
349
359
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -363,10 +373,14 @@ class AsyncTaskResource(AsyncAPIResource):
363
373
 
364
374
  async_: Whether to run the task asynchronously.
365
375
 
376
+ cleanup_sessions: Whether to cleanup browser sessions after task execution. Defaults to true.
377
+
366
378
  inputs: Environment variables for task execution (keys must start with ANCHOR\\__)
367
379
 
368
380
  override_browser_configuration: Override browser configuration for this execution
369
381
 
382
+ session_id: Optional existing browser session ID to use for task execution
383
+
370
384
  version: Version to run (draft, latest, or version number)
371
385
 
372
386
  extra_headers: Send extra headers
@@ -383,8 +397,10 @@ class AsyncTaskResource(AsyncAPIResource):
383
397
  {
384
398
  "task_id": task_id,
385
399
  "async": async_,
400
+ "cleanup_sessions": cleanup_sessions,
386
401
  "inputs": inputs,
387
402
  "override_browser_configuration": override_browser_configuration,
403
+ "session_id": session_id,
388
404
  "version": version,
389
405
  },
390
406
  task_run_params.RunExecuteParams,
@@ -26,6 +26,9 @@ class RunExecuteParams(TypedDict, total=False):
26
26
  async_: Annotated[bool, PropertyInfo(alias="async")]
27
27
  """Whether to run the task asynchronously."""
28
28
 
29
+ cleanup_sessions: Annotated[bool, PropertyInfo(alias="cleanupSessions")]
30
+ """Whether to cleanup browser sessions after task execution. Defaults to true."""
31
+
29
32
  inputs: Dict[str, str]
30
33
  """Environment variables for task execution (keys must start with ANCHOR\\__)"""
31
34
 
@@ -34,6 +37,9 @@ class RunExecuteParams(TypedDict, total=False):
34
37
  ]
35
38
  """Override browser configuration for this execution"""
36
39
 
40
+ session_id: Annotated[str, PropertyInfo(alias="sessionId")]
41
+ """Optional existing browser session ID to use for task execution"""
42
+
37
43
  version: str
38
44
  """Version to run (draft, latest, or version number)"""
39
45