|
88 | 88 | "security": [{ "bearer": [] }]
|
89 | 89 | }
|
90 | 90 | },
|
| 91 | + "/v1/branches/{branch_id}/push": { |
| 92 | + "post": { |
| 93 | + "operationId": "v1-push-a-branch", |
| 94 | + "summary": "Pushes a database branch", |
| 95 | + "description": "Pushes the specified database branch", |
| 96 | + "parameters": [ |
| 97 | + { |
| 98 | + "name": "branch_id", |
| 99 | + "required": true, |
| 100 | + "in": "path", |
| 101 | + "description": "Branch ID", |
| 102 | + "schema": { "type": "string" } |
| 103 | + } |
| 104 | + ], |
| 105 | + "responses": { |
| 106 | + "201": { |
| 107 | + "description": "", |
| 108 | + "content": { |
| 109 | + "application/json": { |
| 110 | + "schema": { "$ref": "#/components/schemas/BranchUpdateResponse" } |
| 111 | + } |
| 112 | + } |
| 113 | + }, |
| 114 | + "500": { "description": "Failed to push database branch" } |
| 115 | + }, |
| 116 | + "tags": ["Environments"], |
| 117 | + "security": [{ "bearer": [] }] |
| 118 | + } |
| 119 | + }, |
91 | 120 | "/v1/branches/{branch_id}/reset": {
|
92 | 121 | "post": {
|
93 | 122 | "operationId": "v1-reset-a-branch",
|
|
107 | 136 | "description": "",
|
108 | 137 | "content": {
|
109 | 138 | "application/json": {
|
110 |
| - "schema": { "$ref": "#/components/schemas/BranchResetResponse" } |
| 139 | + "schema": { "$ref": "#/components/schemas/BranchUpdateResponse" } |
111 | 140 | }
|
112 | 141 | }
|
113 | 142 | },
|
|
284 | 313 | "security": [{ "oauth2": ["write"] }]
|
285 | 314 | }
|
286 | 315 | },
|
| 316 | + "/v1/oauth/revoke": { |
| 317 | + "post": { |
| 318 | + "operationId": "v1-revoke-token", |
| 319 | + "summary": "[Beta] Revoke oauth app authorization and it's corresponding tokens", |
| 320 | + "parameters": [], |
| 321 | + "requestBody": { |
| 322 | + "required": true, |
| 323 | + "content": { |
| 324 | + "application/json": { |
| 325 | + "schema": { "$ref": "#/components/schemas/OAuthRevokeTokenBodyDto" } |
| 326 | + } |
| 327 | + } |
| 328 | + }, |
| 329 | + "responses": { "204": { "description": "" } }, |
| 330 | + "tags": ["OAuth"], |
| 331 | + "security": [{ "oauth2": ["write"] }] |
| 332 | + } |
| 333 | + }, |
287 | 334 | "/v1/snippets": {
|
288 | 335 | "get": {
|
289 | 336 | "operationId": "v1-list-all-snippets",
|
|
1977 | 2024 | "security": [{ "bearer": [] }]
|
1978 | 2025 | }
|
1979 | 2026 | },
|
| 2027 | + "/v1/projects/{ref}/pause": { |
| 2028 | + "post": { |
| 2029 | + "operationId": "v1-pause-a-project", |
| 2030 | + "summary": "Pauses the given project", |
| 2031 | + "parameters": [ |
| 2032 | + { |
| 2033 | + "name": "ref", |
| 2034 | + "required": true, |
| 2035 | + "in": "path", |
| 2036 | + "description": "Project ref", |
| 2037 | + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } |
| 2038 | + } |
| 2039 | + ], |
| 2040 | + "responses": { "200": { "description": "" }, "403": { "description": "" } }, |
| 2041 | + "tags": ["Projects"], |
| 2042 | + "security": [{ "bearer": [] }] |
| 2043 | + } |
| 2044 | + }, |
1980 | 2045 | "/v1/projects/{ref}/database/query": {
|
1981 | 2046 | "post": {
|
1982 | 2047 | "operationId": "v1-run-a-query",
|
|
2670 | 2735 | "UpdateBranchBody": {
|
2671 | 2736 | "type": "object",
|
2672 | 2737 | "properties": {
|
| 2738 | + "reset_on_push": { |
| 2739 | + "type": "boolean", |
| 2740 | + "deprecated": true, |
| 2741 | + "description": "This field is deprecated and will be ignored. Use v1-reset-a-branch endpoint directly instead." |
| 2742 | + }, |
2673 | 2743 | "branch_name": { "type": "string" },
|
2674 | 2744 | "git_branch": { "type": "string" },
|
2675 |
| - "reset_on_push": { "type": "boolean" }, |
2676 | 2745 | "persistent": { "type": "boolean" },
|
2677 | 2746 | "status": {
|
2678 | 2747 | "enum": [
|
|
2691 | 2760 | "type": "object",
|
2692 | 2761 | "properties": {
|
2693 | 2762 | "pr_number": { "type": "integer", "format": "int32" },
|
2694 |
| - "latest_check_run_id": { "type": "integer", "format": "int64" }, |
| 2763 | + "latest_check_run_id": { |
| 2764 | + "type": "number", |
| 2765 | + "deprecated": true, |
| 2766 | + "description": "This field is deprecated and will not be populated." |
| 2767 | + }, |
2695 | 2768 | "id": { "type": "string" },
|
2696 | 2769 | "name": { "type": "string" },
|
2697 | 2770 | "project_ref": { "type": "string" },
|
2698 | 2771 | "parent_project_ref": { "type": "string" },
|
2699 | 2772 | "is_default": { "type": "boolean" },
|
2700 | 2773 | "git_branch": { "type": "string" },
|
2701 |
| - "reset_on_push": { "type": "boolean" }, |
2702 | 2774 | "persistent": { "type": "boolean" },
|
2703 | 2775 | "status": {
|
2704 | 2776 | "enum": [
|
|
2720 | 2792 | "project_ref",
|
2721 | 2793 | "parent_project_ref",
|
2722 | 2794 | "is_default",
|
2723 |
| - "reset_on_push", |
2724 | 2795 | "persistent",
|
2725 | 2796 | "status",
|
2726 | 2797 | "created_at",
|
|
2732 | 2803 | "properties": { "message": { "type": "string" } },
|
2733 | 2804 | "required": ["message"]
|
2734 | 2805 | },
|
2735 |
| - "BranchResetResponse": { |
| 2806 | + "BranchUpdateResponse": { |
2736 | 2807 | "type": "object",
|
2737 | 2808 | "properties": { "workflow_run_id": { "type": "string" }, "message": { "type": "string" } },
|
2738 | 2809 | "required": ["workflow_run_id", "message"]
|
|
2791 | 2862 | "type": "object",
|
2792 | 2863 | "properties": {
|
2793 | 2864 | "db_pass": { "type": "string", "description": "Database password" },
|
2794 |
| - "name": { |
2795 |
| - "type": "string", |
2796 |
| - "description": "Name of your project, should not contain dots" |
2797 |
| - }, |
| 2865 | + "name": { "type": "string", "description": "Name of your project" }, |
2798 | 2866 | "organization_id": { "type": "string", "description": "Slug of your organization" },
|
2799 | 2867 | "plan": {
|
2800 | 2868 | "type": "string",
|
|
2939 | 3007 | },
|
2940 | 3008 | "required": ["expires_in", "token_type", "access_token", "refresh_token"]
|
2941 | 3009 | },
|
| 3010 | + "OAuthRevokeTokenBodyDto": { |
| 3011 | + "type": "object", |
| 3012 | + "properties": { |
| 3013 | + "client_id": { "type": "string", "format": "uuid" }, |
| 3014 | + "client_secret": { "type": "string" }, |
| 3015 | + "refresh_token": { "type": "string" } |
| 3016 | + }, |
| 3017 | + "required": ["client_id", "client_secret", "refresh_token"], |
| 3018 | + "additionalProperties": false |
| 3019 | + }, |
2942 | 3020 | "SnippetProject": {
|
2943 | 3021 | "type": "object",
|
2944 | 3022 | "properties": {
|
|
0 commit comments