feat: add generated Node protobuf SDK
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export * from './yoresee_doc/v1/yoresee_doc_pb.js'
|
||||
export * from './yoresee_doc/v1/yoresee_doc_connect.js'
|
||||
@@ -0,0 +1,810 @@
|
||||
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=js,import_extension=.js"
|
||||
// @generated from file yoresee_doc/v1/yoresee_doc.proto (package yoresee_doc.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { AuthLoginRequest, AuthLoginResponse, AuthRegisterRequest, AuthRegisterResponse, CreateDocumentCommentRequest, CreateDocumentCommentResponse, CreateDocumentRequest, CreateDocumentResponse, CreateInvitationRequest, CreateInvitationResponse, CreateKnowledgeBaseRequest, CreateKnowledgeBaseResponse, CreateNotificationRequest, CreateNotificationResponse, CreateOrgNodeRequest, CreateOrgNodeResponse, CreateTemplateRequest, CreateTemplateResponse, CreateUserGroupRequest, CreateUserGroupResponse, DeleteDocumentAttachmentRequest, DeleteDocumentAttachmentResponse, DeleteDocumentCommentRequest, DeleteDocumentCommentResponse, DeleteDocumentRequest, DeleteDocumentResponse, DeleteInvitationRequest, DeleteInvitationResponse, DeleteOrgNodeRequest, DeleteOrgNodeResponse, DeleteUserGroupRequest, DeleteUserGroupResponse, GetDocumentContentRequest, GetDocumentContentResponse, GetDocumentSettingsRequest, GetDocumentSettingsResponse, GetDocumentVersionContentRequest, GetDocumentVersionContentResponse, GetDocumentYjsSnapshotRequest, GetDocumentYjsSnapshotResponse, GetKnowledgeBaseRequest, GetKnowledgeBaseResponse, GetOrgNodeRequest, GetOrgNodeResponse, GetOwnDocumentsRequest, GetOwnDocumentsResponse, GetSettingsRequest, GetSettingsResponse, GetTemplateRequest, GetTemplateResponse, GetUserGroupRequest, GetUserGroupResponse, HealthRequest, HealthResponse, ListDocumentAttachmentsRequest, ListDocumentAttachmentsResponse, ListDocumentCommentsRequest, ListDocumentCommentsResponse, ListDocumentsRequest, ListDocumentsResponse, ListDocumentVersionsRequest, ListDocumentVersionsResponse, ListInvitationRecordsRequest, ListInvitationRecordsResponse, ListInvitationsRequest, ListInvitationsResponse, ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, ListNotificationsRequest, ListNotificationsResponse, ListOrgNodeMembersRequest, ListOrgNodeMembersResponse, ListOrgNodesRequest, ListOrgNodesResponse, ListRecentDocumentsRequest, ListRecentDocumentsResponse, ListRecentKnowledgeBasesRequest, ListRecentKnowledgeBasesResponse, ListRecentTemplatesRequest, ListRecentTemplatesResponse, ListTemplatesRequest, ListTemplatesResponse, ListUserGroupMembersRequest, ListUserGroupMembersResponse, ListUserGroupsRequest, ListUserGroupsResponse, ListUsersRequest, ListUsersResponse, MarkAllNotificationsReadRequest, MarkAllNotificationsReadResponse, MarkNotificationsReadRequest, MarkNotificationsReadResponse, MoveOrgNodeRequest, MoveOrgNodeResponse, QuerySideBarDisplayRequest, QuerySideBarDisplayResponse, QueryTopNavDisplayRequest, QueryTopNavDisplayResponse, RecordRecentDocumentRequest, RecordRecentDocumentResponse, SaveDocumentYjsSnapshotRequest, SaveDocumentYjsSnapshotResponse, SystemInfoRequest, SystemInfoResponse, UpdateDocumentCommentRequest, UpdateDocumentCommentResponse, UpdateDocumentMetaRequest, UpdateDocumentMetaResponse, UpdateDocumentRequest, UpdateDocumentResponse, UpdateDocumentSettingsRequest, UpdateDocumentSettingsResponse, UpdateInvitationRequest, UpdateInvitationResponse, UpdateOrgNodeRequest, UpdateOrgNodeResponse, UpdateProfileRequest, UpdateProfileResponse, UpdateSettingsRequest, UpdateSettingsResponse, UpdateTemplateSettingsRequest, UpdateTemplateSettingsResponse, UpdateUserGroupRequest, UpdateUserGroupResponse, UpdateUserRequest, UpdateUserResponse, UploadDocumentAttachmentRequest, UploadDocumentAttachmentResponse } from "./yoresee_doc_pb.js";
|
||||
import { MethodKind } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* authService provides authentication APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.AuthService
|
||||
*/
|
||||
export const AuthService = {
|
||||
typeName: "yoresee_doc.v1.AuthService",
|
||||
methods: {
|
||||
/**
|
||||
* login authenticates a user and returns a token.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.AuthService.Login
|
||||
*/
|
||||
login: {
|
||||
name: "Login",
|
||||
I: AuthLoginRequest,
|
||||
O: AuthLoginResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* register creates a new user account.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.AuthService.Register
|
||||
*/
|
||||
register: {
|
||||
name: "Register",
|
||||
I: AuthRegisterRequest,
|
||||
O: AuthRegisterResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update current user profile.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.AuthService.UpdateProfile
|
||||
*/
|
||||
updateProfile: {
|
||||
name: "UpdateProfile",
|
||||
I: UpdateProfileRequest,
|
||||
O: UpdateProfileResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* query side bar visible tabs for scene.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.AuthService.QuerySideBarDisplay
|
||||
*/
|
||||
querySideBarDisplay: {
|
||||
name: "QuerySideBarDisplay",
|
||||
I: QuerySideBarDisplayRequest,
|
||||
O: QuerySideBarDisplayResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* query top nav visible menus.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.AuthService.QueryTopNavDisplay
|
||||
*/
|
||||
queryTopNavDisplay: {
|
||||
name: "QueryTopNavDisplay",
|
||||
I: QueryTopNavDisplayRequest,
|
||||
O: QueryTopNavDisplayResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* documentService provides document APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.DocumentService
|
||||
*/
|
||||
export const DocumentService = {
|
||||
typeName: "yoresee_doc.v1.DocumentService",
|
||||
methods: {
|
||||
/**
|
||||
* listDocuments lists documents with filters and pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.ListDocuments
|
||||
*/
|
||||
listDocuments: {
|
||||
name: "ListDocuments",
|
||||
I: ListDocumentsRequest,
|
||||
O: ListDocumentsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* getDocumentContent fetches a document with its content.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.GetDocumentContent
|
||||
*/
|
||||
getDocumentContent: {
|
||||
name: "GetDocumentContent",
|
||||
I: GetDocumentContentRequest,
|
||||
O: GetDocumentContentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* getDocumentSettings fetches document metadata for settings page.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.GetDocumentSettings
|
||||
*/
|
||||
getDocumentSettings: {
|
||||
name: "GetDocumentSettings",
|
||||
I: GetDocumentSettingsRequest,
|
||||
O: GetDocumentSettingsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list recent documents for caller.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.ListRecentDocuments
|
||||
*/
|
||||
listRecentDocuments: {
|
||||
name: "ListRecentDocuments",
|
||||
I: ListRecentDocumentsRequest,
|
||||
O: ListRecentDocumentsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* record recent document for caller.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.RecordRecentDocument
|
||||
*/
|
||||
recordRecentDocument: {
|
||||
name: "RecordRecentDocument",
|
||||
I: RecordRecentDocumentRequest,
|
||||
O: RecordRecentDocumentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* getDocumentYjsSnapshot fetches yjs snapshot by document external id.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.GetDocumentYjsSnapshot
|
||||
*/
|
||||
getDocumentYjsSnapshot: {
|
||||
name: "GetDocumentYjsSnapshot",
|
||||
I: GetDocumentYjsSnapshotRequest,
|
||||
O: GetDocumentYjsSnapshotResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* saveDocumentYjsSnapshot saves yjs snapshot state.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.SaveDocumentYjsSnapshot
|
||||
*/
|
||||
saveDocumentYjsSnapshot: {
|
||||
name: "SaveDocumentYjsSnapshot",
|
||||
I: SaveDocumentYjsSnapshotRequest,
|
||||
O: SaveDocumentYjsSnapshotResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* getOwnDocuments lists documents owned by the caller.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.GetOwnDocuments
|
||||
*/
|
||||
getOwnDocuments: {
|
||||
name: "GetOwnDocuments",
|
||||
I: GetOwnDocumentsRequest,
|
||||
O: GetOwnDocumentsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* createDocument creates a new document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.CreateDocument
|
||||
*/
|
||||
createDocument: {
|
||||
name: "CreateDocument",
|
||||
I: CreateDocumentRequest,
|
||||
O: CreateDocumentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* updateDocument updates an existing document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.UpdateDocument
|
||||
*/
|
||||
updateDocument: {
|
||||
name: "UpdateDocument",
|
||||
I: UpdateDocumentRequest,
|
||||
O: UpdateDocumentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* updateDocumentMeta updates document metadata without changing content.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.UpdateDocumentMeta
|
||||
*/
|
||||
updateDocumentMeta: {
|
||||
name: "UpdateDocumentMeta",
|
||||
I: UpdateDocumentMetaRequest,
|
||||
O: UpdateDocumentMetaResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* updateDocumentSettings updates settings fields for document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.UpdateDocumentSettings
|
||||
*/
|
||||
updateDocumentSettings: {
|
||||
name: "UpdateDocumentSettings",
|
||||
I: UpdateDocumentSettingsRequest,
|
||||
O: UpdateDocumentSettingsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* upload attachment and bind to document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.UploadDocumentAttachment
|
||||
*/
|
||||
uploadDocumentAttachment: {
|
||||
name: "UploadDocumentAttachment",
|
||||
I: UploadDocumentAttachmentRequest,
|
||||
O: UploadDocumentAttachmentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list attachments by document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.ListDocumentAttachments
|
||||
*/
|
||||
listDocumentAttachments: {
|
||||
name: "ListDocumentAttachments",
|
||||
I: ListDocumentAttachmentsRequest,
|
||||
O: ListDocumentAttachmentsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* delete an attachment from document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.DeleteDocumentAttachment
|
||||
*/
|
||||
deleteDocumentAttachment: {
|
||||
name: "DeleteDocumentAttachment",
|
||||
I: DeleteDocumentAttachmentRequest,
|
||||
O: DeleteDocumentAttachmentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list document history versions.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.ListDocumentVersions
|
||||
*/
|
||||
listDocumentVersions: {
|
||||
name: "ListDocumentVersions",
|
||||
I: ListDocumentVersionsRequest,
|
||||
O: ListDocumentVersionsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* get document history version content.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.GetDocumentVersionContent
|
||||
*/
|
||||
getDocumentVersionContent: {
|
||||
name: "GetDocumentVersionContent",
|
||||
I: GetDocumentVersionContentRequest,
|
||||
O: GetDocumentVersionContentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* save document as template
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.CreateTemplate
|
||||
*/
|
||||
createTemplate: {
|
||||
name: "CreateTemplate",
|
||||
I: CreateTemplateRequest,
|
||||
O: CreateTemplateResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list templates with filters and pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.ListTemplates
|
||||
*/
|
||||
listTemplates: {
|
||||
name: "ListTemplates",
|
||||
I: ListTemplatesRequest,
|
||||
O: ListTemplatesResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list recent templates for caller.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.ListRecentTemplates
|
||||
*/
|
||||
listRecentTemplates: {
|
||||
name: "ListRecentTemplates",
|
||||
I: ListRecentTemplatesRequest,
|
||||
O: ListRecentTemplatesResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* get template by id.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.GetTemplate
|
||||
*/
|
||||
getTemplate: {
|
||||
name: "GetTemplate",
|
||||
I: GetTemplateRequest,
|
||||
O: GetTemplateResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update template settings.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.UpdateTemplateSettings
|
||||
*/
|
||||
updateTemplateSettings: {
|
||||
name: "UpdateTemplateSettings",
|
||||
I: UpdateTemplateSettingsRequest,
|
||||
O: UpdateTemplateSettingsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* delete a document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.DocumentService.DeleteDocument
|
||||
*/
|
||||
deleteDocument: {
|
||||
name: "DeleteDocument",
|
||||
I: DeleteDocumentRequest,
|
||||
O: DeleteDocumentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* commentService provides document comment APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.CommentService
|
||||
*/
|
||||
export const CommentService = {
|
||||
typeName: "yoresee_doc.v1.CommentService",
|
||||
methods: {
|
||||
/**
|
||||
* create a comment for document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.CommentService.CreateDocumentComment
|
||||
*/
|
||||
createDocumentComment: {
|
||||
name: "CreateDocumentComment",
|
||||
I: CreateDocumentCommentRequest,
|
||||
O: CreateDocumentCommentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list comments for document.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.CommentService.ListDocumentComments
|
||||
*/
|
||||
listDocumentComments: {
|
||||
name: "ListDocumentComments",
|
||||
I: ListDocumentCommentsRequest,
|
||||
O: ListDocumentCommentsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* delete a comment.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.CommentService.DeleteDocumentComment
|
||||
*/
|
||||
deleteDocumentComment: {
|
||||
name: "DeleteDocumentComment",
|
||||
I: DeleteDocumentCommentRequest,
|
||||
O: DeleteDocumentCommentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update a comment.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.CommentService.UpdateDocumentComment
|
||||
*/
|
||||
updateDocumentComment: {
|
||||
name: "UpdateDocumentComment",
|
||||
I: UpdateDocumentCommentRequest,
|
||||
O: UpdateDocumentCommentResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* knowledgeBaseService provides knowledge base management and discovery APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.KnowledgeBaseService
|
||||
*/
|
||||
export const KnowledgeBaseService = {
|
||||
typeName: "yoresee_doc.v1.KnowledgeBaseService",
|
||||
methods: {
|
||||
/**
|
||||
* list knowledge bases with filters and pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.KnowledgeBaseService.ListKnowledgeBases
|
||||
*/
|
||||
listKnowledgeBases: {
|
||||
name: "ListKnowledgeBases",
|
||||
I: ListKnowledgeBasesRequest,
|
||||
O: ListKnowledgeBasesResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* get a knowledge base by external ID, optionally recording a recent-access log.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.KnowledgeBaseService.GetKnowledgeBase
|
||||
*/
|
||||
getKnowledgeBase: {
|
||||
name: "GetKnowledgeBase",
|
||||
I: GetKnowledgeBaseRequest,
|
||||
O: GetKnowledgeBaseResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* create a knowledge base for the caller.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.KnowledgeBaseService.CreateKnowledgeBase
|
||||
*/
|
||||
createKnowledgeBase: {
|
||||
name: "CreateKnowledgeBase",
|
||||
I: CreateKnowledgeBaseRequest,
|
||||
O: CreateKnowledgeBaseResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list the caller's recent knowledge bases. User identity is derived from auth context.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.KnowledgeBaseService.ListRecentKnowledgeBases
|
||||
*/
|
||||
listRecentKnowledgeBases: {
|
||||
name: "ListRecentKnowledgeBases",
|
||||
I: ListRecentKnowledgeBasesRequest,
|
||||
O: ListRecentKnowledgeBasesResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* systemService provides system health and info APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.SystemService
|
||||
*/
|
||||
export const SystemService = {
|
||||
typeName: "yoresee_doc.v1.SystemService",
|
||||
methods: {
|
||||
/**
|
||||
* health returns service health status.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.SystemService.Health
|
||||
*/
|
||||
health: {
|
||||
name: "Health",
|
||||
I: HealthRequest,
|
||||
O: HealthResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* systemInfo returns system info and config.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.SystemService.SystemInfo
|
||||
*/
|
||||
systemInfo: {
|
||||
name: "SystemInfo",
|
||||
I: SystemInfoRequest,
|
||||
O: SystemInfoResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* settingService provides settings schema and update APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.SettingService
|
||||
*/
|
||||
export const SettingService = {
|
||||
typeName: "yoresee_doc.v1.SettingService",
|
||||
methods: {
|
||||
/**
|
||||
* get settings schema with current values.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.SettingService.GetSettings
|
||||
*/
|
||||
getSettings: {
|
||||
name: "GetSettings",
|
||||
I: GetSettingsRequest,
|
||||
O: GetSettingsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update settings values.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.SettingService.UpdateSettings
|
||||
*/
|
||||
updateSettings: {
|
||||
name: "UpdateSettings",
|
||||
I: UpdateSettingsRequest,
|
||||
O: UpdateSettingsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* membershipService provides user group and org structure management APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.MembershipService
|
||||
*/
|
||||
export const MembershipService = {
|
||||
typeName: "yoresee_doc.v1.MembershipService",
|
||||
methods: {
|
||||
/**
|
||||
* list user groups with pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.ListUserGroups
|
||||
*/
|
||||
listUserGroups: {
|
||||
name: "ListUserGroups",
|
||||
I: ListUserGroupsRequest,
|
||||
O: ListUserGroupsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* get a user group by external id.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.GetUserGroup
|
||||
*/
|
||||
getUserGroup: {
|
||||
name: "GetUserGroup",
|
||||
I: GetUserGroupRequest,
|
||||
O: GetUserGroupResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* create user group and optional members.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.CreateUserGroup
|
||||
*/
|
||||
createUserGroup: {
|
||||
name: "CreateUserGroup",
|
||||
I: CreateUserGroupRequest,
|
||||
O: CreateUserGroupResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update user group metadata and optional member set.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.UpdateUserGroup
|
||||
*/
|
||||
updateUserGroup: {
|
||||
name: "UpdateUserGroup",
|
||||
I: UpdateUserGroupRequest,
|
||||
O: UpdateUserGroupResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* delete a user group and its memberships.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.DeleteUserGroup
|
||||
*/
|
||||
deleteUserGroup: {
|
||||
name: "DeleteUserGroup",
|
||||
I: DeleteUserGroupRequest,
|
||||
O: DeleteUserGroupResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list users for member management.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.ListUsers
|
||||
*/
|
||||
listUsers: {
|
||||
name: "ListUsers",
|
||||
I: ListUsersRequest,
|
||||
O: ListUsersResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update user info or status.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.UpdateUser
|
||||
*/
|
||||
updateUser: {
|
||||
name: "UpdateUser",
|
||||
I: UpdateUserRequest,
|
||||
O: UpdateUserResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list user group members with pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.ListUserGroupMembers
|
||||
*/
|
||||
listUserGroupMembers: {
|
||||
name: "ListUserGroupMembers",
|
||||
I: ListUserGroupMembersRequest,
|
||||
O: ListUserGroupMembersResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list org nodes with pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.ListOrgNodes
|
||||
*/
|
||||
listOrgNodes: {
|
||||
name: "ListOrgNodes",
|
||||
I: ListOrgNodesRequest,
|
||||
O: ListOrgNodesResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* get an org node by external id.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.GetOrgNode
|
||||
*/
|
||||
getOrgNode: {
|
||||
name: "GetOrgNode",
|
||||
I: GetOrgNodeRequest,
|
||||
O: GetOrgNodeResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* create org node and optional members.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.CreateOrgNode
|
||||
*/
|
||||
createOrgNode: {
|
||||
name: "CreateOrgNode",
|
||||
I: CreateOrgNodeRequest,
|
||||
O: CreateOrgNodeResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update org node metadata and optional member set.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.UpdateOrgNode
|
||||
*/
|
||||
updateOrgNode: {
|
||||
name: "UpdateOrgNode",
|
||||
I: UpdateOrgNodeRequest,
|
||||
O: UpdateOrgNodeResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* delete an org node and its memberships.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.DeleteOrgNode
|
||||
*/
|
||||
deleteOrgNode: {
|
||||
name: "DeleteOrgNode",
|
||||
I: DeleteOrgNodeRequest,
|
||||
O: DeleteOrgNodeResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* move an org node to a new parent.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.MoveOrgNode
|
||||
*/
|
||||
moveOrgNode: {
|
||||
name: "MoveOrgNode",
|
||||
I: MoveOrgNodeRequest,
|
||||
O: MoveOrgNodeResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list org node members with pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.MembershipService.ListOrgNodeMembers
|
||||
*/
|
||||
listOrgNodeMembers: {
|
||||
name: "ListOrgNodeMembers",
|
||||
I: ListOrgNodeMembersRequest,
|
||||
O: ListOrgNodeMembersResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* invitationService provides invitation management APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.InvitationService
|
||||
*/
|
||||
export const InvitationService = {
|
||||
typeName: "yoresee_doc.v1.InvitationService",
|
||||
methods: {
|
||||
/**
|
||||
* create invitation code.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.InvitationService.CreateInvitation
|
||||
*/
|
||||
createInvitation: {
|
||||
name: "CreateInvitation",
|
||||
I: CreateInvitationRequest,
|
||||
O: CreateInvitationResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list invitations with filters and pagination.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.InvitationService.ListInvitations
|
||||
*/
|
||||
listInvitations: {
|
||||
name: "ListInvitations",
|
||||
I: ListInvitationsRequest,
|
||||
O: ListInvitationsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* update invitation code.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.InvitationService.UpdateInvitation
|
||||
*/
|
||||
updateInvitation: {
|
||||
name: "UpdateInvitation",
|
||||
I: UpdateInvitationRequest,
|
||||
O: UpdateInvitationResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* delete invitation code.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.InvitationService.DeleteInvitation
|
||||
*/
|
||||
deleteInvitation: {
|
||||
name: "DeleteInvitation",
|
||||
I: DeleteInvitationRequest,
|
||||
O: DeleteInvitationResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list invitation usage records.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.InvitationService.ListInvitationRecords
|
||||
*/
|
||||
listInvitationRecords: {
|
||||
name: "ListInvitationRecords",
|
||||
I: ListInvitationRecordsRequest,
|
||||
O: ListInvitationRecordsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* notificationService provides notification APIs.
|
||||
*
|
||||
* @generated from service yoresee_doc.v1.NotificationService
|
||||
*/
|
||||
export const NotificationService = {
|
||||
typeName: "yoresee_doc.v1.NotificationService",
|
||||
methods: {
|
||||
/**
|
||||
* create notifications (single or batch).
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.NotificationService.CreateNotification
|
||||
*/
|
||||
createNotification: {
|
||||
name: "CreateNotification",
|
||||
I: CreateNotificationRequest,
|
||||
O: CreateNotificationResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* list notifications for current user.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.NotificationService.ListNotifications
|
||||
*/
|
||||
listNotifications: {
|
||||
name: "ListNotifications",
|
||||
I: ListNotificationsRequest,
|
||||
O: ListNotificationsResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* mark notifications as read.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.NotificationService.MarkNotificationsRead
|
||||
*/
|
||||
markNotificationsRead: {
|
||||
name: "MarkNotificationsRead",
|
||||
I: MarkNotificationsReadRequest,
|
||||
O: MarkNotificationsReadResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
/**
|
||||
* mark all notifications as read.
|
||||
*
|
||||
* @generated from rpc yoresee_doc.v1.NotificationService.MarkAllNotificationsRead
|
||||
*/
|
||||
markAllNotificationsRead: {
|
||||
name: "MarkAllNotificationsRead",
|
||||
I: MarkAllNotificationsReadRequest,
|
||||
O: MarkAllNotificationsReadResponse,
|
||||
kind: MethodKind.Unary,
|
||||
},
|
||||
}
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user