From 8b9592080cd7554fdfee2acbc99a7c32273865c0 Mon Sep 17 00:00:00 2001 From: droplet-bot Date: Wed, 31 Jul 2024 14:28:08 +0000 Subject: [PATCH] chore: auto-gen by protobufs triggered by commit: https://github.com/instill-ai/protobufs/commit/7be50f9315f33324f96a766fba1ffcd203a5cde8 --- artifact/artifact/v1alpha/artifact_pb2.py | 122 ++++----- artifact/artifact/v1alpha/artifact_pb2.pyi | 254 +++++++++--------- .../v1alpha/artifact_public_service_pb2.py | 44 +-- .../artifact_public_service_pb2_grpc.py | 216 +++++++-------- .../artifact_public_service_pb2_grpc.pyi | 168 ++++++------ artifact/artifact/v1alpha/chunk_pb2.py | 40 +-- artifact/artifact/v1alpha/chunk_pb2.pyi | 38 +-- 7 files changed, 441 insertions(+), 441 deletions(-) diff --git a/artifact/artifact/v1alpha/artifact_pb2.py b/artifact/artifact/v1alpha/artifact_pb2.py index e2336e8..b0833f5 100644 --- a/artifact/artifact/v1alpha/artifact_pb2.py +++ b/artifact/artifact/v1alpha/artifact_pb2.py @@ -17,7 +17,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(artifact/artifact/v1alpha/artifact.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a+common/healthcheck/v1beta/healthcheck.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x01\n\x0fLivenessRequest\x12j\n\x14health_check_request\x18\x01 \x01(\x0b\x32-.common.healthcheck.v1beta.HealthCheckRequestB\x04\xe2\x41\x01\x01H\x00R\x12healthCheckRequest\x88\x01\x01\x42\x17\n\x15_health_check_request\"v\n\x10LivenessResponse\x12\x62\n\x15health_check_response\x18\x01 \x01(\x0b\x32..common.healthcheck.v1beta.HealthCheckResponseR\x13healthCheckResponse\"\x97\x01\n\x10ReadinessRequest\x12j\n\x14health_check_request\x18\x01 \x01(\x0b\x32-.common.healthcheck.v1beta.HealthCheckRequestB\x04\xe2\x41\x01\x01H\x00R\x12healthCheckRequest\x88\x01\x01\x42\x17\n\x15_health_check_request\"w\n\x11ReadinessResponse\x12\x62\n\x15health_check_response\x18\x01 \x01(\x0b\x32..common.healthcheck.v1beta.HealthCheckResponseR\x13healthCheckResponse\"\xa1\x01\n\rRepositoryTag\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05R\x04name\x12\x14\n\x02id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x05R\x02id\x12\x1c\n\x06\x64igest\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01R\x06\x64igest\x12\x42\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\xe2\x41\x02\x03\x01R\nupdateTime\"\xb7\x01\n\x19ListRepositoryTagsRequest\x12&\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x00R\x08pageSize\x88\x01\x01\x12\x1d\n\x04page\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x01R\x04page\x88\x01\x01\x12<\n\x06parent\x18\x03 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x61pi.instill.tech/RepositoryR\x06parentB\x0c\n\n_page_sizeB\x07\n\x05_page\"\xaa\x01\n\x1aListRepositoryTagsResponse\x12<\n\x04tags\x18\x01 \x03(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x04tags\x12\x1d\n\ntotal_size\x18\x02 \x01(\x05R\ttotalSize\x12\x1b\n\tpage_size\x18\x03 \x01(\x05R\x08pageSize\x12\x12\n\x04page\x18\x04 \x01(\x05R\x04page\"X\n\x1a\x43reateRepositoryTagRequest\x12:\n\x03tag\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x03tag\"Y\n\x1b\x43reateRepositoryTagResponse\x12:\n\x03tag\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x03tag\"3\n\x17GetRepositoryTagRequest\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\"V\n\x18GetRepositoryTagResponse\x12:\n\x03tag\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x03tag\"6\n\x1a\x44\x65leteRepositoryTagRequest\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\"\x1d\n\x1b\x44\x65leteRepositoryTagResponse\"\xf4\x03\n\rKnowledgeBase\x12\x13\n\x05kb_id\x18\x01 \x01(\tR\x04kbId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1f\n\x0b\x63reate_time\x18\x05 \x01(\tR\ncreateTime\x12\x1f\n\x0bupdate_time\x18\x06 \x01(\tR\nupdateTime\x12\x1d\n\nowner_name\x18\x07 \x01(\tR\townerName\x12\x12\n\x04tags\x18\x08 \x03(\tR\x04tags\x12\x31\n\x14\x63onverting_pipelines\x18\t \x03(\tR\x13\x63onvertingPipelines\x12/\n\x13splitting_pipelines\x18\n \x03(\tR\x12splittingPipelines\x12/\n\x13\x65mbedding_pipelines\x18\x0b \x03(\tR\x12\x65mbeddingPipelines\x12\'\n\x0f\x64ownstream_apps\x18\x0c \x03(\tR\x0e\x64ownstreamApps\x12\x1f\n\x0btotal_files\x18\r \x01(\rR\ntotalFiles\x12!\n\x0ctotal_tokens\x18\x0e \x01(\rR\x0btotalTokens\x12!\n\x0cused_storage\x18\x0f \x01(\x04R\x0busedStorage\"\x89\x01\n\x1a\x43reateKnowledgeBaseRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04tags\x18\x04 \x03(\tR\x04tags\"n\n\x1b\x43reateKnowledgeBaseResponse\x12O\n\x0eknowledge_base\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.KnowledgeBaseR\rknowledgeBase\">\n\x19ListKnowledgeBasesRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\"o\n\x1aListKnowledgeBasesResponse\x12Q\n\x0fknowledge_bases\x18\x01 \x03(\x0b\x32(.artifact.artifact.v1alpha.KnowledgeBaseR\x0eknowledgeBases\"\x8a\x01\n\x1aUpdateKnowledgeBaseRequest\x12\x13\n\x05kb_id\x18\x01 \x01(\tR\x04kbId\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12!\n\x0cnamespace_id\x18\x04 \x01(\tR\x0bnamespaceId\"n\n\x1bUpdateKnowledgeBaseResponse\x12O\n\x0eknowledge_base\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.KnowledgeBaseR\rknowledgeBase\"T\n\x1a\x44\x65leteKnowledgeBaseRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x13\n\x05kb_id\x18\x02 \x01(\tR\x04kbId\"n\n\x1b\x44\x65leteKnowledgeBaseResponse\x12O\n\x0eknowledge_base\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.KnowledgeBaseR\rknowledgeBase\"\xee\x05\n\x04\x46ile\x12\x1f\n\x08\x66ile_uid\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\x07\x66ileUid\x12\x18\n\x04name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\x12=\n\x04type\x18\x03 \x01(\x0e\x32#.artifact.artifact.v1alpha.FileTypeB\x04\xe2\x41\x01\x02R\x04type\x12Y\n\x0eprocess_status\x18\x04 \x01(\x0e\x32,.artifact.artifact.v1alpha.FileProcessStatusB\x04\xe2\x41\x01\x03R\rprocessStatus\x12-\n\x0fprocess_outcome\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\x0eprocessOutcome\x12&\n\x0bretrievable\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x0bretrievable\x12\x1e\n\x07\x63ontent\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01R\x07\x63ontent\x12!\n\towner_uid\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03R\x08ownerUid\x12%\n\x0b\x63reator_uid\x18\t \x01(\tB\x04\xe2\x41\x01\x03R\ncreatorUid\x12\x1b\n\x06kb_uid\x18\n \x01(\tB\x04\xe2\x41\x01\x03R\x05kbUid\x12\x41\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\ncreateTime\x12\x41\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\nupdateTime\x12\x41\n\x0b\x64\x65lete_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\ndeleteTime\x12\x18\n\x04size\x18\x0e \x01(\x03\x42\x04\xe2\x41\x01\x03R\x04size\x12\'\n\x0ctotal_chunks\x18\x0f \x01(\x05\x42\x04\xe2\x41\x01\x03R\x0btotalChunks\x12\'\n\x0ctotal_tokens\x18\x10 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x0btotalTokens\"\x99\x01\n\x1eUploadKnowledgeBaseFileRequest\x12\'\n\x0cnamespace_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x0bnamespaceId\x12\x19\n\x05kb_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02R\x04kbId\x12\x33\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x04\x66ile\"V\n\x1fUploadKnowledgeBaseFileResponse\x12\x33\n\x04\x66ile\x18\x01 \x01(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x04\x66ile\"A\n\x1e\x44\x65leteKnowledgeBaseFileRequest\x12\x1f\n\x08\x66ile_uid\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x07\x66ileUid\"<\n\x1f\x44\x65leteKnowledgeBaseFileResponse\x12\x19\n\x08\x66ile_uid\x18\x01 \x01(\tR\x07\x66ileUid\"E\n ProcessKnowledgeBaseFilesRequest\x12!\n\tfile_uids\x18\x01 \x03(\tB\x04\xe2\x41\x01\x02R\x08\x66ileUids\"Z\n!ProcessKnowledgeBaseFilesResponse\x12\x35\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x05\x66iles\"A\n\x1cListKnowledgeBaseFilesFilter\x12!\n\tfile_uids\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01R\x08\x66ileUids\"\xf6\x01\n\x1dListKnowledgeBaseFilesRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x13\n\x05kb_id\x18\x02 \x01(\tR\x04kbId\x12!\n\tpage_size\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\x12U\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x37.artifact.artifact.v1alpha.ListKnowledgeBaseFilesFilterB\x04\xe2\x41\x01\x01R\x06\x66ilter\"\x8c\x02\n\x1eListKnowledgeBaseFilesResponse\x12\x35\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x05\x66iles\x12\x1d\n\ntotal_size\x18\x02 \x01(\x05R\ttotalSize\x12\x1b\n\tpage_size\x18\x03 \x01(\x05R\x08pageSize\x12&\n\x0fnext_page_token\x18\x04 \x01(\tR\rnextPageToken\x12O\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x37.artifact.artifact.v1alpha.ListKnowledgeBaseFilesFilterR\x06\x66ilter*\xa9\x02\n\x11\x46ileProcessStatus\x12#\n\x1f\x46ILE_PROCESS_STATUS_UNSPECIFIED\x10\x00\x12\"\n\x1e\x46ILE_PROCESS_STATUS_NOTSTARTED\x10\x01\x12\x1f\n\x1b\x46ILE_PROCESS_STATUS_WAITING\x10\x02\x12\"\n\x1e\x46ILE_PROCESS_STATUS_CONVERTING\x10\x03\x12 \n\x1c\x46ILE_PROCESS_STATUS_CHUNKING\x10\x04\x12!\n\x1d\x46ILE_PROCESS_STATUS_EMBEDDING\x10\x05\x12!\n\x1d\x46ILE_PROCESS_STATUS_COMPLETED\x10\x06\x12\x1e\n\x1a\x46ILE_PROCESS_STATUS_FAILED\x10\x07*\x9e\x01\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46ILE_TYPE_TEXT\x10\x01\x12\x11\n\rFILE_TYPE_PDF\x10\x02\x12\x16\n\x12\x46ILE_TYPE_MARKDOWN\x10\x03\x12\x11\n\rFILE_TYPE_PNG\x10\x04\x12\x12\n\x0e\x46ILE_TYPE_JPEG\x10\x05\x12\x11\n\rFILE_TYPE_JPG\x10\x06\x42\x81\x02\n\x1d\x63om.artifact.artifact.v1alphaB\rArtifactProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(artifact/artifact/v1alpha/artifact.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a+common/healthcheck/v1beta/healthcheck.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x01\n\x0fLivenessRequest\x12j\n\x14health_check_request\x18\x01 \x01(\x0b\x32-.common.healthcheck.v1beta.HealthCheckRequestB\x04\xe2\x41\x01\x01H\x00R\x12healthCheckRequest\x88\x01\x01\x42\x17\n\x15_health_check_request\"v\n\x10LivenessResponse\x12\x62\n\x15health_check_response\x18\x01 \x01(\x0b\x32..common.healthcheck.v1beta.HealthCheckResponseR\x13healthCheckResponse\"\x97\x01\n\x10ReadinessRequest\x12j\n\x14health_check_request\x18\x01 \x01(\x0b\x32-.common.healthcheck.v1beta.HealthCheckRequestB\x04\xe2\x41\x01\x01H\x00R\x12healthCheckRequest\x88\x01\x01\x42\x17\n\x15_health_check_request\"w\n\x11ReadinessResponse\x12\x62\n\x15health_check_response\x18\x01 \x01(\x0b\x32..common.healthcheck.v1beta.HealthCheckResponseR\x13healthCheckResponse\"\xa1\x01\n\rRepositoryTag\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05R\x04name\x12\x14\n\x02id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x05R\x02id\x12\x1c\n\x06\x64igest\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01R\x06\x64igest\x12\x42\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\xe2\x41\x02\x03\x01R\nupdateTime\"\xb7\x01\n\x19ListRepositoryTagsRequest\x12&\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x00R\x08pageSize\x88\x01\x01\x12\x1d\n\x04page\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x01H\x01R\x04page\x88\x01\x01\x12<\n\x06parent\x18\x03 \x01(\tB$\xe2\x41\x01\x02\xfa\x41\x1d\n\x1b\x61pi.instill.tech/RepositoryR\x06parentB\x0c\n\n_page_sizeB\x07\n\x05_page\"\xaa\x01\n\x1aListRepositoryTagsResponse\x12<\n\x04tags\x18\x01 \x03(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x04tags\x12\x1d\n\ntotal_size\x18\x02 \x01(\x05R\ttotalSize\x12\x1b\n\tpage_size\x18\x03 \x01(\x05R\x08pageSize\x12\x12\n\x04page\x18\x04 \x01(\x05R\x04page\"X\n\x1a\x43reateRepositoryTagRequest\x12:\n\x03tag\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x03tag\"Y\n\x1b\x43reateRepositoryTagResponse\x12:\n\x03tag\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x03tag\"3\n\x17GetRepositoryTagRequest\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\"V\n\x18GetRepositoryTagResponse\x12:\n\x03tag\x18\x01 \x01(\x0b\x32(.artifact.artifact.v1alpha.RepositoryTagR\x03tag\"6\n\x1a\x44\x65leteRepositoryTagRequest\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\"\x1d\n\x1b\x44\x65leteRepositoryTagResponse\"\xf8\x03\n\x07\x43\x61talog\x12\x1d\n\ncatalog_id\x18\x01 \x01(\tR\tcatalogId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1f\n\x0b\x63reate_time\x18\x05 \x01(\tR\ncreateTime\x12\x1f\n\x0bupdate_time\x18\x06 \x01(\tR\nupdateTime\x12\x1d\n\nowner_name\x18\x07 \x01(\tR\townerName\x12\x12\n\x04tags\x18\x08 \x03(\tR\x04tags\x12\x31\n\x14\x63onverting_pipelines\x18\t \x03(\tR\x13\x63onvertingPipelines\x12/\n\x13splitting_pipelines\x18\n \x03(\tR\x12splittingPipelines\x12/\n\x13\x65mbedding_pipelines\x18\x0b \x03(\tR\x12\x65mbeddingPipelines\x12\'\n\x0f\x64ownstream_apps\x18\x0c \x03(\tR\x0e\x64ownstreamApps\x12\x1f\n\x0btotal_files\x18\r \x01(\rR\ntotalFiles\x12!\n\x0ctotal_tokens\x18\x0e \x01(\rR\x0btotalTokens\x12!\n\x0cused_storage\x18\x0f \x01(\x04R\x0busedStorage\"\x83\x01\n\x14\x43reateCatalogRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04tags\x18\x04 \x03(\tR\x04tags\"U\n\x15\x43reateCatalogResponse\x12<\n\x07\x63\x61talog\x18\x01 \x01(\x0b\x32\".artifact.artifact.v1alpha.CatalogR\x07\x63\x61talog\"8\n\x13ListCatalogsRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\"V\n\x14ListCatalogsResponse\x12>\n\x08\x63\x61talogs\x18\x01 \x03(\x0b\x32\".artifact.artifact.v1alpha.CatalogR\x08\x63\x61talogs\"\x8e\x01\n\x14UpdateCatalogRequest\x12\x1d\n\ncatalog_id\x18\x01 \x01(\tR\tcatalogId\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12!\n\x0cnamespace_id\x18\x04 \x01(\tR\x0bnamespaceId\"U\n\x15UpdateCatalogResponse\x12<\n\x07\x63\x61talog\x18\x01 \x01(\x0b\x32\".artifact.artifact.v1alpha.CatalogR\x07\x63\x61talog\"X\n\x14\x44\x65leteCatalogRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\"U\n\x15\x44\x65leteCatalogResponse\x12<\n\x07\x63\x61talog\x18\x01 \x01(\x0b\x32\".artifact.artifact.v1alpha.CatalogR\x07\x63\x61talog\"\xf8\x05\n\x04\x46ile\x12\x1f\n\x08\x66ile_uid\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03R\x07\x66ileUid\x12\x18\n\x04name\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02R\x04name\x12=\n\x04type\x18\x03 \x01(\x0e\x32#.artifact.artifact.v1alpha.FileTypeB\x04\xe2\x41\x01\x02R\x04type\x12Y\n\x0eprocess_status\x18\x04 \x01(\x0e\x32,.artifact.artifact.v1alpha.FileProcessStatusB\x04\xe2\x41\x01\x03R\rprocessStatus\x12-\n\x0fprocess_outcome\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03R\x0eprocessOutcome\x12&\n\x0bretrievable\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03R\x0bretrievable\x12\x1e\n\x07\x63ontent\x18\x07 \x01(\tB\x04\xe2\x41\x01\x01R\x07\x63ontent\x12!\n\towner_uid\x18\x08 \x01(\tB\x04\xe2\x41\x01\x03R\x08ownerUid\x12%\n\x0b\x63reator_uid\x18\t \x01(\tB\x04\xe2\x41\x01\x03R\ncreatorUid\x12%\n\x0b\x63\x61talog_uid\x18\n \x01(\tB\x04\xe2\x41\x01\x03R\ncatalogUid\x12\x41\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\ncreateTime\x12\x41\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\nupdateTime\x12\x41\n\x0b\x64\x65lete_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03R\ndeleteTime\x12\x18\n\x04size\x18\x0e \x01(\x03\x42\x04\xe2\x41\x01\x03R\x04size\x12\'\n\x0ctotal_chunks\x18\x0f \x01(\x05\x42\x04\xe2\x41\x01\x03R\x0btotalChunks\x12\'\n\x0ctotal_tokens\x18\x10 \x01(\x05\x42\x04\xe2\x41\x01\x03R\x0btotalTokens\"\x9d\x01\n\x18UploadCatalogFileRequest\x12\'\n\x0cnamespace_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x0bnamespaceId\x12#\n\ncatalog_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02R\tcatalogId\x12\x33\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x04\x66ile\"P\n\x19UploadCatalogFileResponse\x12\x33\n\x04\x66ile\x18\x01 \x01(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x04\x66ile\";\n\x18\x44\x65leteCatalogFileRequest\x12\x1f\n\x08\x66ile_uid\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02R\x07\x66ileUid\"6\n\x19\x44\x65leteCatalogFileResponse\x12\x19\n\x08\x66ile_uid\x18\x01 \x01(\tR\x07\x66ileUid\"?\n\x1aProcessCatalogFilesRequest\x12!\n\tfile_uids\x18\x01 \x03(\tB\x04\xe2\x41\x01\x02R\x08\x66ileUids\"T\n\x1bProcessCatalogFilesResponse\x12\x35\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x05\x66iles\";\n\x16ListCatalogFilesFilter\x12!\n\tfile_uids\x18\x02 \x03(\tB\x04\xe2\x41\x01\x01R\x08\x66ileUids\"\xf4\x01\n\x17ListCatalogFilesRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12!\n\tpage_size\x18\x03 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\x12O\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x31.artifact.artifact.v1alpha.ListCatalogFilesFilterB\x04\xe2\x41\x01\x01R\x06\x66ilter\"\x80\x02\n\x18ListCatalogFilesResponse\x12\x35\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x1f.artifact.artifact.v1alpha.FileR\x05\x66iles\x12\x1d\n\ntotal_size\x18\x02 \x01(\x05R\ttotalSize\x12\x1b\n\tpage_size\x18\x03 \x01(\x05R\x08pageSize\x12&\n\x0fnext_page_token\x18\x04 \x01(\tR\rnextPageToken\x12I\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x31.artifact.artifact.v1alpha.ListCatalogFilesFilterR\x06\x66ilter*\xa9\x02\n\x11\x46ileProcessStatus\x12#\n\x1f\x46ILE_PROCESS_STATUS_UNSPECIFIED\x10\x00\x12\"\n\x1e\x46ILE_PROCESS_STATUS_NOTSTARTED\x10\x01\x12\x1f\n\x1b\x46ILE_PROCESS_STATUS_WAITING\x10\x02\x12\"\n\x1e\x46ILE_PROCESS_STATUS_CONVERTING\x10\x03\x12 \n\x1c\x46ILE_PROCESS_STATUS_CHUNKING\x10\x04\x12!\n\x1d\x46ILE_PROCESS_STATUS_EMBEDDING\x10\x05\x12!\n\x1d\x46ILE_PROCESS_STATUS_COMPLETED\x10\x06\x12\x1e\n\x1a\x46ILE_PROCESS_STATUS_FAILED\x10\x07*\x9e\x01\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46ILE_TYPE_TEXT\x10\x01\x12\x11\n\rFILE_TYPE_PDF\x10\x02\x12\x16\n\x12\x46ILE_TYPE_MARKDOWN\x10\x03\x12\x11\n\rFILE_TYPE_PNG\x10\x04\x12\x12\n\x0e\x46ILE_TYPE_JPEG\x10\x05\x12\x11\n\rFILE_TYPE_JPG\x10\x06\x42\x81\x02\n\x1d\x63om.artifact.artifact.v1alphaB\rArtifactProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -66,8 +66,8 @@ _FILE.fields_by_name['owner_uid']._serialized_options = b'\342A\001\003' _FILE.fields_by_name['creator_uid']._options = None _FILE.fields_by_name['creator_uid']._serialized_options = b'\342A\001\003' - _FILE.fields_by_name['kb_uid']._options = None - _FILE.fields_by_name['kb_uid']._serialized_options = b'\342A\001\003' + _FILE.fields_by_name['catalog_uid']._options = None + _FILE.fields_by_name['catalog_uid']._serialized_options = b'\342A\001\003' _FILE.fields_by_name['create_time']._options = None _FILE.fields_by_name['create_time']._serialized_options = b'\342A\001\003' _FILE.fields_by_name['update_time']._options = None @@ -80,26 +80,26 @@ _FILE.fields_by_name['total_chunks']._serialized_options = b'\342A\001\003' _FILE.fields_by_name['total_tokens']._options = None _FILE.fields_by_name['total_tokens']._serialized_options = b'\342A\001\003' - _UPLOADKNOWLEDGEBASEFILEREQUEST.fields_by_name['namespace_id']._options = None - _UPLOADKNOWLEDGEBASEFILEREQUEST.fields_by_name['namespace_id']._serialized_options = b'\342A\001\002' - _UPLOADKNOWLEDGEBASEFILEREQUEST.fields_by_name['kb_id']._options = None - _UPLOADKNOWLEDGEBASEFILEREQUEST.fields_by_name['kb_id']._serialized_options = b'\342A\001\002' - _DELETEKNOWLEDGEBASEFILEREQUEST.fields_by_name['file_uid']._options = None - _DELETEKNOWLEDGEBASEFILEREQUEST.fields_by_name['file_uid']._serialized_options = b'\342A\001\002' - _PROCESSKNOWLEDGEBASEFILESREQUEST.fields_by_name['file_uids']._options = None - _PROCESSKNOWLEDGEBASEFILESREQUEST.fields_by_name['file_uids']._serialized_options = b'\342A\001\002' - _LISTKNOWLEDGEBASEFILESFILTER.fields_by_name['file_uids']._options = None - _LISTKNOWLEDGEBASEFILESFILTER.fields_by_name['file_uids']._serialized_options = b'\342A\001\001' - _LISTKNOWLEDGEBASEFILESREQUEST.fields_by_name['page_size']._options = None - _LISTKNOWLEDGEBASEFILESREQUEST.fields_by_name['page_size']._serialized_options = b'\342A\001\001' - _LISTKNOWLEDGEBASEFILESREQUEST.fields_by_name['page_token']._options = None - _LISTKNOWLEDGEBASEFILESREQUEST.fields_by_name['page_token']._serialized_options = b'\342A\001\001' - _LISTKNOWLEDGEBASEFILESREQUEST.fields_by_name['filter']._options = None - _LISTKNOWLEDGEBASEFILESREQUEST.fields_by_name['filter']._serialized_options = b'\342A\001\001' - _globals['_FILEPROCESSSTATUS']._serialized_start=4949 - _globals['_FILEPROCESSSTATUS']._serialized_end=5246 - _globals['_FILETYPE']._serialized_start=5249 - _globals['_FILETYPE']._serialized_end=5407 + _UPLOADCATALOGFILEREQUEST.fields_by_name['namespace_id']._options = None + _UPLOADCATALOGFILEREQUEST.fields_by_name['namespace_id']._serialized_options = b'\342A\001\002' + _UPLOADCATALOGFILEREQUEST.fields_by_name['catalog_id']._options = None + _UPLOADCATALOGFILEREQUEST.fields_by_name['catalog_id']._serialized_options = b'\342A\001\002' + _DELETECATALOGFILEREQUEST.fields_by_name['file_uid']._options = None + _DELETECATALOGFILEREQUEST.fields_by_name['file_uid']._serialized_options = b'\342A\001\002' + _PROCESSCATALOGFILESREQUEST.fields_by_name['file_uids']._options = None + _PROCESSCATALOGFILESREQUEST.fields_by_name['file_uids']._serialized_options = b'\342A\001\002' + _LISTCATALOGFILESFILTER.fields_by_name['file_uids']._options = None + _LISTCATALOGFILESFILTER.fields_by_name['file_uids']._serialized_options = b'\342A\001\001' + _LISTCATALOGFILESREQUEST.fields_by_name['page_size']._options = None + _LISTCATALOGFILESREQUEST.fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _LISTCATALOGFILESREQUEST.fields_by_name['page_token']._options = None + _LISTCATALOGFILESREQUEST.fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _LISTCATALOGFILESREQUEST.fields_by_name['filter']._options = None + _LISTCATALOGFILESREQUEST.fields_by_name['filter']._serialized_options = b'\342A\001\001' + _globals['_FILEPROCESSSTATUS']._serialized_start=4813 + _globals['_FILEPROCESSSTATUS']._serialized_end=5110 + _globals['_FILETYPE']._serialized_start=5113 + _globals['_FILETYPE']._serialized_end=5271 _globals['_LIVENESSREQUEST']._serialized_start=210 _globals['_LIVENESSREQUEST']._serialized_end=360 _globals['_LIVENESSRESPONSE']._serialized_start=362 @@ -126,42 +126,42 @@ _globals['_DELETEREPOSITORYTAGREQUEST']._serialized_end=1656 _globals['_DELETEREPOSITORYTAGRESPONSE']._serialized_start=1658 _globals['_DELETEREPOSITORYTAGRESPONSE']._serialized_end=1687 - _globals['_KNOWLEDGEBASE']._serialized_start=1690 - _globals['_KNOWLEDGEBASE']._serialized_end=2190 - _globals['_CREATEKNOWLEDGEBASEREQUEST']._serialized_start=2193 - _globals['_CREATEKNOWLEDGEBASEREQUEST']._serialized_end=2330 - _globals['_CREATEKNOWLEDGEBASERESPONSE']._serialized_start=2332 - _globals['_CREATEKNOWLEDGEBASERESPONSE']._serialized_end=2442 - _globals['_LISTKNOWLEDGEBASESREQUEST']._serialized_start=2444 - _globals['_LISTKNOWLEDGEBASESREQUEST']._serialized_end=2506 - _globals['_LISTKNOWLEDGEBASESRESPONSE']._serialized_start=2508 - _globals['_LISTKNOWLEDGEBASESRESPONSE']._serialized_end=2619 - _globals['_UPDATEKNOWLEDGEBASEREQUEST']._serialized_start=2622 - _globals['_UPDATEKNOWLEDGEBASEREQUEST']._serialized_end=2760 - _globals['_UPDATEKNOWLEDGEBASERESPONSE']._serialized_start=2762 - _globals['_UPDATEKNOWLEDGEBASERESPONSE']._serialized_end=2872 - _globals['_DELETEKNOWLEDGEBASEREQUEST']._serialized_start=2874 - _globals['_DELETEKNOWLEDGEBASEREQUEST']._serialized_end=2958 - _globals['_DELETEKNOWLEDGEBASERESPONSE']._serialized_start=2960 - _globals['_DELETEKNOWLEDGEBASERESPONSE']._serialized_end=3070 - _globals['_FILE']._serialized_start=3073 - _globals['_FILE']._serialized_end=3823 - _globals['_UPLOADKNOWLEDGEBASEFILEREQUEST']._serialized_start=3826 - _globals['_UPLOADKNOWLEDGEBASEFILEREQUEST']._serialized_end=3979 - _globals['_UPLOADKNOWLEDGEBASEFILERESPONSE']._serialized_start=3981 - _globals['_UPLOADKNOWLEDGEBASEFILERESPONSE']._serialized_end=4067 - _globals['_DELETEKNOWLEDGEBASEFILEREQUEST']._serialized_start=4069 - _globals['_DELETEKNOWLEDGEBASEFILEREQUEST']._serialized_end=4134 - _globals['_DELETEKNOWLEDGEBASEFILERESPONSE']._serialized_start=4136 - _globals['_DELETEKNOWLEDGEBASEFILERESPONSE']._serialized_end=4196 - _globals['_PROCESSKNOWLEDGEBASEFILESREQUEST']._serialized_start=4198 - _globals['_PROCESSKNOWLEDGEBASEFILESREQUEST']._serialized_end=4267 - _globals['_PROCESSKNOWLEDGEBASEFILESRESPONSE']._serialized_start=4269 - _globals['_PROCESSKNOWLEDGEBASEFILESRESPONSE']._serialized_end=4359 - _globals['_LISTKNOWLEDGEBASEFILESFILTER']._serialized_start=4361 - _globals['_LISTKNOWLEDGEBASEFILESFILTER']._serialized_end=4426 - _globals['_LISTKNOWLEDGEBASEFILESREQUEST']._serialized_start=4429 - _globals['_LISTKNOWLEDGEBASEFILESREQUEST']._serialized_end=4675 - _globals['_LISTKNOWLEDGEBASEFILESRESPONSE']._serialized_start=4678 - _globals['_LISTKNOWLEDGEBASEFILESRESPONSE']._serialized_end=4946 + _globals['_CATALOG']._serialized_start=1690 + _globals['_CATALOG']._serialized_end=2194 + _globals['_CREATECATALOGREQUEST']._serialized_start=2197 + _globals['_CREATECATALOGREQUEST']._serialized_end=2328 + _globals['_CREATECATALOGRESPONSE']._serialized_start=2330 + _globals['_CREATECATALOGRESPONSE']._serialized_end=2415 + _globals['_LISTCATALOGSREQUEST']._serialized_start=2417 + _globals['_LISTCATALOGSREQUEST']._serialized_end=2473 + _globals['_LISTCATALOGSRESPONSE']._serialized_start=2475 + _globals['_LISTCATALOGSRESPONSE']._serialized_end=2561 + _globals['_UPDATECATALOGREQUEST']._serialized_start=2564 + _globals['_UPDATECATALOGREQUEST']._serialized_end=2706 + _globals['_UPDATECATALOGRESPONSE']._serialized_start=2708 + _globals['_UPDATECATALOGRESPONSE']._serialized_end=2793 + _globals['_DELETECATALOGREQUEST']._serialized_start=2795 + _globals['_DELETECATALOGREQUEST']._serialized_end=2883 + _globals['_DELETECATALOGRESPONSE']._serialized_start=2885 + _globals['_DELETECATALOGRESPONSE']._serialized_end=2970 + _globals['_FILE']._serialized_start=2973 + _globals['_FILE']._serialized_end=3733 + _globals['_UPLOADCATALOGFILEREQUEST']._serialized_start=3736 + _globals['_UPLOADCATALOGFILEREQUEST']._serialized_end=3893 + _globals['_UPLOADCATALOGFILERESPONSE']._serialized_start=3895 + _globals['_UPLOADCATALOGFILERESPONSE']._serialized_end=3975 + _globals['_DELETECATALOGFILEREQUEST']._serialized_start=3977 + _globals['_DELETECATALOGFILEREQUEST']._serialized_end=4036 + _globals['_DELETECATALOGFILERESPONSE']._serialized_start=4038 + _globals['_DELETECATALOGFILERESPONSE']._serialized_end=4092 + _globals['_PROCESSCATALOGFILESREQUEST']._serialized_start=4094 + _globals['_PROCESSCATALOGFILESREQUEST']._serialized_end=4157 + _globals['_PROCESSCATALOGFILESRESPONSE']._serialized_start=4159 + _globals['_PROCESSCATALOGFILESRESPONSE']._serialized_end=4243 + _globals['_LISTCATALOGFILESFILTER']._serialized_start=4245 + _globals['_LISTCATALOGFILESFILTER']._serialized_end=4304 + _globals['_LISTCATALOGFILESREQUEST']._serialized_start=4307 + _globals['_LISTCATALOGFILESREQUEST']._serialized_end=4551 + _globals['_LISTCATALOGFILESRESPONSE']._serialized_start=4554 + _globals['_LISTCATALOGFILESRESPONSE']._serialized_end=4810 # @@protoc_insertion_point(module_scope) diff --git a/artifact/artifact/v1alpha/artifact_pb2.pyi b/artifact/artifact/v1alpha/artifact_pb2.pyi index fdea0f9..69fbf4d 100644 --- a/artifact/artifact/v1alpha/artifact_pb2.pyi +++ b/artifact/artifact/v1alpha/artifact_pb2.pyi @@ -452,12 +452,12 @@ class DeleteRepositoryTagResponse(google.protobuf.message.Message): global___DeleteRepositoryTagResponse = DeleteRepositoryTagResponse @typing_extensions.final -class KnowledgeBase(google.protobuf.message.Message): - """KnowledgeBase represents a knowledge base.""" +class Catalog(google.protobuf.message.Message): + """Catalog represents a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int CREATE_TIME_FIELD_NUMBER: builtins.int @@ -471,43 +471,43 @@ class KnowledgeBase(google.protobuf.message.Message): TOTAL_FILES_FIELD_NUMBER: builtins.int TOTAL_TOKENS_FIELD_NUMBER: builtins.int USED_STORAGE_FIELD_NUMBER: builtins.int - kb_id: builtins.str - """The knowledge base identifier.""" + catalog_id: builtins.str + """The catalog id.""" name: builtins.str - """The knowledge base name.""" + """The catalog name.""" description: builtins.str - """The knowledge base description.""" + """The catalog description.""" create_time: builtins.str - """The creation time of the knowledge base.""" + """The creation time of the catalog.""" update_time: builtins.str - """The last update time of the knowledge base.""" + """The last update time of the catalog.""" owner_name: builtins.str - """The owner of the knowledge base.""" + """The owner/namespaceof the catalog.""" @property def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The knowledge base tags.""" + """The catalog tags.""" @property def converting_pipelines(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The knowledge base converting pipelines.""" + """The catalog converting pipelines.""" @property def splitting_pipelines(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The knowledge base splitting pipelines.""" + """The catalog splitting pipelines.""" @property def embedding_pipelines(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The knowledge base embedding pipelines.""" + """The catalog embedding pipelines.""" @property def downstream_apps(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """The downstream apps""" total_files: builtins.int - """The total files in knowledge base.""" + """The total files in catalog.""" total_tokens: builtins.int - """The total tokens in knowledge base.""" + """The total tokens in catalog.""" used_storage: builtins.int - """The current used storage in knowledge base.""" + """The current used storage in catalog.""" def __init__( self, *, - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., name: builtins.str = ..., description: builtins.str = ..., create_time: builtins.str = ..., @@ -522,13 +522,13 @@ class KnowledgeBase(google.protobuf.message.Message): total_tokens: builtins.int = ..., used_storage: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["converting_pipelines", b"converting_pipelines", "create_time", b"create_time", "description", b"description", "downstream_apps", b"downstream_apps", "embedding_pipelines", b"embedding_pipelines", "kb_id", b"kb_id", "name", b"name", "owner_name", b"owner_name", "splitting_pipelines", b"splitting_pipelines", "tags", b"tags", "total_files", b"total_files", "total_tokens", b"total_tokens", "update_time", b"update_time", "used_storage", b"used_storage"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "converting_pipelines", b"converting_pipelines", "create_time", b"create_time", "description", b"description", "downstream_apps", b"downstream_apps", "embedding_pipelines", b"embedding_pipelines", "name", b"name", "owner_name", b"owner_name", "splitting_pipelines", b"splitting_pipelines", "tags", b"tags", "total_files", b"total_files", "total_tokens", b"total_tokens", "update_time", b"update_time", "used_storage", b"used_storage"]) -> None: ... -global___KnowledgeBase = KnowledgeBase +global___Catalog = Catalog @typing_extensions.final -class CreateKnowledgeBaseRequest(google.protobuf.message.Message): - """CreateKnowledgeBaseRequest represents a request to create a knowledge base.""" +class CreateCatalogRequest(google.protobuf.message.Message): + """CreateCatalogRequest represents a request to create a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -537,14 +537,14 @@ class CreateKnowledgeBaseRequest(google.protobuf.message.Message): DESCRIPTION_FIELD_NUMBER: builtins.int TAGS_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """The knowledge base owner(nammespace).""" + """The catalog's owner(nammespace).""" name: builtins.str - """The knowledge base name.""" + """The catalog name.""" description: builtins.str - """The knowledge base description.""" + """The catalog description.""" @property def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The knowledge base tags.""" + """The catalog tags.""" def __init__( self, *, @@ -555,37 +555,37 @@ class CreateKnowledgeBaseRequest(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "namespace_id", b"namespace_id", "tags", b"tags"]) -> None: ... -global___CreateKnowledgeBaseRequest = CreateKnowledgeBaseRequest +global___CreateCatalogRequest = CreateCatalogRequest @typing_extensions.final -class CreateKnowledgeBaseResponse(google.protobuf.message.Message): - """CreateKnowledgeBaseResponse represents a response for creating a knowledge base.""" +class CreateCatalogResponse(google.protobuf.message.Message): + """CreateCatalogResponse represents a response for creating a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor - KNOWLEDGE_BASE_FIELD_NUMBER: builtins.int + CATALOG_FIELD_NUMBER: builtins.int @property - def knowledge_base(self) -> global___KnowledgeBase: - """The created knowledge base.""" + def catalog(self) -> global___Catalog: + """The created catalog.""" def __init__( self, *, - knowledge_base: global___KnowledgeBase | None = ..., + catalog: global___Catalog | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["knowledge_base", b"knowledge_base"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["knowledge_base", b"knowledge_base"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["catalog", b"catalog"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog"]) -> None: ... -global___CreateKnowledgeBaseResponse = CreateKnowledgeBaseResponse +global___CreateCatalogResponse = CreateCatalogResponse @typing_extensions.final -class ListKnowledgeBasesRequest(google.protobuf.message.Message): - """Request message for ListKnowledgeBases""" +class ListCatalogsRequest(google.protobuf.message.Message): + """Request message for ListCatalogs""" DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """User ID for which to list the knowledge bases""" + """User ID for which to list the catalogs""" def __init__( self, *, @@ -593,119 +593,119 @@ class ListKnowledgeBasesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["namespace_id", b"namespace_id"]) -> None: ... -global___ListKnowledgeBasesRequest = ListKnowledgeBasesRequest +global___ListCatalogsRequest = ListCatalogsRequest @typing_extensions.final -class ListKnowledgeBasesResponse(google.protobuf.message.Message): - """GetKnowledgeBasesResponse represents a response for getting all knowledge bases from users.""" +class ListCatalogsResponse(google.protobuf.message.Message): + """GetCatalogsResponse represents a response for getting all catalogs from users.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor - KNOWLEDGE_BASES_FIELD_NUMBER: builtins.int + CATALOGS_FIELD_NUMBER: builtins.int @property - def knowledge_bases(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KnowledgeBase]: - """The knowledge bases container.""" + def catalogs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Catalog]: + """The catalogs container.""" def __init__( self, *, - knowledge_bases: collections.abc.Iterable[global___KnowledgeBase] | None = ..., + catalogs: collections.abc.Iterable[global___Catalog] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["knowledge_bases", b"knowledge_bases"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalogs", b"catalogs"]) -> None: ... -global___ListKnowledgeBasesResponse = ListKnowledgeBasesResponse +global___ListCatalogsResponse = ListCatalogsResponse @typing_extensions.final -class UpdateKnowledgeBaseRequest(google.protobuf.message.Message): - """UpdateKnowledgeBaseRequest represents a request to update a knowledge base.""" +class UpdateCatalogRequest(google.protobuf.message.Message): + """UpdateCatalogRequest represents a request to update a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int TAGS_FIELD_NUMBER: builtins.int NAMESPACE_ID_FIELD_NUMBER: builtins.int - kb_id: builtins.str - """The knowledge base id.""" + catalog_id: builtins.str + """The catalog id.""" description: builtins.str - """The knowledge base description.""" + """The catalog description.""" @property def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The knowledge base tags.""" + """The catalog tags.""" namespace_id: builtins.str - """The knowledge base owner(namespace).""" + """The catalog owner(namespace).""" def __init__( self, *, - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., description: builtins.str = ..., tags: collections.abc.Iterable[builtins.str] | None = ..., namespace_id: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "kb_id", b"kb_id", "namespace_id", b"namespace_id", "tags", b"tags"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "description", b"description", "namespace_id", b"namespace_id", "tags", b"tags"]) -> None: ... -global___UpdateKnowledgeBaseRequest = UpdateKnowledgeBaseRequest +global___UpdateCatalogRequest = UpdateCatalogRequest @typing_extensions.final -class UpdateKnowledgeBaseResponse(google.protobuf.message.Message): - """UpdateKnowledgeBaseResponse represents a response for updating a knowledge base.""" +class UpdateCatalogResponse(google.protobuf.message.Message): + """UpdateCatalogResponse represents a response for updating a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor - KNOWLEDGE_BASE_FIELD_NUMBER: builtins.int + CATALOG_FIELD_NUMBER: builtins.int @property - def knowledge_base(self) -> global___KnowledgeBase: - """The updated knowledge base.""" + def catalog(self) -> global___Catalog: + """The updated catalog.""" def __init__( self, *, - knowledge_base: global___KnowledgeBase | None = ..., + catalog: global___Catalog | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["knowledge_base", b"knowledge_base"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["knowledge_base", b"knowledge_base"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["catalog", b"catalog"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog"]) -> None: ... -global___UpdateKnowledgeBaseResponse = UpdateKnowledgeBaseResponse +global___UpdateCatalogResponse = UpdateCatalogResponse @typing_extensions.final -class DeleteKnowledgeBaseRequest(google.protobuf.message.Message): - """DeleteKnowledgeBaseRequest represents a request to delete a knowledge base.""" +class DeleteCatalogRequest(google.protobuf.message.Message): + """DeleteCatalogRequest represents a request to delete a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int namespace_id: builtins.str """The owner's id. i.e. namespace.""" - kb_id: builtins.str - """The knowledge base identifier.""" + catalog_id: builtins.str + """The catalog id.""" def __init__( self, *, namespace_id: builtins.str = ..., - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["kb_id", b"kb_id", "namespace_id", b"namespace_id"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "namespace_id", b"namespace_id"]) -> None: ... -global___DeleteKnowledgeBaseRequest = DeleteKnowledgeBaseRequest +global___DeleteCatalogRequest = DeleteCatalogRequest @typing_extensions.final -class DeleteKnowledgeBaseResponse(google.protobuf.message.Message): - """DeleteKnowledgeBaseResponse represents a response for deleting a knowledge base.""" +class DeleteCatalogResponse(google.protobuf.message.Message): + """DeleteCatalogResponse represents a response for deleting a catalog.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor - KNOWLEDGE_BASE_FIELD_NUMBER: builtins.int + CATALOG_FIELD_NUMBER: builtins.int @property - def knowledge_base(self) -> global___KnowledgeBase: - """The knowledge base identifier.""" + def catalog(self) -> global___Catalog: + """The catalog identifier.""" def __init__( self, *, - knowledge_base: global___KnowledgeBase | None = ..., + catalog: global___Catalog | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["knowledge_base", b"knowledge_base"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["knowledge_base", b"knowledge_base"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["catalog", b"catalog"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog"]) -> None: ... -global___DeleteKnowledgeBaseResponse = DeleteKnowledgeBaseResponse +global___DeleteCatalogResponse = DeleteCatalogResponse @typing_extensions.final class File(google.protobuf.message.Message): @@ -722,7 +722,7 @@ class File(google.protobuf.message.Message): CONTENT_FIELD_NUMBER: builtins.int OWNER_UID_FIELD_NUMBER: builtins.int CREATOR_UID_FIELD_NUMBER: builtins.int - KB_UID_FIELD_NUMBER: builtins.int + CATALOG_UID_FIELD_NUMBER: builtins.int CREATE_TIME_FIELD_NUMBER: builtins.int UPDATE_TIME_FIELD_NUMBER: builtins.int DELETE_TIME_FIELD_NUMBER: builtins.int @@ -744,11 +744,11 @@ class File(google.protobuf.message.Message): content: builtins.str """contect(this is reserved for future use)""" owner_uid: builtins.str - """owner uid""" + """owner/namespaceuid""" creator_uid: builtins.str """cretor uid from authn token""" - kb_uid: builtins.str - """knowledge base uid""" + catalog_uid: builtins.str + """catalog uid""" @property def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """create time""" @@ -776,7 +776,7 @@ class File(google.protobuf.message.Message): content: builtins.str = ..., owner_uid: builtins.str = ..., creator_uid: builtins.str = ..., - kb_uid: builtins.str = ..., + catalog_uid: builtins.str = ..., create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., delete_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., @@ -785,23 +785,23 @@ class File(google.protobuf.message.Message): total_tokens: builtins.int = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["create_time", b"create_time", "delete_time", b"delete_time", "update_time", b"update_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "create_time", b"create_time", "creator_uid", b"creator_uid", "delete_time", b"delete_time", "file_uid", b"file_uid", "kb_uid", b"kb_uid", "name", b"name", "owner_uid", b"owner_uid", "process_outcome", b"process_outcome", "process_status", b"process_status", "retrievable", b"retrievable", "size", b"size", "total_chunks", b"total_chunks", "total_tokens", b"total_tokens", "type", b"type", "update_time", b"update_time"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_uid", b"catalog_uid", "content", b"content", "create_time", b"create_time", "creator_uid", b"creator_uid", "delete_time", b"delete_time", "file_uid", b"file_uid", "name", b"name", "owner_uid", b"owner_uid", "process_outcome", b"process_outcome", "process_status", b"process_status", "retrievable", b"retrievable", "size", b"size", "total_chunks", b"total_chunks", "total_tokens", b"total_tokens", "type", b"type", "update_time", b"update_time"]) -> None: ... global___File = File @typing_extensions.final -class UploadKnowledgeBaseFileRequest(google.protobuf.message.Message): +class UploadCatalogFileRequest(google.protobuf.message.Message): """upload file request""" DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int FILE_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """owenr uid""" - kb_id: builtins.str - """knowledge base uid""" + """owner/namespace uid""" + catalog_id: builtins.str + """catalog id""" @property def file(self) -> global___File: """file""" @@ -809,16 +809,16 @@ class UploadKnowledgeBaseFileRequest(google.protobuf.message.Message): self, *, namespace_id: builtins.str = ..., - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., file: global___File | None = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["file", b"file"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["file", b"file", "kb_id", b"kb_id", "namespace_id", b"namespace_id"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "file", b"file", "namespace_id", b"namespace_id"]) -> None: ... -global___UploadKnowledgeBaseFileRequest = UploadKnowledgeBaseFileRequest +global___UploadCatalogFileRequest = UploadCatalogFileRequest @typing_extensions.final -class UploadKnowledgeBaseFileResponse(google.protobuf.message.Message): +class UploadCatalogFileResponse(google.protobuf.message.Message): """upload file response""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -835,10 +835,10 @@ class UploadKnowledgeBaseFileResponse(google.protobuf.message.Message): def HasField(self, field_name: typing_extensions.Literal["file", b"file"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["file", b"file"]) -> None: ... -global___UploadKnowledgeBaseFileResponse = UploadKnowledgeBaseFileResponse +global___UploadCatalogFileResponse = UploadCatalogFileResponse @typing_extensions.final -class DeleteKnowledgeBaseFileRequest(google.protobuf.message.Message): +class DeleteCatalogFileRequest(google.protobuf.message.Message): """delete file request""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -853,10 +853,10 @@ class DeleteKnowledgeBaseFileRequest(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["file_uid", b"file_uid"]) -> None: ... -global___DeleteKnowledgeBaseFileRequest = DeleteKnowledgeBaseFileRequest +global___DeleteCatalogFileRequest = DeleteCatalogFileRequest @typing_extensions.final -class DeleteKnowledgeBaseFileResponse(google.protobuf.message.Message): +class DeleteCatalogFileResponse(google.protobuf.message.Message): """delete file response""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -871,11 +871,11 @@ class DeleteKnowledgeBaseFileResponse(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["file_uid", b"file_uid"]) -> None: ... -global___DeleteKnowledgeBaseFileResponse = DeleteKnowledgeBaseFileResponse +global___DeleteCatalogFileResponse = DeleteCatalogFileResponse @typing_extensions.final -class ProcessKnowledgeBaseFilesRequest(google.protobuf.message.Message): - """Process KnowledgeBase File Request""" +class ProcessCatalogFilesRequest(google.protobuf.message.Message): + """Process Catalog File Request""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -890,11 +890,11 @@ class ProcessKnowledgeBaseFilesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["file_uids", b"file_uids"]) -> None: ... -global___ProcessKnowledgeBaseFilesRequest = ProcessKnowledgeBaseFilesRequest +global___ProcessCatalogFilesRequest = ProcessCatalogFilesRequest @typing_extensions.final -class ProcessKnowledgeBaseFilesResponse(google.protobuf.message.Message): - """Process KnowledgeBase File Response""" +class ProcessCatalogFilesResponse(google.protobuf.message.Message): + """Process Catalog File Response""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -909,10 +909,10 @@ class ProcessKnowledgeBaseFilesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["files", b"files"]) -> None: ... -global___ProcessKnowledgeBaseFilesResponse = ProcessKnowledgeBaseFilesResponse +global___ProcessCatalogFilesResponse = ProcessCatalogFilesResponse @typing_extensions.final -class ListKnowledgeBaseFilesFilter(google.protobuf.message.Message): +class ListCatalogFilesFilter(google.protobuf.message.Message): """list file filter todo: support more parameters """ @@ -930,46 +930,46 @@ class ListKnowledgeBaseFilesFilter(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["file_uids", b"file_uids"]) -> None: ... -global___ListKnowledgeBaseFilesFilter = ListKnowledgeBaseFilesFilter +global___ListCatalogFilesFilter = ListCatalogFilesFilter @typing_extensions.final -class ListKnowledgeBaseFilesRequest(google.protobuf.message.Message): +class ListCatalogFilesRequest(google.protobuf.message.Message): """list files request""" DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int PAGE_SIZE_FIELD_NUMBER: builtins.int PAGE_TOKEN_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """The owner uid.""" - kb_id: builtins.str - """The knowledge base uid.""" + """The owner/namespaceuid id.""" + catalog_id: builtins.str + """The catalog id.""" page_size: builtins.int """The page size (default:10; max 100).""" page_token: builtins.str """The next page token(default from first file's token).""" @property - def filter(self) -> global___ListKnowledgeBaseFilesFilter: + def filter(self) -> global___ListCatalogFilesFilter: """The filter.""" def __init__( self, *, namespace_id: builtins.str = ..., - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., page_size: builtins.int = ..., page_token: builtins.str = ..., - filter: global___ListKnowledgeBaseFilesFilter | None = ..., + filter: global___ListCatalogFilesFilter | None = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["filter", b"filter"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter", b"filter", "kb_id", b"kb_id", "namespace_id", b"namespace_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "filter", b"filter", "namespace_id", b"namespace_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ... -global___ListKnowledgeBaseFilesRequest = ListKnowledgeBaseFilesRequest +global___ListCatalogFilesRequest = ListCatalogFilesRequest @typing_extensions.final -class ListKnowledgeBaseFilesResponse(google.protobuf.message.Message): +class ListCatalogFilesResponse(google.protobuf.message.Message): """list files response""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -989,7 +989,7 @@ class ListKnowledgeBaseFilesResponse(google.protobuf.message.Message): next_page_token: builtins.str """next page token""" @property - def filter(self) -> global___ListKnowledgeBaseFilesFilter: + def filter(self) -> global___ListCatalogFilesFilter: """The filter.""" def __init__( self, @@ -998,9 +998,9 @@ class ListKnowledgeBaseFilesResponse(google.protobuf.message.Message): total_size: builtins.int = ..., page_size: builtins.int = ..., next_page_token: builtins.str = ..., - filter: global___ListKnowledgeBaseFilesFilter | None = ..., + filter: global___ListCatalogFilesFilter | None = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["filter", b"filter"]) -> builtins.bool: ... def ClearField(self, field_name: typing_extensions.Literal["files", b"files", "filter", b"filter", "next_page_token", b"next_page_token", "page_size", b"page_size", "total_size", b"total_size"]) -> None: ... -global___ListKnowledgeBaseFilesResponse = ListKnowledgeBaseFilesResponse +global___ListCatalogFilesResponse = ListCatalogFilesResponse diff --git a/artifact/artifact/v1alpha/artifact_public_service_pb2.py b/artifact/artifact/v1alpha/artifact_public_service_pb2.py index 4a8606a..fc2bbee 100644 --- a/artifact/artifact/v1alpha/artifact_public_service_pb2.py +++ b/artifact/artifact/v1alpha/artifact_public_service_pb2.py @@ -18,7 +18,7 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7artifact/artifact/v1alpha/artifact_public_service.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a(artifact/artifact/v1alpha/artifact.proto\x1a%artifact/artifact/v1alpha/chunk.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/api/visibility.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xe0\x17\n\x15\x41rtifactPublicService\x12\xac\x01\n\x08Liveness\x12*.artifact.artifact.v1alpha.LivenessRequest\x1a+.artifact.artifact.v1alpha.LivenessResponse\"G\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\x12\x13/v1alpha/__livenessZ\x1a\x12\x18/v1alpha/health/artifact\x12\xaf\x01\n\tReadiness\x12+.artifact.artifact.v1alpha.ReadinessRequest\x1a,.artifact.artifact.v1alpha.ReadinessResponse\"G\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\x12\x14/v1alpha/__readinessZ\x19\x12\x17/v1alpha/ready/artifact\x12\xd5\x01\n\x13\x43reateKnowledgeBase\x12\x35.artifact.artifact.v1alpha.CreateKnowledgeBaseRequest\x1a\x36.artifact.artifact.v1alpha.CreateKnowledgeBaseResponse\"O\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02\x37\"2/v1alpha/namespaces/{namespace_id}/knowledge-bases:\x01*\x12\xcf\x01\n\x12ListKnowledgeBases\x12\x34.artifact.artifact.v1alpha.ListKnowledgeBasesRequest\x1a\x35.artifact.artifact.v1alpha.ListKnowledgeBasesResponse\"L\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/namespaces/{namespace_id}/knowledge-bases\x12\xdd\x01\n\x13UpdateKnowledgeBase\x12\x35.artifact.artifact.v1alpha.UpdateKnowledgeBaseRequest\x1a\x36.artifact.artifact.v1alpha.UpdateKnowledgeBaseResponse\"W\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02?\x1a:/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}:\x01*\x12\xda\x01\n\x13\x44\x65leteKnowledgeBase\x12\x35.artifact.artifact.v1alpha.DeleteKnowledgeBaseRequest\x1a\x36.artifact.artifact.v1alpha.DeleteKnowledgeBaseResponse\"T\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02<*:/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}\x12\xf2\x01\n\x17UploadKnowledgeBaseFile\x12\x39.artifact.artifact.v1alpha.UploadKnowledgeBaseFileRequest\x1a:.artifact.artifact.v1alpha.UploadKnowledgeBaseFileResponse\"`\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02H\"@/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/files:\x04\x66ile\x12\xca\x01\n\x17\x44\x65leteKnowledgeBaseFile\x12\x39.artifact.artifact.v1alpha.DeleteKnowledgeBaseFileRequest\x1a:.artifact.artifact.v1alpha.DeleteKnowledgeBaseFileResponse\"8\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02 *\x1e/v1alpha/knowledge-bases/files\x12\xe0\x01\n\x19ProcessKnowledgeBaseFiles\x12;.artifact.artifact.v1alpha.ProcessKnowledgeBaseFilesRequest\x1a<.artifact.artifact.v1alpha.ProcessKnowledgeBaseFilesResponse\"H\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02\x30\"+/v1alpha/knowledge-bases/files/processAsync:\x01*\x12\xe9\x01\n\x16ListKnowledgeBaseFiles\x12\x38.artifact.artifact.v1alpha.ListKnowledgeBaseFilesRequest\x1a\x39.artifact.artifact.v1alpha.ListKnowledgeBaseFilesResponse\"Z\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02\x42\x12@/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/files\x12\xc6\x01\n\nListChunks\x12,.artifact.artifact.v1alpha.ListChunksRequest\x1a-.artifact.artifact.v1alpha.ListChunksResponse\"[\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02\x43\x12\x41/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/chunks\x12\xe0\x01\n\rGetSourceFile\x12/.artifact.artifact.v1alpha.GetSourceFileRequest\x1a\x30.artifact.artifact.v1alpha.GetSourceFileResponse\"l\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02T\x12R/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/files/{file_uid}/source\x12\xa6\x01\n\x0bUpdateChunk\x12-.artifact.artifact.v1alpha.UpdateChunkRequest\x1a..artifact.artifact.v1alpha.UpdateChunkResponse\"8\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02 \"\x1b/v1alpha/chunks/{chunk_uid}:\x01*\x12\xf8\x01\n\x16SimilarityChunksSearch\x12\x38.artifact.artifact.v1alpha.SimilarityChunksSearchRequest\x1a\x39.artifact.artifact.v1alpha.SimilarityChunksSearchResponse\"i\x92\x41\x0f\n\rKnowledgeBase\x82\xd3\xe4\x93\x02Q\"L/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/chunks/similarity:\x01*\x1a\x1e\x92\x41\x1b\x12\x19Public Artifact endpointsB\x8e\x02\n\x1d\x63om.artifact.artifact.v1alphaB\x1a\x41rtifactPublicServiceProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7artifact/artifact/v1alpha/artifact_public_service.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a(artifact/artifact/v1alpha/artifact.proto\x1a%artifact/artifact/v1alpha/chunk.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/api/visibility.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xde\x15\n\x15\x41rtifactPublicService\x12\xac\x01\n\x08Liveness\x12*.artifact.artifact.v1alpha.LivenessRequest\x1a+.artifact.artifact.v1alpha.LivenessResponse\"G\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\x12\x13/v1alpha/__livenessZ\x1a\x12\x18/v1alpha/health/artifact\x12\xaf\x01\n\tReadiness\x12+.artifact.artifact.v1alpha.ReadinessRequest\x1a,.artifact.artifact.v1alpha.ReadinessResponse\"G\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\x12\x14/v1alpha/__readinessZ\x19\x12\x17/v1alpha/ready/artifact\x12\xb6\x01\n\rCreateCatalog\x12/.artifact.artifact.v1alpha.CreateCatalogRequest\x1a\x30.artifact.artifact.v1alpha.CreateCatalogResponse\"B\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02\x30\"+/v1alpha/namespaces/{namespace_id}/catalogs:\x01*\x12\xb0\x01\n\x0cListCatalogs\x12..artifact.artifact.v1alpha.ListCatalogsRequest\x1a/.artifact.artifact.v1alpha.ListCatalogsResponse\"?\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02-\x12+/v1alpha/namespaces/{namespace_id}/catalogs\x12\xc3\x01\n\rUpdateCatalog\x12/.artifact.artifact.v1alpha.UpdateCatalogRequest\x1a\x30.artifact.artifact.v1alpha.UpdateCatalogResponse\"O\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02=\x1a\x38/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}:\x01*\x12\xc0\x01\n\rDeleteCatalog\x12/.artifact.artifact.v1alpha.DeleteCatalogRequest\x1a\x30.artifact.artifact.v1alpha.DeleteCatalogResponse\"L\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02:*8/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}\x12\xd8\x01\n\x11UploadCatalogFile\x12\x33.artifact.artifact.v1alpha.UploadCatalogFileRequest\x1a\x34.artifact.artifact.v1alpha.UploadCatalogFileResponse\"X\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02\x46\">/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files:\x04\x66ile\x12\xab\x01\n\x11\x44\x65leteCatalogFile\x12\x33.artifact.artifact.v1alpha.DeleteCatalogFileRequest\x1a\x34.artifact.artifact.v1alpha.DeleteCatalogFileResponse\"+\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02\x19*\x17/v1alpha/catalogs/files\x12\xc1\x01\n\x13ProcessCatalogFiles\x12\x35.artifact.artifact.v1alpha.ProcessCatalogFilesRequest\x1a\x36.artifact.artifact.v1alpha.ProcessCatalogFilesResponse\";\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02)\"$/v1alpha/catalogs/files/processAsync:\x01*\x12\xcf\x01\n\x10ListCatalogFiles\x12\x32.artifact.artifact.v1alpha.ListCatalogFilesRequest\x1a\x33.artifact.artifact.v1alpha.ListCatalogFilesResponse\"R\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02@\x12>/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files\x12\xbe\x01\n\nListChunks\x12,.artifact.artifact.v1alpha.ListChunksRequest\x1a-.artifact.artifact.v1alpha.ListChunksResponse\"S\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02\x41\x12?/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks\x12\xd8\x01\n\rGetSourceFile\x12/.artifact.artifact.v1alpha.GetSourceFileRequest\x1a\x30.artifact.artifact.v1alpha.GetSourceFileResponse\"d\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02R\x12P/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source\x12\xa0\x01\n\x0bUpdateChunk\x12-.artifact.artifact.v1alpha.UpdateChunkRequest\x1a..artifact.artifact.v1alpha.UpdateChunkResponse\"2\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02 \"\x1b/v1alpha/chunks/{chunk_uid}:\x01*\x12\xf0\x01\n\x16SimilarityChunksSearch\x12\x38.artifact.artifact.v1alpha.SimilarityChunksSearchRequest\x1a\x39.artifact.artifact.v1alpha.SimilarityChunksSearchResponse\"a\x92\x41\t\n\x07\x43\x61talog\x82\xd3\xe4\x93\x02O\"J/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/similarity:\x01*\x1a\x1e\x92\x41\x1b\x12\x19Public Artifact endpointsB\x8e\x02\n\x1d\x63om.artifact.artifact.v1alphaB\x1a\x41rtifactPublicServiceProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,30 +33,30 @@ _ARTIFACTPUBLICSERVICE.methods_by_name['Liveness']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0021\022\023/v1alpha/__livenessZ\032\022\030/v1alpha/health/artifact' _ARTIFACTPUBLICSERVICE.methods_by_name['Readiness']._options = None _ARTIFACTPUBLICSERVICE.methods_by_name['Readiness']._serialized_options = b'\372\322\344\223\002\n\022\010INTERNAL\202\323\344\223\0021\022\024/v1alpha/__readinessZ\031\022\027/v1alpha/ready/artifact' - _ARTIFACTPUBLICSERVICE.methods_by_name['CreateKnowledgeBase']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['CreateKnowledgeBase']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\0027\"2/v1alpha/namespaces/{namespace_id}/knowledge-bases:\001*' - _ARTIFACTPUBLICSERVICE.methods_by_name['ListKnowledgeBases']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['ListKnowledgeBases']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\0024\0222/v1alpha/namespaces/{namespace_id}/knowledge-bases' - _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateKnowledgeBase']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateKnowledgeBase']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002?\032:/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}:\001*' - _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteKnowledgeBase']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteKnowledgeBase']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002<*:/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}' - _ARTIFACTPUBLICSERVICE.methods_by_name['UploadKnowledgeBaseFile']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['UploadKnowledgeBaseFile']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002H\"@/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/files:\004file' - _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteKnowledgeBaseFile']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteKnowledgeBaseFile']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002 *\036/v1alpha/knowledge-bases/files' - _ARTIFACTPUBLICSERVICE.methods_by_name['ProcessKnowledgeBaseFiles']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['ProcessKnowledgeBaseFiles']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\0020\"+/v1alpha/knowledge-bases/files/processAsync:\001*' - _ARTIFACTPUBLICSERVICE.methods_by_name['ListKnowledgeBaseFiles']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['ListKnowledgeBaseFiles']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002B\022@/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/files' + _ARTIFACTPUBLICSERVICE.methods_by_name['CreateCatalog']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['CreateCatalog']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\0020\"+/v1alpha/namespaces/{namespace_id}/catalogs:\001*' + _ARTIFACTPUBLICSERVICE.methods_by_name['ListCatalogs']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['ListCatalogs']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002-\022+/v1alpha/namespaces/{namespace_id}/catalogs' + _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateCatalog']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateCatalog']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002=\0328/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}:\001*' + _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteCatalog']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteCatalog']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002:*8/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}' + _ARTIFACTPUBLICSERVICE.methods_by_name['UploadCatalogFile']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['UploadCatalogFile']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002F\">/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files:\004file' + _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteCatalogFile']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['DeleteCatalogFile']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002\031*\027/v1alpha/catalogs/files' + _ARTIFACTPUBLICSERVICE.methods_by_name['ProcessCatalogFiles']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['ProcessCatalogFiles']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002)\"$/v1alpha/catalogs/files/processAsync:\001*' + _ARTIFACTPUBLICSERVICE.methods_by_name['ListCatalogFiles']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['ListCatalogFiles']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002@\022>/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files' _ARTIFACTPUBLICSERVICE.methods_by_name['ListChunks']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['ListChunks']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002C\022A/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/chunks' + _ARTIFACTPUBLICSERVICE.methods_by_name['ListChunks']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002A\022?/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks' _ARTIFACTPUBLICSERVICE.methods_by_name['GetSourceFile']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['GetSourceFile']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002T\022R/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/files/{file_uid}/source' + _ARTIFACTPUBLICSERVICE.methods_by_name['GetSourceFile']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002R\022P/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source' _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateChunk']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateChunk']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002 \"\033/v1alpha/chunks/{chunk_uid}:\001*' + _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateChunk']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002 \"\033/v1alpha/chunks/{chunk_uid}:\001*' _ARTIFACTPUBLICSERVICE.methods_by_name['SimilarityChunksSearch']._options = None - _ARTIFACTPUBLICSERVICE.methods_by_name['SimilarityChunksSearch']._serialized_options = b'\222A\017\n\rKnowledgeBase\202\323\344\223\002Q\"L/v1alpha/namespaces/{namespace_id}/knowledge-bases/{kb_id}/chunks/similarity:\001*' + _ARTIFACTPUBLICSERVICE.methods_by_name['SimilarityChunksSearch']._serialized_options = b'\222A\t\n\007Catalog\202\323\344\223\002O\"J/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/similarity:\001*' _globals['_ARTIFACTPUBLICSERVICE']._serialized_start=275 - _globals['_ARTIFACTPUBLICSERVICE']._serialized_end=3315 + _globals['_ARTIFACTPUBLICSERVICE']._serialized_end=3057 # @@protoc_insertion_point(module_scope) diff --git a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py index 1dd66a7..4681f74 100644 --- a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py +++ b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py @@ -27,45 +27,45 @@ def __init__(self, channel): request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ReadinessRequest.SerializeToString, response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ReadinessResponse.FromString, ) - self.CreateKnowledgeBase = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/CreateKnowledgeBase', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateKnowledgeBaseRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateKnowledgeBaseResponse.FromString, + self.CreateCatalog = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/CreateCatalog', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateCatalogRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateCatalogResponse.FromString, ) - self.ListKnowledgeBases = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/ListKnowledgeBases', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBasesRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBasesResponse.FromString, + self.ListCatalogs = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/ListCatalogs', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogsRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogsResponse.FromString, ) - self.UpdateKnowledgeBase = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/UpdateKnowledgeBase', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateKnowledgeBaseRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateKnowledgeBaseResponse.FromString, + self.UpdateCatalog = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/UpdateCatalog', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateCatalogRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateCatalogResponse.FromString, ) - self.DeleteKnowledgeBase = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteKnowledgeBase', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseResponse.FromString, + self.DeleteCatalog = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteCatalog', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogResponse.FromString, ) - self.UploadKnowledgeBaseFile = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/UploadKnowledgeBaseFile', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadKnowledgeBaseFileRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadKnowledgeBaseFileResponse.FromString, + self.UploadCatalogFile = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/UploadCatalogFile', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadCatalogFileRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadCatalogFileResponse.FromString, ) - self.DeleteKnowledgeBaseFile = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteKnowledgeBaseFile', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseFileRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseFileResponse.FromString, + self.DeleteCatalogFile = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteCatalogFile', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogFileRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogFileResponse.FromString, ) - self.ProcessKnowledgeBaseFiles = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/ProcessKnowledgeBaseFiles', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessKnowledgeBaseFilesRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessKnowledgeBaseFilesResponse.FromString, + self.ProcessCatalogFiles = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/ProcessCatalogFiles', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessCatalogFilesRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessCatalogFilesResponse.FromString, ) - self.ListKnowledgeBaseFiles = channel.unary_unary( - '/artifact.artifact.v1alpha.ArtifactPublicService/ListKnowledgeBaseFiles', - request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBaseFilesRequest.SerializeToString, - response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBaseFilesResponse.FromString, + self.ListCatalogFiles = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/ListCatalogFiles', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogFilesRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogFilesResponse.FromString, ) self.ListChunks = channel.unary_unary( '/artifact.artifact.v1alpha.ArtifactPublicService/ListChunks', @@ -112,56 +112,56 @@ def Readiness(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def CreateKnowledgeBase(self, request, context): - """Create a knowledge base + def CreateCatalog(self, request, context): + """Create a catalog """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def ListKnowledgeBases(self, request, context): - """Get all knowledge bases info + def ListCatalogs(self, request, context): + """Get all catalogs info """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def UpdateKnowledgeBase(self, request, context): - """Update a knowledge base info + def UpdateCatalog(self, request, context): + """Update a catalog info """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def DeleteKnowledgeBase(self, request, context): - """Delete a knowledge base + def DeleteCatalog(self, request, context): + """Delete a catalog """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def UploadKnowledgeBaseFile(self, request, context): + def UploadCatalogFile(self, request, context): """Create a file """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def DeleteKnowledgeBaseFile(self, request, context): + def DeleteCatalogFile(self, request, context): """Delete a file """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def ProcessKnowledgeBaseFiles(self, request, context): + def ProcessCatalogFiles(self, request, context): """process file """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def ListKnowledgeBaseFiles(self, request, context): + def ListCatalogFiles(self, request, context): """list files """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -209,45 +209,45 @@ def add_ArtifactPublicServiceServicer_to_server(servicer, server): request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ReadinessRequest.FromString, response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ReadinessResponse.SerializeToString, ), - 'CreateKnowledgeBase': grpc.unary_unary_rpc_method_handler( - servicer.CreateKnowledgeBase, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateKnowledgeBaseRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateKnowledgeBaseResponse.SerializeToString, + 'CreateCatalog': grpc.unary_unary_rpc_method_handler( + servicer.CreateCatalog, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateCatalogRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateCatalogResponse.SerializeToString, ), - 'ListKnowledgeBases': grpc.unary_unary_rpc_method_handler( - servicer.ListKnowledgeBases, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBasesRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBasesResponse.SerializeToString, + 'ListCatalogs': grpc.unary_unary_rpc_method_handler( + servicer.ListCatalogs, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogsRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogsResponse.SerializeToString, ), - 'UpdateKnowledgeBase': grpc.unary_unary_rpc_method_handler( - servicer.UpdateKnowledgeBase, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateKnowledgeBaseRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateKnowledgeBaseResponse.SerializeToString, + 'UpdateCatalog': grpc.unary_unary_rpc_method_handler( + servicer.UpdateCatalog, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateCatalogRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateCatalogResponse.SerializeToString, ), - 'DeleteKnowledgeBase': grpc.unary_unary_rpc_method_handler( - servicer.DeleteKnowledgeBase, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseResponse.SerializeToString, + 'DeleteCatalog': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCatalog, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogResponse.SerializeToString, ), - 'UploadKnowledgeBaseFile': grpc.unary_unary_rpc_method_handler( - servicer.UploadKnowledgeBaseFile, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadKnowledgeBaseFileRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadKnowledgeBaseFileResponse.SerializeToString, + 'UploadCatalogFile': grpc.unary_unary_rpc_method_handler( + servicer.UploadCatalogFile, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadCatalogFileRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadCatalogFileResponse.SerializeToString, ), - 'DeleteKnowledgeBaseFile': grpc.unary_unary_rpc_method_handler( - servicer.DeleteKnowledgeBaseFile, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseFileRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseFileResponse.SerializeToString, + 'DeleteCatalogFile': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCatalogFile, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogFileRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogFileResponse.SerializeToString, ), - 'ProcessKnowledgeBaseFiles': grpc.unary_unary_rpc_method_handler( - servicer.ProcessKnowledgeBaseFiles, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessKnowledgeBaseFilesRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessKnowledgeBaseFilesResponse.SerializeToString, + 'ProcessCatalogFiles': grpc.unary_unary_rpc_method_handler( + servicer.ProcessCatalogFiles, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessCatalogFilesRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessCatalogFilesResponse.SerializeToString, ), - 'ListKnowledgeBaseFiles': grpc.unary_unary_rpc_method_handler( - servicer.ListKnowledgeBaseFiles, - request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBaseFilesRequest.FromString, - response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBaseFilesResponse.SerializeToString, + 'ListCatalogFiles': grpc.unary_unary_rpc_method_handler( + servicer.ListCatalogFiles, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogFilesRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogFilesResponse.SerializeToString, ), 'ListChunks': grpc.unary_unary_rpc_method_handler( servicer.ListChunks, @@ -316,7 +316,7 @@ def Readiness(request, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def CreateKnowledgeBase(request, + def CreateCatalog(request, target, options=(), channel_credentials=None, @@ -326,14 +326,14 @@ def CreateKnowledgeBase(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/CreateKnowledgeBase', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateKnowledgeBaseRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateKnowledgeBaseResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/CreateCatalog', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateCatalogRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.CreateCatalogResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def ListKnowledgeBases(request, + def ListCatalogs(request, target, options=(), channel_credentials=None, @@ -343,14 +343,14 @@ def ListKnowledgeBases(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ListKnowledgeBases', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBasesRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBasesResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ListCatalogs', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogsRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UpdateKnowledgeBase(request, + def UpdateCatalog(request, target, options=(), channel_credentials=None, @@ -360,14 +360,14 @@ def UpdateKnowledgeBase(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/UpdateKnowledgeBase', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateKnowledgeBaseRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateKnowledgeBaseResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/UpdateCatalog', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateCatalogRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UpdateCatalogResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteKnowledgeBase(request, + def DeleteCatalog(request, target, options=(), channel_credentials=None, @@ -377,14 +377,14 @@ def DeleteKnowledgeBase(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteKnowledgeBase', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteCatalog', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def UploadKnowledgeBaseFile(request, + def UploadCatalogFile(request, target, options=(), channel_credentials=None, @@ -394,14 +394,14 @@ def UploadKnowledgeBaseFile(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/UploadKnowledgeBaseFile', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadKnowledgeBaseFileRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadKnowledgeBaseFileResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/UploadCatalogFile', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadCatalogFileRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.UploadCatalogFileResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def DeleteKnowledgeBaseFile(request, + def DeleteCatalogFile(request, target, options=(), channel_credentials=None, @@ -411,14 +411,14 @@ def DeleteKnowledgeBaseFile(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteKnowledgeBaseFile', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseFileRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteKnowledgeBaseFileResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/DeleteCatalogFile', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogFileRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.DeleteCatalogFileResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def ProcessKnowledgeBaseFiles(request, + def ProcessCatalogFiles(request, target, options=(), channel_credentials=None, @@ -428,14 +428,14 @@ def ProcessKnowledgeBaseFiles(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ProcessKnowledgeBaseFiles', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessKnowledgeBaseFilesRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessKnowledgeBaseFilesResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ProcessCatalogFiles', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessCatalogFilesRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ProcessCatalogFilesResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def ListKnowledgeBaseFiles(request, + def ListCatalogFiles(request, target, options=(), channel_credentials=None, @@ -445,9 +445,9 @@ def ListKnowledgeBaseFiles(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ListKnowledgeBaseFiles', - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBaseFilesRequest.SerializeToString, - artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListKnowledgeBaseFilesResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ListCatalogFiles', + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogFilesRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2.ListCatalogFilesResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi index abdd1c7..8a0709d 100644 --- a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi +++ b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi @@ -40,44 +40,44 @@ class ArtifactPublicServiceStub: See https://github.com/grpc/grpc/blob/master/doc/health-checking.md """ - CreateKnowledgeBase: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseRequest, - artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseResponse, + CreateCatalog: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.CreateCatalogRequest, + artifact.artifact.v1alpha.artifact_pb2.CreateCatalogResponse, ] - """Create a knowledge base""" - ListKnowledgeBases: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesRequest, - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesResponse, + """Create a catalog""" + ListCatalogs: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.ListCatalogsRequest, + artifact.artifact.v1alpha.artifact_pb2.ListCatalogsResponse, ] - """Get all knowledge bases info""" - UpdateKnowledgeBase: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseRequest, - artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseResponse, + """Get all catalogs info""" + UpdateCatalog: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogRequest, + artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogResponse, ] - """Update a knowledge base info""" - DeleteKnowledgeBase: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseRequest, - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseResponse, + """Update a catalog info""" + DeleteCatalog: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogRequest, + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogResponse, ] - """Delete a knowledge base""" - UploadKnowledgeBaseFile: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileRequest, - artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileResponse, + """Delete a catalog""" + UploadCatalogFile: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileRequest, + artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileResponse, ] """Create a file""" - DeleteKnowledgeBaseFile: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileRequest, - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileResponse, + DeleteCatalogFile: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileRequest, + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileResponse, ] """Delete a file""" - ProcessKnowledgeBaseFiles: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesRequest, - artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesResponse, + ProcessCatalogFiles: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesRequest, + artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesResponse, ] """process file""" - ListKnowledgeBaseFiles: grpc.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesRequest, - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesResponse, + ListCatalogFiles: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesRequest, + artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesResponse, ] """list files""" ListChunks: grpc.UnaryUnaryMultiCallable[ @@ -122,44 +122,44 @@ class ArtifactPublicServiceAsyncStub: See https://github.com/grpc/grpc/blob/master/doc/health-checking.md """ - CreateKnowledgeBase: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseRequest, - artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseResponse, + CreateCatalog: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.CreateCatalogRequest, + artifact.artifact.v1alpha.artifact_pb2.CreateCatalogResponse, ] - """Create a knowledge base""" - ListKnowledgeBases: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesRequest, - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesResponse, + """Create a catalog""" + ListCatalogs: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.ListCatalogsRequest, + artifact.artifact.v1alpha.artifact_pb2.ListCatalogsResponse, ] - """Get all knowledge bases info""" - UpdateKnowledgeBase: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseRequest, - artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseResponse, + """Get all catalogs info""" + UpdateCatalog: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogRequest, + artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogResponse, ] - """Update a knowledge base info""" - DeleteKnowledgeBase: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseRequest, - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseResponse, + """Update a catalog info""" + DeleteCatalog: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogRequest, + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogResponse, ] - """Delete a knowledge base""" - UploadKnowledgeBaseFile: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileRequest, - artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileResponse, + """Delete a catalog""" + UploadCatalogFile: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileRequest, + artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileResponse, ] """Create a file""" - DeleteKnowledgeBaseFile: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileRequest, - artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileResponse, + DeleteCatalogFile: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileRequest, + artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileResponse, ] """Delete a file""" - ProcessKnowledgeBaseFiles: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesRequest, - artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesResponse, + ProcessCatalogFiles: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesRequest, + artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesResponse, ] """process file""" - ListKnowledgeBaseFiles: grpc.aio.UnaryUnaryMultiCallable[ - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesRequest, - artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesResponse, + ListCatalogFiles: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesRequest, + artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesResponse, ] """list files""" ListChunks: grpc.aio.UnaryUnaryMultiCallable[ @@ -209,60 +209,60 @@ class ArtifactPublicServiceServicer(metaclass=abc.ABCMeta): See https://github.com/grpc/grpc/blob/master/doc/health-checking.md """ @abc.abstractmethod - def CreateKnowledgeBase( + def CreateCatalog( self, - request: artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseRequest, + request: artifact.artifact.v1alpha.artifact_pb2.CreateCatalogRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.CreateKnowledgeBaseResponse]]: - """Create a knowledge base""" + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.CreateCatalogResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.CreateCatalogResponse]]: + """Create a catalog""" @abc.abstractmethod - def ListKnowledgeBases( + def ListCatalogs( self, - request: artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesRequest, + request: artifact.artifact.v1alpha.artifact_pb2.ListCatalogsRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBasesResponse]]: - """Get all knowledge bases info""" + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.ListCatalogsResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.ListCatalogsResponse]]: + """Get all catalogs info""" @abc.abstractmethod - def UpdateKnowledgeBase( + def UpdateCatalog( self, - request: artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseRequest, + request: artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.UpdateKnowledgeBaseResponse]]: - """Update a knowledge base info""" + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.UpdateCatalogResponse]]: + """Update a catalog info""" @abc.abstractmethod - def DeleteKnowledgeBase( + def DeleteCatalog( self, - request: artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseRequest, + request: artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseResponse]]: - """Delete a knowledge base""" + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogResponse]]: + """Delete a catalog""" @abc.abstractmethod - def UploadKnowledgeBaseFile( + def UploadCatalogFile( self, - request: artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileRequest, + request: artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.UploadKnowledgeBaseFileResponse]]: + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.UploadCatalogFileResponse]]: """Create a file""" @abc.abstractmethod - def DeleteKnowledgeBaseFile( + def DeleteCatalogFile( self, - request: artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileRequest, + request: artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.DeleteKnowledgeBaseFileResponse]]: + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.DeleteCatalogFileResponse]]: """Delete a file""" @abc.abstractmethod - def ProcessKnowledgeBaseFiles( + def ProcessCatalogFiles( self, - request: artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesRequest, + request: artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.ProcessKnowledgeBaseFilesResponse]]: + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.ProcessCatalogFilesResponse]]: """process file""" @abc.abstractmethod - def ListKnowledgeBaseFiles( + def ListCatalogFiles( self, - request: artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesRequest, + request: artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesRequest, context: _ServicerContext, - ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.ListKnowledgeBaseFilesResponse]]: + ) -> typing.Union[artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.artifact_pb2.ListCatalogFilesResponse]]: """list files""" @abc.abstractmethod def ListChunks( diff --git a/artifact/artifact/v1alpha/chunk_pb2.py b/artifact/artifact/v1alpha/chunk_pb2.py index 55eec00..510705d 100644 --- a/artifact/artifact/v1alpha/chunk_pb2.py +++ b/artifact/artifact/v1alpha/chunk_pb2.py @@ -14,7 +14,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%artifact/artifact/v1alpha/chunk.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n\x05\x43hunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\x12\x1b\n\tstart_pos\x18\x04 \x01(\rR\x08startPos\x12\x17\n\x07\x65nd_pos\x18\x05 \x01(\rR\x06\x65ndPos\x12\x16\n\x06tokens\x18\x06 \x01(\rR\x06tokens\x12;\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12*\n\x11original_file_uid\x18\x08 \x01(\tR\x0foriginalFileUid\"f\n\x11ListChunksRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x13\n\x05kb_id\x18\x02 \x01(\tR\x04kbId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"N\n\x12ListChunksResponse\x12\x38\n\x06\x63hunks\x18\x01 \x03(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x06\x63hunks\"\xcc\x01\n\nSourceFile\x12*\n\x11original_file_uid\x18\x01 \x01(\tR\x0foriginalFileUid\x12\x18\n\x07\x63ontent\x18\x03 \x01(\tR\x07\x63ontent\x12;\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\"i\n\x14GetSourceFileRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x13\n\x05kb_id\x18\x02 \x01(\tR\x04kbId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"_\n\x15GetSourceFileResponse\x12\x46\n\x0bsource_file\x18\x01 \x01(\x0b\x32%.artifact.artifact.v1alpha.SourceFileR\nsourceFile\"S\n\x12UpdateChunkRequest\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\"M\n\x13UpdateChunkResponse\x12\x36\n\x05\x63hunk\x18\x01 \x01(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x05\x63hunk\"\x8c\x01\n\x1dSimilarityChunksSearchRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x13\n\x05kb_id\x18\x02 \x01(\tR\x04kbId\x12\x1f\n\x0btext_prompt\x18\x03 \x01(\tR\ntextPrompt\x12\x12\n\x04topk\x18\x04 \x01(\rR\x04topk\"s\n\x1eSimilarityChunksSearchResponse\x12Q\n\x0esimilar_chunks\x18\x01 \x03(\x0b\x32*.artifact.artifact.v1alpha.SimilarityChunkR\rsimilarChunks\"\x9d\x01\n\x0fSimilarityChunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12)\n\x10similarity_score\x18\x02 \x01(\x02R\x0fsimilarityScore\x12!\n\x0ctext_content\x18\x03 \x01(\tR\x0btextContent\x12\x1f\n\x0bsource_file\x18\x04 \x01(\tR\nsourceFileB\xfe\x01\n\x1d\x63om.artifact.artifact.v1alphaB\nChunkProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%artifact/artifact/v1alpha/chunk.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n\x05\x43hunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\x12\x1b\n\tstart_pos\x18\x04 \x01(\rR\x08startPos\x12\x17\n\x07\x65nd_pos\x18\x05 \x01(\rR\x06\x65ndPos\x12\x16\n\x06tokens\x18\x06 \x01(\rR\x06tokens\x12;\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12*\n\x11original_file_uid\x18\x08 \x01(\tR\x0foriginalFileUid\"p\n\x11ListChunksRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"N\n\x12ListChunksResponse\x12\x38\n\x06\x63hunks\x18\x01 \x03(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x06\x63hunks\"\xcc\x01\n\nSourceFile\x12*\n\x11original_file_uid\x18\x01 \x01(\tR\x0foriginalFileUid\x12\x18\n\x07\x63ontent\x18\x03 \x01(\tR\x07\x63ontent\x12;\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\"s\n\x14GetSourceFileRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"_\n\x15GetSourceFileResponse\x12\x46\n\x0bsource_file\x18\x01 \x01(\x0b\x32%.artifact.artifact.v1alpha.SourceFileR\nsourceFile\"S\n\x12UpdateChunkRequest\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\"M\n\x13UpdateChunkResponse\x12\x36\n\x05\x63hunk\x18\x01 \x01(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x05\x63hunk\"\x96\x01\n\x1dSimilarityChunksSearchRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x1f\n\x0btext_prompt\x18\x03 \x01(\tR\ntextPrompt\x12\x12\n\x04topk\x18\x04 \x01(\rR\x04topk\"s\n\x1eSimilarityChunksSearchResponse\x12Q\n\x0esimilar_chunks\x18\x01 \x03(\x0b\x32*.artifact.artifact.v1alpha.SimilarityChunkR\rsimilarChunks\"\x9d\x01\n\x0fSimilarityChunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12)\n\x10similarity_score\x18\x02 \x01(\x02R\x0fsimilarityScore\x12!\n\x0ctext_content\x18\x03 \x01(\tR\x0btextContent\x12\x1f\n\x0bsource_file\x18\x04 \x01(\tR\nsourceFileB\xfe\x01\n\x1d\x63om.artifact.artifact.v1alphaB\nChunkProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,23 +26,23 @@ _globals['_CHUNK']._serialized_start=102 _globals['_CHUNK']._serialized_end=355 _globals['_LISTCHUNKSREQUEST']._serialized_start=357 - _globals['_LISTCHUNKSREQUEST']._serialized_end=459 - _globals['_LISTCHUNKSRESPONSE']._serialized_start=461 - _globals['_LISTCHUNKSRESPONSE']._serialized_end=539 - _globals['_SOURCEFILE']._serialized_start=542 - _globals['_SOURCEFILE']._serialized_end=746 - _globals['_GETSOURCEFILEREQUEST']._serialized_start=748 - _globals['_GETSOURCEFILEREQUEST']._serialized_end=853 - _globals['_GETSOURCEFILERESPONSE']._serialized_start=855 - _globals['_GETSOURCEFILERESPONSE']._serialized_end=950 - _globals['_UPDATECHUNKREQUEST']._serialized_start=952 - _globals['_UPDATECHUNKREQUEST']._serialized_end=1035 - _globals['_UPDATECHUNKRESPONSE']._serialized_start=1037 - _globals['_UPDATECHUNKRESPONSE']._serialized_end=1114 - _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_start=1117 - _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_end=1257 - _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_start=1259 - _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_end=1374 - _globals['_SIMILARITYCHUNK']._serialized_start=1377 - _globals['_SIMILARITYCHUNK']._serialized_end=1534 + _globals['_LISTCHUNKSREQUEST']._serialized_end=469 + _globals['_LISTCHUNKSRESPONSE']._serialized_start=471 + _globals['_LISTCHUNKSRESPONSE']._serialized_end=549 + _globals['_SOURCEFILE']._serialized_start=552 + _globals['_SOURCEFILE']._serialized_end=756 + _globals['_GETSOURCEFILEREQUEST']._serialized_start=758 + _globals['_GETSOURCEFILEREQUEST']._serialized_end=873 + _globals['_GETSOURCEFILERESPONSE']._serialized_start=875 + _globals['_GETSOURCEFILERESPONSE']._serialized_end=970 + _globals['_UPDATECHUNKREQUEST']._serialized_start=972 + _globals['_UPDATECHUNKREQUEST']._serialized_end=1055 + _globals['_UPDATECHUNKRESPONSE']._serialized_start=1057 + _globals['_UPDATECHUNKRESPONSE']._serialized_end=1134 + _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_start=1137 + _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_end=1287 + _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_start=1289 + _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_end=1404 + _globals['_SIMILARITYCHUNK']._serialized_start=1407 + _globals['_SIMILARITYCHUNK']._serialized_end=1564 # @@protoc_insertion_point(module_scope) diff --git a/artifact/artifact/v1alpha/chunk_pb2.pyi b/artifact/artifact/v1alpha/chunk_pb2.pyi index 5225b48..a2c65fb 100644 --- a/artifact/artifact/v1alpha/chunk_pb2.pyi +++ b/artifact/artifact/v1alpha/chunk_pb2.pyi @@ -68,22 +68,22 @@ class ListChunksRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int FILE_UID_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """owner id (not uid)""" - kb_id: builtins.str - """knowledge base name (not uid)""" + """owner/namespace id (not uid)""" + catalog_id: builtins.str + """catalog id (not uid)""" file_uid: builtins.str """unique identifier of the file""" def __init__( self, *, namespace_id: builtins.str = ..., - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., file_uid: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["file_uid", b"file_uid", "kb_id", b"kb_id", "namespace_id", b"namespace_id"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "file_uid", b"file_uid", "namespace_id", b"namespace_id"]) -> None: ... global___ListChunksRequest = ListChunksRequest @@ -146,22 +146,22 @@ class GetSourceFileRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int FILE_UID_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """owner id""" - kb_id: builtins.str - """knowledge base name""" + """owner/namespace id""" + catalog_id: builtins.str + """catalog id""" file_uid: builtins.str """unique identifier of the original uploaded file""" def __init__( self, *, namespace_id: builtins.str = ..., - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., file_uid: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["file_uid", b"file_uid", "kb_id", b"kb_id", "namespace_id", b"namespace_id"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "file_uid", b"file_uid", "namespace_id", b"namespace_id"]) -> None: ... global___GetSourceFileRequest = GetSourceFileRequest @@ -234,13 +234,13 @@ class SimilarityChunksSearchRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_ID_FIELD_NUMBER: builtins.int - KB_ID_FIELD_NUMBER: builtins.int + CATALOG_ID_FIELD_NUMBER: builtins.int TEXT_PROMPT_FIELD_NUMBER: builtins.int TOPK_FIELD_NUMBER: builtins.int namespace_id: builtins.str - """owner id""" - kb_id: builtins.str - """knowledge base name""" + """owner/namespace id""" + catalog_id: builtins.str + """catalog id""" text_prompt: builtins.str """text prompt""" topk: builtins.int @@ -249,11 +249,11 @@ class SimilarityChunksSearchRequest(google.protobuf.message.Message): self, *, namespace_id: builtins.str = ..., - kb_id: builtins.str = ..., + catalog_id: builtins.str = ..., text_prompt: builtins.str = ..., topk: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["kb_id", b"kb_id", "namespace_id", b"namespace_id", "text_prompt", b"text_prompt", "topk", b"topk"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "namespace_id", b"namespace_id", "text_prompt", b"text_prompt", "topk", b"topk"]) -> None: ... global___SimilarityChunksSearchRequest = SimilarityChunksSearchRequest @@ -291,7 +291,7 @@ class SimilarityChunk(google.protobuf.message.Message): similarity_score: builtins.float """similarity score""" text_content: builtins.str - """chunk""" + """content""" source_file: builtins.str """source file""" def __init__(