|
1218 | 1218 | ] |
1219 | 1219 | } |
1220 | 1220 | }, |
| 1221 | + "/editing-sessions/{editing_id}/interrupt": { |
| 1222 | + "post": { |
| 1223 | + "tags": [ |
| 1224 | + "Editing_Sessions" |
| 1225 | + ], |
| 1226 | + "summary": "Interrupt Editing Session", |
| 1227 | + "description": "Interrupt a running editing session.", |
| 1228 | + "operationId": "interrupt_editing_session", |
| 1229 | + "parameters": [ |
| 1230 | + { |
| 1231 | + "name": "editing_id", |
| 1232 | + "in": "path", |
| 1233 | + "required": true, |
| 1234 | + "schema": { |
| 1235 | + "type": "string", |
| 1236 | + "title": "Editing Id" |
| 1237 | + } |
| 1238 | + } |
| 1239 | + ], |
| 1240 | + "responses": { |
| 1241 | + "200": { |
| 1242 | + "description": "Successful Response", |
| 1243 | + "content": { |
| 1244 | + "application/json": { |
| 1245 | + "schema": { |
| 1246 | + "$ref": "#/components/schemas/InterruptEditingSessionResponse" |
| 1247 | + } |
| 1248 | + } |
| 1249 | + } |
| 1250 | + }, |
| 1251 | + "422": { |
| 1252 | + "description": "Validation Error", |
| 1253 | + "content": { |
| 1254 | + "application/json": { |
| 1255 | + "schema": { |
| 1256 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1257 | + } |
| 1258 | + } |
| 1259 | + } |
| 1260 | + } |
| 1261 | + }, |
| 1262 | + "x-fern-audiences": [ |
| 1263 | + "internal" |
| 1264 | + ] |
| 1265 | + } |
| 1266 | + }, |
1221 | 1267 | "/feedback/{domain}": { |
1222 | 1268 | "post": { |
1223 | 1269 | "tags": [ |
|
2327 | 2373 | ] |
2328 | 2374 | } |
2329 | 2375 | }, |
| 2376 | + "/sdks/analyze-commit-diff": { |
| 2377 | + "post": { |
| 2378 | + "tags": [ |
| 2379 | + "Sdks" |
| 2380 | + ], |
| 2381 | + "summary": "Analyze Commit Diff", |
| 2382 | + "description": "Analyzes a git diff and generates an AI-powered commit message with version bump recommendation.", |
| 2383 | + "operationId": "analyze_commit_diff", |
| 2384 | + "requestBody": { |
| 2385 | + "content": { |
| 2386 | + "application/json": { |
| 2387 | + "schema": { |
| 2388 | + "$ref": "#/components/schemas/AnalyzeCommitDiffRequest" |
| 2389 | + } |
| 2390 | + } |
| 2391 | + }, |
| 2392 | + "required": true |
| 2393 | + }, |
| 2394 | + "responses": { |
| 2395 | + "200": { |
| 2396 | + "description": "Successful Response", |
| 2397 | + "content": { |
| 2398 | + "application/json": { |
| 2399 | + "schema": { |
| 2400 | + "$ref": "#/components/schemas/AnalyzeCommitDiffResponse" |
| 2401 | + } |
| 2402 | + } |
| 2403 | + } |
| 2404 | + }, |
| 2405 | + "422": { |
| 2406 | + "description": "Validation Error", |
| 2407 | + "content": { |
| 2408 | + "application/json": { |
| 2409 | + "schema": { |
| 2410 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 2411 | + } |
| 2412 | + } |
| 2413 | + } |
| 2414 | + } |
| 2415 | + }, |
| 2416 | + "security": [ |
| 2417 | + { |
| 2418 | + "bearerAuth": [] |
| 2419 | + } |
| 2420 | + ], |
| 2421 | + "x-fern-audiences": [ |
| 2422 | + "internal" |
| 2423 | + ] |
| 2424 | + } |
| 2425 | + }, |
2330 | 2426 | "/settings/ask-ai": { |
2331 | 2427 | "get": { |
2332 | 2428 | "tags": [ |
|
3073 | 3169 | }, |
3074 | 3170 | "components": { |
3075 | 3171 | "schemas": { |
| 3172 | + "AnalyzeCommitDiffRequest": { |
| 3173 | + "properties": { |
| 3174 | + "diff": { |
| 3175 | + "type": "string", |
| 3176 | + "title": "Diff", |
| 3177 | + "description": "The git diff to analyze for generating a commit message" |
| 3178 | + } |
| 3179 | + }, |
| 3180 | + "type": "object", |
| 3181 | + "required": [ |
| 3182 | + "diff" |
| 3183 | + ], |
| 3184 | + "title": "AnalyzeCommitDiffRequest" |
| 3185 | + }, |
| 3186 | + "AnalyzeCommitDiffResponse": { |
| 3187 | + "properties": { |
| 3188 | + "message": { |
| 3189 | + "type": "string", |
| 3190 | + "title": "Message", |
| 3191 | + "description": "The AI-generated commit message summarizing the changes in the diff" |
| 3192 | + }, |
| 3193 | + "version_bump": { |
| 3194 | + "$ref": "#/components/schemas/VersionBump", |
| 3195 | + "description": "The recommended semantic version bump: MAJOR for breaking changes, MINOR for new features, PATCH for bug fixes and other changes, NO_CHANGE for empty diffs" |
| 3196 | + } |
| 3197 | + }, |
| 3198 | + "type": "object", |
| 3199 | + "required": [ |
| 3200 | + "message", |
| 3201 | + "version_bump" |
| 3202 | + ], |
| 3203 | + "title": "AnalyzeCommitDiffResponse" |
| 3204 | + }, |
3076 | 3205 | "ChatMessage": { |
3077 | 3206 | "properties": { |
3078 | 3207 | "role": { |
|
3654 | 3783 | ], |
3655 | 3784 | "title": "Pr Url" |
3656 | 3785 | }, |
| 3786 | + "status": { |
| 3787 | + "$ref": "#/components/schemas/EditingSessionStatus" |
| 3788 | + }, |
3657 | 3789 | "created_at": { |
3658 | 3790 | "type": "string", |
3659 | 3791 | "format": "date-time", |
|
3673 | 3805 | "base_branch", |
3674 | 3806 | "working_branch", |
3675 | 3807 | "pr_url", |
| 3808 | + "status", |
3676 | 3809 | "created_at", |
3677 | 3810 | "updated_at" |
3678 | 3811 | ], |
3679 | 3812 | "title": "EditingSession" |
3680 | 3813 | }, |
| 3814 | + "EditingSessionStatus": { |
| 3815 | + "type": "string", |
| 3816 | + "enum": [ |
| 3817 | + "waiting", |
| 3818 | + "active", |
| 3819 | + "interrupted", |
| 3820 | + "completed" |
| 3821 | + ], |
| 3822 | + "title": "EditingSessionStatus", |
| 3823 | + "description": "Status of an editing session." |
| 3824 | + }, |
3681 | 3825 | "EnableAskAiRequest": { |
3682 | 3826 | "properties": { |
3683 | 3827 | "domains": { |
|
4213 | 4357 | ], |
4214 | 4358 | "title": "InsightWithMetadata" |
4215 | 4359 | }, |
| 4360 | + "InterruptEditingSessionResponse": { |
| 4361 | + "properties": { |
| 4362 | + "editing_session": { |
| 4363 | + "$ref": "#/components/schemas/EditingSession" |
| 4364 | + } |
| 4365 | + }, |
| 4366 | + "type": "object", |
| 4367 | + "required": [ |
| 4368 | + "editing_session" |
| 4369 | + ], |
| 4370 | + "title": "InterruptEditingSessionResponse", |
| 4371 | + "description": "Response when interrupting an editing session." |
| 4372 | + }, |
4216 | 4373 | "JobStatusResponse": { |
4217 | 4374 | "properties": { |
4218 | 4375 | "job_id": { |
|
4825 | 4982 | } |
4826 | 4983 | ], |
4827 | 4984 | "title": "Pr Url" |
| 4985 | + }, |
| 4986 | + "status": { |
| 4987 | + "anyOf": [ |
| 4988 | + { |
| 4989 | + "$ref": "#/components/schemas/EditingSessionStatus" |
| 4990 | + }, |
| 4991 | + { |
| 4992 | + "type": "null" |
| 4993 | + } |
| 4994 | + ] |
4828 | 4995 | } |
4829 | 4996 | }, |
4830 | 4997 | "type": "object", |
|
5035 | 5202 | "type" |
5036 | 5203 | ], |
5037 | 5204 | "title": "ValidationError" |
| 5205 | + }, |
| 5206 | + "VersionBump": { |
| 5207 | + "type": "string", |
| 5208 | + "enum": [ |
| 5209 | + "MAJOR", |
| 5210 | + "MINOR", |
| 5211 | + "PATCH", |
| 5212 | + "NO_CHANGE" |
| 5213 | + ], |
| 5214 | + "title": "VersionBump" |
5038 | 5215 | } |
5039 | 5216 | }, |
5040 | 5217 | "securitySchemes": { |
|
0 commit comments