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
4 changes: 4 additions & 0 deletions artifact/artifact/v1alpha/artifact_private_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package artifact.artifact.v1alpha;

import "artifact/artifact/v1alpha/artifact.proto";
import "artifact/artifact/v1alpha/file_catalog.proto";

// ArtifactPrivateService exposes the private endpoints that allow clients to
// manage artifacts.
Expand Down Expand Up @@ -36,4 +37,7 @@ service ArtifactPrivateService {

// Update Object
rpc UpdateObject(UpdateObjectRequest) returns (UpdateObjectResponse);

// Get Chat file
rpc GetChatFile(GetChatFileRequest) returns (GetChatFileResponse);
}
16 changes: 16 additions & 0 deletions artifact/artifact/v1alpha/file_catalog.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,19 @@ message GetFileCatalogResponse {
// chunks
repeated Chunk chunks = 4;
}

// GetChatFileRequest
message GetChatFileRequest {
// id of the namespace
string namespace_id = 1;
// id of the catalog
string catalog_id = 2;
// id of the file(i.e. file name)
string file_id = 3;
}

// GetChatFileResponse
message GetChatFileResponse {
// converted markdown content
string markdown = 1;
}
7 changes: 7 additions & 0 deletions openapi/v2/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7663,6 +7663,13 @@ definitions:
allOf:
- $ref: '#/definitions/UserSubscription'
description: GetAuthenticatedUserSubscriptionResponse contains the requested subscription.
GetChatFileResponse:
type: object
properties:
markdown:
type: string
title: converted markdown content
title: GetChatFileResponse
GetChatResponse:
type: object
properties:
Expand Down