@gitbeaker/core 43.4.0 → 43.6.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/LICENSE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # The MIT License
2
2
 
3
3
  Copyright (c)
4
- **2023 Justin Dalrymple**
4
+ **2025 Justin Dalrymple**
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -26,11 +26,13 @@
26
26
  </div>
27
27
 
28
28
  <p align="center">
29
- <a href="https://gitlab.com/jdalrymple/gitbeaker/-/commits/main"><img alt="pipeline status" src="https://gitlab.com/jdalrymple/gitbeaker/badges/main/pipeline.svg?ignore_skipped=true" /></a>
30
- <a href="https://gitlab.com/jdalrymple/gitbeaker/-/commits/main"><img alt="coverage report" src="https://gitlab.com/jdalrymple/gitbeaker/badges/main/coverage.svg?job=test:unit:core" /></a>
31
- <a href="https://codeclimate.com/github/jdalrymple/gitbeaker">
32
- <img src="https://codeclimate.com/github/jdalrymple/gitbeaker/badges/gpa.svg" alt="Code Climate maintainability">
29
+ <a href="https://dl.circleci.com/status-badge/redirect/gh/jdalrymple/gitbeaker/tree/main">
30
+ <img alt="CircleCI" src="https://dl.circleci.com/status-badge/img/gh/jdalrymple/gitbeaker/tree/main.svg?style=svg" />
33
31
  </a>
32
+ <a href="https://codecov.io/gh/jdalrymple/gitbeaker">
33
+ <img alt="Core Coverage" src="https://img.shields.io/codecov/c/github/jdalrymple/gitbeaker?flag=core&logo=codecov&label=coverage"/>
34
+ </a>
35
+
34
36
  <a href="https://github.com/intuit/auto">
35
37
  <img src="https://img.shields.io/badge/release-auto.svg?colorA=888888&colorB=9B065A&label=auto" alt="Auto">
36
38
  </a>
@@ -50,12 +52,10 @@
50
52
 
51
53
  ## Table of Contents
52
54
 
