npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cherrystudio/api-sdk

v0.0.85

Published

OpenAPI client for @cherrystudio/api-sdk

Readme

@cherrystudio/[email protected]

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install @cherrystudio/[email protected] --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to http://localhost

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- DefaultApi | agentCreate | POST /agents | 创建Agent DefaultApi | agentFindAll | GET /agents | 获取所有Agent DefaultApi | agentFindOne | GET /agents/{id} | 根据ID获取Agent DefaultApi | agentRemove | DELETE /agents/{id} | 删除Agent DefaultApi | agentUpdate | PUT /agents/{id} | 更新Agent DefaultApi | anthropicMessages | POST /v1/messages | DefaultApi | apiusageGetChatDetail | GET /api-usage/chat-history/{id} | 获取聊天记录详情 DefaultApi | apiusageGetChatHistory | GET /api-usage/chat-history | 获取聊天记录列表 DefaultApi | apiusageGetOverviewStats | GET /api-usage/dashboard/overview | 获取总览统计数据 DefaultApi | apiusageGetRanking | GET /api-usage/dashboard/ranking | 获取排行榜 DefaultApi | apiusageGetStatsByGroup | GET /api-usage/dashboard/by-group | 按分组统计 DefaultApi | apiusageGetStatsByModel | GET /api-usage/dashboard/by-model | 按模型统计 DefaultApi | apiusageGetStatsByProvider | GET /api-usage/dashboard/by-provider | 按服务商统计 DefaultApi | apiusageGetStatsByUser | GET /api-usage/dashboard/by-user | 按用户统计 DefaultApi | apiusageGetTimeSeriesStats | GET /api-usage/dashboard/time-series | 获取时间序列统计数据 DefaultApi | appGetCasdoorDemo | GET /casdoor-demo | Casdoor 登录演示页面 DefaultApi | appHealth | GET /health | 健康检测 DefaultApi | appInfo | GET / | 应用信息 DefaultApi | assistantCreate | POST /assistants | 创建智能体 DefaultApi | assistantFindAll | GET /assistants | 获取所有智能体 DefaultApi | assistantFindByGroupId | GET /assistants/group/{groupId} | 获取指定组的智能体列表 DefaultApi | assistantFindOne | GET /assistants/{id} | 获取指定智能体 DefaultApi | assistantRemove | DELETE /assistants/{id} | 删除智能体 DefaultApi | assistantUpdate | PUT /assistants/{id} | 更新智能体 DefaultApi | authCasdoorCallback | GET /auth/casdoor/callback | Casdoor 登录回调 DefaultApi | authCasdoorLogin | GET /auth/casdoor | Casdoor 登录 DefaultApi | authLogin | POST /auth/login | 用户登录 DefaultApi | authRefresh | POST /auth/refresh | 刷新访问令牌 DefaultApi | cachecleanupCleanupAllInvalidFiles | DELETE /cache-cleanup/cleanup-all | 清理所有无效文件(仅管理员) DefaultApi | cachecleanupCleanupInvalidFiles | POST /cache-cleanup/cleanup | 清理无效文件(仅管理员) DefaultApi | cachecleanupGetCacheStats | GET /cache-cleanup/stats | 获取缓存统计信息(仅管理员) DefaultApi | cachecleanupGetInvalidFiles | GET /cache-cleanup/invalid-files | 获取无效文件列表(仅管理员) DefaultApi | chatCheck | POST /v1/check | 检查模型可用性 DefaultApi | chatModels | GET /v1/models | 获取模型列表 DefaultApi | configurationGetConfigurations | GET /configurations | 获取用户配置 DefaultApi | filedownloadDownloadFile | GET /files/download/{id} | 下载文件 DefaultApi | filesFindAll | GET /files | 获取所有文件 DefaultApi | filesFindOne | GET /files/{id} | 根据ID获取文件 DefaultApi | filesRemove | DELETE /files/{id} | 删除文件 DefaultApi | filesUploadFile | POST /files/upload | 上传文件 DefaultApi | geminiCompletions0 | POST /v1beta/models/{path} | Gemini/Vertex AI chat completions endpoint DefaultApi | geminiCompletions1 | POST /v1/projects/{project}/locations/{location}/publishers/{publisher}/models/{path} | Gemini/Vertex AI chat completions endpoint DefaultApi | geminiEmbeddings | POST /v1beta/openai/embeddings | Gemini embeddings endpoint DefaultApi | groupCreate | POST /groups | 创建新分组 DefaultApi | groupFindAll | GET /groups | 获取所有分组 DefaultApi | groupFindOne | GET /groups/{id} | 根据ID获取分组 DefaultApi | groupGetHistory | GET /groups/{id}/quota/history | 获取组历史用量参考 DefaultApi | groupGetQuota | GET /groups/{id}/quota | 获取组限额配置 DefaultApi | groupGetUsage | GET /groups/{id}/quota/usage | 获取组当期用量 DefaultApi | groupRemove | DELETE /groups/{id} | 删除分组 DefaultApi | groupResetQuota | POST /groups/{id}/quota/reset | 重置组限额周期 DefaultApi | groupSetQuota | PUT /groups/{id}/quota | 设置组限额 DefaultApi | groupUpdate | PATCH /groups/{id} | 更新分组信息 DefaultApi | groupvisibilityGetGroupVisibility | GET /groups/{id}/visibility | 获取组的资源可见性配置 DefaultApi | groupvisibilityResetVisibility | DELETE /groups/{id}/visibility/{resourceType} | 重置组对特定资源类型的可见性为默认模式 DefaultApi | groupvisibilitySetVisibility | PUT /groups/{id}/visibility/{resourceType} | 设置组对特定资源类型的可见性模式 DefaultApi | importDownloadGroupTemplate | GET /import/groups/template | 下载分组导入模板 DefaultApi | importDownloadUserTemplate | GET /import/users/template | 下载用户导入模板 DefaultApi | importExecuteGroups | POST /import/groups/execute | 执行分组导入(SSE 进度推送) DefaultApi | importExecuteUsers | POST /import/users/execute | 执行用户导入(SSE 进度推送) DefaultApi | importGetGroupPreviewPage | GET /import/groups/preview | 分页获取分组预览数据 DefaultApi | importGetUserPreviewPage | GET /import/users/preview | 分页获取用户预览数据 DefaultApi | importPreviewGroups | POST /import/groups/preview | 预览分组导入 DefaultApi | importPreviewUsers | POST /import/users/preview | 预览用户导入 DefaultApi | knowledgebaseAddItem | POST /knowledge-base/{id}/items | 添加知识库条目 DefaultApi | knowledgebaseAddItemsBatch | POST /knowledge-base/{id}/items/batch | 批量添加知识库条目 DefaultApi | knowledgebaseCreate | POST /knowledge-base | 创建新的知识库 DefaultApi | knowledgebaseFindAll | GET /knowledge-base | 获取所有知识库 DefaultApi | knowledgebaseFindOne | GET /knowledge-base/{id} | 获取指定知识库 DefaultApi | knowledgebaseRemove | DELETE /knowledge-base/{id} | 删除知识库 DefaultApi | knowledgebaseRemoveItem | DELETE /knowledge-base/{id}/items/{itemId} | 删除知识库条目 DefaultApi | knowledgebaseRerank | POST /knowledge-base/{id}/rerank | 重排序搜索结果 DefaultApi | knowledgebaseSearch | POST /knowledge-base/{id}/search | 搜索知识库 DefaultApi | knowledgebaseUpdate | PATCH /knowledge-base/{id} | 更新知识库 DefaultApi | knowledgebaseprocessorGetFailedItems | GET /knowledge-base-processor/failed | 获取失败的项目 DefaultApi | knowledgebaseprocessorGetPendingItems | GET /knowledge-base-processor/pending | 获取待处理的项目 DefaultApi | knowledgebaseprocessorGetProcessingItems | GET /knowledge-base-processor/processing | 获取正在处理的项目 DefaultApi | knowledgebaseprocessorGetStats | GET /knowledge-base-processor/stats | 获取队列统计信息 DefaultApi | knowledgebaseprocessorGetStatus | GET /knowledge-base-processor/status | 获取队列状态 DefaultApi | knowledgebaseprocessorRetryFailedItem | GET /knowledge-base-processor/retry/{id} | 重试失败的项目 DefaultApi | licenseGetCurrentLicense | GET /licenses/current | 获取当前有效 License DefaultApi | licenseGetExpressUser | GET /licenses/express-user | 获取 Express 用户信息 DefaultApi | licenseGetTrialStatus | GET /licenses/trial-status | 获取试用状态 DefaultApi | licenseImportLicense | POST /licenses/import | 导入 License DefaultApi | licenseRevokeLicense | DELETE /licenses/revoke | 撤销当前 License DefaultApi | mcpserverAddServerToAssistant | POST /mcp-servers/{serverId}/assistant/{assistantId} | 为助手添加 MCP 服务器 DefaultApi | mcpserverCreate | POST /mcp-servers | 创建 MCP 服务器 DefaultApi | mcpserverFindAll | GET /mcp-servers | 获取所有 MCP 服务器 DefaultApi | mcpserverFindByKey | GET /mcp-servers/key/{key} | 通过 key 获取 MCP 服务器 DefaultApi | mcpserverFindOne | GET /mcp-servers/{id} | 获取指定 MCP 服务器 DefaultApi | mcpserverGetServersByAssistant | GET /mcp-servers/assistant/{assistantId} | 获取助手关联的 MCP 服务器 DefaultApi | mcpserverRemove | DELETE /mcp-servers/{id} | 删除 MCP 服务器 DefaultApi | mcpserverRemoveServerFromAssistant | DELETE /mcp-servers/{serverId}/assistant/{assistantId} | 从助手移除 MCP 服务器 DefaultApi | mcpserverUpdate | PUT /mcp-servers/{id} | 更新 MCP 服务器 DefaultApi | minappCreate | POST /minapps | 创建小程序 DefaultApi | minappFindAll | GET /minapps | 获取所有小程序 DefaultApi | minappFindOne | GET /minapps/{id} | 获取指定小程序 DefaultApi | minappRemove | DELETE /minapps/{id} | 删除小程序 DefaultApi | minappUpdate | PATCH /minapps/{id} | 更新小程序 DefaultApi | modelFindAll | GET /models | 获取所有模型 DefaultApi | modelFindByModelId | GET /models/search/{modelId} | 根据模型ID搜索模型 DefaultApi | modelFindByProviderId | GET /models/provider/{providerId} | 根据提供商ID获取模型列表 DefaultApi | modelFindOne | GET /models/{id} | 获取指定模型 DefaultApi | modelUpdate | PUT /models/{id} | 更新模型信息 DefaultApi | ollamaChat | POST /api/chat | Ollama Chat DefaultApi | ollamaEmbeddings | POST /api/embed | Ollama 嵌入向量 DefaultApi | openaiChatCompletions0 | POST /v1/chat/completions | DefaultApi | openaiChatCompletions1 | POST /openai/deployments/{deployment}/chat/completions | DefaultApi | openaiEditImage0 | POST /v1/images/edits | 编辑图片 DefaultApi | openaiEditImage1 | POST /openai/deployments/{deployment}/images/edits | 编辑图片 DefaultApi | openaiEmbeddings0 | POST /v1/embeddings | DefaultApi | openaiEmbeddings1 | POST /v1/openai/deployments/{deployment}/embeddings | DefaultApi | openaiEmbeddings2 | POST /openai/deployments/{deployment}/embeddings | DefaultApi | openaiGenerateImage0 | POST /v1/images/generations | 生成图片 DefaultApi | openaiGenerateImage1 | POST /openai/deployments/{deployment}/images/generations | 生成图片 DefaultApi | openaiRerank | POST /v1/rerank | DefaultApi | openaiResponse0 | POST /v1/responses | DefaultApi | openaiResponse1 | POST /v1/openai/v1/responses | DefaultApi | permissionCreate | POST /permissions | 创建权限 DefaultApi | permissionFindAll | GET /permissions | 获取所有权限 DefaultApi | permissionFindOne | GET /permissions/{id} | 获取指定权限 DefaultApi | permissionRemove | DELETE /permissions/{id} | 删除权限 DefaultApi | permissionUpdate | PUT /permissions/{id} | 更新权限信息 DefaultApi | providerAddModel | POST /providers/{id}/models | 为服务商添加模型 DefaultApi | providerBatchUpdateModels | POST /providers/{id}/models/batch | 批量更新服务商的模型(会删除原有模型) DefaultApi | providerCreate | POST /providers | 创建服务商 DefaultApi | providerFindAll | GET /providers | 获取所有服务商 DefaultApi | providerFindOne | GET /providers/{id} | 获取指定服务商 DefaultApi | providerFindOneByProviderId | GET /providers/by-provider-id/{providerId} | 通过 provider_id 获取服务商 DefaultApi | providerRemove | DELETE /providers/{id} | 删除服务商 DefaultApi | providerRemoveModel | DELETE /providers/{id}/models/{modelId} | 删除服务商的指定模型 DefaultApi | providerRemoveModels | DELETE /providers/{id}/models | 批量删除服务商的模型 DefaultApi | providerUpdate | PUT /providers/{id} | 更新服务商 DefaultApi | resourceassignmentBatchCreate | POST /resource-assignments/batch | 批量分配资源给组 DefaultApi | resourceassignmentBatchDelete | POST /resource-assignments/batch-delete | 批量移除资源分配 DefaultApi | resourceassignmentCreateAssignment | POST /resource-assignments | 分配资源给组 DefaultApi | resourceassignmentGetGroupAssignments | GET /resource-assignments/groups/{id} | 获取组的资源分配列表 DefaultApi | resourceassignmentRemoveAssignment | DELETE /resource-assignments/{id} | 移除资源分配 DefaultApi | roleAddPermissions | POST /roles/{id}/permissions | 添加角色权限 DefaultApi | roleCreate | POST /roles | 创建角色 DefaultApi | roleFindAll | GET /roles | 获取所有角色 DefaultApi | roleFindOne | GET /roles/{id} | 获取指定角色 DefaultApi | roleRemove | DELETE /roles/{id} | 删除角色 DefaultApi | roleRemovePermissions | DELETE /roles/{id}/permissions | 移除角色权限 DefaultApi | roleUpdate | PUT /roles/{id} | 更新角色信息 DefaultApi | settingDelete | DELETE /settings/{key} | 删除设置 DefaultApi | settingGet | GET /settings/{key} | 获取指定设置 DefaultApi | settingList | GET /settings | 获取所有设置 DefaultApi | settingSet | POST /settings/{key} | 创建或更新设置 DefaultApi | tokenCreate | POST /tokens | Create new API token DefaultApi | tokenUpdate | PATCH /tokens/{id} | Update API token DefaultApi | userChangePassword | PUT /users/me/password | 修改密码 DefaultApi | userCreate | POST /users | 创建用户 DefaultApi | userDeleteQuota | DELETE /users/{id}/quota | 恢复用户默认限额 DefaultApi | userFindAll | GET /users | 获取所有用户 DefaultApi | userFindOne | GET /users/{id} | 获取指定用户 DefaultApi | userGetHistory | GET /users/{id}/quota/history | 获取用户历史用量参考 DefaultApi | userGetMe | GET /users/me | 获取当前用户信息 DefaultApi | userGetQuota | GET /users/{id}/quota | 获取用户限额配置 DefaultApi | userGetUsage | GET /users/{id}/quota/usage | 获取用户当期用量 DefaultApi | userRemove | DELETE /users/{id} | 删除用户 DefaultApi | userResetQuota | POST /users/{id}/quota/reset | 重置用户限额周期 DefaultApi | userSetQuota | PUT /users/{id}/quota | 设置用户限额 DefaultApi | userUpdate | PUT /users/{id} | 更新用户信息 DefaultApi | userUpdateMe | PATCH /users/me | 更新当前用户信息 DockerApi | dockerupdateGetAvailableVersions | GET /docker/available-versions | 获取可更新版本列表(仅管理员) DockerApi | dockerupdateGetPullProgress | GET /docker/pull-progress/{version} | 获取镜像拉取进度(SSE,通过 query token 鉴权) DockerApi | dockerupdateGetStatus | GET /docker/status | 获取 Docker 状态(仅管理员) DockerApi | dockerupdateStartUpdate | POST /docker/update | 执行容器更新(仅管理员)

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer

  • Type: Bearer authentication (JWT)