|
7768 | 7768 | } |
7769 | 7769 | } |
7770 | 7770 | }, |
| 7771 | + "/oauth2/verify-account-linking": { |
| 7772 | + "get": { |
| 7773 | + "tags": [ |
| 7774 | + "oauth2" |
| 7775 | + ], |
| 7776 | + "summary": "Verify OAuth account linking and complete the authentication.", |
| 7777 | + "description": "This endpoint is called when a user clicks the verification link sent to their email after attempting to log in with OAuth when an existing account with the same email was found. This endpoint validates the token, links the OAuth account to the user, and creates a session.", |
| 7778 | + "operationId": "verify_oauth_account_linking", |
| 7779 | + "parameters": [ |
| 7780 | + { |
| 7781 | + "in": "query", |
| 7782 | + "name": "callback_url", |
| 7783 | + "description": "Optional callback URL to redirect to after verification", |
| 7784 | + "schema": { |
| 7785 | + "nullable": true, |
| 7786 | + "type": "string" |
| 7787 | + } |
| 7788 | + }, |
| 7789 | + { |
| 7790 | + "in": "query", |
| 7791 | + "name": "token", |
| 7792 | + "description": "The verification token from the email", |
| 7793 | + "required": true, |
| 7794 | + "schema": { |
| 7795 | + "type": "string" |
| 7796 | + } |
| 7797 | + } |
| 7798 | + ], |
| 7799 | + "responses": { |
| 7800 | + "302": { |
| 7801 | + "description": "Temporary Redirect", |
| 7802 | + "headers": { |
| 7803 | + "Access-Control-Allow-Credentials": { |
| 7804 | + "description": "Access-Control-Allow-Credentials header.", |
| 7805 | + "style": "simple", |
| 7806 | + "schema": { |
| 7807 | + "nullable": true, |
| 7808 | + "type": "string" |
| 7809 | + } |
| 7810 | + }, |
| 7811 | + "Access-Control-Allow-Headers": { |
| 7812 | + "description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.", |
| 7813 | + "style": "simple", |
| 7814 | + "schema": { |
| 7815 | + "nullable": true, |
| 7816 | + "type": "string" |
| 7817 | + } |
| 7818 | + }, |
| 7819 | + "Access-Control-Allow-Methods": { |
| 7820 | + "description": "Access-Control-Allow-Methods header.", |
| 7821 | + "style": "simple", |
| 7822 | + "schema": { |
| 7823 | + "nullable": true, |
| 7824 | + "type": "string" |
| 7825 | + } |
| 7826 | + }, |
| 7827 | + "Access-Control-Allow-Origin": { |
| 7828 | + "description": "Access-Control-Allow-Origin header.", |
| 7829 | + "style": "simple", |
| 7830 | + "schema": { |
| 7831 | + "nullable": true, |
| 7832 | + "type": "string" |
| 7833 | + } |
| 7834 | + }, |
| 7835 | + "Content-Location": { |
| 7836 | + "description": "The Content-Location header for responses that are not the final destination. This is used to indicate where the resource can be found, when it is finished.", |
| 7837 | + "style": "simple", |
| 7838 | + "schema": { |
| 7839 | + "nullable": true, |
| 7840 | + "type": "string" |
| 7841 | + } |
| 7842 | + }, |
| 7843 | + "Location": { |
| 7844 | + "description": "The location header for redirects and letting users know if there is a websocket they can listen to for status updates on their operation.", |
| 7845 | + "style": "simple", |
| 7846 | + "schema": { |
| 7847 | + "nullable": true, |
| 7848 | + "type": "string" |
| 7849 | + } |
| 7850 | + }, |
| 7851 | + "Set-Cookie": { |
| 7852 | + "description": "Set-Cookie header.", |
| 7853 | + "style": "simple", |
| 7854 | + "schema": { |
| 7855 | + "nullable": true, |
| 7856 | + "type": "string" |
| 7857 | + } |
| 7858 | + }, |
| 7859 | + "X-Api-Call-Id": { |
| 7860 | + "description": "ID for this request. We return it so that users can report this to us and help us debug their problems.", |
| 7861 | + "style": "simple", |
| 7862 | + "required": true, |
| 7863 | + "schema": { |
| 7864 | + "type": "string" |
| 7865 | + } |
| 7866 | + } |
| 7867 | + } |
| 7868 | + }, |
| 7869 | + "4XX": { |
| 7870 | + "$ref": "#/components/responses/Error" |
| 7871 | + }, |
| 7872 | + "5XX": { |
| 7873 | + "$ref": "#/components/responses/Error" |
| 7874 | + } |
| 7875 | + } |
| 7876 | + }, |
| 7877 | + "options": { |
| 7878 | + "tags": [ |
| 7879 | + "hidden" |
| 7880 | + ], |
| 7881 | + "summary": "OPTIONS endpoint.", |
| 7882 | + "description": "This is necessary for some preflight requests, specifically POST, PUT, and DELETE.", |
| 7883 | + "operationId": "options_verify_oauth_account_linking", |
| 7884 | + "responses": { |
| 7885 | + "204": { |
| 7886 | + "description": "resource updated", |
| 7887 | + "headers": { |
| 7888 | + "Access-Control-Allow-Credentials": { |
| 7889 | + "description": "Access-Control-Allow-Credentials header.", |
| 7890 | + "style": "simple", |
| 7891 | + "schema": { |
| 7892 | + "nullable": true, |
| 7893 | + "type": "string" |
| 7894 | + } |
| 7895 | + }, |
| 7896 | + "Access-Control-Allow-Headers": { |
| 7897 | + "description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.", |
| 7898 | + "style": "simple", |
| 7899 | + "schema": { |
| 7900 | + "nullable": true, |
| 7901 | + "type": "string" |
| 7902 | + } |
| 7903 | + }, |
| 7904 | + "Access-Control-Allow-Methods": { |
| 7905 | + "description": "Access-Control-Allow-Methods header.", |
| 7906 | + "style": "simple", |
| 7907 | + "schema": { |
| 7908 | + "nullable": true, |
| 7909 | + "type": "string" |
| 7910 | + } |
| 7911 | + }, |
| 7912 | + "Access-Control-Allow-Origin": { |
| 7913 | + "description": "Access-Control-Allow-Origin header.", |
| 7914 | + "style": "simple", |
| 7915 | + "schema": { |
| 7916 | + "nullable": true, |
| 7917 | + "type": "string" |
| 7918 | + } |
| 7919 | + }, |
| 7920 | + "Content-Location": { |
| 7921 | + "description": "The Content-Location header for responses that are not the final destination. This is used to indicate where the resource can be found, when it is finished.", |
| 7922 | + "style": "simple", |
| 7923 | + "schema": { |
| 7924 | + "nullable": true, |
| 7925 | + "type": "string" |
| 7926 | + } |
| 7927 | + }, |
| 7928 | + "Location": { |
| 7929 | + "description": "The location header for redirects and letting users know if there is a websocket they can listen to for status updates on their operation.", |
| 7930 | + "style": "simple", |
| 7931 | + "schema": { |
| 7932 | + "nullable": true, |
| 7933 | + "type": "string" |
| 7934 | + } |
| 7935 | + }, |
| 7936 | + "Set-Cookie": { |
| 7937 | + "description": "Set-Cookie header.", |
| 7938 | + "style": "simple", |
| 7939 | + "schema": { |
| 7940 | + "nullable": true, |
| 7941 | + "type": "string" |
| 7942 | + } |
| 7943 | + }, |
| 7944 | + "X-Api-Call-Id": { |
| 7945 | + "description": "ID for this request. We return it so that users can report this to us and help us debug their problems.", |
| 7946 | + "style": "simple", |
| 7947 | + "required": true, |
| 7948 | + "schema": { |
| 7949 | + "type": "string" |
| 7950 | + } |
| 7951 | + } |
| 7952 | + } |
| 7953 | + }, |
| 7954 | + "4XX": { |
| 7955 | + "$ref": "#/components/responses/Error" |
| 7956 | + }, |
| 7957 | + "5XX": { |
| 7958 | + "$ref": "#/components/responses/Error" |
| 7959 | + } |
| 7960 | + } |
| 7961 | + } |
| 7962 | + }, |
7771 | 7963 | "/org": { |
7772 | 7964 | "get": { |
7773 | 7965 | "tags": [ |
|
25600 | 25792 | "enum": [ |
25601 | 25793 | "tencent" |
25602 | 25794 | ] |
| 25795 | + }, |
| 25796 | + { |
| 25797 | + "description": "Test provider for integration tests (only available during testing).", |
| 25798 | + "type": "string", |
| 25799 | + "enum": [ |
| 25800 | + "test_provider" |
| 25801 | + ] |
25603 | 25802 | } |
25604 | 25803 | ] |
25605 | 25804 | }, |
|
0 commit comments