vrchatapi-async 1.20.8__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 (371) hide show
  1. vrchatapi_async-1.20.8/LICENSE +21 -0
  2. vrchatapi_async-1.20.8/PKG-INFO +183 -0
  3. vrchatapi_async-1.20.8/README.md +151 -0
  4. vrchatapi_async-1.20.8/pyproject.toml +6 -0
  5. vrchatapi_async-1.20.8/setup.cfg +7 -0
  6. vrchatapi_async-1.20.8/setup.py +351 -0
  7. vrchatapi_async-1.20.8/tests/test_async_sdk.py +301 -0
  8. vrchatapi_async-1.20.8/tests/test_websocket.py +464 -0
  9. vrchatapi_async-1.20.8/vrchatapi/__init__.py +742 -0
  10. vrchatapi_async-1.20.8/vrchatapi/api/__init__.py +23 -0
  11. vrchatapi_async-1.20.8/vrchatapi/api/authentication_api.py +6253 -0
  12. vrchatapi_async-1.20.8/vrchatapi/api/avatars_api.py +4234 -0
  13. vrchatapi_async-1.20.8/vrchatapi/api/calendar_api.py +4090 -0
  14. vrchatapi_async-1.20.8/vrchatapi/api/economy_api.py +11547 -0
  15. vrchatapi_async-1.20.8/vrchatapi/api/favorites_api.py +2368 -0
  16. vrchatapi_async-1.20.8/vrchatapi/api/files_api.py +6109 -0
  17. vrchatapi_async-1.20.8/vrchatapi/api/friends_api.py +1708 -0
  18. vrchatapi_async-1.20.8/vrchatapi/api/groups_api.py +15085 -0
  19. vrchatapi_async-1.20.8/vrchatapi/api/instances_api.py +1754 -0
  20. vrchatapi_async-1.20.8/vrchatapi/api/inventory_api.py +4333 -0
  21. vrchatapi_async-1.20.8/vrchatapi/api/invite_api.py +3337 -0
  22. vrchatapi_async-1.20.8/vrchatapi/api/jams_api.py +1446 -0
  23. vrchatapi_async-1.20.8/vrchatapi/api/miscellaneous_api.py +2384 -0
  24. vrchatapi_async-1.20.8/vrchatapi/api/notifications_api.py +3624 -0
  25. vrchatapi_async-1.20.8/vrchatapi/api/playermoderation_api.py +1127 -0
  26. vrchatapi_async-1.20.8/vrchatapi/api/prints_api.py +1478 -0
  27. vrchatapi_async-1.20.8/vrchatapi/api/props_api.py +2269 -0
  28. vrchatapi_async-1.20.8/vrchatapi/api/users_api.py +7894 -0
  29. vrchatapi_async-1.20.8/vrchatapi/api/worlds_api.py +6153 -0
  30. vrchatapi_async-1.20.8/vrchatapi/api_client.py +865 -0
  31. vrchatapi_async-1.20.8/vrchatapi/api_response.py +21 -0
  32. vrchatapi_async-1.20.8/vrchatapi/configuration.py +686 -0
  33. vrchatapi_async-1.20.8/vrchatapi/exceptions.py +218 -0
  34. vrchatapi_async-1.20.8/vrchatapi/models/__init__.py +345 -0
  35. vrchatapi_async-1.20.8/vrchatapi/models/account_deletion_log.py +253 -0
  36. vrchatapi_async-1.20.8/vrchatapi/models/add_favorite_request.py +246 -0
  37. vrchatapi_async-1.20.8/vrchatapi/models/add_group_gallery_image_request.py +234 -0
  38. vrchatapi_async-1.20.8/vrchatapi/models/admin_asset_bundle.py +337 -0
  39. vrchatapi_async-1.20.8/vrchatapi/models/admin_unity_package.py +261 -0
  40. vrchatapi_async-1.20.8/vrchatapi/models/age_verification_status.py +38 -0
  41. vrchatapi_async-1.20.8/vrchatapi/models/agreement.py +280 -0
  42. vrchatapi_async-1.20.8/vrchatapi/models/agreement_code.py +36 -0
  43. vrchatapi_async-1.20.8/vrchatapi/models/agreement_request.py +256 -0
  44. vrchatapi_async-1.20.8/vrchatapi/models/agreement_status.py +261 -0
  45. vrchatapi_async-1.20.8/vrchatapi/models/api_config.py +1299 -0
  46. vrchatapi_async-1.20.8/vrchatapi/models/api_config_access_logs_urls.py +258 -0
  47. vrchatapi_async-1.20.8/vrchatapi/models/api_config_announcement.py +217 -0
  48. vrchatapi_async-1.20.8/vrchatapi/models/api_config_audio_config.py +311 -0
  49. vrchatapi_async-1.20.8/vrchatapi/models/api_config_avatar_perf_limiter.py +293 -0
  50. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants.py +262 -0
  51. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_groups.py +306 -0
  52. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instance.py +238 -0
  53. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbrackets.py +262 -0
  54. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbracketscrowded.py +216 -0
  55. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbracketsfew.py +216 -0
  56. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbracketsmany.py +216 -0
  57. vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_language.py +234 -0
  58. vrchatapi_async-1.20.8/vrchatapi/models/api_config_download_url_list.py +258 -0
  59. vrchatapi_async-1.20.8/vrchatapi/models/api_config_events.py +314 -0
  60. vrchatapi_async-1.20.8/vrchatapi/models/api_config_ios_version.py +216 -0
  61. vrchatapi_async-1.20.8/vrchatapi/models/api_config_min_supported_client_build_number.py +348 -0
  62. vrchatapi_async-1.20.8/vrchatapi/models/api_config_offline_analysis.py +216 -0
  63. vrchatapi_async-1.20.8/vrchatapi/models/api_health.py +248 -0
  64. vrchatapi_async-1.20.8/vrchatapi/models/avatar.py +463 -0
  65. vrchatapi_async-1.20.8/vrchatapi/models/avatar_moderation.py +249 -0
  66. vrchatapi_async-1.20.8/vrchatapi/models/avatar_moderation_created.py +248 -0
  67. vrchatapi_async-1.20.8/vrchatapi/models/avatar_moderation_type.py +36 -0
  68. vrchatapi_async-1.20.8/vrchatapi/models/avatar_performance.py +265 -0
  69. vrchatapi_async-1.20.8/vrchatapi/models/avatar_published_listings_inner.py +271 -0
  70. vrchatapi_async-1.20.8/vrchatapi/models/avatar_style.py +239 -0
  71. vrchatapi_async-1.20.8/vrchatapi/models/avatar_styles.py +231 -0
  72. vrchatapi_async-1.20.8/vrchatapi/models/avatar_unity_package_url_object.py +234 -0
  73. vrchatapi_async-1.20.8/vrchatapi/models/badge.py +308 -0
  74. vrchatapi_async-1.20.8/vrchatapi/models/balance.py +247 -0
  75. vrchatapi_async-1.20.8/vrchatapi/models/ban_group_member_request.py +234 -0
  76. vrchatapi_async-1.20.8/vrchatapi/models/boop_request.py +250 -0
  77. vrchatapi_async-1.20.8/vrchatapi/models/calendar_day_of_week.py +42 -0
  78. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event.py +475 -0
  79. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_access.py +37 -0
  80. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_category.py +48 -0
  81. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_discovery.py +247 -0
  82. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_discovery_inclusion.py +38 -0
  83. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_discovery_scope.py +38 -0
  84. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_frequency.py +39 -0
  85. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_occurrence_kind.py +38 -0
  86. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_platform.py +38 -0
  87. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_recurrence.py +261 -0
  88. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_recurrence_end.py +246 -0
  89. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_recurrence_end_type.py +37 -0
  90. vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_user_interest.py +251 -0
  91. vrchatapi_async-1.20.8/vrchatapi/models/change_user_tags_request.py +212 -0
  92. vrchatapi_async-1.20.8/vrchatapi/models/change_world_tags_request.py +212 -0
  93. vrchatapi_async-1.20.8/vrchatapi/models/content_filter.py +40 -0
  94. vrchatapi_async-1.20.8/vrchatapi/models/create_avatar_moderation_request.py +243 -0
  95. vrchatapi_async-1.20.8/vrchatapi/models/create_avatar_request.py +324 -0
  96. vrchatapi_async-1.20.8/vrchatapi/models/create_calendar_event_request.py +385 -0
  97. vrchatapi_async-1.20.8/vrchatapi/models/create_file_request.py +251 -0
  98. vrchatapi_async-1.20.8/vrchatapi/models/create_file_version_request.py +259 -0
  99. vrchatapi_async-1.20.8/vrchatapi/models/create_group_announcement_request.py +253 -0
  100. vrchatapi_async-1.20.8/vrchatapi/models/create_group_gallery_request.py +297 -0
  101. vrchatapi_async-1.20.8/vrchatapi/models/create_group_invite_request.py +242 -0
  102. vrchatapi_async-1.20.8/vrchatapi/models/create_group_post_request.py +267 -0
  103. vrchatapi_async-1.20.8/vrchatapi/models/create_group_request.py +295 -0
  104. vrchatapi_async-1.20.8/vrchatapi/models/create_group_role_request.py +255 -0
  105. vrchatapi_async-1.20.8/vrchatapi/models/create_instance_request.py +384 -0
  106. vrchatapi_async-1.20.8/vrchatapi/models/create_jam_submission_request.py +239 -0
  107. vrchatapi_async-1.20.8/vrchatapi/models/create_listing_request.py +285 -0
  108. vrchatapi_async-1.20.8/vrchatapi/models/create_product_request.py +270 -0
  109. vrchatapi_async-1.20.8/vrchatapi/models/create_prop_request.py +308 -0
  110. vrchatapi_async-1.20.8/vrchatapi/models/create_world_request.py +322 -0
  111. vrchatapi_async-1.20.8/vrchatapi/models/current_user.py +909 -0
  112. vrchatapi_async-1.20.8/vrchatapi/models/current_user_platform_history_inner.py +245 -0
  113. vrchatapi_async-1.20.8/vrchatapi/models/current_user_presence.py +379 -0
  114. vrchatapi_async-1.20.8/vrchatapi/models/decline_group_invite_request.py +211 -0
  115. vrchatapi_async-1.20.8/vrchatapi/models/developer_type.py +39 -0
  116. vrchatapi_async-1.20.8/vrchatapi/models/disable2_fa_result.py +211 -0
  117. vrchatapi_async-1.20.8/vrchatapi/models/discord_details.py +216 -0
  118. vrchatapi_async-1.20.8/vrchatapi/models/dynamic_content_row.py +276 -0
  119. vrchatapi_async-1.20.8/vrchatapi/models/earnings_metrics.py +248 -0
  120. vrchatapi_async-1.20.8/vrchatapi/models/earnings_metrics_totals.py +267 -0
  121. vrchatapi_async-1.20.8/vrchatapi/models/economy_account.py +360 -0
  122. vrchatapi_async-1.20.8/vrchatapi/models/economy_balances.py +221 -0
  123. vrchatapi_async-1.20.8/vrchatapi/models/economy_payout.py +385 -0
  124. vrchatapi_async-1.20.8/vrchatapi/models/economy_payout_eligibility.py +263 -0
  125. vrchatapi_async-1.20.8/vrchatapi/models/economy_payout_list.py +219 -0
  126. vrchatapi_async-1.20.8/vrchatapi/models/economy_payout_status.py +295 -0
  127. vrchatapi_async-1.20.8/vrchatapi/models/equip_inventory_item_request.py +235 -0
  128. vrchatapi_async-1.20.8/vrchatapi/models/error.py +215 -0
  129. vrchatapi_async-1.20.8/vrchatapi/models/favorite.py +251 -0
  130. vrchatapi_async-1.20.8/vrchatapi/models/favorite_group.py +278 -0
  131. vrchatapi_async-1.20.8/vrchatapi/models/favorite_group_limits.py +249 -0
  132. vrchatapi_async-1.20.8/vrchatapi/models/favorite_group_visibility.py +38 -0
  133. vrchatapi_async-1.20.8/vrchatapi/models/favorite_limits.py +265 -0
  134. vrchatapi_async-1.20.8/vrchatapi/models/favorite_type.py +39 -0
  135. vrchatapi_async-1.20.8/vrchatapi/models/favorited_world.py +441 -0
  136. vrchatapi_async-1.20.8/vrchatapi/models/feedback.py +331 -0
  137. vrchatapi_async-1.20.8/vrchatapi/models/file.py +325 -0
  138. vrchatapi_async-1.20.8/vrchatapi/models/file_analysis.py +281 -0
  139. vrchatapi_async-1.20.8/vrchatapi/models/file_analysis_avatar_stats.py +575 -0
  140. vrchatapi_async-1.20.8/vrchatapi/models/file_data.py +279 -0
  141. vrchatapi_async-1.20.8/vrchatapi/models/file_status.py +39 -0
  142. vrchatapi_async-1.20.8/vrchatapi/models/file_upload_url.py +212 -0
  143. vrchatapi_async-1.20.8/vrchatapi/models/file_version.py +254 -0
  144. vrchatapi_async-1.20.8/vrchatapi/models/file_version_upload_status.py +269 -0
  145. vrchatapi_async-1.20.8/vrchatapi/models/finish_file_data_upload_request.py +248 -0
  146. vrchatapi_async-1.20.8/vrchatapi/models/follow_calendar_event_request.py +234 -0
  147. vrchatapi_async-1.20.8/vrchatapi/models/friend_status.py +250 -0
  148. vrchatapi_async-1.20.8/vrchatapi/models/get_group_posts200_response.py +219 -0
  149. vrchatapi_async-1.20.8/vrchatapi/models/get_user_group_instances200_response.py +248 -0
  150. vrchatapi_async-1.20.8/vrchatapi/models/group.py +514 -0
  151. vrchatapi_async-1.20.8/vrchatapi/models/group_access_type.py +38 -0
  152. vrchatapi_async-1.20.8/vrchatapi/models/group_announcement.py +315 -0
  153. vrchatapi_async-1.20.8/vrchatapi/models/group_audit_log_entry.py +287 -0
  154. vrchatapi_async-1.20.8/vrchatapi/models/group_gallery.py +319 -0
  155. vrchatapi_async-1.20.8/vrchatapi/models/group_gallery_file_order.py +211 -0
  156. vrchatapi_async-1.20.8/vrchatapi/models/group_gallery_file_order_request.py +239 -0
  157. vrchatapi_async-1.20.8/vrchatapi/models/group_gallery_image.py +301 -0
  158. vrchatapi_async-1.20.8/vrchatapi/models/group_instance.py +257 -0
  159. vrchatapi_async-1.20.8/vrchatapi/models/group_join_request_action.py +37 -0
  160. vrchatapi_async-1.20.8/vrchatapi/models/group_join_state.py +39 -0
  161. vrchatapi_async-1.20.8/vrchatapi/models/group_member.py +415 -0
  162. vrchatapi_async-1.20.8/vrchatapi/models/group_member_limited_user.py +290 -0
  163. vrchatapi_async-1.20.8/vrchatapi/models/group_member_status.py +41 -0
  164. vrchatapi_async-1.20.8/vrchatapi/models/group_my_member.py +399 -0
  165. vrchatapi_async-1.20.8/vrchatapi/models/group_permission.py +260 -0
  166. vrchatapi_async-1.20.8/vrchatapi/models/group_permissions.py +63 -0
  167. vrchatapi_async-1.20.8/vrchatapi/models/group_post.py +317 -0
  168. vrchatapi_async-1.20.8/vrchatapi/models/group_post_visibility.py +37 -0
  169. vrchatapi_async-1.20.8/vrchatapi/models/group_privacy.py +37 -0
  170. vrchatapi_async-1.20.8/vrchatapi/models/group_role.py +309 -0
  171. vrchatapi_async-1.20.8/vrchatapi/models/group_role_template.py +39 -0
  172. vrchatapi_async-1.20.8/vrchatapi/models/group_role_template_values.py +254 -0
  173. vrchatapi_async-1.20.8/vrchatapi/models/group_role_template_values_roles.py +253 -0
  174. vrchatapi_async-1.20.8/vrchatapi/models/group_search_sort.py +37 -0
  175. vrchatapi_async-1.20.8/vrchatapi/models/group_transferable.py +215 -0
  176. vrchatapi_async-1.20.8/vrchatapi/models/group_transferable_requirements.py +266 -0
  177. vrchatapi_async-1.20.8/vrchatapi/models/group_user_visibility.py +38 -0
  178. vrchatapi_async-1.20.8/vrchatapi/models/image_animation_style.py +62 -0
  179. vrchatapi_async-1.20.8/vrchatapi/models/image_loop_style.py +37 -0
  180. vrchatapi_async-1.20.8/vrchatapi/models/image_mask.py +41 -0
  181. vrchatapi_async-1.20.8/vrchatapi/models/image_purpose.py +46 -0
  182. vrchatapi_async-1.20.8/vrchatapi/models/info_push.py +306 -0
  183. vrchatapi_async-1.20.8/vrchatapi/models/info_push_data.py +288 -0
  184. vrchatapi_async-1.20.8/vrchatapi/models/info_push_data_article.py +215 -0
  185. vrchatapi_async-1.20.8/vrchatapi/models/info_push_data_article_content.py +251 -0
  186. vrchatapi_async-1.20.8/vrchatapi/models/info_push_data_clickable.py +224 -0
  187. vrchatapi_async-1.20.8/vrchatapi/models/instance.py +597 -0
  188. vrchatapi_async-1.20.8/vrchatapi/models/instance_content_settings.py +236 -0
  189. vrchatapi_async-1.20.8/vrchatapi/models/instance_platforms.py +222 -0
  190. vrchatapi_async-1.20.8/vrchatapi/models/instance_region.py +40 -0
  191. vrchatapi_async-1.20.8/vrchatapi/models/instance_short_name_response.py +248 -0
  192. vrchatapi_async-1.20.8/vrchatapi/models/instance_type.py +40 -0
  193. vrchatapi_async-1.20.8/vrchatapi/models/inventory.py +247 -0
  194. vrchatapi_async-1.20.8/vrchatapi/models/inventory_consumption_results.py +255 -0
  195. vrchatapi_async-1.20.8/vrchatapi/models/inventory_default_attributes_value.py +243 -0
  196. vrchatapi_async-1.20.8/vrchatapi/models/inventory_default_attributes_value_validator.py +211 -0
  197. vrchatapi_async-1.20.8/vrchatapi/models/inventory_drop.py +331 -0
  198. vrchatapi_async-1.20.8/vrchatapi/models/inventory_equip_slot.py +39 -0
  199. vrchatapi_async-1.20.8/vrchatapi/models/inventory_flag.py +43 -0
  200. vrchatapi_async-1.20.8/vrchatapi/models/inventory_item.py +420 -0
  201. vrchatapi_async-1.20.8/vrchatapi/models/inventory_item_type.py +42 -0
  202. vrchatapi_async-1.20.8/vrchatapi/models/inventory_metadata.py +287 -0
  203. vrchatapi_async-1.20.8/vrchatapi/models/inventory_notification_details.py +244 -0
  204. vrchatapi_async-1.20.8/vrchatapi/models/inventory_spawn.py +216 -0
  205. vrchatapi_async-1.20.8/vrchatapi/models/inventory_template.py +351 -0
  206. vrchatapi_async-1.20.8/vrchatapi/models/inventory_user_attributes.py +250 -0
  207. vrchatapi_async-1.20.8/vrchatapi/models/invite_message.py +276 -0
  208. vrchatapi_async-1.20.8/vrchatapi/models/invite_message_type.py +39 -0
  209. vrchatapi_async-1.20.8/vrchatapi/models/invite_request.py +243 -0
  210. vrchatapi_async-1.20.8/vrchatapi/models/invite_response.py +235 -0
  211. vrchatapi_async-1.20.8/vrchatapi/models/jam.py +302 -0
  212. vrchatapi_async-1.20.8/vrchatapi/models/jam_state_change_dates.py +276 -0
  213. vrchatapi_async-1.20.8/vrchatapi/models/jam_submission.py +275 -0
  214. vrchatapi_async-1.20.8/vrchatapi/models/join_group_request.py +234 -0
  215. vrchatapi_async-1.20.8/vrchatapi/models/license.py +261 -0
  216. vrchatapi_async-1.20.8/vrchatapi/models/license_action.py +37 -0
  217. vrchatapi_async-1.20.8/vrchatapi/models/license_group.py +235 -0
  218. vrchatapi_async-1.20.8/vrchatapi/models/license_type.py +39 -0
  219. vrchatapi_async-1.20.8/vrchatapi/models/limited_group.py +377 -0
  220. vrchatapi_async-1.20.8/vrchatapi/models/limited_unity_package.py +251 -0
  221. vrchatapi_async-1.20.8/vrchatapi/models/limited_user_friend.py +399 -0
  222. vrchatapi_async-1.20.8/vrchatapi/models/limited_user_groups.py +386 -0
  223. vrchatapi_async-1.20.8/vrchatapi/models/limited_user_instance.py +430 -0
  224. vrchatapi_async-1.20.8/vrchatapi/models/limited_user_search.py +395 -0
  225. vrchatapi_async-1.20.8/vrchatapi/models/limited_world.py +410 -0
  226. vrchatapi_async-1.20.8/vrchatapi/models/mime_type.py +50 -0
  227. vrchatapi_async-1.20.8/vrchatapi/models/model_print.py +299 -0
  228. vrchatapi_async-1.20.8/vrchatapi/models/moderate_user_request.py +217 -0
  229. vrchatapi_async-1.20.8/vrchatapi/models/moderation_report.py +296 -0
  230. vrchatapi_async-1.20.8/vrchatapi/models/mutual_friend.py +302 -0
  231. vrchatapi_async-1.20.8/vrchatapi/models/mutuals.py +217 -0
  232. vrchatapi_async-1.20.8/vrchatapi/models/notification.py +283 -0
  233. vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_invite.py +250 -0
  234. vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_invite_response.py +242 -0
  235. vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_request_invite.py +239 -0
  236. vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_request_invite_response.py +242 -0
  237. vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_vote_to_kick.py +242 -0
  238. vrchatapi_async-1.20.8/vrchatapi/models/notification_type.py +43 -0
  239. vrchatapi_async-1.20.8/vrchatapi/models/notification_v2.py +466 -0
  240. vrchatapi_async-1.20.8/vrchatapi/models/notification_v2_details_boop.py +255 -0
  241. vrchatapi_async-1.20.8/vrchatapi/models/notification_v2_response.py +259 -0
  242. vrchatapi_async-1.20.8/vrchatapi/models/notification_v2_type.py +58 -0
  243. vrchatapi_async-1.20.8/vrchatapi/models/ok_status.py +211 -0
  244. vrchatapi_async-1.20.8/vrchatapi/models/ok_status2.py +234 -0
  245. vrchatapi_async-1.20.8/vrchatapi/models/order_option.py +37 -0
  246. vrchatapi_async-1.20.8/vrchatapi/models/order_option_short.py +37 -0
  247. vrchatapi_async-1.20.8/vrchatapi/models/paginated_calendar_event_list.py +255 -0
  248. vrchatapi_async-1.20.8/vrchatapi/models/paginated_group_audit_log_entry_list.py +255 -0
  249. vrchatapi_async-1.20.8/vrchatapi/models/paginated_moderation_report_list.py +255 -0
  250. vrchatapi_async-1.20.8/vrchatapi/models/past_display_name.py +241 -0
  251. vrchatapi_async-1.20.8/vrchatapi/models/pending2_fa_result.py +239 -0
  252. vrchatapi_async-1.20.8/vrchatapi/models/performance_limiter_info.py +234 -0
  253. vrchatapi_async-1.20.8/vrchatapi/models/performance_ratings.py +41 -0
  254. vrchatapi_async-1.20.8/vrchatapi/models/permission.py +280 -0
  255. vrchatapi_async-1.20.8/vrchatapi/models/permission_data.py +258 -0
  256. vrchatapi_async-1.20.8/vrchatapi/models/platform_build_info.py +242 -0
  257. vrchatapi_async-1.20.8/vrchatapi/models/player_moderation.py +276 -0
  258. vrchatapi_async-1.20.8/vrchatapi/models/player_moderation_type.py +44 -0
  259. vrchatapi_async-1.20.8/vrchatapi/models/print_files.py +239 -0
  260. vrchatapi_async-1.20.8/vrchatapi/models/private_profile.py +267 -0
  261. vrchatapi_async-1.20.8/vrchatapi/models/private_profile_activity.py +292 -0
  262. vrchatapi_async-1.20.8/vrchatapi/models/product.py +389 -0
  263. vrchatapi_async-1.20.8/vrchatapi/models/product_listing.py +538 -0
  264. vrchatapi_async-1.20.8/vrchatapi/models/product_listing_type.py +39 -0
  265. vrchatapi_async-1.20.8/vrchatapi/models/product_listing_variant.py +272 -0
  266. vrchatapi_async-1.20.8/vrchatapi/models/product_purchase.py +571 -0
  267. vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_history.py +256 -0
  268. vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_location_type.py +46 -0
  269. vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_product.py +269 -0
  270. vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_purchase_context.py +250 -0
  271. vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_record.py +312 -0
  272. vrchatapi_async-1.20.8/vrchatapi/models/product_type.py +39 -0
  273. vrchatapi_async-1.20.8/vrchatapi/models/profile_represented_group.py +262 -0
  274. vrchatapi_async-1.20.8/vrchatapi/models/prop.py +358 -0
  275. vrchatapi_async-1.20.8/vrchatapi/models/prop_publish_status.py +234 -0
  276. vrchatapi_async-1.20.8/vrchatapi/models/prop_unity_package.py +269 -0
  277. vrchatapi_async-1.20.8/vrchatapi/models/public_profile.py +398 -0
  278. vrchatapi_async-1.20.8/vrchatapi/models/purchase_context_data.py +251 -0
  279. vrchatapi_async-1.20.8/vrchatapi/models/purchase_product_listing_request.py +281 -0
  280. vrchatapi_async-1.20.8/vrchatapi/models/region.py +42 -0
  281. vrchatapi_async-1.20.8/vrchatapi/models/register_user_account_request.py +278 -0
  282. vrchatapi_async-1.20.8/vrchatapi/models/release_status.py +39 -0
  283. vrchatapi_async-1.20.8/vrchatapi/models/report_category.py +226 -0
  284. vrchatapi_async-1.20.8/vrchatapi/models/report_reason.py +216 -0
  285. vrchatapi_async-1.20.8/vrchatapi/models/represented_group.py +348 -0
  286. vrchatapi_async-1.20.8/vrchatapi/models/request_invite_request.py +235 -0
  287. vrchatapi_async-1.20.8/vrchatapi/models/respond_group_join_request.py +217 -0
  288. vrchatapi_async-1.20.8/vrchatapi/models/respond_notification_v2_request.py +242 -0
  289. vrchatapi_async-1.20.8/vrchatapi/models/response.py +217 -0
  290. vrchatapi_async-1.20.8/vrchatapi/models/reward_badge.py +308 -0
  291. vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption.py +220 -0
  292. vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption_data.py +224 -0
  293. vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption_request.py +211 -0
  294. vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption_result.py +250 -0
  295. vrchatapi_async-1.20.8/vrchatapi/models/search_group_members200_response.py +224 -0
  296. vrchatapi_async-1.20.8/vrchatapi/models/seller_eligibility.py +211 -0
  297. vrchatapi_async-1.20.8/vrchatapi/models/sent_notification.py +278 -0
  298. vrchatapi_async-1.20.8/vrchatapi/models/service_queue_stats.py +234 -0
  299. vrchatapi_async-1.20.8/vrchatapi/models/service_status.py +281 -0
  300. vrchatapi_async-1.20.8/vrchatapi/models/share_inventory_item_direct_request.py +239 -0
  301. vrchatapi_async-1.20.8/vrchatapi/models/sort_option.py +53 -0
  302. vrchatapi_async-1.20.8/vrchatapi/models/sort_option_product_purchase.py +36 -0
  303. vrchatapi_async-1.20.8/vrchatapi/models/store.py +372 -0
  304. vrchatapi_async-1.20.8/vrchatapi/models/store_context.py +249 -0
  305. vrchatapi_async-1.20.8/vrchatapi/models/store_shelf.py +304 -0
  306. vrchatapi_async-1.20.8/vrchatapi/models/store_type.py +38 -0
  307. vrchatapi_async-1.20.8/vrchatapi/models/store_view.py +40 -0
  308. vrchatapi_async-1.20.8/vrchatapi/models/submit_moderation_report_request.py +263 -0
  309. vrchatapi_async-1.20.8/vrchatapi/models/submit_moderation_report_request_details.py +283 -0
  310. vrchatapi_async-1.20.8/vrchatapi/models/subscription.py +301 -0
  311. vrchatapi_async-1.20.8/vrchatapi/models/subscription_period.py +40 -0
  312. vrchatapi_async-1.20.8/vrchatapi/models/success.py +215 -0
  313. vrchatapi_async-1.20.8/vrchatapi/models/success_flag.py +211 -0
  314. vrchatapi_async-1.20.8/vrchatapi/models/tilia_kyc.py +246 -0
  315. vrchatapi_async-1.20.8/vrchatapi/models/tilia_status.py +259 -0
  316. vrchatapi_async-1.20.8/vrchatapi/models/tilia_tos.py +211 -0
  317. vrchatapi_async-1.20.8/vrchatapi/models/token_bundle.py +286 -0
  318. vrchatapi_async-1.20.8/vrchatapi/models/transaction.py +322 -0
  319. vrchatapi_async-1.20.8/vrchatapi/models/transaction_agreement.py +353 -0
  320. vrchatapi_async-1.20.8/vrchatapi/models/transaction_status.py +39 -0
  321. vrchatapi_async-1.20.8/vrchatapi/models/transaction_steam_info.py +271 -0
  322. vrchatapi_async-1.20.8/vrchatapi/models/transaction_steam_wallet_info.py +227 -0
  323. vrchatapi_async-1.20.8/vrchatapi/models/transfer_group_request.py +234 -0
  324. vrchatapi_async-1.20.8/vrchatapi/models/tutorial_status.py +255 -0
  325. vrchatapi_async-1.20.8/vrchatapi/models/two_factor_auth_code.py +211 -0
  326. vrchatapi_async-1.20.8/vrchatapi/models/two_factor_email_code.py +211 -0
  327. vrchatapi_async-1.20.8/vrchatapi/models/two_factor_recovery_codes.py +247 -0
  328. vrchatapi_async-1.20.8/vrchatapi/models/two_factor_recovery_codes_otp_inner.py +216 -0
  329. vrchatapi_async-1.20.8/vrchatapi/models/unity_package.py +360 -0
  330. vrchatapi_async-1.20.8/vrchatapi/models/update_asset_review_notes_request.py +234 -0
  331. vrchatapi_async-1.20.8/vrchatapi/models/update_avatar_request.py +293 -0
  332. vrchatapi_async-1.20.8/vrchatapi/models/update_calendar_event_request.py +365 -0
  333. vrchatapi_async-1.20.8/vrchatapi/models/update_favorite_group_request.py +246 -0
  334. vrchatapi_async-1.20.8/vrchatapi/models/update_group_gallery_request.py +297 -0
  335. vrchatapi_async-1.20.8/vrchatapi/models/update_group_member_request.py +256 -0
  336. vrchatapi_async-1.20.8/vrchatapi/models/update_group_representation_request.py +234 -0
  337. vrchatapi_async-1.20.8/vrchatapi/models/update_group_request.py +300 -0
  338. vrchatapi_async-1.20.8/vrchatapi/models/update_group_role_request.py +255 -0
  339. vrchatapi_async-1.20.8/vrchatapi/models/update_inventory_item_request.py +254 -0
  340. vrchatapi_async-1.20.8/vrchatapi/models/update_invite_message_request.py +211 -0
  341. vrchatapi_async-1.20.8/vrchatapi/models/update_listing_request.py +211 -0
  342. vrchatapi_async-1.20.8/vrchatapi/models/update_product_request.py +261 -0
  343. vrchatapi_async-1.20.8/vrchatapi/models/update_prop_request.py +303 -0
  344. vrchatapi_async-1.20.8/vrchatapi/models/update_tilia_tos_request.py +211 -0
  345. vrchatapi_async-1.20.8/vrchatapi/models/update_user_badge_request.py +216 -0
  346. vrchatapi_async-1.20.8/vrchatapi/models/update_user_note_request.py +239 -0
  347. vrchatapi_async-1.20.8/vrchatapi/models/update_user_request.py +358 -0
  348. vrchatapi_async-1.20.8/vrchatapi/models/update_world_request.py +317 -0
  349. vrchatapi_async-1.20.8/vrchatapi/models/user.py +549 -0
  350. vrchatapi_async-1.20.8/vrchatapi/models/user_credits_eligible.py +216 -0
  351. vrchatapi_async-1.20.8/vrchatapi/models/user_exists.py +242 -0
  352. vrchatapi_async-1.20.8/vrchatapi/models/user_note.py +273 -0
  353. vrchatapi_async-1.20.8/vrchatapi/models/user_note_target_user.py +277 -0
  354. vrchatapi_async-1.20.8/vrchatapi/models/user_state.py +38 -0
  355. vrchatapi_async-1.20.8/vrchatapi/models/user_status.py +40 -0
  356. vrchatapi_async-1.20.8/vrchatapi/models/user_subscription.py +330 -0
  357. vrchatapi_async-1.20.8/vrchatapi/models/user_subscription_eligible.py +274 -0
  358. vrchatapi_async-1.20.8/vrchatapi/models/verify2_fa_email_code_result.py +211 -0
  359. vrchatapi_async-1.20.8/vrchatapi/models/verify2_fa_result.py +216 -0
  360. vrchatapi_async-1.20.8/vrchatapi/models/verify_auth_token_result.py +217 -0
  361. vrchatapi_async-1.20.8/vrchatapi/models/world.py +459 -0
  362. vrchatapi_async-1.20.8/vrchatapi/models/world_metadata.py +216 -0
  363. vrchatapi_async-1.20.8/vrchatapi/models/world_publish_status.py +234 -0
  364. vrchatapi_async-1.20.8/vrchatapi/py.typed +0 -0
  365. vrchatapi_async-1.20.8/vrchatapi/rest.py +303 -0
  366. vrchatapi_async-1.20.8/vrchatapi/websocket.py +652 -0
  367. vrchatapi_async-1.20.8/vrchatapi_async.egg-info/PKG-INFO +183 -0
  368. vrchatapi_async-1.20.8/vrchatapi_async.egg-info/SOURCES.txt +370 -0
  369. vrchatapi_async-1.20.8/vrchatapi_async.egg-info/dependency_links.txt +1 -0
  370. vrchatapi_async-1.20.8/vrchatapi_async.egg-info/requires.txt +5 -0
  371. vrchatapi_async-1.20.8/vrchatapi_async.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Owners of GitHub organisation "vrchatapi" and individual contributors.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.4
