Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Shub/let listener mode control (#9584)

Shubham Naik34bab3cf9a22
diff --git a/fern/openapi.json b/fern/openapi.json
index 55a528b44..4fa4a0fc6 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -25983,6 +25983,15 @@
},
"lastHeartbeat": {
"type": "number"
+ },
+ "currentMode": {
+ "type": "string",
+ "enum": [
+ "default",
+ "acceptEdits",
+ "plan",
+ "bypassPermissions"
+ ]
}
},
"required": [
@@ -26245,6 +26254,86 @@
}
}
}
+ },
+ "/v1/listeners/{connectionId}/mode": {
+ "post": {
+ "description": "Change the permission mode of a specific listener connection",
+ "summary": "Change Listener Mode",
+ "tags": ["listeners"],
+ "parameters": [
+ {
+ "name": "connectionId",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "operationId": "listeners.sendModeChange",
+ "requestBody": {
+ "description": "Body",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "string",
+ "enum": [
+ "default",
+ "acceptEdits",
+ "plan",
+ "bypassPermissions"
+ ]
+ }
+ },
+ "required": ["mode"]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "200",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "success": {
+ "type": "boolean"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": ["success", "message"]
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "404",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "errorCode": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": ["errorCode", "message"]
+ }
+ }
+ }
+ }
+ }
+ }
}
},
"components": {