@gitbeaker/core 41.1.1 → 41.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +196 -186
- package/dist/index.d.mts +24 -35
- package/dist/index.d.ts +24 -35
- package/dist/index.js +56 -54
- package/dist/index.mjs +57 -54
- package/dist/map.json +53 -11
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1793,46 +1793,6 @@ var ResourceStateEvents = class extends BaseResource {
|
|
|
1793
1793
|
);
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
|
-
var ResourceJobTokenScopes = class extends BaseResource {
|
|
1797
|
-
constructor(resourceType, options) {
|
|
1798
|
-
super({ prefixUrl: resourceType, ...options });
|
|
1799
|
-
}
|
|
1800
|
-
show(resourceId, options) {
|
|
1801
|
-
return RequestHelper.get()(
|
|
1802
|
-
this,
|
|
1803
|
-
endpoint`${resourceId}/job_token_scope`,
|
|
1804
|
-
options
|
|
1805
|
-
);
|
|
1806
|
-
}
|
|
1807
|
-
edit(resourceId, enabled, options) {
|
|
1808
|
-
return RequestHelper.patch()(
|
|
1809
|
-
this,
|
|
1810
|
-
endpoint`${resourceId}/job_token_scope`,
|
|
1811
|
-
{ ...options, enabled }
|
|
1812
|
-
);
|
|
1813
|
-
}
|
|
1814
|
-
showInboundAllowList(resourceId, options) {
|
|
1815
|
-
return RequestHelper.get()(
|
|
1816
|
-
this,
|
|
1817
|
-
endpoint`${resourceId}/job_token_scope/allowlist`,
|
|
1818
|
-
options
|
|
1819
|
-
);
|
|
1820
|
-
}
|
|
1821
|
-
addToInboundAllowList(resourceId, targetResourceId, options) {
|
|
1822
|
-
return RequestHelper.post()(
|
|
1823
|
-
this,
|
|
1824
|
-
endpoint`${resourceId}/job_token_scope/allowlist/${targetResourceId}`,
|
|
1825
|
-
options
|
|
1826
|
-
);
|
|
1827
|
-
}
|
|
1828
|
-
removeFromInboundAllowList(resourceId, targetResourceId, options) {
|
|
1829
|
-
return RequestHelper.del()(
|
|
1830
|
-
this,
|
|
1831
|
-
endpoint`${resourceId}/job_token_scope/allowlist/${targetResourceId}`,
|
|
1832
|
-
options
|
|
1833
|
-
);
|
|
1834
|
-
}
|
|
1835
|
-
};
|
|
1836
1796
|
|
|
1837
1797
|
// src/resources/DockerfileTemplates.ts
|
|
1838
1798
|
var DockerfileTemplates = class extends ResourceTemplates {
|
|
@@ -4683,11 +4643,62 @@ var ProjectIterations = class extends ResourceIterations {
|
|
|
4683
4643
|
super("project", options);
|
|
4684
4644
|
}
|
|
4685
4645
|
};
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4646
|
+
var ProjectJobTokenScopes = class extends BaseResource {
|
|
4647
|
+
show(projectId, options) {
|
|
4648
|
+
return RequestHelper.get()(
|
|
4649
|
+
this,
|
|
4650
|
+
endpoint`${projectId}/job_token_scope`,
|
|
4651
|
+
options
|
|
4652
|
+
);
|
|
4653
|
+
}
|
|
4654
|
+
edit(projectId, enabled, options) {
|
|
4655
|
+
return RequestHelper.patch()(
|
|
4656
|
+
this,
|
|
4657
|
+
endpoint`${projectId}/job_token_scope`,
|
|
4658
|
+
{ ...options, enabled }
|
|
4659
|
+
);
|
|
4660
|
+
}
|
|
4661
|
+
showInboundAllowList(projectId, options) {
|
|
4662
|
+
return RequestHelper.get()(
|
|
4663
|
+
this,
|
|
4664
|
+
endpoint`${projectId}/job_token_scope/allowlist`,
|
|
4665
|
+
options
|
|
4666
|
+
);
|
|
4667
|
+
}
|
|
4668
|
+
addToInboundAllowList(projectId, targetProjectId, options) {
|
|
4669
|
+
return RequestHelper.post()(
|
|
4670
|
+
this,
|
|
4671
|
+
endpoint`${projectId}/job_token_scope/allowlist`,
|
|
4672
|
+
{ ...options, targetProjectId }
|
|
4673
|
+
);
|
|
4674
|
+
}
|
|
4675
|
+
removeFromInboundAllowList(projectId, targetProjectId, options) {
|
|
4676
|
+
return RequestHelper.del()(
|
|
4677
|
+
this,
|
|
4678
|
+
endpoint`${projectId}/job_token_scope/allowlist/${targetProjectId}`,
|
|
4679
|
+
options
|
|
4680
|
+
);
|
|
4681
|
+
}
|
|
4682
|
+
showGroupsAllowList(projectId, options) {
|
|
4683
|
+
return RequestHelper.get()(
|
|
4684
|
+
this,
|
|
4685
|
+
endpoint`${projectId}/job_token_scope/groups_allowlist`,
|
|
4686
|
+
options
|
|
4687
|
+
);
|
|
4688
|
+
}
|
|
4689
|
+
addToGroupsAllowList(projectId, targetGroupId, options) {
|
|
4690
|
+
return RequestHelper.post()(
|
|
4691
|
+
this,
|
|
4692
|
+
endpoint`${projectId}/job_token_scope/groups_allowlist`,
|
|
4693
|
+
{ ...options, targetGroupId }
|
|
4694
|
+
);
|
|
4695
|
+
}
|
|
4696
|
+
removeFromGroupsAllowList(projectId, targetGroupId, options) {
|
|
4697
|
+
return RequestHelper.del()(
|
|
4698
|
+
this,
|
|
4699
|
+
endpoint`${projectId}/job_token_scope/groups_allowlist/${targetGroupId}`,
|
|
4700
|
+
options
|
|
4701
|
+
);
|
|
4691
4702
|
}
|
|
4692
4703
|
};
|
|
4693
4704
|
|
|
@@ -6046,13 +6057,6 @@ var GroupIterations = class extends ResourceIterations {
|
|
|
6046
6057
|
super("groups", options);
|
|
6047
6058
|
}
|
|
6048
6059
|
};
|
|
6049
|
-
|
|
6050
|
-
// src/resources/GroupJobTokenScopes.ts
|
|
6051
|
-
var GroupJobTokenScopes = class extends ResourceJobTokenScopes {
|
|
6052
|
-
constructor(options) {
|
|
6053
|
-
super("groups", options);
|
|
6054
|
-
}
|
|
6055
|
-
};
|
|
6056
6060
|
var GroupLDAPLinks = class extends BaseResource {
|
|
6057
6061
|
add(groupId, groupAccess, provider, options) {
|
|
6058
6062
|
return RequestHelper.post()(this, endpoint`groups/${groupId}/ldap_group_links`, {
|
|
@@ -6951,7 +6955,6 @@ var resources = {
|
|
|
6951
6955
|
GroupInvitations,
|
|
6952
6956
|
GroupIssueBoards,
|
|
6953
6957
|
GroupIterations,
|
|
6954
|
-
GroupJobTokenScopes,
|
|
6955
6958
|
GroupLabels,
|
|
6956
6959
|
GroupLDAPLinks,
|
|
6957
6960
|
GroupMembers,
|
|
@@ -6999,4 +7002,4 @@ var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
|
|
|
6999
7002
|
return AccessLevel2;
|
|
7000
7003
|
})(AccessLevel || {});
|
|
7001
7004
|
|
|
7002
|
-
export { AccessLevel, Agents, AlertManagement, ApplicationAppearance, ApplicationPlanLimits, ApplicationSettings, ApplicationStatistics, Applications, AuditEvents, Avatar, Branches, BroadcastMessages, CodeSuggestions, CommitDiscussions, Commits, Composer, Conan, ContainerRegistry, DashboardAnnotations, Debian, DependencyProxy, DeployKeys, DeployTokens, Deployments, DockerfileTemplates, Environments, EpicAwardEmojis, EpicDiscussions, EpicIssues, EpicLabelEvents, EpicLinks, EpicNotes, Epics, ErrorTrackingClientKeys, ErrorTrackingSettings, Events, Experiments, ExternalStatusChecks, FeatureFlagUserLists, FeatureFlags, FreezePeriods, GeoNodes, GeoSites, GitLabCIYMLTemplates, GitignoreTemplates, Gitlab, GitlabPages, GoProxy, GroupAccessRequests, GroupAccessTokens, GroupActivityAnalytics, GroupBadges, GroupCustomAttributes, GroupDORA4Metrics, GroupEpicBoards, GroupHooks, GroupImportExports, GroupInvitations, GroupIssueBoards, GroupIterations,
|
|
7005
|
+
export { AccessLevel, Agents, AlertManagement, ApplicationAppearance, ApplicationPlanLimits, ApplicationSettings, ApplicationStatistics, Applications, AuditEvents, Avatar, Branches, BroadcastMessages, CodeSuggestions, CommitDiscussions, Commits, Composer, Conan, ContainerRegistry, DashboardAnnotations, Debian, DependencyProxy, DeployKeys, DeployTokens, Deployments, DockerfileTemplates, Environments, EpicAwardEmojis, EpicDiscussions, EpicIssues, EpicLabelEvents, EpicLinks, EpicNotes, Epics, ErrorTrackingClientKeys, ErrorTrackingSettings, Events, Experiments, ExternalStatusChecks, FeatureFlagUserLists, FeatureFlags, FreezePeriods, GeoNodes, GeoSites, GitLabCIYMLTemplates, GitignoreTemplates, Gitlab, GitlabPages, GoProxy, GroupAccessRequests, GroupAccessTokens, GroupActivityAnalytics, GroupBadges, GroupCustomAttributes, GroupDORA4Metrics, GroupEpicBoards, GroupHooks, GroupImportExports, GroupInvitations, GroupIssueBoards, GroupIterations, GroupLDAPLinks, GroupLabels, GroupMemberRoles, GroupMembers, GroupMilestones, GroupProtectedEnvironments, GroupPushRules, GroupRelationExports, GroupReleases, GroupRepositoryStorageMoves, GroupSAMLIdentities, GroupSAMLLinks, GroupSCIMIdentities, GroupServiceAccounts, GroupVariables, GroupWikis, Groups, Helm, Import, InstanceLevelCICDVariables, Integrations, IssueAwardEmojis, IssueDiscussions, IssueIterationEvents, IssueLabelEvents, IssueLinks, IssueMilestoneEvents, IssueNoteAwardEmojis, IssueNotes, IssueStateEvents, IssueWeightEvents, Issues, IssuesStatistics, JobArtifacts, Jobs, Keys, License, LicenseTemplates, LinkedEpics, Lint, Markdown, Maven, MergeRequestApprovals, MergeRequestAwardEmojis, MergeRequestContextCommits, MergeRequestDiscussions, MergeRequestDraftNotes, MergeRequestLabelEvents, MergeRequestMilestoneEvents, MergeRequestNoteAwardEmojis, MergeRequestNotes, MergeRequests, MergeTrains, Metadata, 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, ProjectMembers, ProjectMilestones, ProjectProtectedEnvironments, ProjectPushRules, ProjectRelationsExport, ProjectReleases, ProjectRemoteMirrors, ProjectRepositoryStorageMoves, ProjectSnippetAwardEmojis, ProjectSnippetDiscussions, ProjectSnippetNotes, ProjectSnippets, ProjectStatistics, ProjectTemplates, ProjectVariables, ProjectVulnerabilities, ProjectWikis, Projects, ProtectedBranches, ProtectedTags, PyPI, ReleaseLinks, Repositories, RepositoryFiles, RepositorySubmodules, ResourceGroups, RubyGems, Runners, Search, SearchAdmin, SecureFiles, ServiceAccounts, ServiceData, SidekiqMetrics, SidekiqQueues, SnippetRepositoryStorageMoves, Snippets, Suggestions, SystemHooks, Tags, TodoLists, Topics, UserCustomAttributes, UserEmails, UserGPGKeys, UserImpersonationTokens, UserSSHKeys, UserStarredMetricsDashboard, Users };
|
package/dist/map.json
CHANGED
|
@@ -3999,6 +3999,59 @@
|
|
|
3999
3999
|
"2",
|
|
4000
4000
|
"3"
|
|
4001
4001
|
]
|
|
4002
|
+
},
|
|
4003
|
+
{
|
|
4004
|
+
"name": "show",
|
|
4005
|
+
"args": [
|
|
4006
|
+
"projectId"
|
|
4007
|
+
]
|
|
4008
|
+
},
|
|
4009
|
+
{
|
|
4010
|
+
"name": "edit",
|
|
4011
|
+
"args": [
|
|
4012
|
+
"projectId",
|
|
4013
|
+
"enabled"
|
|
4014
|
+
]
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"name": "showInboundAllowList",
|
|
4018
|
+
"args": [
|
|
4019
|
+
"projectId"
|
|
4020
|
+
]
|
|
4021
|
+
},
|
|
4022
|
+
{
|
|
4023
|
+
"name": "addToInboundAllowList",
|
|
4024
|
+
"args": [
|
|
4025
|
+
"projectId",
|
|
4026
|
+
"targetProjectId"
|
|
4027
|
+
]
|
|
4028
|
+
},
|
|
4029
|
+
{
|
|
4030
|
+
"name": "removeFromInboundAllowList",
|
|
4031
|
+
"args": [
|
|
4032
|
+
"projectId",
|
|
4033
|
+
"targetProjectId"
|
|
4034
|
+
]
|
|
4035
|
+
},
|
|
4036
|
+
{
|
|
4037
|
+
"name": "showGroupsAllowList",
|
|
4038
|
+
"args": [
|
|
4039
|
+
"projectId"
|
|
4040
|
+
]
|
|
4041
|
+
},
|
|
4042
|
+
{
|
|
4043
|
+
"name": "addToGroupsAllowList",
|
|
4044
|
+
"args": [
|
|
4045
|
+
"projectId",
|
|
4046
|
+
"targetGroupId"
|
|
4047
|
+
]
|
|
4048
|
+
},
|
|
4049
|
+
{
|
|
4050
|
+
"name": "removeFromGroupsAllowList",
|
|
4051
|
+
"args": [
|
|
4052
|
+
"projectId",
|
|
4053
|
+
"targetGroupId"
|
|
4054
|
+
]
|
|
4002
4055
|
}
|
|
4003
4056
|
],
|
|
4004
4057
|
"ProjectLabels": [
|
|
@@ -5575,17 +5628,6 @@
|
|
|
5575
5628
|
]
|
|
5576
5629
|
}
|
|
5577
5630
|
],
|
|
5578
|
-
"GroupJobTokenScopes": [
|
|
5579
|
-
{
|
|
5580
|
-
"name": "constructor",
|
|
5581
|
-
"args": [
|
|
5582
|
-
"0",
|
|
5583
|
-
"1",
|
|
5584
|
-
"2",
|
|
5585
|
-
"3"
|
|
5586
|
-
]
|
|
5587
|
-
}
|
|
5588
|
-
],
|
|
5589
5631
|
"GroupLDAPLinks": [
|
|
5590
5632
|
{
|
|
5591
5633
|
"name": "constructor",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.2.0",
|
|
4
4
|
"description": "Core API implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"lint:fix": "yarn lint --fix"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@gitbeaker/requester-utils": "^41.
|
|
55
|
+
"@gitbeaker/requester-utils": "^41.2.0",
|
|
56
56
|
"qs": "^6.12.2",
|
|
57
57
|
"xcase": "^2.0.1"
|
|
58
58
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"tsx": "^4.16.2",
|
|
64
64
|
"typescript": "^5.5.3"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "b437feab518c9cde14a9b96a12c13d95bf73a9ac"
|
|
67
67
|
}
|