Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK #49

Merged
merged 2 commits into from
Aug 28, 2024
Merged

SDK #49

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
266 changes: 266 additions & 0 deletions .github/workflows/graphfleet-openapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
{
"openapi": "3.1.0",
"info": {
"title": "GraphFleet API",
"version": "0.5.3"
},
"paths": {
"/search/local": {
"post": {
"tags": [
"search"
],
"summary": "Api Local Search",
"operationId": "api_local_search_search_local_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/search/global": {
"post": {
"tags": [
"search"
],
"summary": "Api Global Search",
"operationId": "api_global_search_search_global_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/search/local/stream": {
"post": {
"tags": [
"search"
],
"summary": "Api Local Search Stream",
"operationId": "api_local_search_stream_search_local_stream_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/search/global/stream": {
"post": {
"tags": [
"search"
],
"summary": "Api Global Search Stream",
"operationId": "api_global_search_stream_search_global_stream_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/": {
"get": {
"summary": "Root",
"operationId": "root__get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
}
},
"components": {
"schemas": {
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"SearchQuery": {
"properties": {
"query": {
"type": "string",
"title": "Query"
}
},
"type": "object",
"required": [
"query"
],
"title": "SearchQuery"
},
"SearchResponse": {
"properties": {
"response": {
"type": "string",
"title": "Response"
},
"context_data": {
"type": "object",
"title": "Context Data"
}
},
"type": "object",
"required": [
"response",
"context_data"
],
"title": "SearchResponse"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
}
}
}
126 changes: 126 additions & 0 deletions .github/workflows/graphfleet.stainless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# yaml-language-server: $schema=https://app.stainlessapi.com/config.schema.json

organization:
name: graphfleet
docs: https://docs.agenticfleet.com
contact: [email protected]
github_org: Qredence
resources:
data:
methods:
list: get /data
create: post /data
delete: delete /data/{storage_name}
models:
storagenamelist: StorageNameList
index:
methods:
create: post /index
list: get /index
delete: delete /index/{index_name}
subresources:
status:
methods:
retrieve: get /index/status/{index_name}
models:
indexstatusresponse: IndexStatusResponse
config:
subresources:
prompts:
methods:
retrieve: get /index/config/prompts
models:
indexnamelist: IndexNameList
query:
methods:
global: post /query/global
local: post /query/local
models:
graphresponse: GraphResponse
sources:
subresources:
reports:
methods:
retrieve: get /source/report/{index_name}/{report_id}
models:
reportresponse: ReportResponse
texts:
methods:
retrieve: get /source/text/{index_name}/{text_unit_id}
models:
textunitresponse: TextUnitResponse
entities:
methods:
retrieve: get /source/entity/{index_name}/{entity_id}
models:
entityresponse: EntityResponse
claims:
methods:
retrieve: get /source/claim/{index_name}/{claim_id}
models:
claimresponse: ClaimResponse
relationships:
methods:
retrieve: get /source/relationship/{index_name}/{relationship_id}
models:
relationshipresponse: RelationshipResponse
graph_operations:
subresources:
graphml:
methods:
retrieve: get /graph/graphml/{index_name}
stats:
methods:
retrieve: get /graph/stats/{index_name}
models:
graphdataresponse: GraphDataResponse
experimental_operations:
methods:
global_query: post /experimental/query/global/streaming
health:
methods:
retrieve: get /health
$shared:
models:
baseresponse: BaseResponse
targets:
node:
package_name: graphfleet
production_repo: null
publish:
npm: false
python:
package_name: graphfleet
production_repo: null
publish:
pypi: false
settings:
license: Apache-2.0
client_settings:
opts: {}
omit_platform_headers: false
default_headers: {}
default_timeout: PT60S
default_retries:
max_retries: 2
initial_delay_seconds: 0.5
max_delay_seconds: 8
environments:
production: https://localhost:8080/test-api
query_settings:
nested_format: brackets
array_format: comma
readme:
example_requests:
default:
type: request
endpoint: get /health
params: &ref_0 {}
headline:
type: request
endpoint: get /health
params: *ref_0
pagination:
type: request
endpoint: get /data
params: {}
Loading
Loading