Skip to content

Commit 2956ef0

Browse files
dsinghvitjb9dc
andauthored
Update fern definition (#1592)
Co-authored-by: tjb9dc <[email protected]>
1 parent dbdc0c4 commit 2956ef0

File tree

2 files changed

+191
-0
lines changed

2 files changed

+191
-0
lines changed

fern/apis/fai/generators.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,17 @@ groups:
2525
token: ${NPM_TOKEN}
2626
config:
2727
namespaceExport: FernAI
28+
29+
java-sdk:
30+
generators:
31+
- name: fernapi/fern-java-sdk
32+
version: 3.10.3
33+
output:
34+
location: maven
35+
url: maven.buildwithfern.com
36+
coordinate: com.fern.fern:fai-sdk
37+
config:
38+
enable-forward-compatible-enums: true
39+
enable-wire-tests: false
40+
package-prefix: com.fern.fai
41+
client-class-name: FernAI

fern/apis/fai/openapi.json

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,52 @@
12181218
]
12191219
}
12201220
},
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+
},
12211267
"/feedback/{domain}": {
12221268
"post": {
12231269
"tags": [
@@ -2327,6 +2373,56 @@
23272373
]
23282374
}
23292375
},
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+
},
23302426
"/settings/ask-ai": {
23312427
"get": {
23322428
"tags": [
@@ -3073,6 +3169,39 @@
30733169
},
30743170
"components": {
30753171
"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+
},
30763205
"ChatMessage": {
30773206
"properties": {
30783207
"role": {
@@ -3654,6 +3783,9 @@
36543783
],
36553784
"title": "Pr Url"
36563785
},
3786+
"status": {
3787+
"$ref": "#/components/schemas/EditingSessionStatus"
3788+
},
36573789
"created_at": {
36583790
"type": "string",
36593791
"format": "date-time",
@@ -3673,11 +3805,23 @@
36733805
"base_branch",
36743806
"working_branch",
36753807
"pr_url",
3808+
"status",
36763809
"created_at",
36773810
"updated_at"
36783811
],
36793812
"title": "EditingSession"
36803813
},
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+
},
36813825
"EnableAskAiRequest": {
36823826
"properties": {
36833827
"domains": {
@@ -4213,6 +4357,19 @@
42134357
],
42144358
"title": "InsightWithMetadata"
42154359
},
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+
},
42164373
"JobStatusResponse": {
42174374
"properties": {
42184375
"job_id": {
@@ -4825,6 +4982,16 @@
48254982
}
48264983
],
48274984
"title": "Pr Url"
4985+
},
4986+
"status": {
4987+
"anyOf": [
4988+
{
4989+
"$ref": "#/components/schemas/EditingSessionStatus"
4990+
},
4991+
{
4992+
"type": "null"
4993+
}
4994+
]
48284995
}
48294996
},
48304997
"type": "object",
@@ -5035,6 +5202,16 @@
50355202
"type"
50365203
],
50375204
"title": "ValidationError"
5205+
},
5206+
"VersionBump": {
5207+
"type": "string",
5208+
"enum": [
5209+
"MAJOR",
5210+
"MINOR",
5211+
"PATCH",
5212+
"NO_CHANGE"
5213+
],
5214+
"title": "VersionBump"
50385215
}
50395216
},
50405217
"securitySchemes": {

0 commit comments

Comments
 (0)