-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
115 changed files
with
5,194 additions
and
4,045 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
.vite/ | ||
out | ||
src/bin/goosed | ||
src/bin/goosed | ||
/src/bin/goosed.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
dist | ||
out | ||
src/api/generated | ||
*.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineConfig } from '@hey-api/openapi-ts'; | ||
|
||
export default defineConfig({ | ||
input: './openapi.json', | ||
output: './src/api/generated', | ||
plugins: ['@hey-api/client-fetch'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,264 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "goose-server", | ||
"description": "An AI agent", | ||
"contact": { | ||
"name": "Block", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache-2.0" | ||
}, | ||
"version": "1.0.8" | ||
}, | ||
"paths": { | ||
"/config": { | ||
"get": { | ||
"tags": [ | ||
"super::routes::config_management" | ||
], | ||
"operationId": "read_all_config", | ||
"responses": { | ||
"200": { | ||
"description": "All configuration values retrieved successfully", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ConfigResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/config/extension": { | ||
"post": { | ||
"tags": [ | ||
"super::routes::config_management" | ||
], | ||
"operationId": "add_extension", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ExtensionQuery" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Extension added successfully", | ||
"content": { | ||
"text/plain": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"400": { | ||
"description": "Invalid request" | ||
}, | ||
"500": { | ||
"description": "Internal server error" | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"tags": [ | ||
"super::routes::config_management" | ||
], | ||
"operationId": "remove_extension", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ConfigKeyQuery" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Extension removed successfully", | ||
"content": { | ||
"text/plain": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "Extension not found" | ||
}, | ||
"500": { | ||
"description": "Internal server error" | ||
} | ||
} | ||
} | ||
}, | ||
"/config/read": { | ||
"get": { | ||
"tags": [ | ||
"super::routes::config_management" | ||
], | ||
"operationId": "read_config", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ConfigKeyQuery" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Configuration value retrieved successfully", | ||
"content": { | ||
"application/json": { | ||
"schema": {} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "Configuration key not found" | ||
} | ||
} | ||
} | ||
}, | ||
"/config/remove": { | ||
"post": { | ||
"tags": [ | ||
"super::routes::config_management" | ||
], | ||
"operationId": "remove_config", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/ConfigKeyQuery" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Configuration value removed successfully", | ||
"content": { | ||
"text/plain": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "Configuration key not found" | ||
}, | ||
"500": { | ||
"description": "Internal server error" | ||
} | ||
} | ||
} | ||
}, | ||
"/config/upsert": { | ||
"post": { | ||
"tags": [ | ||
"super::routes::config_management" | ||
], | ||
"operationId": "upsert_config", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/UpsertConfigQuery" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Configuration value upserted successfully", | ||
"content": { | ||
"text/plain": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal server error" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"ConfigKeyQuery": { | ||
"type": "object", | ||
"required": [ | ||
"key" | ||
], | ||
"properties": { | ||
"key": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"ConfigResponse": { | ||
"type": "object", | ||
"required": [ | ||
"config" | ||
], | ||
"properties": { | ||
"config": { | ||
"type": "object", | ||
"additionalProperties": {} | ||
} | ||
} | ||
}, | ||
"ExtensionQuery": { | ||
"type": "object", | ||
"required": [ | ||
"name", | ||
"config" | ||
], | ||
"properties": { | ||
"config": {}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"UpsertConfigQuery": { | ||
"type": "object", | ||
"required": [ | ||
"key", | ||
"value" | ||
], | ||
"properties": { | ||
"is_secret": { | ||
"type": "boolean", | ||
"nullable": true | ||
}, | ||
"key": { | ||
"type": "string" | ||
}, | ||
"value": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.