55
+ - [Table of Contents](#table-of-contents)
53
56
  - [Usage](#usage)
54
57
  - [Supported APIs](#supported-apis)
55
- - [Testing](../../docs/TESTING.md)
56
- - [FAQ](../../docs/FAQ.md)
57
58
  - [Contributors](#contributors)
58
- - [Changelog](./CHANGELOG.md)
59
59
 
60
60
  ## Usage
61
61
 
@@ -1949,6 +1949,8 @@ import { Gitlab } from '@gitbeaker/core';
1949
1949
  <td align="center" valign="top" width="0.33%"><a href="https://github.com/zk-kb4"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/42388953?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Zack"/></td>
1950
1950
  <td align="center" valign="top" width="0.33%"><a href="https://github.com/kayw-geek"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/29700073?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Kay W."/></td>
1951
1951
  <td align="center" valign="top" width="0.33%"><a href="https://ffflorian.dev/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/5497598?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Florian Imdahl"/></td>
1952
+ <td align="center" valign="top" width="0.33%"><a href="https://github.com/lanthier"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9666344?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="lanthier"/></td>
1953
+ <td align="center" valign="top" width="0.33%"><a href="https://github.com/Teo-ShaoWei"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/6925907?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="ShaoWei Teo"/></td>
1952
1954
  </tr>
1953
1955
  </p>
1954
1956
 
package/dist/index.d.mts CHANGED
@@ -521,8 +521,8 @@ interface CondensedNamespaceSchema extends Record<string, unknown> {
521
521
  path: string;
522
522
  kind: string;
523
523
  full_path: string;
524
- parent_id?: number;
525
- avatar_url: string;
524
+ parent_id?: number | null;
525
+ avatar_url: string | null;
526
526
  web_url: string;
527
527
  }
528
528
  interface NamespaceSchema extends CondensedNamespaceSchema {
@@ -565,7 +565,7 @@ interface CondensedGroupSchema extends Record<string, unknown> {
565
565
  name: string;
566
566
  }
567
567
  interface SimpleGroupSchema extends CondensedGroupSchema {
568
- avatar_url: string;
568
+ avatar_url: string | null;
569
569
  full_name: string;
570
570
  full_path: string;
571
571
  }
@@ -616,6 +616,8 @@ type AllGroupsOptions = {
616
616
  minAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
617
617
  topLevelOnly?: boolean;
618
618
  markedForDeletionOn?: string;
619
+ active?: boolean;
620
+ archived?: boolean;
619
621
  };
620
622
  type AllGroupProjectsOptions = {
621
623
  visibility?: 'public' | 'internal' | 'private';
@@ -799,7 +801,7 @@ interface CondensedProjectSchema extends Record<string, unknown> {
799
801
  path: string;
800
802
  }
801
803
  interface SimpleProjectSchema extends CondensedProjectSchema {
802
- description: string;
804
+ description: string | null;
803
805
  name_with_namespace: string;
804
806
  path_with_namespace: string;
805
807
  created_at: string;
@@ -807,7 +809,7 @@ interface SimpleProjectSchema extends CondensedProjectSchema {
807
809
  topics: string[] | null;
808
810
  ssh_url_to_repo: string;
809
811
  http_url_to_repo: string;
810
- readme_url: string;
812
+ readme_url: string | null;
811
813
  forks_count: number;
812
814
  avatar_url: string | null;
813
815
  star_count: number;
@@ -956,6 +958,7 @@ type AllProjectsOptions = {
956
958
  updatedBefore?: string;
957
959
  updatedAfter?: string;
958
960
  markedForDeletionOn?: string;
961
+ active?: boolean;
959
962
  };
960
963
  type CreateProjectOptions = {
961
964
  userId?: number;
@@ -975,6 +978,7 @@ type CreateProjectOptions = {
975
978
  buildTimeout?: number;
976
979
  buildsAccessLevel?: AccessLevelSettingState;
977
980
  ciConfigPath?: string;
981
+ ciDeletePipelinesInSeconds?: number;
978
982
  containerExpirationPolicyAttributes?: Record<string, string>;
979
983
  containerRegistryAccessLevel?: AccessLevelSettingState;
980
984
  defaultBranch?: string;
@@ -1045,6 +1049,7 @@ type EditProjectOptions = {
1045
1049
  ciForwardDeploymentEnabled?: boolean;
1046
1050
  ciAllowForkPipelinesToRunInParentProject?: boolean;
1047
1051
  ciSeparatedCaches?: boolean;
1052
+ ciDeletePipelinesInSeconds?: number;
1048
1053
  containerExpirationPolicyAttributes?: Record<string, string>;
1049
1054
  containerRegistryAccessLevel?: string;
1050
1055
  defaultBranch?: string;
@@ -2894,7 +2899,7 @@ declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
2894
2899
  allIssuesClosed<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
2895
2900
  allIssuesRelated<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
2896
2901
  allParticipants<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<SimpleUserSchema, 'created_at'>[], C, E, void>>;
2897
- allPipelines<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, void>>;
2902
+ allPipelines<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, mergerequestIId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, P>>;
2898
2903
  cancelOnPipelineSuccess<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
2899
2904
  create<E extends boolean = false>(projectId: string | number, sourceBranch: string, targetBranch: string, title: string, options?: CreateMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
2900
2905
  createPipeline<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedPipelineSchema, C, E, void>>;
@@ -8175,6 +8180,14 @@ declare class MergeRequestStateEvents<C extends boolean = false> extends Resourc
8175
8180
  constructor(options: BaseResourceOptions<C>);
8176
8181
  }
8177
8182
 
8183
+ interface EpicStateEvents<C extends boolean = false> {
8184
+ all<E extends boolean = false, P extends PaginationTypes = 'offset'>(groupId: string | number, epicId: number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<StateEventSchema[], C, E, P>>;
8185
+ show<E extends boolean = false>(groupId: string | number, epicId: number, stateEventId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<StateEventSchema, C, E, void>>;
8186
+ }
8187
+ declare class EpicStateEvents<C extends boolean = false> extends ResourceStateEvents<C> {
8188
+ constructor(options: BaseResourceOptions<C>);
8189
+ }
8190
+
8178
8191
  interface Gitlab<C extends boolean = false> extends BaseResource<C> {
8179
8192
  Agents: Agents<C>;
8180
8193
  AlertManagement: AlertManagement<C>;
@@ -8331,6 +8344,7 @@ interface Gitlab<C extends boolean = false> extends BaseResource<C> {
8331
8344
  EpicLinks: EpicLinks<C>;
8332
8345
  EpicNotes: EpicNotes<C>;
8333
8346
  Epics: Epics<C>;
8347
+ EpicStateEvents: EpicStateEvents<C>;
8334
8348
  GroupAccessRequests: GroupAccessRequests<C>;
8335
8349
  GroupAccessTokens: GroupAccessTokens<C>;
8336
8350
  GroupActivityAnalytics: GroupActivityAnalytics<C>;
@@ -8451,6 +8465,7 @@ interface WebhookBaseNoteEventSchema extends BaseWebhookEventSchema {
8451
8465
  id: number;
8452
8466
  note: string;
8453
8467
  noteable_type: string;
8468
+ discussion_id: string;
8454
8469
  author_id: number;
8455
8470
  created_at: string;
8456
8471
  updated_at: string;
package/dist/index.d.ts CHANGED
@@ -521,8 +521,8 @@ interface CondensedNamespaceSchema extends Record<string, unknown> {
521
521
  path: string;
522
522
  kind: string;
523
523
  full_path: string;
524
- parent_id?: number;
525
- avatar_url: string;
524
+ parent_id?: number | null;
525
+ avatar_url: string | null;
526
526
  web_url: string;
527
527
  }
528
528
  interface NamespaceSchema extends CondensedNamespaceSchema {
@@ -565,7 +565,7 @@ interface CondensedGroupSchema extends Record<string, unknown> {
565
565
  name: string;
566
566
  }
567
567
  interface SimpleGroupSchema extends CondensedGroupSchema {
568
- avatar_url: string;
568
+ avatar_url: string | null;
569
569
  full_name: string;
570
570
  full_path: string;
571
571
  }
@@ -616,6 +616,8 @@ type AllGroupsOptions = {
616
616
  minAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
617
617
  topLevelOnly?: boolean;
618
618
  markedForDeletionOn?: string;
619
+ active?: boolean;
620
+ archived?: boolean;
619
621
  };
620
622
  type AllGroupProjectsOptions = {
621
623
  visibility?: 'public' | 'internal' | 'private';
@@ -799,7 +801,7 @@ interface CondensedProjectSchema extends Record<string, unknown> {
799
801
  path: string;
800
802
  }
801
803
  interface SimpleProjectSchema extends CondensedProjectSchema {
802
- description: string;
804
+ description: string | null;
803
805
  name_with_namespace: string;
804
806
  path_with_namespace: string;
805
807
  created_at: string;
@@ -807,7 +809,7 @@ interface SimpleProjectSchema extends CondensedProjectSchema {
807
809
  topics: string[] | null;
808
810
  ssh_url_to_repo: string;
809
811
  http_url_to_repo: string;
810
- readme_url: string;
812
+ readme_url: string | null;
811
813
  forks_count: number;
812
814
  avatar_url: string | null;
813
815
  star_count: number;
@@ -956,6 +958,7 @@ type AllProjectsOptions = {
956
958
  updatedBefore?: string;
957
959
  updatedAfter?: string;
958
960
  markedForDeletionOn?: string;
961
+ active?: boolean;
959
962
  };
960
963
  type CreateProjectOptions = {
961
964
  userId?: number;
@@ -975,6 +978,7 @@ type CreateProjectOptions = {
975
978
  buildTimeout?: number;
976
979
  buildsAccessLevel?: AccessLevelSettingState;
977
980
  ciConfigPath?: string;
981
+ ciDeletePipelinesInSeconds?: number;
978
982
  containerExpirationPolicyAttributes?: Record<string, string>;
979
983
  containerRegistryAccessLevel?: AccessLevelSettingState;
980
984
  defaultBranch?: string;
@@ -1045,6 +1049,7 @@ type EditProjectOptions = {
1045
1049
  ciForwardDeploymentEnabled?: boolean;
1046
1050
  ciAllowForkPipelinesToRunInParentProject?: boolean;
1047
1051
  ciSeparatedCaches?: boolean;
1052
+ ciDeletePipelinesInSeconds?: number;
1048
1053
  containerExpirationPolicyAttributes?: Record<string, string>;
1049
1054
  containerRegistryAccessLevel?: string;
1050
1055
  defaultBranch?: string;
@@ -2894,7 +2899,7 @@ declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
2894
2899
  allIssuesClosed<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
2895
2900
  allIssuesRelated<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
2896
2901
  allParticipants<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<SimpleUserSchema, 'created_at'>[], C, E, void>>;
2897
- allPipelines<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, void>>;
2902
+ allPipelines<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, mergerequestIId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, P>>;
2898
2903
  cancelOnPipelineSuccess<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
2899
2904
  create<E extends boolean = false>(projectId: string | number, sourceBranch: string, targetBranch: string, title: string, options?: CreateMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
2900
2905
  createPipeline<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedPipelineSchema, C, E, void>>;
@@ -8175,6 +8180,14 @@ declare class MergeRequestStateEvents<C extends boolean = false> extends Resourc
8175
8180
  constructor(options: BaseResourceOptions<C>);
8176
8181
  }
8177
8182
 
8183
+ interface EpicStateEvents<C extends boolean = false> {
8184
+ all<E extends boolean = false, P extends PaginationTypes = 'offset'>(groupId: string | number, epicId: number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<StateEventSchema[], C, E, P>>;
8185
+ show<E extends boolean = false>(groupId: string | number, epicId: number, stateEventId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<StateEventSchema, C, E, void>>;
8186
+ }
8187
+ declare class EpicStateEvents<C extends boolean = false> extends ResourceStateEvents<C> {
8188
+ constructor(options: BaseResourceOptions<C>);
8189
+ }
8190
+
8178
8191
  interface Gitlab<C extends boolean = false> extends BaseResource<C> {
8179
8192
  Agents: Agents<C>;
8180
8193
  AlertManagement: AlertManagement<C>;
@@ -8331,6 +8344,7 @@ interface Gitlab<C extends boolean = false> extends BaseResource<C> {
8331
8344
  EpicLinks: EpicLinks<C>;
8332
8345
  EpicNotes: EpicNotes<C>;
8333
8346
  Epics: Epics<C>;
8347
+ EpicStateEvents: EpicStateEvents<C>;
8334
8348
  GroupAccessRequests: GroupAccessRequests<C>;
8335
8349
  GroupAccessTokens: GroupAccessTokens<C>;
8336
8350
  GroupActivityAnalytics: GroupActivityAnalytics<C>;
@@ -8451,6 +8465,7 @@ interface WebhookBaseNoteEventSchema extends BaseWebhookEventSchema {
8451
8465
  id: number;
8452
8466
  note: string;
8453
8467
  noteable_type: string;
8468
+ discussion_id: string;
8454
8469
  author_id: number;
8455
8470
  created_at: string;
8456
8471
  updated_at: string;
package/dist/index.js CHANGED
@@ -6934,6 +6934,13 @@ var MergeRequestStateEvents = class extends ResourceStateEvents {
6934
6934
  }
6935
6935
  };
6936
6936
 
6937
+ // src/resources/EpicStateEvents.ts
6938
+ var EpicStateEvents = class extends ResourceStateEvents {
6939
+ constructor(options) {
6940
+ super("groups", "epics", options);
6941
+ }
6942
+ };
6943
+
6937
6944
  // src/resources/Gitlab.ts
6938
6945
  var resources = {
6939
6946
  Agents,
@@ -7091,6 +7098,7 @@ var resources = {
7091
7098
  EpicLinks,
7092
7099
  EpicNotes,
7093
7100
  Epics,
7101
+ EpicStateEvents,
7094
7102
  GroupAccessRequests,
7095
7103
  GroupAccessTokens,
7096
7104
  GroupActivityAnalytics,
package/dist/index.mjs CHANGED
@@ -6928,6 +6928,13 @@ var MergeRequestStateEvents = class extends ResourceStateEvents {
6928
6928
  }
6929
6929
  };
6930
6930
 
6931
+ // src/resources/EpicStateEvents.ts
6932
+ var EpicStateEvents = class extends ResourceStateEvents {
6933
+ constructor(options) {
6934
+ super("groups", "epics", options);
6935
+ }
6936
+ };
6937
+
6931
6938
  // src/resources/Gitlab.ts
6932
6939
  var resources = {
6933
6940
  Agents,
@@ -7085,6 +7092,7 @@ var resources = {
7085
7092
  EpicLinks,
7086
7093
  EpicNotes,
7087
7094
  Epics,
7095
+ EpicStateEvents,
7088
7096
  GroupAccessRequests,
7089
7097
  GroupAccessTokens,
7090
7098
  GroupActivityAnalytics,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitbeaker/core",
3
- "version": "43.4.0",
3
+ "version": "43.6.0",
4
4
  "description": "Core API implementation of the GitLab API",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -52,15 +52,15 @@
52
52
  "lint:fix": "yarn lint --fix"
53
53
  },
54
54
  "dependencies": {
55
- "@gitbeaker/requester-utils": "^43.4.0",
55
+ "@gitbeaker/requester-utils": "^43.6.0",
56
56
  "qs": "^6.14.0",
57
57
  "xcase": "^2.0.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@types/node": "^24.2.0",
60
+ "@types/node": "^24.3.0",
61
61
  "tsup": "^8.5.0",
62
- "tsx": "^4.20.3",
62
+ "tsx": "^4.20.5",
63
63
  "typescript": "^5.9.2"
64
64
  },
65
- "gitHead": "dd8aa38674dba292815eb8cba325b08b2680936f"
65
+ "gitHead": "bdafa8ad001658674492b09a948f02fb22cd45a9"
66
66
  }