|
4 | 4 | VRChat API Documentation |
5 | 5 |
|
6 | 6 |
|
7 | | - The version of the OpenAPI document: 1.10.1 |
| 7 | + The version of the OpenAPI document: 1.11.0 |
8 | 8 | Contact: me@ariesclark.com |
9 | 9 | Generated by: https://openapi-generator.tech |
10 | 10 | """ |
@@ -314,7 +314,7 @@ def delete_user_with_http_info(self, user_id, **kwargs): # noqa: E501 |
314 | 314 | } |
315 | 315 |
|
316 | 316 | return self.api_client.call_api( |
317 | | - '/user/{userId}/delete', 'PUT', |
| 317 | + '/users/{userId}/delete', 'PUT', |
318 | 318 | path_params, |
319 | 319 | query_params, |
320 | 320 | header_params, |
@@ -729,6 +729,149 @@ def verify2_fa_with_http_info(self, **kwargs): # noqa: E501 |
729 | 729 | collection_formats=collection_formats, |
730 | 730 | _request_auth=local_var_params.get('_request_auth')) |
731 | 731 |
|
| 732 | + def verify2_fa_email_code(self, **kwargs): # noqa: E501 |
| 733 | + """Verify 2FA email code # noqa: E501 |
| 734 | +
|
| 735 | + Finishes the login sequence with an 2FA email code. # noqa: E501 |
| 736 | + This method makes a synchronous HTTP request by default. To make an |
| 737 | + asynchronous HTTP request, please pass async_req=True |
| 738 | +
|
| 739 | + >>> thread = api.verify2_fa_email_code(async_req=True) |
| 740 | + >>> result = thread.get() |
| 741 | +
|
| 742 | + :param two_factor_email_code: |
| 743 | + :type two_factor_email_code: TwoFactorEmailCode |
| 744 | + :param async_req: Whether to execute the request asynchronously. |
| 745 | + :type async_req: bool, optional |
| 746 | + :param _preload_content: if False, the urllib3.HTTPResponse object will |
| 747 | + be returned without reading/decoding response |
| 748 | + data. Default is True. |
| 749 | + :type _preload_content: bool, optional |
| 750 | + :param _request_timeout: timeout setting for this request. If one |
| 751 | + number provided, it will be total request |
| 752 | + timeout. It can also be a pair (tuple) of |
| 753 | + (connection, read) timeouts. |
| 754 | + :return: Returns the result object. |
| 755 | + If the method is called asynchronously, |
| 756 | + returns the request thread. |
| 757 | + :rtype: Verify2FAEmailCodeResult |
| 758 | + """ |
| 759 | + kwargs['_return_http_data_only'] = True |
| 760 | + return self.verify2_fa_email_code_with_http_info(**kwargs) # noqa: E501 |
| 761 | + |
| 762 | + def verify2_fa_email_code_with_http_info(self, **kwargs): # noqa: E501 |
| 763 | + """Verify 2FA email code # noqa: E501 |
| 764 | +
|
| 765 | + Finishes the login sequence with an 2FA email code. # noqa: E501 |
| 766 | + This method makes a synchronous HTTP request by default. To make an |
| 767 | + asynchronous HTTP request, please pass async_req=True |
| 768 | +
|
| 769 | + >>> thread = api.verify2_fa_email_code_with_http_info(async_req=True) |
| 770 | + >>> result = thread.get() |
| 771 | +
|
| 772 | + :param two_factor_email_code: |
| 773 | + :type two_factor_email_code: TwoFactorEmailCode |
| 774 | + :param async_req: Whether to execute the request asynchronously. |
| 775 | + :type async_req: bool, optional |
| 776 | + :param _return_http_data_only: response data without head status code |
| 777 | + and headers |
| 778 | + :type _return_http_data_only: bool, optional |
| 779 | + :param _preload_content: if False, the urllib3.HTTPResponse object will |
| 780 | + be returned without reading/decoding response |
| 781 | + data. Default is True. |
| 782 | + :type _preload_content: bool, optional |
| 783 | + :param _request_timeout: timeout setting for this request. If one |
| 784 | + number provided, it will be total request |
| 785 | + timeout. It can also be a pair (tuple) of |
| 786 | + (connection, read) timeouts. |
| 787 | + :param _request_auth: set to override the auth_settings for an a single |
| 788 | + request; this effectively ignores the authentication |
| 789 | + in the spec for a single request. |
| 790 | + :type _request_auth: dict, optional |
| 791 | + :type _content_type: string, optional: force content-type for the request |
| 792 | + :return: Returns the result object. |
| 793 | + If the method is called asynchronously, |
| 794 | + returns the request thread. |
| 795 | + :rtype: tuple(Verify2FAEmailCodeResult, status_code(int), headers(HTTPHeaderDict)) |
| 796 | + """ |
| 797 | + |
| 798 | + local_var_params = locals() |
| 799 | + |
| 800 | + all_params = [ |
| 801 | + 'two_factor_email_code' |
| 802 | + ] |
| 803 | + all_params.extend( |
| 804 | + [ |
| 805 | + 'async_req', |
| 806 | + '_return_http_data_only', |
| 807 | + '_preload_content', |
| 808 | + '_request_timeout', |
| 809 | + '_request_auth', |
| 810 | + '_content_type', |
| 811 | + '_headers' |
| 812 | + ] |
| 813 | + ) |
| 814 | + |
| 815 | + for key, val in six.iteritems(local_var_params['kwargs']): |
| 816 | + if key not in all_params: |
| 817 | + raise ApiTypeError( |
| 818 | + "Got an unexpected keyword argument '%s'" |
| 819 | + " to method verify2_fa_email_code" % key |
| 820 | + ) |
| 821 | + local_var_params[key] = val |
| 822 | + del local_var_params['kwargs'] |
| 823 | + |
| 824 | + collection_formats = {} |
| 825 | + |
| 826 | + path_params = {} |
| 827 | + |
| 828 | + query_params = [] |
| 829 | + |
| 830 | + header_params = dict(local_var_params.get('_headers', {})) |
| 831 | + |
| 832 | + form_params = [] |
| 833 | + local_var_files = {} |
| 834 | + |
| 835 | + body_params = None |
| 836 | + if 'two_factor_email_code' in local_var_params: |
| 837 | + body_params = local_var_params['two_factor_email_code'] |
| 838 | + # HTTP header `Accept` |
| 839 | + header_params['Accept'] = self.api_client.select_header_accept( |
| 840 | + ['application/json']) # noqa: E501 |
| 841 | + |
| 842 | + # HTTP header `Content-Type` |
| 843 | + content_types_list = local_var_params.get('_content_type', |
| 844 | + self.api_client.select_header_content_type( |
| 845 | + ['application/json'], |
| 846 | + 'POST', body_params)) # noqa: E501 |
| 847 | + if content_types_list: |
| 848 | + header_params['Content-Type'] = content_types_list |
| 849 | + |
| 850 | + # Authentication setting |
| 851 | + auth_settings = ['authCookie'] # noqa: E501 |
| 852 | + |
| 853 | + response_types_map = { |
| 854 | + 200: "Verify2FAEmailCodeResult", |
| 855 | + 401: "Error", |
| 856 | + } |
| 857 | + |
| 858 | + return self.api_client.call_api( |
| 859 | + '/auth/twofactorauth/emailotp/verify', 'POST', |
| 860 | + path_params, |
| 861 | + query_params, |
| 862 | + header_params, |
| 863 | + body=body_params, |
| 864 | + post_params=form_params, |
| 865 | + files=local_var_files, |
| 866 | + response_types_map=response_types_map, |
| 867 | + auth_settings=auth_settings, |
| 868 | + async_req=local_var_params.get('async_req'), |
| 869 | + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 |
| 870 | + _preload_content=local_var_params.get('_preload_content', True), |
| 871 | + _request_timeout=local_var_params.get('_request_timeout'), |
| 872 | + collection_formats=collection_formats, |
| 873 | + _request_auth=local_var_params.get('_request_auth')) |
| 874 | + |
732 | 875 | def verify_auth_token(self, **kwargs): # noqa: E501 |
733 | 876 | """Verify Auth Token # noqa: E501 |
734 | 877 |
|
|
0 commit comments