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
6 changes: 6 additions & 0 deletions npi/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ async def Ping(
) -> Empty:
return Empty()

async def GetAppScreen(
self,
request: api_pb2.GetAppScreenRequest,
_: grpc.ServicerContext,) -> api_pb2.GetAppScreenResponse:
return api_pb2.GetAppScreenResponse(base64=f'thread_id: {request.thread_id}, app_type: {request.type}')

async def __fetch_thread(self, req: api_pb2.Request, resp: api_pb2.Response):
logger.info(f"fetching chat [{req.thread_id}]")
thread = self.thread_manager.get_thread(req.thread_id)
Expand Down
507 changes: 333 additions & 174 deletions proto/go/api/api.pb.go

Large diffs are not rendered by default.

129 changes: 129 additions & 0 deletions proto/go/api/api.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions proto/go/api/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,53 @@
]
}
},
"/apps/getAppScreen/{threadId}/{type}": {
"get": {
"operationId": "AppServer_GetAppScreen",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/apiGetAppScreenResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "threadId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "type",
"in": "path",
"required": true,
"type": "string",
"enum": [
"APP_UNKNOWN",
"GOOGLE_GMAIL",
"GOOGLE_CALENDAR",
"GITHUB",
"SLACK",
"DISCORD",
"TWITTER",
"WEB_BROWSER",
"TWILIO"
]
}
],
"tags": [
"AppServer"
]
}
},
"/apps/google/auth/callback": {
"post": {
"operationId": "AppServer_GoogleAuthCallback",
Expand Down Expand Up @@ -291,6 +338,14 @@
}
}
},
"apiGetAppScreenResponse": {
"type": "object",
"properties": {
"base64": {
"type": "string"
}
}
},
"apiRequest": {
"type": "object",
"properties": {
Expand Down
37 changes: 37 additions & 0 deletions proto/go/api/api_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions proto/go/api/api_grpc_mock.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading