@gitbeaker/core

中文文档
44.1.3发布于 2026/11/16MITTypeScriptES Module近 30 天下载 927.8万

Core API implementation of the GitLab API

原始使用文档
文档目录4 节
  1. Table of Contents
  2. Usage
  3. Supported APIs
  4. Contributors


gitbeaker



CircleCI Core Coverage Auto All Contributors Prettier Licence: MIT Install Size: Core

Core SDK for the GitLab API. This is not intended for direct use, see @gitbeaker/rest or gitbeaker/cli instead.

Table of Contents

Usage

Browsers Load @gitbeaker/core directly from esm.sh
<script type="module">
  import { Gitlab } from 'https://esm.sh/@gitbeaker/core';
</script>
Deno Load @gitbeaker/core directly from esm.sh
import { Gitlab } from 'https://esm.sh/@gitbeaker/core?dts';
Node 18+

Install with npm install @gitbeaker/core, yarn add @gitbeaker/core, or pnpm add @gitbeaker/core

import { Gitlab } from '@gitbeaker/core';

Supported APIs

AICatalog 🦊 ⌨️
ClusterAgents 🦊 ⌨️
AlertManagement 🦊 ⌨️
ApplicationAppearance 🦊 ⌨️
ApplicationPlanLimits 🦊 ⌨️
ApplicationSettings 🦊 ⌨️
ApplicationStatistics 🦊 ⌨️
Applications 🦊 ⌨️
AuditEvents 🦊 ⌨️
Avatar 🦊 ⌨️
Branches 🦊 ⌨️
BroadcastMessages 🦊 ⌨️
BulkImports 🦊 ⌨️
CommitDiscussions 🦊 ⌨️
Code Suggestions 🦊 ⌨️
Commits 🦊 ⌨️
CompliancePolicySettings 🦊 ⌨️
Composer 🦊 ⌨️
Conan 🦊 ⌨️
ConanV2 🦊 ⌨️
DataManagement 🦊 ⌨️
DatabaseMigrations 🦊 ⌨️
ContainerRegistry 🦊 ⌨️
ContainerRegistryProtectionTagRules 🦊 ⌨️
ContainerRepositoryProtectionRules 🦊 ⌨️
ContainerVirtualRegistry 🦊 ⌨️
Debian 🦊 ⌨️
Dependencies 🦊 ⌨️
DependencyListExport 🦊 ⌨️
DependencyProxy 🦊 ⌨️
DeployKeys 🦊 ⌨️
DeployTokens 🦊 ⌨️
Deployments 🦊 ⌨️
Environments 🦊 ⌨️
ErrorTrackingClientKeys 🦊 ⌨️
ErrorTrackingSettings 🦊 ⌨️
Events 🦊 ⌨️
Experiments 🦊 ⌨️
ExternalControls 🦊 ⌨️
ExternalStatusChecks 🦊 ⌨️
FeatureFlagUserLists 🦊 ⌨️
FeatureFlags 🦊 ⌨️
Features 🦊 ⌨️
Flows 🦊 ⌨️
FreezePeriods 🦊 ⌨️
GeoSites 🦊 ⌨️
GitLabDuoChat 🦊 ⌨️
GitlabPages 🦊 ⌨️
GoProxy 🦊 ⌨️
GoogleCloudIntegration 🦊 ⌨️
GroupAccessRequests 🦊 ⌨️
GroupAccessTokens 🦊 ⌨️
GroupActivityAnalytics 🦊 ⌨️
GroupBadges 🦊 ⌨️
GroupCustomAttributes 🦊 ⌨️
GroupEnterpriseUsers 🦊 ⌨️
GroupEpicBoards 🦊 ⌨️
GroupDORA4Metrics 🦊 ⌨️
GroupHooks 🦊 ⌨️
GroupImportExports 🦊 ⌨️
GroupIntegrations 🦊 ⌨️
GroupInvitations 🦊 ⌨️
GroupIssueBoards 🦊 ⌨️
GroupIterations 🦊 ⌨️
GroupLDAPLinks 🦊 ⌨️
GroupLabels 🦊 ⌨️
GroupMarkdownUploads 🦊 ⌨️
GroupMemberRoles 🦊 ⌨️
GroupMembers 🦊 ⌨️
GroupMilestones 🦊 ⌨️
GroupProtectedBranches 🦊 ⌨️
GroupProtectedEnvironments 🦊 ⌨️
GroupPushRules 🦊 ⌨️
GroupRelationExports 🦊 ⌨️
GroupReleases 🦊 ⌨️
GroupRepositoryStorageMoves 🦊 ⌨️
GroupSAMLIdentities 🦊 ⌨️
GroupSAMLLinks 🦊 ⌨️
GroupSCIMIdentities 🦊 ⌨️
GroupServiceAccounts 🦊 ⌨️
GroupVariables 🦊 ⌨️
GroupWikiNotes 🦊 ⌨️
GroupWikis 🦊 ⌨️
Groups 🦊 ⌨️
Helm 🦊 ⌨️
Import 🦊 ⌨️
InstanceLevelCICDVariables 🦊 ⌨️
Integrations 🦊 ⌨️
IssueAwardEmojis 🦊 ⌨️
IssueDiscussions 🦊 ⌨️
IssueIterationEvents 🦊 ⌨️
IssueLabelEvents 🦊 ⌨️
IssueLinks 🦊 ⌨️
IssueMilestoneEvents 🦊 ⌨️
IssueNoteAwardEmojis 🦊 ⌨️
IssueNotes 🦊 ⌨️
IssueStateEvents 🦊 ⌨️
IssueWeightEvents 🦊 ⌨️
Issues 🦊 ⌨️
IssuesStatistics 🦊 ⌨️
JobArtifacts 🦊 ⌨️
Jobs 🦊 ⌨️
Keys 🦊 ⌨️
License 🦊 ⌨️
Lint 🦊 ⌨️
Markdown 🦊 ⌨️
Maven 🦊 ⌨️
MergeRequestApprovals 🦊 ⌨️
MergeRequestApprovalSettings 🦊 ⌨️
MergeRequestAwardEmojis 🦊 ⌨️
MergeRequestContextCommits 🦊 ⌨️
MergeRequestDiscussions 🦊 ⌨️
MergeRequestDraftNotes 🦊 ⌨️
MergeRequestLabelEvents 🦊 ⌨️
MergeRequestMilestoneEvents 🦊 ⌨️
MergeRequestNoteAwardEmojis 🦊 ⌨️
MergeRequestNotes 🦊 ⌨️
MergeRequests 🦊 ⌨️
MergeTrains 🦊 ⌨️
Metadata 🦊 ⌨️
ModelRegistry 🦊 ⌨️
Migrations 🦊 ⌨️
NPM 🦊 ⌨️
Namespaces 🦊 ⌨️
NotificationSettings 🦊 ⌨️
NuGet 🦊 ⌨️
PackageRegistry 🦊 ⌨️
Packages 🦊 ⌨️
PagesDomains 🦊 ⌨️
PersonalAccessTokens 🦊 ⌨️
PipelineScheduleVariables 🦊 ⌨️
PipelineSchedules ⌨️
PipelineTriggerTokens 🦊 ⌨️
Pipelines 🦊 ⌨️
ProductAnalytics 🦊 ⌨️
ProjectAccessRequests 🦊 ⌨️
ProjectAccessTokens 🦊 ⌨️
ProjectAliases 🦊 ⌨️
ProjectBadges 🦊 ⌨️
ProjectCustomAttributes 🦊 ⌨️
ProjectDORA4Metrics 🦊 ⌨️
ProjectHooks 🦊 ⌨️
ProjectImportExports 🦊 ⌨️
ProjectInvitations 🦊 ⌨️
ProjectIssueBoards 🦊 ⌨️
ProjectIterations 🦊 ⌨️
ProjectJobTokenScopes 🦊 ⌨️
ProjectLabels 🦊 ⌨️
ProjectMarkdownUploads 🦊 ⌨️
ProjectMembers 🦊 ⌨️
ProjectMilestones 🦊 ⌨️
ProjectProtectedEnvironments 🦊 ⌨️
ProjectPushRules 🦊 ⌨️
ProjectRelationsExport 🦊 ⌨️
ProjectReleases 🦊 ⌨️
ProjectRemoteMirrors 🦊 ⌨️
ProjectRepositoryStorageMoves 🦊 ⌨️
ProjectSnippetAwardEmojis 🦊 ⌨️
ProjectSnippetDiscussions 🦊 ⌨️
ProjectSnippetNotes 🦊 ⌨️
ProjectSnippets 🦊 ⌨️
ProjectStatistics 🦊 ⌨️
ProjectTemplates 🦊 ⌨️
ProjectVariables 🦊 ⌨️
ProjectVulnerabilities 🦊 ⌨️
ProjectWikiNotes 🦊 ⌨️
ProjectWikis 🦊 ⌨️
Projects 🦊 ⌨️
ProjectProtectedBranches 🦊 ⌨️
ProtectedTags 🦊 ⌨️
PyPI 🦊 ⌨️
ReleaseLinks 🦊 ⌨️
Repositories 🦊 ⌨️
RepositoryFiles 🦊 ⌨️
RepositorySubmodules 🦊 ⌨️
ResourceGroups 🦊 ⌨️
RubyGems 🦊 ⌨️
Runners 🦊 ⌨️
Search 🦊 ⌨️
SearchAdmin 🦊 ⌨️
SecureFiles 🦊 ⌨️
ServiceAccounts 🦊 ⌨️
ServiceData 🦊 ⌨️
SidekiqMetrics 🦊 ⌨️
SidekiqQueues 🦊 ⌨️
SnippetRepositoryStorageMoves 🦊 ⌨️
Snippets 🦊 ⌨️
Suggestions 🦊 ⌨️
SystemHooks 🦊 ⌨️
Tags 🦊 ⌨️
TokenInformation 🦊 ⌨️
TerraformModules 🦊 ⌨️
TodoLists 🦊 ⌨️
Topics 🦊 ⌨️
UserCustomAttributes 🦊 ⌨️
UserEmails 🦊 ⌨️
UserFollows 🦊 ⌨️
UserGPGKeys 🦊 ⌨️
UserModeration 🦊 ⌨️
UserImpersonationTokens 🦊 ⌨️
UserSSHKeys 🦊 ⌨️
UserStarredMetricsDashboard 🦊 ⌨️
Users 🦊 ⌨️
UserSupportPin 🦊 ⌨️
VirtualRegistriesCleanupPolicies 🦊 ⌨️
VulnerabilityArchiveExports 🦊 ⌨️
VulnerabilityFindings 🦊 ⌨️

Contributors

Justin Dalrymple Dylan DesRosier Mike Wyatt Cory Zibeill Martin Bour akira345 Pavel Birukov Joseph Petersen Louis Cherel Adam Dehnel Ev Haus Loïc Mahieu Giuseppe Angri jennparise Oscar Daniel Ruf schindld Alvaro Daniel Moore Dylan M. Taylor Corentin Mors xatavian Yevgeny Petukhov Mickaël Tricot Andrea Flavien Bridault s-kazuki Kipras Melnikovas xieyu st1gok Max Wittig Niklas Lochschmidt Ilya Dus Omar Awamry Hennadii Varava xiezht Martin Helmich Sean McGivern Clemens Lieb Vojtěch Sajdl divido Vincent Boulaye Aliyss Snow Mahmoud Saada Feng Yu Roy Jacobs Paul Lemke Ian Jenkins nilennoct Laffargue Michael Martin Howarth Christoph Lehmann Frank V Salim Benabbou Tamás Török-Vistai Martin Benninger fewieden Jeff Pelton Claude Abounegm Stefan Hall Jordan Wallet zhao0 Joshua Grosso Isaac Ouellet Therrien Rajat Sharma Cesar B. Igor Katsuba Michael Townsend bodtx Artem Munif Tanjim Quentin Dreyer Norm MacLennan jnovick Fabian Aussems Michael Matzka CraigAllardyce Bruno Guimarães Lukas Eipert Maximilian Krauß Evolution Engineering WEBER Logan Anton Zhukov Nicholas Loomans Carl Kittelberger Patrik Votoček Kyrylo Fedorov Claudio Vellage Seb0uil Rafael Mello Théis Bazin Spencer Salisbury Simone Corsi

版本与发布记录

@gitbeaker/core 共发布 313 个版本,首次发布于 2020/03/22;过去 12 个月发布了 29 个版本。

版本发布日期距今
44.1.3latest2026/11/16今天
44.1.22026/11/16今天
44.1.12026/11/16今天
44.1.02026/11/16今天
44.0.72026/11/16今天
44.0.62026/11/151 天前

其他发布通道:canary → 0.0.0-canary-20260813022219,pre → 44.0.0-pre.0。

关于 @gitbeaker/core 的常见问题

@gitbeaker/core 是什么?

Core API implementation of the GitLab API

如何安装 @gitbeaker/core?

在项目目录运行 npm install @gitbeaker/core,或使用 pnpm add / yarn add / bun add。

@gitbeaker/core 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@gitbeaker/core 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@gitbeaker/core 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=v24.16.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@gitbeaker/core 可以商用吗?

@gitbeaker/core 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@gitbeaker/core 的下载量有多少?

根据 npm 官方下载统计,@gitbeaker/core 在 2026/10/17 – 2026/11/15 这 30 天内被下载 9,277,869 次,日均约 309,262 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@gitbeaker/core 还在维护吗?

最新版本 44.1.3 发布于 2026/11/16(今天);至今共发布 313 个版本,其中过去 12 个月发布了 29 个;首次发布于 2020/03/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。