2
+ Name: vrchatapi-async
3
+ Version: 1.20.8
4
+ Summary: VRChat API Library for Python (async version)
5
+ Home-page: https://github.com/hi94740/vrchatapi-python-async
6
+ Author: hi94740
7
+ Author-email: hi94740@qq.com
8
+ License: MIT
9
+ Keywords: vrchat,vrchatapi,vrc
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: python-dateutil>=2.8.2
14
+ Requires-Dist: aiohttp>=3.13.5
15
+ Requires-Dist: aiohttp-retry>=2.8.3
16
+ Requires-Dist: pydantic>=2.11
17
+ Requires-Dist: typing-extensions>=4.7.1
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: description
21
+ Dynamic: description-content-type
22
+ Dynamic: home-page
23
+ Dynamic: keywords
24
+ Dynamic: license
25
+ Dynamic: license-file
26
+ Dynamic: requires-dist
27
+ Dynamic: requires-python
28
+ Dynamic: summary
29
+
30
+ ![](https://github.com/vrchatapi/vrchatapi.github.io/blob/main/static/assets/img/lang/lang_python_banner_1500x300.png?raw=true)
31
+
32
+ # VRChat API Library for Python (async)
33
+
34
+ A Python client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).
35
+
36
+ This is an **asynchronous** (asyncio + aiohttp) adaptation of [VRChatAPI-Python](https://github.com/vrchatapi/vrchatapi-python). All API
37
+ methods are coroutines and must be awaited.
38
+
39
+ ## Disclaimer
40
+
41
+ This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.
42
+
43
+ > Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:
44
+ > * We do not provide documentation or support for the API.
45
+ > * Do not make queries to the API more than once per 60 seconds.
46
+ > * Abuse of the API may result in account termination.
47
+ > * Access to API endpoints may break at any given time, with no warning.
48
+
49
+ As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.
50
+
51
+ ## Getting Started
52
+
53
+ First add the package to to your project:
54
+ ```bash
55
+ pip install vrchatapi-async
56
+ ```
57
+
58
+ Below is an example on how to login to the API and fetch your own user information.
59
+
60
+ ```python
61
+ import asyncio
62
+
63
+ # Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
64
+ import vrchatapi
65
+ from vrchatapi.api import authentication_api
66
+ from vrchatapi.exceptions import UnauthorizedException
67
+ from vrchatapi.models.two_factor_auth_code import TwoFactorAuthCode
68
+ from vrchatapi.models.two_factor_email_code import TwoFactorEmailCode
69
+
70
+
71
+ async def main():
72
+ configuration = vrchatapi.Configuration(
73
+ username = 'username',
74
+ password = 'password',
75
+ )
76
+
77
+ # Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
78
+ # Here we enter a context of the API Client and instantiate the Authentication API which is required for logging in.
79
+
80
+ # Enter a context with an instance of the API client
81
+ async with vrchatapi.ApiClient(configuration) as api_client:
82
+ # Set our User-Agent as per VRChat Usage Policy
83
+ api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
84
+
85
+ # Instantiate instances of API classes
86
+ auth_api = authentication_api.AuthenticationApi(api_client)
87
+
88
+ try:
89
+ # Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
90
+ current_user = await auth_api.get_current_user()
91
+ except UnauthorizedException as e:
92
+ if e.status == 200:
93
+ if "Email 2 Factor Authentication" in e.reason:
94
+ # Step 3.5. Calling email verify2fa if the account has 2FA disabled
95
+ await auth_api.verify2_fa_email_code(two_factor_email_code=TwoFactorEmailCode(input("Email 2FA Code: ")))
96
+ elif "2 Factor Authentication" in e.reason:
97
+ # Step 3.5. Calling verify2fa if the account has 2FA enabled
98
+ await auth_api.verify2_fa(two_factor_auth_code=TwoFactorAuthCode(input("2FA Code: ")))
99
+ current_user = await auth_api.get_current_user()
100
+ else:
101
+ print("Exception when calling API: %s
102
+ ", e)
103
+ except vrchatapi.ApiException as e:
104
+ print("Exception when calling API: %s
105
+ ", e)
106
+
107
+ print("Logged in as:", current_user.display_name)
108
+
109
+
110
+ if __name__ == "__main__":
111
+ asyncio.run(main())
112
+ ```
113
+
114
+ See [Examples](examples/README.md) for more example usage on getting started.
115
+
116
+ ## Async API notes
117
+
118
+ Compared to [the synchronous SDK](https://github.com/vrchatapi/vrchatapi-python), this version changes the calling convention:
119
+
120
+ - Every API method (`foo`, `foo_with_http_info`, `foo_without_preload_content`)
121
+ is an `async def` coroutine and must be awaited.
122
+ - `ApiClient` is used as an async context manager (`async with ... as api_client`).
123
+ - The `async_req` parameter and the thread-pool based `async_req=True` usage are
124
+ removed; calls are natively asynchronous.
125
+ - `foo_with_http_info()` returns an `ApiResponse` object (`status_code`,
126
+ `headers`, `data`, `raw_data`) instead of a `(data, status, headers)` tuple.
127
+ - `foo_without_preload_content()` returns the raw aiohttp response for
128
+ streaming; the legacy `_preload_content=False` parameter is removed.
129
+ - The session `CookieJar`, the readable 2FA errors
130
+ (`UnauthorizedException` with status 200), the URL-encoded basic auth, the
131
+ `~()` safe path-parameter charset and the lowercase boolean query parameters
132
+ behave exactly like the synchronous SDK.
133
+
134
+ ## Contributing
135
+
136
+ Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
137
+
138
+ ## Websocket (Pipeline) API
139
+
140
+ The SDK also ships a hand-written async client for VRChat's real-time
141
+ WebSocket (Pipeline) API (`wss://pipeline.vrchat.cloud`), which pushes invites,
142
+ friend requests, friend online/offline events, user and group updates to the
143
+ authenticated client. The connection is receive-only; every message's
144
+ double-encoded `content` field is automatically unpacked into a plain dict.
145
+
146
+ ```python
147
+ import asyncio
148
+
149
+ import vrchatapi
150
+ from vrchatapi.api import authentication_api
151
+ from vrchatapi.websocket import VRChatWebSocket
152
+
153
+
154
+ async def main():
155
+ configuration = vrchatapi.Configuration(username="username", password="password")
156
+ async with vrchatapi.ApiClient(configuration) as api_client:
157
+ api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
158
+ await authentication_api.AuthenticationApi(api_client).get_current_user()
159
+
160
+ # Reads the auth cookie + User-Agent from the logged-in client.
161
+ ws = VRChatWebSocket.from_client(api_client)
162
+
163
+ @ws.on("friend-online")
164
+ async def on_friend_online(event):
165
+ print("online:", event.content["user"]["displayName"])
166
+
167
+ # Or consume the same stream as an async iterator:
168
+ # async for event in ws:
169
+ # print(event.type, event.content)
170
+
171
+ await ws.run() # blocks; reconnects automatically by default
172
+ ```
173
+
174
+ `VRChatWebSocket` supports callback registration (`ws.on("friend-online", ...)`
175
+ / `@ws.on(...)`, a catch-all `ws.on_event(...)`), an async iterator over the
176
+ same event stream, error/connect/disconnect/reconnect hooks, automatic
177
+ reconnection with exponential backoff (`auto_reconnect=False` disables it), and
178
+ a configurable application-level heartbeat (default 30s;
179
+ `heartbeat_interval=None` disables it). See
180
+ [examples/examples-source/websocket.py](examples/examples-source/websocket.py)
181
+ and the [Websocket API reference](https://vrchat.community/websocket) for
182
+ details.
183
+
@@ -0,0 +1,151 @@
1
+ ![](https://github.com/vrchatapi/vrchatapi.github.io/blob/main/static/assets/img/lang/lang_python_banner_1500x300.png?raw=true)
2
+
3
+ # VRChat API Library for Python (async)
4
+
5
+ A Python client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).
6
+
7
+ This is an **asynchronous** (asyncio + aiohttp) adaptation of [VRChatAPI-Python](https://github.com/vrchatapi/vrchatapi-python). All API
8
+ methods are coroutines and must be awaited.
9
+
10
+ ## Disclaimer
11
+
12
+ This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.
13
+
14
+ > Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:
15
+ > * We do not provide documentation or support for the API.
16
+ > * Do not make queries to the API more than once per 60 seconds.
17
+ > * Abuse of the API may result in account termination.
18
+ > * Access to API endpoints may break at any given time, with no warning.
19
+
20
+ As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.
21
+
22
+ ## Getting Started
23
+
24
+ First add the package to to your project:
25
+ ```bash
26
+ pip install vrchatapi-async
27
+ ```
28
+
29
+ Below is an example on how to login to the API and fetch your own user information.
30
+
31
+ ```python
32
+ import asyncio
33
+
34
+ # Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
35
+ import vrchatapi
36
+ from vrchatapi.api import authentication_api
37
+ from vrchatapi.exceptions import UnauthorizedException
38
+ from vrchatapi.models.two_factor_auth_code import TwoFactorAuthCode
39
+ from vrchatapi.models.two_factor_email_code import TwoFactorEmailCode
40
+
41
+
42
+ async def main():
43
+ configuration = vrchatapi.Configuration(
44
+ username = 'username',
45
+ password = 'password',
46
+ )
47
+
48
+ # Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
49
+ # Here we enter a context of the API Client and instantiate the Authentication API which is required for logging in.
50
+
51
+ # Enter a context with an instance of the API client
52
+ async with vrchatapi.ApiClient(configuration) as api_client:
53
+ # Set our User-Agent as per VRChat Usage Policy
54
+ api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
55
+
56
+ # Instantiate instances of API classes
57
+ auth_api = authentication_api.AuthenticationApi(api_client)
58
+
59
+ try:
60
+ # Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
61
+ current_user = await auth_api.get_current_user()
62
+ except UnauthorizedException as e:
63
+ if e.status == 200:
64
+ if "Email 2 Factor Authentication" in e.reason:
65
+ # Step 3.5. Calling email verify2fa if the account has 2FA disabled
66
+ await auth_api.verify2_fa_email_code(two_factor_email_code=TwoFactorEmailCode(input("Email 2FA Code: ")))
67
+ elif "2 Factor Authentication" in e.reason:
68
+ # Step 3.5. Calling verify2fa if the account has 2FA enabled
69
+ await auth_api.verify2_fa(two_factor_auth_code=TwoFactorAuthCode(input("2FA Code: ")))
70
+ current_user = await auth_api.get_current_user()
71
+ else:
72
+ print("Exception when calling API: %s\n", e)
73
+ except vrchatapi.ApiException as e:
74
+ print("Exception when calling API: %s\n", e)
75
+
76
+ print("Logged in as:", current_user.display_name)
77
+
78
+
79
+ if __name__ == "__main__":
80
+ asyncio.run(main())
81
+ ```
82
+
83
+ See [Examples](examples/README.md) for more example usage on getting started.
84
+
85
+ ## Async API notes
86
+
87
+ Compared to [the synchronous SDK](https://github.com/vrchatapi/vrchatapi-python), this version changes the calling convention:
88
+
89
+ - Every API method (`foo`, `foo_with_http_info`, `foo_without_preload_content`)
90
+ is an `async def` coroutine and must be awaited.
91
+ - `ApiClient` is used as an async context manager (`async with ... as api_client`).
92
+ - The `async_req` parameter and the thread-pool based `async_req=True` usage are
93
+ removed; calls are natively asynchronous.
94
+ - `foo_with_http_info()` returns an `ApiResponse` object (`status_code`,
95
+ `headers`, `data`, `raw_data`) instead of a `(data, status, headers)` tuple.
96
+ - `foo_without_preload_content()` returns the raw aiohttp response for
97
+ streaming; the legacy `_preload_content=False` parameter is removed.
98
+ - The session `CookieJar`, the readable 2FA errors
99
+ (`UnauthorizedException` with status 200), the URL-encoded basic auth, the
100
+ `~()` safe path-parameter charset and the lowercase boolean query parameters
101
+ behave exactly like the synchronous SDK.
102
+
103
+ ## Contributing
104
+
105
+ Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
106
+
107
+ ## Websocket (Pipeline) API
108
+
109
+ The SDK also ships a hand-written async client for VRChat's real-time
110
+ WebSocket (Pipeline) API (`wss://pipeline.vrchat.cloud`), which pushes invites,
111
+ friend requests, friend online/offline events, user and group updates to the
112
+ authenticated client. The connection is receive-only; every message's
113
+ double-encoded `content` field is automatically unpacked into a plain dict.
114
+
115
+ ```python
116
+ import asyncio
117
+
118
+ import vrchatapi
119
+ from vrchatapi.api import authentication_api
120
+ from vrchatapi.websocket import VRChatWebSocket
121
+
122
+
123
+ async def main():
124
+ configuration = vrchatapi.Configuration(username="username", password="password")
125
+ async with vrchatapi.ApiClient(configuration) as api_client:
126
+ api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
127
+ await authentication_api.AuthenticationApi(api_client).get_current_user()
128
+
129
+ # Reads the auth cookie + User-Agent from the logged-in client.
130
+ ws = VRChatWebSocket.from_client(api_client)
131
+
132
+ @ws.on("friend-online")
133
+ async def on_friend_online(event):
134
+ print("online:", event.content["user"]["displayName"])
135
+
136
+ # Or consume the same stream as an async iterator:
137
+ # async for event in ws:
138
+ # print(event.type, event.content)
139
+
140
+ await ws.run() # blocks; reconnects automatically by default
141
+ ```
142
+
143
+ `VRChatWebSocket` supports callback registration (`ws.on("friend-online", ...)`
144
+ / `@ws.on(...)`, a catch-all `ws.on_event(...)`), an async iterator over the
145
+ same event stream, error/connect/disconnect/reconnect hooks, automatic
146
+ reconnection with exponential backoff (`auto_reconnect=False` disables it), and
147
+ a configurable application-level heartbeat (default 30s;
148
+ `heartbeat_interval=None` disables it). See
149
+ [examples/examples-source/websocket.py](examples/examples-source/websocket.py)
150
+ and the [Websocket API reference](https://vrchat.community/websocket) for
151
+ details.
@@ -0,0 +1,6 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=42",
4
+ "wheel"
5
+ ]
6
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,7 @@
1
+ [flake8]
2
+ max-line-length = 99
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+