Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions fern/apis/fai/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ groups:
token: ${NPM_TOKEN}
config:
namespaceExport: FernAI

java-sdk:
generators:
- name: fernapi/fern-java-sdk
version: 3.10.3
output:
location: maven
url: maven.buildwithfern.com
coordinate: com.fern.fern:fai-sdk
config:
enable-forward-compatible-enums: true
enable-wire-tests: false
package-prefix: com.fern.fai
client-class-name: FernAI
177 changes: 177 additions & 0 deletions fern/apis/fai/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,52 @@
]
}
},
"/editing-sessions/{editing_id}/interrupt": {
"post": {
"tags": [
"Editing_Sessions"
],
"summary": "Interrupt Editing Session",
"description": "Interrupt a running editing session.",
"operationId": "interrupt_editing_session",
"parameters": [
{
"name": "editing_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Editing Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InterruptEditingSessionResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"x-fern-audiences": [
"internal"
]
}
},
"/feedback/{domain}": {
"post": {
"tags": [
Expand Down Expand Up @@ -2327,6 +2373,56 @@
]
}
},
"/sdks/analyze-commit-diff": {
"post": {
"tags": [
"Sdks"
],
"summary": "Analyze Commit Diff",
"description": "Analyzes a git diff and generates an AI-powered commit message with version bump recommendation.",
"operationId": "analyze_commit_diff",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AnalyzeCommitDiffRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AnalyzeCommitDiffResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
},
"security": [
{
"bearerAuth": []
}
],
"x-fern-audiences": [
"internal"
]
}
},
"/settings/ask-ai": {
"get": {
"tags": [
Expand Down Expand Up @@ -3073,6 +3169,39 @@
},
"components": {
"schemas": {
"AnalyzeCommitDiffRequest": {
"properties": {
"diff": {
"type": "string",
"title": "Diff",
"description": "The git diff to analyze for generating a commit message"
}
},
"type": "object",
"required": [
"diff"
],
"title": "AnalyzeCommitDiffRequest"
},
"AnalyzeCommitDiffResponse": {
"properties": {
"message": {
"type": "string",
"title": "Message",
"description": "The AI-generated commit message summarizing the changes in the diff"
},
"version_bump": {
"$ref": "#/components/schemas/VersionBump",
"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"
}
},
"type": "object",
"required": [
"message",
"version_bump"
],
"title": "AnalyzeCommitDiffResponse"
},
"ChatMessage": {
"properties": {
"role": {
Expand Down Expand Up @@ -3654,6 +3783,9 @@
],
"title": "Pr Url"
},
"status": {
"$ref": "#/components/schemas/EditingSessionStatus"
},
"created_at": {
"type": "string",
"format": "date-time",
Expand All @@ -3673,11 +3805,23 @@
"base_branch",
"working_branch",
"pr_url",
"status",
"created_at",
"updated_at"
],
"title": "EditingSession"
},
"EditingSessionStatus": {
"type": "string",
"enum": [
"waiting",
"active",
"interrupted",
"completed"
],
"title": "EditingSessionStatus",
"description": "Status of an editing session."
},
"EnableAskAiRequest": {
"properties": {
"domains": {
Expand Down Expand Up @@ -4213,6 +4357,19 @@
],
"title": "InsightWithMetadata"
},
"InterruptEditingSessionResponse": {
"properties": {
"editing_session": {
"$ref": "#/components/schemas/EditingSession"
}
},
"type": "object",
"required": [
"editing_session"
],
"title": "InterruptEditingSessionResponse",
"description": "Response when interrupting an editing session."
},
"JobStatusResponse": {
"properties": {
"job_id": {
Expand Down Expand Up @@ -4825,6 +4982,16 @@
}
],
"title": "Pr Url"
},
"status": {
"anyOf": [
{
"$ref": "#/components/schemas/EditingSessionStatus"
},
{
"type": "null"
}
]
}
},
"type": "object",
Expand Down Expand Up @@ -5035,6 +5202,16 @@
"type"
],
"title": "ValidationError"
},
"VersionBump": {
"type": "string",
"enum": [
"MAJOR",
"MINOR",
"PATCH",
"NO_CHANGE"
],
"title": "VersionBump"
}
},
"securitySchemes": {
Expand Down