|
2035 | 2035 | ] |
2036 | 2036 | } |
2037 | 2037 | }, |
| 2038 | + "/scribe/callback/slack/{team_id}/{channel_id}/{thread_ts}": { |
| 2039 | + "post": { |
| 2040 | + "tags": [ |
| 2041 | + "Scribe" |
| 2042 | + ], |
| 2043 | + "summary": "Scribe Slack Callback", |
| 2044 | + "description": "Callback endpoint for Scribe to post PR URLs back to Slack threads.", |
| 2045 | + "operationId": "scribe_slack_callback", |
| 2046 | + "parameters": [ |
| 2047 | + { |
| 2048 | + "name": "team_id", |
| 2049 | + "in": "path", |
| 2050 | + "required": true, |
| 2051 | + "schema": { |
| 2052 | + "type": "string", |
| 2053 | + "title": "Team Id" |
| 2054 | + } |
| 2055 | + }, |
| 2056 | + { |
| 2057 | + "name": "channel_id", |
| 2058 | + "in": "path", |
| 2059 | + "required": true, |
| 2060 | + "schema": { |
| 2061 | + "type": "string", |
| 2062 | + "title": "Channel Id" |
| 2063 | + } |
| 2064 | + }, |
| 2065 | + { |
| 2066 | + "name": "thread_ts", |
| 2067 | + "in": "path", |
| 2068 | + "required": true, |
| 2069 | + "schema": { |
| 2070 | + "type": "string", |
| 2071 | + "title": "Thread Ts" |
| 2072 | + } |
| 2073 | + } |
| 2074 | + ], |
| 2075 | + "requestBody": { |
| 2076 | + "required": true, |
| 2077 | + "content": { |
| 2078 | + "application/json": { |
| 2079 | + "schema": { |
| 2080 | + "$ref": "#/components/schemas/ScribeSlackCallbackRequest" |
| 2081 | + } |
| 2082 | + } |
| 2083 | + } |
| 2084 | + }, |
| 2085 | + "responses": { |
| 2086 | + "200": { |
| 2087 | + "description": "Successful Response", |
| 2088 | + "content": { |
| 2089 | + "application/json": { |
| 2090 | + "schema": { |
| 2091 | + "$ref": "#/components/schemas/ScribeSlackCallbackResponse" |
| 2092 | + } |
| 2093 | + } |
| 2094 | + } |
| 2095 | + }, |
| 2096 | + "422": { |
| 2097 | + "description": "Validation Error", |
| 2098 | + "content": { |
| 2099 | + "application/json": { |
| 2100 | + "schema": { |
| 2101 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 2102 | + } |
| 2103 | + } |
| 2104 | + } |
| 2105 | + } |
| 2106 | + }, |
| 2107 | + "x-fern-audiences": [ |
| 2108 | + "internal" |
| 2109 | + ] |
| 2110 | + } |
| 2111 | + }, |
| 2112 | + "/scribe/test/domain-to-repo": { |
| 2113 | + "get": { |
| 2114 | + "tags": [ |
| 2115 | + "Scribe" |
| 2116 | + ], |
| 2117 | + "summary": "Test Domain To Repo", |
| 2118 | + "operationId": "test_domain_to_repo", |
| 2119 | + "parameters": [ |
| 2120 | + { |
| 2121 | + "name": "domain", |
| 2122 | + "in": "query", |
| 2123 | + "required": true, |
| 2124 | + "schema": { |
| 2125 | + "type": "string", |
| 2126 | + "title": "Domain" |
| 2127 | + } |
| 2128 | + } |
| 2129 | + ], |
| 2130 | + "responses": { |
| 2131 | + "200": { |
| 2132 | + "description": "Successful Response", |
| 2133 | + "content": { |
| 2134 | + "application/json": { |
| 2135 | + "schema": { |
| 2136 | + "$ref": "#/components/schemas/DomainRepoResponse" |
| 2137 | + } |
| 2138 | + } |
| 2139 | + } |
| 2140 | + }, |
| 2141 | + "422": { |
| 2142 | + "description": "Validation Error", |
| 2143 | + "content": { |
| 2144 | + "application/json": { |
| 2145 | + "schema": { |
| 2146 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 2147 | + } |
| 2148 | + } |
| 2149 | + } |
| 2150 | + } |
| 2151 | + }, |
| 2152 | + "x-fern-audiences": [ |
| 2153 | + "internal" |
| 2154 | + ] |
| 2155 | + } |
| 2156 | + }, |
2038 | 2157 | "/settings/ask-ai": { |
2039 | 2158 | "get": { |
2040 | 2159 | "tags": [ |
|
2467 | 2586 | ] |
2468 | 2587 | } |
2469 | 2588 | }, |
2470 | | - "/slack/integrations": { |
| 2589 | + "/slack/install": { |
2471 | 2590 | "post": { |
2472 | 2591 | "tags": [ |
2473 | 2592 | "Slack" |
2474 | 2593 | ], |
2475 | 2594 | "summary": "Create Slack Integration", |
2476 | 2595 | "operationId": "create_slack_integration", |
2477 | | - "requestBody": { |
2478 | | - "content": { |
2479 | | - "application/json": { |
2480 | | - "schema": { |
2481 | | - "$ref": "#/components/schemas/CreateSlackIntegration" |
2482 | | - } |
| 2596 | + "parameters": [ |
| 2597 | + { |
| 2598 | + "name": "domain", |
| 2599 | + "in": "query", |
| 2600 | + "required": true, |
| 2601 | + "schema": { |
| 2602 | + "type": "string", |
| 2603 | + "title": "Domain" |
2483 | 2604 | } |
2484 | | - }, |
2485 | | - "required": true |
2486 | | - }, |
| 2605 | + } |
| 2606 | + ], |
2487 | 2607 | "responses": { |
2488 | 2608 | "200": { |
2489 | 2609 | "description": "Successful Response", |
|
2507 | 2627 | } |
2508 | 2628 | }, |
2509 | 2629 | "x-fern-audiences": [ |
2510 | | - "internal" |
| 2630 | + "customers" |
| 2631 | + ], |
| 2632 | + "security": [ |
| 2633 | + { |
| 2634 | + "bearerAuth": [] |
| 2635 | + } |
2511 | 2636 | ] |
2512 | 2637 | } |
2513 | 2638 | }, |
|
2726 | 2851 | "internal" |
2727 | 2852 | ] |
2728 | 2853 | } |
2729 | | - }, |
2730 | | - "/slack/get-install/{integration_id}": { |
2731 | | - "get": { |
2732 | | - "tags": [ |
2733 | | - "Slack" |
2734 | | - ], |
2735 | | - "summary": "Get Slack Install Link By Id", |
2736 | | - "operationId": "get_slack_install_link_by_id", |
2737 | | - "parameters": [ |
2738 | | - { |
2739 | | - "name": "integration_id", |
2740 | | - "in": "path", |
2741 | | - "required": true, |
2742 | | - "schema": { |
2743 | | - "type": "string", |
2744 | | - "title": "Integration Id" |
2745 | | - } |
2746 | | - } |
2747 | | - ], |
2748 | | - "responses": { |
2749 | | - "200": { |
2750 | | - "description": "Successful Response", |
2751 | | - "content": { |
2752 | | - "application/json": { |
2753 | | - "schema": {} |
2754 | | - } |
2755 | | - } |
2756 | | - }, |
2757 | | - "422": { |
2758 | | - "description": "Validation Error", |
2759 | | - "content": { |
2760 | | - "application/json": { |
2761 | | - "schema": { |
2762 | | - "$ref": "#/components/schemas/HTTPValidationError" |
2763 | | - } |
2764 | | - } |
2765 | | - } |
2766 | | - } |
2767 | | - }, |
2768 | | - "x-fern-audiences": [ |
2769 | | - "internal" |
2770 | | - ] |
2771 | | - } |
2772 | 2854 | } |
2773 | 2855 | }, |
2774 | 2856 | "components": { |
|
3118 | 3200 | ], |
3119 | 3201 | "title": "CreateQueryResponse" |
3120 | 3202 | }, |
3121 | | - "CreateSlackIntegration": { |
3122 | | - "properties": { |
3123 | | - "domain": { |
3124 | | - "type": "string", |
3125 | | - "title": "Domain" |
3126 | | - } |
3127 | | - }, |
3128 | | - "type": "object", |
3129 | | - "required": [ |
3130 | | - "domain" |
3131 | | - ], |
3132 | | - "title": "CreateSlackIntegration" |
3133 | | - }, |
3134 | 3203 | "DeleteDocumentRequest": { |
3135 | 3204 | "properties": { |
3136 | 3205 | "document_id": { |
|
3295 | 3364 | ], |
3296 | 3365 | "title": "Document" |
3297 | 3366 | }, |
| 3367 | + "DomainRepoResponse": { |
| 3368 | + "properties": { |
| 3369 | + "domain": { |
| 3370 | + "type": "string", |
| 3371 | + "title": "Domain" |
| 3372 | + }, |
| 3373 | + "repo": { |
| 3374 | + "anyOf": [ |
| 3375 | + { |
| 3376 | + "type": "string" |
| 3377 | + }, |
| 3378 | + { |
| 3379 | + "type": "null" |
| 3380 | + } |
| 3381 | + ], |
| 3382 | + "title": "Repo" |
| 3383 | + } |
| 3384 | + }, |
| 3385 | + "type": "object", |
| 3386 | + "required": [ |
| 3387 | + "domain", |
| 3388 | + "repo" |
| 3389 | + ], |
| 3390 | + "title": "DomainRepoResponse" |
| 3391 | + }, |
3298 | 3392 | "Feedback": { |
3299 | 3393 | "properties": { |
3300 | 3394 | "query_id": { |
|
4008 | 4102 | ], |
4009 | 4103 | "title": "ReconstructIndexResponse" |
4010 | 4104 | }, |
| 4105 | + "ScribeSlackCallbackRequest": { |
| 4106 | + "properties": { |
| 4107 | + "pr_url": { |
| 4108 | + "type": "string", |
| 4109 | + "title": "Pr Url" |
| 4110 | + } |
| 4111 | + }, |
| 4112 | + "type": "object", |
| 4113 | + "required": [ |
| 4114 | + "pr_url" |
| 4115 | + ], |
| 4116 | + "title": "ScribeSlackCallbackRequest" |
| 4117 | + }, |
| 4118 | + "ScribeSlackCallbackResponse": { |
| 4119 | + "properties": { |
| 4120 | + "status": { |
| 4121 | + "type": "string", |
| 4122 | + "title": "Status" |
| 4123 | + }, |
| 4124 | + "status_code": { |
| 4125 | + "type": "integer", |
| 4126 | + "title": "Status Code" |
| 4127 | + } |
| 4128 | + }, |
| 4129 | + "type": "object", |
| 4130 | + "required": [ |
| 4131 | + "status", |
| 4132 | + "status_code" |
| 4133 | + ], |
| 4134 | + "title": "ScribeSlackCallbackResponse" |
| 4135 | + }, |
4011 | 4136 | "SlackIntegrationResponse": { |
4012 | 4137 | "properties": { |
4013 | 4138 | "integration_id": { |
|
4056 | 4181 | } |
4057 | 4182 | ], |
4058 | 4183 | "title": "Installed At" |
| 4184 | + }, |
| 4185 | + "integration_url": { |
| 4186 | + "type": "string", |
| 4187 | + "title": "Integration Url" |
4059 | 4188 | } |
4060 | 4189 | }, |
4061 | 4190 | "type": "object", |
4062 | 4191 | "required": [ |
4063 | 4192 | "integration_id", |
4064 | 4193 | "domain", |
4065 | | - "created_at" |
| 4194 | + "created_at", |
| 4195 | + "integration_url" |
4066 | 4196 | ], |
4067 | 4197 | "title": "SlackIntegrationResponse" |
4068 | 4198 | }, |
|
0 commit comments