feat: add generated Node protobuf SDK
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
node_modules/
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Yoresee Doc Node SDK
|
||||||
|
|
||||||
|
Generated Node.js protobuf bindings for the Yoresee Doc API.
|
||||||
|
|
||||||
|
The package ships two module formats:
|
||||||
|
|
||||||
|
- **ESM/Connect** (`esm/`) for browser and `@connectrpc/connect-web` consumers.
|
||||||
|
- **CommonJS/gRPC** (`cjs/`) for Node.js `@grpc/grpc-js` consumers.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Consume the published Gitea tag as a Git dependency:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"@yoresee-doc/sdk-node": "git+ssh://git@git.yoresee.cc/YoreseeDoc/yoresee_doc_sdk_node.git#v0.1.0"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
ESM consumers import from the `esm` subpath:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { DocumentService } from '@yoresee-doc/sdk-node/esm/yoresee_doc/v1/yoresee_doc_connect.js'
|
||||||
|
import { CreateDocumentRequest } from '@yoresee-doc/sdk-node/esm/yoresee_doc/v1/yoresee_doc_pb.js'
|
||||||
|
```
|
||||||
|
|
||||||
|
CommonJS consumers require from the `cjs` subpath:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const { DocumentServiceClient } = require('@yoresee-doc/sdk-node/cjs/yoresee_doc/v1/yoresee_doc_grpc_pb.js')
|
||||||
|
const { CreateDocumentRequest } = require('@yoresee-doc/sdk-node/cjs/yoresee_doc/v1/yoresee_doc_pb.js')
|
||||||
|
```
|
||||||
|
|
||||||
|
## Source And Provenance
|
||||||
|
|
||||||
|
- Source proto: `../yoresee_doc/proto/yoresee_doc/v1/yoresee_doc.proto`
|
||||||
|
- Source proto commit: `272c5f79a5c5e21282861f8a557ba30520769681`
|
||||||
|
- Gitea tag: `v0.1.0`
|
||||||
|
- ESM generation command: `buf generate ../yoresee_doc/proto --template buf.gen.yaml`
|
||||||
|
- CJS generation command: `grpc_tools_node_protoc` with `protoc-gen-js` and `protoc-gen-grpc`
|
||||||
|
|
||||||
|
Generator versions used for this artifact:
|
||||||
|
|
||||||
|
- `buf 1.72.0`
|
||||||
|
- `protoc-gen-es v1.10.1`
|
||||||
|
- `protoc-gen-connect-es v1.7.0`
|
||||||
|
- `grpc-tools 1.13.1`
|
||||||
|
- `protoc-gen-js 3.21.4-4`
|
||||||
|
|
||||||
|
The generated artifacts are committed to this repository so consumers can
|
||||||
|
install the SDK without running protobuf code generation.
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
version: v2
|
||||||
|
plugins:
|
||||||
|
- local: protoc-gen-es
|
||||||
|
out: esm
|
||||||
|
opt:
|
||||||
|
- target=js
|
||||||
|
- import_extension=.js
|
||||||
|
- local: protoc-gen-connect-es
|
||||||
|
out: esm
|
||||||
|
opt:
|
||||||
|
- target=js
|
||||||
|
- import_extension=.js
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
messages: require('./yoresee_doc/v1/yoresee_doc_pb.js'),
|
||||||
|
services: require('./yoresee_doc/v1/yoresee_doc_grpc_pb.js')
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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
Generated
+364
@@ -0,0 +1,364 @@
|
|||||||
|
{
|
||||||
|
"name": "@yoresee-doc/sdk-node",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "@yoresee-doc/sdk-node",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@bufbuild/protobuf": "^1.10.0",
|
||||||
|
"@connectrpc/connect": "^1.7.0",
|
||||||
|
"@grpc/grpc-js": "^1.12.0",
|
||||||
|
"google-protobuf": "^4.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@bufbuild/protobuf": {
|
||||||
|
"version": "1.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.10.1.tgz",
|
||||||
|
"integrity": "sha512-wJ8ReQbHxsAfXhrf9ixl0aYbZorRuOWpBNzm8pL8ftmSxQx/wnJD5Eg861NwJU/czy2VXFIebCeZnZrI9rktIQ==",
|
||||||
|
"license": "(Apache-2.0 AND BSD-3-Clause)"
|
||||||
|
},
|
||||||
|
"node_modules/@connectrpc/connect": {
|
||||||
|
"version": "1.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@connectrpc/connect/-/connect-1.7.0.tgz",
|
||||||
|
"integrity": "sha512-iNKdJRi69YP3mq6AePRT8F/HrxWCewrhxnLMNm0vpqXAR8biwzRtO6Hjx80C6UvtKJ5sFmffQT7I4Baecz389w==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@bufbuild/protobuf": "^1.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@grpc/grpc-js": {
|
||||||
|
"version": "1.14.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.4.tgz",
|
||||||
|
"integrity": "sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@grpc/proto-loader": "^0.8.0",
|
||||||
|
"@js-sdsl/ordered-map": "^4.4.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@grpc/proto-loader": {
|
||||||
|
"version": "0.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz",
|
||||||
|
"integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"lodash.camelcase": "^4.3.0",
|
||||||
|
"long": "^5.0.0",
|
||||||
|
"protobufjs": "^7.5.5",
|
||||||
|
"yargs": "^17.7.2"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@js-sdsl/ordered-map": {
|
||||||
|
"version": "4.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz",
|
||||||
|
"integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/js-sdsl"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/aspromise": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/base64": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/codegen": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/eventemitter": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/fetch": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==",
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"@protobufjs/aspromise": "^1.1.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/float": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/path": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/pool": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@protobufjs/utf8": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==",
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@types/node": {
|
||||||
|
"version": "26.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.2.0.tgz",
|
||||||
|
"integrity": "sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"undici-types": "~8.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/ansi-regex": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/ansi-styles": {
|
||||||
|
"version": "4.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||||
|
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"color-convert": "^2.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/cliui": {
|
||||||
|
"version": "8.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
||||||
|
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"string-width": "^4.2.0",
|
||||||
|
"strip-ansi": "^6.0.1",
|
||||||
|
"wrap-ansi": "^7.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/color-convert": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"color-name": "~1.1.4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=7.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/color-name": {
|
||||||
|
"version": "1.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||||
|
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/emoji-regex": {
|
||||||
|
"version": "8.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
||||||
|
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/escalade": {
|
||||||
|
"version": "3.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
||||||
|
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/get-caller-file": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": "6.* || 8.* || >= 10.*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/google-protobuf": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-yD2fqbNgvJPuQwdKJiPdbUcXveNRxgqy070gzsBsCyFJA8Qdj9oxa9xtkddb/JEhcDk0RD5SfGUWg+nhINfMxA==",
|
||||||
|
"license": "(BSD-3-Clause AND Apache-2.0)"
|
||||||
|
},
|
||||||
|
"node_modules/is-fullwidth-code-point": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/lodash.camelcase": {
|
||||||
|
"version": "4.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
|
||||||
|
"integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/long": {
|
||||||
|
"version": "5.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",
|
||||||
|
"integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
|
||||||
|
"license": "Apache-2.0"
|
||||||
|
},
|
||||||
|
"node_modules/protobufjs": {
|
||||||
|
"version": "7.6.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.5.tgz",
|
||||||
|
"integrity": "sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==",
|
||||||
|
"hasInstallScript": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"@protobufjs/aspromise": "^1.1.2",
|
||||||
|
"@protobufjs/base64": "^1.1.2",
|
||||||
|
"@protobufjs/codegen": "^2.0.5",
|
||||||
|
"@protobufjs/eventemitter": "^1.1.1",
|
||||||
|
"@protobufjs/fetch": "^1.1.1",
|
||||||
|
"@protobufjs/float": "^1.0.2",
|
||||||
|
"@protobufjs/path": "^1.1.2",
|
||||||
|
"@protobufjs/pool": "^1.1.0",
|
||||||
|
"@protobufjs/utf8": "^1.1.1",
|
||||||
|
"@types/node": ">=13.7.0",
|
||||||
|
"long": "^5.3.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/require-directory": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||||
|
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/string-width": {
|
||||||
|
"version": "4.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
||||||
|
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"emoji-regex": "^8.0.0",
|
||||||
|
"is-fullwidth-code-point": "^3.0.0",
|
||||||
|
"strip-ansi": "^6.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/strip-ansi": {
|
||||||
|
"version": "6.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
||||||
|
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-regex": "^5.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/undici-types": {
|
||||||
|
"version": "8.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
|
||||||
|
"integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/wrap-ansi": {
|
||||||
|
"version": "7.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
||||||
|
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-styles": "^4.0.0",
|
||||||
|
"string-width": "^4.1.0",
|
||||||
|
"strip-ansi": "^6.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/y18n": {
|
||||||
|
"version": "5.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||||
|
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/yargs": {
|
||||||
|
"version": "17.7.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",
|
||||||
|
"integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"cliui": "^8.0.1",
|
||||||
|
"escalade": "^3.1.1",
|
||||||
|
"get-caller-file": "^2.0.5",
|
||||||
|
"require-directory": "^2.1.1",
|
||||||
|
"string-width": "^4.2.3",
|
||||||
|
"y18n": "^5.0.5",
|
||||||
|
"yargs-parser": "^21.1.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/yargs-parser": {
|
||||||
|
"version": "21.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
|
||||||
|
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "@yoresee-doc/sdk-node",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"type": "module",
|
||||||
|
"files": ["esm", "cjs", "README.md"],
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": "./esm/index.js",
|
||||||
|
"require": "./cjs/index.js"
|
||||||
|
},
|
||||||
|
"./esm/*": "./esm/*",
|
||||||
|
"./cjs/*": "./cjs/*"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@bufbuild/protobuf": "^1.10.0",
|
||||||
|
"@connectrpc/connect": "^1.7.0",
|
||||||
|
"@grpc/grpc-js": "^1.12.0",
|
||||||
|
"google-protobuf": "^4.0.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user