@gitbeaker/core 34.4.0 → 34.7.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/dist/index.es.js +3101 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +3228 -0
- package/dist/index.js.map +1 -0
- package/dist/map.json +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/infrastructure/RequestHelper.d.ts +55 -0
- package/dist/types/infrastructure/Utils.d.ts +13 -0
- package/dist/types/infrastructure/index.d.ts +2 -0
- package/dist/types/resources/ApplicationSettings.d.ts +69 -0
- package/dist/types/resources/Branches.d.ts +20 -0
- package/dist/types/resources/BroadcastMessages.d.ts +21 -0
- package/dist/types/resources/CommitDiscussions.d.ts +17 -0
- package/dist/types/resources/Commits.d.ts +132 -0
- package/dist/types/resources/ContainerRegistry.d.ts +37 -0
- package/dist/types/resources/DeployKeys.d.ts +19 -0
- package/dist/types/resources/Deployments.d.ts +44 -0
- package/dist/types/resources/DockerfileTemplates.d.ts +5 -0
- package/dist/types/resources/Environments.d.ts +22 -0
- package/dist/types/resources/EpicDiscussions.d.ts +17 -0
- package/dist/types/resources/EpicIssues.d.ts +12 -0
- package/dist/types/resources/EpicNotes.d.ts +18 -0
- package/dist/types/resources/Epics.d.ts +47 -0
- package/dist/types/resources/Events.d.ts +29 -0
- package/dist/types/resources/FeatureFlags.d.ts +33 -0
- package/dist/types/resources/FreezePeriods.d.ts +17 -0
- package/dist/types/resources/GeoNodes.d.ts +143 -0
- package/dist/types/resources/GitLabCIYMLTemplates.d.ts +5 -0
- package/dist/types/resources/GitignoreTemplates.d.ts +5 -0
- package/dist/types/resources/Gitlab.d.ts +202 -0
- package/dist/types/resources/GroupAccessRequests.d.ts +15 -0
- package/dist/types/resources/GroupBadges.d.ts +18 -0
- package/dist/types/resources/GroupCustomAttributes.d.ts +13 -0
- package/dist/types/resources/GroupDeployTokens.d.ts +14 -0
- package/dist/types/resources/GroupIssueBoards.d.ts +23 -0
- package/dist/types/resources/GroupLabels.d.ts +15 -0
- package/dist/types/resources/GroupMembers.d.ts +14 -0
- package/dist/types/resources/GroupMilestones.d.ts +17 -0
- package/dist/types/resources/GroupRunners.d.ts +6 -0
- package/dist/types/resources/GroupVariables.d.ts +14 -0
- package/dist/types/resources/Groups.d.ts +67 -0
- package/dist/types/resources/IssueAwardEmojis.d.ts +13 -0
- package/dist/types/resources/IssueDiscussions.d.ts +17 -0
- package/dist/types/resources/IssueNoteAwardEmojis.d.ts +13 -0
- package/dist/types/resources/IssueNotes.d.ts +22 -0
- package/dist/types/resources/Issues.d.ts +109 -0
- package/dist/types/resources/IssuesStatistics.d.ts +17 -0
- package/dist/types/resources/Jobs.d.ts +84 -0
- package/dist/types/resources/Keys.d.ts +14 -0
- package/dist/types/resources/Labels.d.ts +15 -0
- package/dist/types/resources/License.d.ts +28 -0
- package/dist/types/resources/LicenseTemplates.d.ts +23 -0
- package/dist/types/resources/Lint.d.ts +11 -0
- package/dist/types/resources/Markdown.d.ts +11 -0
- package/dist/types/resources/MergeRequestApprovals.d.ts +98 -0
- package/dist/types/resources/MergeRequestAwardEmojis.d.ts +13 -0
- package/dist/types/resources/MergeRequestDiscussions.d.ts +19 -0
- package/dist/types/resources/MergeRequestNotes.d.ts +22 -0
- package/dist/types/resources/MergeRequests.d.ts +191 -0
- package/dist/types/resources/Namespaces.d.ts +22 -0
- package/dist/types/resources/NotificationSettings.d.ts +21 -0
- package/dist/types/resources/PackageRegistry.d.ts +14 -0
- package/dist/types/resources/Packages.d.ts +30 -0
- package/dist/types/resources/PagesDomains.d.ts +21 -0
- package/dist/types/resources/PipelineScheduleVariables.d.ts +10 -0
- package/dist/types/resources/PipelineSchedules.d.ts +29 -0
- package/dist/types/resources/Pipelines.d.ts +40 -0
- package/dist/types/resources/ProjectAccessRequests.d.ts +15 -0
- package/dist/types/resources/ProjectBadges.d.ts +18 -0
- package/dist/types/resources/ProjectCustomAttributes.d.ts +13 -0
- package/dist/types/resources/ProjectDeployTokens.d.ts +14 -0
- package/dist/types/resources/ProjectHooks.d.ts +29 -0
- package/dist/types/resources/ProjectImportExport.d.ts +54 -0
- package/dist/types/resources/ProjectIssueBoards.d.ts +23 -0
- package/dist/types/resources/ProjectMembers.d.ts +14 -0
- package/dist/types/resources/ProjectMilestones.d.ts +17 -0
- package/dist/types/resources/ProjectSnippetAwardEmojis.d.ts +13 -0
- package/dist/types/resources/ProjectSnippetDiscussions.d.ts +17 -0
- package/dist/types/resources/ProjectSnippetNotes.d.ts +18 -0
- package/dist/types/resources/ProjectSnippets.d.ts +29 -0
- package/dist/types/resources/ProjectVariables.d.ts +14 -0
- package/dist/types/resources/Projects.d.ts +161 -0
- package/dist/types/resources/ProtectedBranches.d.ts +24 -0
- package/dist/types/resources/ProtectedTags.d.ts +16 -0
- package/dist/types/resources/PushRules.d.ts +24 -0
- package/dist/types/resources/ReleaseLinks.d.ts +24 -0
- package/dist/types/resources/Releases.d.ts +48 -0
- package/dist/types/resources/Repositories.d.ts +37 -0
- package/dist/types/resources/RepositoryFiles.d.ts +31 -0
- package/dist/types/resources/RepositorySubmodules.d.ts +20 -0
- package/dist/types/resources/Runners.d.ts +38 -0
- package/dist/types/resources/Search.d.ts +26 -0
- package/dist/types/resources/Services.d.ts +29 -0
- package/dist/types/resources/SidekiqMetrics.d.ts +37 -0
- package/dist/types/resources/Snippets.d.ts +42 -0
- package/dist/types/resources/SystemHooks.d.ts +18 -0
- package/dist/types/resources/Tags.d.ts +18 -0
- package/dist/types/resources/Todos.d.ts +48 -0
- package/dist/types/resources/Triggers.d.ts +22 -0
- package/dist/types/resources/UserCustomAttributes.d.ts +13 -0
- package/dist/types/resources/UserEmails.d.ts +19 -0
- package/dist/types/resources/UserGPGKeys.d.ts +21 -0
- package/dist/types/resources/UserImpersonationTokens.d.ts +23 -0
- package/dist/types/resources/UserSSHKeys.d.ts +22 -0
- package/dist/types/resources/Users.d.ts +57 -0
- package/dist/types/resources/Version.d.ts +9 -0
- package/dist/types/resources/VulnerabilityFindings.d.ts +69 -0
- package/dist/types/resources/Wikis.d.ts +15 -0
- package/dist/types/resources/index.d.ts +98 -0
- package/dist/types/resources/types.d.ts +68 -0
- package/dist/types/templates/ResourceAccessRequests.d.ts +20 -0
- package/dist/types/templates/ResourceAwardEmojis.d.ts +21 -0
- package/dist/types/templates/ResourceBadges.d.ts +20 -0
- package/dist/types/templates/ResourceCustomAttributes.d.ts +13 -0
- package/dist/types/templates/ResourceDeployTokens.d.ts +20 -0
- package/dist/types/templates/ResourceDiscussions.d.ts +45 -0
- package/dist/types/templates/ResourceIssueBoards.d.ts +31 -0
- package/dist/types/templates/ResourceLabels.d.ts +25 -0
- package/dist/types/templates/ResourceMembers.d.ts +30 -0
- package/dist/types/templates/ResourceMilestones.d.ts +27 -0
- package/dist/types/templates/ResourceNoteAwardEmojis.d.ts +11 -0
- package/dist/types/templates/ResourceNotes.d.ts +20 -0
- package/dist/types/templates/ResourceTemplates.d.ts +11 -0
- package/dist/types/templates/ResourceVariables.d.ts +18 -0
- package/dist/types/templates/index.d.ts +14 -0
- package/dist/types/templates/types.d.ts +13 -0
- package/dist/types/types.d.ts +3 -0
- package/package.json +6 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
export interface ProcessMetricSchema {
|
|
3
|
+
hostname: string;
|
|
4
|
+
pid: number;
|
|
5
|
+
tag: string;
|
|
6
|
+
started_at: string;
|
|
7
|
+
queues?: string[];
|
|
8
|
+
labels?: string[];
|
|
9
|
+
concurrency: number;
|
|
10
|
+
busy: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SidekickProcessMetricsSchema extends Record<string, unknown> {
|
|
13
|
+
processes?: ProcessMetricSchema[];
|
|
14
|
+
}
|
|
15
|
+
export interface SidekickQueueMetricsSchema extends Record<string, unknown> {
|
|
16
|
+
queues: {
|
|
17
|
+
default: {
|
|
18
|
+
backlog: number;
|
|
19
|
+
latency: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface SidekickJobStatsSchema extends Record<string, unknown> {
|
|
24
|
+
jobs: {
|
|
25
|
+
processed: number;
|
|
26
|
+
failed: number;
|
|
27
|
+
enqueued: number;
|
|
28
|
+
dead: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare type SidekickCompoundMetricsSchema = SidekickJobStatsSchema & SidekickQueueMetricsSchema & SidekickProcessMetricsSchema;
|
|
32
|
+
export declare class SidekiqMetrics<C extends boolean = false> extends BaseResource<C> {
|
|
33
|
+
queueMetrics(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickQueueMetricsSchema>>;
|
|
34
|
+
processMetrics(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickProcessMetricsSchema>>;
|
|
35
|
+
jobStats(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickJobStatsSchema>>;
|
|
36
|
+
compoundMetrics(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickCompoundMetricsSchema>>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { UserSchema } from './Users';
|
|
3
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
+
export declare type SnippetVisibility = 'private' | 'public' | 'internal';
|
|
5
|
+
export interface SnippetSchema extends Record<string, unknown> {
|
|
6
|
+
id: number;
|
|
7
|
+
title: string;
|
|
8
|
+
file_name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
visibility: string;
|
|
11
|
+
author: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
project_id?: string | number;
|
|
15
|
+
web_url: string;
|
|
16
|
+
raw_url: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SnippetExtendedSchema extends SnippetSchema {
|
|
19
|
+
expires_at?: string;
|
|
20
|
+
ssh_url_to_repo: string;
|
|
21
|
+
http_url_to_repo: string;
|
|
22
|
+
files?: {
|
|
23
|
+
path: string;
|
|
24
|
+
raw_url: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
export interface UserAgentDetailSchema extends Record<string, unknown> {
|
|
28
|
+
user_agent: string;
|
|
29
|
+
ip_address: string;
|
|
30
|
+
akismet_submitted: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare class Snippets<C extends boolean = false> extends BaseResource<C> {
|
|
33
|
+
all({ public: p, ...options }?: {
|
|
34
|
+
public?: boolean;
|
|
35
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SnippetSchema>[]>;
|
|
36
|
+
content(snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
37
|
+
create(title: string, fileName: string, content: string, visibility: SnippetVisibility, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SnippetExtendedSchema>>;
|
|
38
|
+
edit(snippetId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SnippetExtendedSchema>>;
|
|
39
|
+
remove(snippetId: number, options?: Sudo): Promise<void>;
|
|
40
|
+
show(snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, SnippetSchema>>;
|
|
41
|
+
userAgentDetails(snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserAgentDetailSchema>>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
+
export interface SystemHookSchema extends Record<string, unknown> {
|
|
4
|
+
id: number;
|
|
5
|
+
url: string;
|
|
6
|
+
created_at: string;
|
|
7
|
+
push_events: boolean;
|
|
8
|
+
tag_push_events: boolean;
|
|
9
|
+
merge_requests_events: boolean;
|
|
10
|
+
repository_update_events: boolean;
|
|
11
|
+
enable_ssl_verification: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class SystemHooks<C extends boolean = false> extends BaseResource<C> {
|
|
14
|
+
add(url: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SystemHookSchema>>;
|
|
15
|
+
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SystemHookSchema>[]>;
|
|
16
|
+
edit(hookId: number, url: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SystemHookSchema>>;
|
|
17
|
+
remove(hookId: number, options?: Sudo): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { CommitSchema } from './Commits';
|
|
3
|
+
import { ReleaseSchema } from './Releases';
|
|
4
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
5
|
+
export interface TagSchema extends Record<string, unknown> {
|
|
6
|
+
commit: CommitSchema;
|
|
7
|
+
release: Pick<ReleaseSchema, 'tag_name' | 'description'>;
|
|
8
|
+
name: string;
|
|
9
|
+
target: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
protected: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class Tags<C extends boolean = false> extends BaseResource<C> {
|
|
14
|
+
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TagSchema>[]>;
|
|
15
|
+
create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TagSchema>>;
|
|
16
|
+
remove(projectId: string | number, tagName: string, options?: Sudo): Promise<void>;
|
|
17
|
+
show(projectId: string | number, tagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TagSchema>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { UserSchema } from './Users';
|
|
3
|
+
import { ProjectSchema } from './Projects';
|
|
4
|
+
import { MilestoneSchema } from '../templates/types';
|
|
5
|
+
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
6
|
+
export interface TodoSchema extends Record<string, unknown> {
|
|
7
|
+
id: number;
|
|
8
|
+
project: Pick<ProjectSchema, 'id' | 'name' | 'name_with_namespace' | 'path' | 'path_with_namespace'>;
|
|
9
|
+
author: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
10
|
+
action_name: string;
|
|
11
|
+
target_type: string;
|
|
12
|
+
target: {
|
|
13
|
+
id: number;
|
|
14
|
+
iid: number;
|
|
15
|
+
project_id: number;
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
state: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
target_branch: string;
|
|
22
|
+
source_branch: string;
|
|
23
|
+
upvotes: number;
|
|
24
|
+
downvotes: number;
|
|
25
|
+
author: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
26
|
+
assignee: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
27
|
+
source_project_id: number;
|
|
28
|
+
target_project_id: number;
|
|
29
|
+
labels?: string[];
|
|
30
|
+
work_in_progress: boolean;
|
|
31
|
+
milestone: Omit<MilestoneSchema, 'start_date' | 'expired' | 'web_url'>;
|
|
32
|
+
merge_when_pipeline_succeeds: boolean;
|
|
33
|
+
merge_status: string;
|
|
34
|
+
user_notes_count: number;
|
|
35
|
+
};
|
|
36
|
+
target_url: string;
|
|
37
|
+
body: string;
|
|
38
|
+
state: string;
|
|
39
|
+
created_at: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
}
|
|
42
|
+
export declare class Todos<C extends boolean = false> extends BaseResource<C> {
|
|
43
|
+
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TodoSchema>[]>;
|
|
44
|
+
create(projectId: string | number, resourceId: number, resourceName: 'mergerequest' | 'issue', options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TodoSchema>>;
|
|
45
|
+
done({ todoId, ...options }?: {
|
|
46
|
+
todoId?: number;
|
|
47
|
+
} & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TodoSchema>> | Promise<void>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { UserSchema } from './Users';
|
|
3
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
+
export interface PipelineTriggerSchema extends Record<string, unknown> {
|
|
5
|
+
id: number;
|
|
6
|
+
description: string;
|
|
7
|
+
created_at: string;
|
|
8
|
+
last_used?: string;
|
|
9
|
+
token: string;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
owner: Pick<UserSchema, 'id' | 'name' | 'created_at'>;
|
|
12
|
+
}
|
|
13
|
+
export declare class Triggers<C extends boolean = false> extends BaseResource<C> {
|
|
14
|
+
add(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>>;
|
|
15
|
+
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>[]>;
|
|
16
|
+
edit(projectId: string | number, triggerId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>>;
|
|
17
|
+
pipeline(projectId: string | number, ref: string, token: string, { variables }?: {
|
|
18
|
+
variables?: Record<string, string>;
|
|
19
|
+
}): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
20
|
+
remove(projectId: string | number, triggerId: number, options?: Sudo): Promise<void>;
|
|
21
|
+
show(projectId: string | number, triggerId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { ResourceCustomAttributes } from '../templates';
|
|
3
|
+
import { CustomAttributeSchema } from '../templates/types';
|
|
4
|
+
import { PaginatedRequestOptions, CamelizedRecord, Sudo } from '../infrastructure';
|
|
5
|
+
export interface UserCustomAttributes<C extends boolean = false> extends ResourceCustomAttributes<C> {
|
|
6
|
+
all(userId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, CustomAttributeSchema>[]>;
|
|
7
|
+
set(userId: string | number, customAttributeId: number, value: string, options?: Sudo): Promise<CamelizedRecord<C, CustomAttributeSchema>>;
|
|
8
|
+
remove(userId: string | number, customAttributeId: number, options?: Sudo): Promise<void>;
|
|
9
|
+
show(userId: string | number, customAttributeId: number, options?: Sudo): Promise<CamelizedRecord<C, CustomAttributeSchema>>;
|
|
10
|
+
}
|
|
11
|
+
export declare class UserCustomAttributes<C extends boolean = false> extends ResourceCustomAttributes<C> {
|
|
12
|
+
constructor(options: BaseResourceOptions<C>);
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
+
export interface UserEmailSchema extends Record<string, unknown> {
|
|
4
|
+
id: number;
|
|
5
|
+
email: string;
|
|
6
|
+
confirmed_at: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UserEmails<C extends boolean = false> extends BaseResource<C> {
|
|
9
|
+
all({ userId, ...options }?: {
|
|
10
|
+
userId?: number;
|
|
11
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserEmailSchema>[]>;
|
|
12
|
+
add(email: string, { userId, ...options }?: {
|
|
13
|
+
userId?: number;
|
|
14
|
+
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserEmailSchema>>;
|
|
15
|
+
show(emailId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserEmailSchema>>;
|
|
16
|
+
remove(emailId: number, { userId, ...options }?: {
|
|
17
|
+
userId?: number;
|
|
18
|
+
} & BaseRequestOptions): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
+
export interface UserGPGKeySchema extends Record<string, unknown> {
|
|
4
|
+
id: number;
|
|
5
|
+
key: string;
|
|
6
|
+
created_at: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UserGPGKeys<C extends boolean = false> extends BaseResource<C> {
|
|
9
|
+
all({ userId, ...options }?: {
|
|
10
|
+
userId?: number;
|
|
11
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserGPGKeySchema>[]>;
|
|
12
|
+
add(key: string, { userId, ...options }?: {
|
|
13
|
+
userId?: number;
|
|
14
|
+
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserGPGKeySchema>>;
|
|
15
|
+
show(keyId: number, { userId, ...options }?: {
|
|
16
|
+
userId?: number;
|
|
17
|
+
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserGPGKeySchema>>;
|
|
18
|
+
remove(keyId: number, { userId, ...options }?: {
|
|
19
|
+
userId?: number;
|
|
20
|
+
} & BaseRequestOptions): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
+
export declare type ImpersonationTokenScope = 'api' | 'read_user';
|
|
4
|
+
export declare type ImpersonationTokenState = 'all' | 'active' | 'inactive';
|
|
5
|
+
export interface UserImpersonationTokenSchema extends Record<string, unknown> {
|
|
6
|
+
active: boolean;
|
|
7
|
+
user_id: number;
|
|
8
|
+
scopes?: string[];
|
|
9
|
+
revoked: boolean;
|
|
10
|
+
name: string;
|
|
11
|
+
id: number;
|
|
12
|
+
created_at: string;
|
|
13
|
+
impersonation: boolean;
|
|
14
|
+
expires_at: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class UserImpersonationTokens<C extends boolean = false> extends BaseResource<C> {
|
|
17
|
+
all(userId: number, options?: {
|
|
18
|
+
state?: ImpersonationTokenState;
|
|
19
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserImpersonationTokenSchema>[]>;
|
|
20
|
+
add(userId: number, name: string, scopes: ImpersonationTokenScope, expiresAt: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserImpersonationTokenSchema>>;
|
|
21
|
+
show(userId: number, tokenId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserImpersonationTokenSchema>>;
|
|
22
|
+
revoke(userId: number, tokenId: number, options?: Sudo): Promise<void>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
+
export interface UserSSHKeySchema extends Record<string, unknown> {
|
|
4
|
+
id: number;
|
|
5
|
+
key: string;
|
|
6
|
+
title: string;
|
|
7
|
+
created_at: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class UserSSHKeys<C extends boolean = false> extends BaseResource<C> {
|
|
10
|
+
all({ userId, ...options }?: {
|
|
11
|
+
userId?: number;
|
|
12
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSSHKeySchema>[]>;
|
|
13
|
+
create(title: string, key: string, { userId, ...options }?: {
|
|
14
|
+
userId?: number;
|
|
15
|
+
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSSHKeySchema>>;
|
|
16
|
+
show(keyId: number, { userId, ...options }?: {
|
|
17
|
+
userId?: number;
|
|
18
|
+
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSSHKeySchema>>;
|
|
19
|
+
remove(keyId: number, { userId, ...options }?: {
|
|
20
|
+
userId?: number;
|
|
21
|
+
} & BaseRequestOptions): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
+
import { ProjectExtendedSchema } from './Projects';
|
|
4
|
+
import { EventOptions, EventSchema } from './Events';
|
|
5
|
+
export interface UserSchema extends Record<string, unknown> {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
username: string;
|
|
9
|
+
state: string;
|
|
10
|
+
avatar_url: string;
|
|
11
|
+
web_url: string;
|
|
12
|
+
created_at?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UserExtendedSchema extends UserSchema {
|
|
15
|
+
bio?: string;
|
|
16
|
+
location?: string;
|
|
17
|
+
public_email: string;
|
|
18
|
+
skype: string;
|
|
19
|
+
linkedin: string;
|
|
20
|
+
twitter: string;
|
|
21
|
+
website_url: string;
|
|
22
|
+
organization?: string;
|
|
23
|
+
last_sign_in_at: string;
|
|
24
|
+
confirmed_at: string;
|
|
25
|
+
last_activity_on: string;
|
|
26
|
+
email: string;
|
|
27
|
+
theme_id: number;
|
|
28
|
+
color_scheme_id: number;
|
|
29
|
+
projects_limit: number;
|
|
30
|
+
current_sign_in_at?: string;
|
|
31
|
+
identities?: string[];
|
|
32
|
+
can_create_group: boolean;
|
|
33
|
+
can_create_project: boolean;
|
|
34
|
+
two_factor_enabled: boolean;
|
|
35
|
+
external: boolean;
|
|
36
|
+
private_profile?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface UserActivitySchema extends Record<string, unknown> {
|
|
39
|
+
username: string;
|
|
40
|
+
last_activity_on: string;
|
|
41
|
+
last_activity_at: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class Users<C extends boolean = false> extends BaseResource<C> {
|
|
44
|
+
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>[]>;
|
|
45
|
+
activities(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserActivitySchema>[]>;
|
|
46
|
+
projects(userId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>[]>;
|
|
47
|
+
block(userId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
48
|
+
create(options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
49
|
+
current(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
50
|
+
edit(userId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
51
|
+
events(userId: number, options?: BaseRequestOptions & EventOptions): Promise<import("../infrastructure").CamelizedRecord<C, EventSchema>[]>;
|
|
52
|
+
search(emailOrUsername: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>[]>;
|
|
53
|
+
show(userId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
54
|
+
remove(userId: number, options?: Sudo): Promise<void>;
|
|
55
|
+
unblock(userId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
56
|
+
username(username: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>[]>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { Sudo } from '../infrastructure';
|
|
3
|
+
export interface VersionSchema extends Record<string, unknown> {
|
|
4
|
+
version: string;
|
|
5
|
+
revision: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class Version<C extends boolean = false> extends BaseResource<C> {
|
|
8
|
+
show(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, VersionSchema>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
+
export interface VulnerabilityFindingIdentifier {
|
|
4
|
+
external_type: string;
|
|
5
|
+
external_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
export interface VulnerabilityFindingDetailItem {
|
|
10
|
+
type: string;
|
|
11
|
+
href: string;
|
|
12
|
+
}
|
|
13
|
+
export interface VulnerabilityFindingSchema extends Record<string, unknown> {
|
|
14
|
+
id: number;
|
|
15
|
+
report_type: string;
|
|
16
|
+
name: string;
|
|
17
|
+
severity: string;
|
|
18
|
+
confidence: string;
|
|
19
|
+
scanner: {
|
|
20
|
+
external_id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
identifiers?: VulnerabilityFindingIdentifier[];
|
|
24
|
+
project_fingerprint: string;
|
|
25
|
+
uuid: string;
|
|
26
|
+
create_vulnerability_feedback_issue_path: string;
|
|
27
|
+
create_vulnerability_feedback_merge_request_path: string;
|
|
28
|
+
create_vulnerability_feedback_dismissal_path: string;
|
|
29
|
+
project: {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
full_path: string;
|
|
33
|
+
full_name: string;
|
|
34
|
+
};
|
|
35
|
+
dismissal_feedback?: string;
|
|
36
|
+
issue_feedback?: string;
|
|
37
|
+
merge_request_feedback?: string;
|
|
38
|
+
description: string;
|
|
39
|
+
links?: {
|
|
40
|
+
url: string;
|
|
41
|
+
}[];
|
|
42
|
+
location: {
|
|
43
|
+
file: string;
|
|
44
|
+
dependency: {
|
|
45
|
+
package: {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
version: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
details: {
|
|
52
|
+
[custom_field: string]: {
|
|
53
|
+
name: string;
|
|
54
|
+
type: string;
|
|
55
|
+
items?: VulnerabilityFindingDetailItem[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
solution: string;
|
|
59
|
+
blob_path: string;
|
|
60
|
+
}
|
|
61
|
+
export declare class VulnerabilityFindings<C extends boolean = false> extends BaseResource<C> {
|
|
62
|
+
all(projectId: string | number, options?: {
|
|
63
|
+
reportType?: string[];
|
|
64
|
+
scope?: string;
|
|
65
|
+
severity?: string[];
|
|
66
|
+
confidence?: string[];
|
|
67
|
+
pipelineId?: string | number;
|
|
68
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, VulnerabilityFindingSchema>[]>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
+
export interface WikiSchema extends Record<string, unknown> {
|
|
4
|
+
content: string;
|
|
5
|
+
format: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class Wikis<C extends boolean = false> extends BaseResource<C> {
|
|
10
|
+
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>[]>;
|
|
11
|
+
create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>>;
|
|
12
|
+
edit(projectId: string | number, slug: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>>;
|
|
13
|
+
show(projectId: string | number, slug: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>>;
|
|
14
|
+
remove(projectId: string | number, slug: string, options?: Sudo): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export { Groups } from './Groups';
|
|
2
|
+
export { GroupAccessRequests } from './GroupAccessRequests';
|
|
3
|
+
export { GroupBadges } from './GroupBadges';
|
|
4
|
+
export { GroupCustomAttributes } from './GroupCustomAttributes';
|
|
5
|
+
export { GroupIssueBoards } from './GroupIssueBoards';
|
|
6
|
+
export { GroupMembers } from './GroupMembers';
|
|
7
|
+
export { GroupMilestones } from './GroupMilestones';
|
|
8
|
+
export { GroupRunners } from './GroupRunners';
|
|
9
|
+
export { GroupVariables } from './GroupVariables';
|
|
10
|
+
export { GroupLabels } from './GroupLabels';
|
|
11
|
+
export { GroupDeployTokens } from './GroupDeployTokens';
|
|
12
|
+
export { Epics } from './Epics';
|
|
13
|
+
export { EpicIssues } from './EpicIssues';
|
|
14
|
+
export { EpicNotes } from './EpicNotes';
|
|
15
|
+
export { EpicDiscussions } from './EpicDiscussions';
|
|
16
|
+
export { Users } from './Users';
|
|
17
|
+
export { UserCustomAttributes } from './UserCustomAttributes';
|
|
18
|
+
export { UserEmails } from './UserEmails';
|
|
19
|
+
export { UserImpersonationTokens } from './UserImpersonationTokens';
|
|
20
|
+
export { UserSSHKeys } from './UserSSHKeys';
|
|
21
|
+
export { UserGPGKeys } from './UserGPGKeys';
|
|
22
|
+
export { Branches } from './Branches';
|
|
23
|
+
export { Commits } from './Commits';
|
|
24
|
+
export { CommitDiscussions } from './CommitDiscussions';
|
|
25
|
+
export { ContainerRegistry } from './ContainerRegistry';
|
|
26
|
+
export { Deployments } from './Deployments';
|
|
27
|
+
export { DeployKeys } from './DeployKeys';
|
|
28
|
+
export { Environments } from './Environments';
|
|
29
|
+
export { FreezePeriods } from './FreezePeriods';
|
|
30
|
+
export { Issues } from './Issues';
|
|
31
|
+
export { IssuesStatistics } from './IssuesStatistics';
|
|
32
|
+
export { IssueNotes } from './IssueNotes';
|
|
33
|
+
export { IssueNoteAwardEmojis } from './IssueNoteAwardEmojis';
|
|
34
|
+
export { IssueDiscussions } from './IssueDiscussions';
|
|
35
|
+
export { IssueAwardEmojis } from './IssueAwardEmojis';
|
|
36
|
+
export { Jobs } from './Jobs';
|
|
37
|
+
export { Labels } from './Labels';
|
|
38
|
+
export { MergeRequests } from './MergeRequests';
|
|
39
|
+
export { MergeRequestApprovals } from './MergeRequestApprovals';
|
|
40
|
+
export { MergeRequestAwardEmojis } from './MergeRequestAwardEmojis';
|
|
41
|
+
export { MergeRequestDiscussions } from './MergeRequestDiscussions';
|
|
42
|
+
export { MergeRequestNotes } from './MergeRequestNotes';
|
|
43
|
+
export { Packages } from './Packages';
|
|
44
|
+
export { PackageRegistry } from './PackageRegistry';
|
|
45
|
+
export { Pipelines } from './Pipelines';
|
|
46
|
+
export { PipelineSchedules } from './PipelineSchedules';
|
|
47
|
+
export { PipelineScheduleVariables } from './PipelineScheduleVariables';
|
|
48
|
+
export { Projects } from './Projects';
|
|
49
|
+
export { ProjectAccessRequests } from './ProjectAccessRequests';
|
|
50
|
+
export { ProjectBadges } from './ProjectBadges';
|
|
51
|
+
export { ProjectCustomAttributes } from './ProjectCustomAttributes';
|
|
52
|
+
export { ProjectImportExport } from './ProjectImportExport';
|
|
53
|
+
export { ProjectIssueBoards } from './ProjectIssueBoards';
|
|
54
|
+
export { ProjectHooks } from './ProjectHooks';
|
|
55
|
+
export { ProjectMembers } from './ProjectMembers';
|
|
56
|
+
export { ProjectMilestones } from './ProjectMilestones';
|
|
57
|
+
export { ProjectSnippets } from './ProjectSnippets';
|
|
58
|
+
export { ProjectSnippetNotes } from './ProjectSnippetNotes';
|
|
59
|
+
export { ProjectSnippetDiscussions } from './ProjectSnippetDiscussions';
|
|
60
|
+
export { ProjectSnippetAwardEmojis } from './ProjectSnippetAwardEmojis';
|
|
61
|
+
export { ProtectedBranches } from './ProtectedBranches';
|
|
62
|
+
export { ProtectedTags } from './ProtectedTags';
|
|
63
|
+
export { ProjectVariables } from './ProjectVariables';
|
|
64
|
+
export { ProjectDeployTokens } from './ProjectDeployTokens';
|
|
65
|
+
export { PushRules } from './PushRules';
|
|
66
|
+
export { Releases } from './Releases';
|
|
67
|
+
export { ReleaseLinks } from './ReleaseLinks';
|
|
68
|
+
export { Repositories } from './Repositories';
|
|
69
|
+
export { RepositoryFiles } from './RepositoryFiles';
|
|
70
|
+
export { RepositorySubmodules } from './RepositorySubmodules';
|
|
71
|
+
export { Runners } from './Runners';
|
|
72
|
+
export { Services } from './Services';
|
|
73
|
+
export { Tags } from './Tags';
|
|
74
|
+
export { Todos } from './Todos';
|
|
75
|
+
export { Triggers } from './Triggers';
|
|
76
|
+
export { VulnerabilityFindings } from './VulnerabilityFindings';
|
|
77
|
+
export { ApplicationSettings } from './ApplicationSettings';
|
|
78
|
+
export { BroadcastMessages } from './BroadcastMessages';
|
|
79
|
+
export { Events } from './Events';
|
|
80
|
+
export { FeatureFlags } from './FeatureFlags';
|
|
81
|
+
export { GeoNodes } from './GeoNodes';
|
|
82
|
+
export { GitignoreTemplates } from './GitignoreTemplates';
|
|
83
|
+
export { GitLabCIYMLTemplates } from './GitLabCIYMLTemplates';
|
|
84
|
+
export { Keys } from './Keys';
|
|
85
|
+
export { License } from './License';
|
|
86
|
+
export { LicenseTemplates } from './LicenseTemplates';
|
|
87
|
+
export { Lint } from './Lint';
|
|
88
|
+
export { Namespaces } from './Namespaces';
|
|
89
|
+
export { NotificationSettings } from './NotificationSettings';
|
|
90
|
+
export { Markdown } from './Markdown';
|
|
91
|
+
export { PagesDomains } from './PagesDomains';
|
|
92
|
+
export { Search } from './Search';
|
|
93
|
+
export { SidekiqMetrics } from './SidekiqMetrics';
|
|
94
|
+
export { Snippets } from './Snippets';
|
|
95
|
+
export { SystemHooks } from './SystemHooks';
|
|
96
|
+
export { Version } from './Version';
|
|
97
|
+
export { Wikis } from './Wikis';
|
|
98
|
+
export { Gitlab } from './Gitlab';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export { GroupSchema, GroupDetailSchema } from './Groups';
|
|
2
|
+
export { GroupBadgeSchema } from './GroupBadges';
|
|
3
|
+
export { GroupIssueBoardSchema } from './GroupIssueBoards';
|
|
4
|
+
export { EpicSchema } from './Epics';
|
|
5
|
+
export { EpicIssueSchema } from './EpicIssues';
|
|
6
|
+
export { EpicNoteSchema } from './EpicNotes';
|
|
7
|
+
export { UserSchema, UserExtendedSchema, UserActivitySchema } from './Users';
|
|
8
|
+
export { UserEmailSchema } from './UserEmails';
|
|
9
|
+
export { UserImpersonationTokenSchema, ImpersonationTokenScope, ImpersonationTokenState, } from './UserImpersonationTokens';
|
|
10
|
+
export { UserSSHKeySchema } from './UserSSHKeys';
|
|
11
|
+
export { UserGPGKeySchema } from './UserGPGKeys';
|
|
12
|
+
export { BranchSchema } from './Branches';
|
|
13
|
+
export { CommitAction, CommitSchema, CommitExtendedSchema, GPGSignatureSchema, X509SignatureSchema, MissingSignatureSchema, CommitSignatureSchema, CommentSchema, CommitDiffSchema, CommitStatusSchema, CommitReferenceSchema, } from './Commits';
|
|
14
|
+
export { RegistryRepositoryTagSchema, RegistryRepositorySchema } from './ContainerRegistry';
|
|
15
|
+
export { DeploymentStatus, DeployableSchema, DeploymentSchema } from './Deployments';
|
|
16
|
+
export { DeployKeySchema } from './DeployKeys';
|
|
17
|
+
export { EnvironmentSchema } from './Environments';
|
|
18
|
+
export { FreezePeriodSchema } from './FreezePeriods';
|
|
19
|
+
export { TimeStatsSchema, IssueSchema } from './Issues';
|
|
20
|
+
export { StatisticsSchema } from './IssuesStatistics';
|
|
21
|
+
export { IssueNoteSchema } from './IssueNotes';
|
|
22
|
+
export { JobScope, ArtifactSchema, JobSchema, BridgeSchema } from './Jobs';
|
|
23
|
+
export { AcceptMergeRequestOptions, ShowMergeRequestOptions, CreateMergeRequestOptions, UpdateMergeRequestOptions, AllMergeRequestsOptions, ReferenceSchema, TaskCompletionStatusSchema, RebaseSchema, DiffSchema, MergeRequestSchema, } from './MergeRequests';
|
|
24
|
+
export { ProjectLevelMergeRequestApprovalSchema, ApprovedByEntity, MergeRequestLevelMergeRequestApprovalSchema, ApprovalRulesRequestOptions, ApprovalRuleSchema, ProjectLevelApprovalRuleSchema, MergeRequestLevelApprovalRuleSchema, } from './MergeRequestApprovals';
|
|
25
|
+
export { MergeRequestNoteSchema } from './MergeRequestNotes';
|
|
26
|
+
export { PackageSchema, PackageFileSchema } from './Packages';
|
|
27
|
+
export { PipelineStatus, PipelineSchema, PipelineExtendedSchema, PipelineVariableSchema, } from './Pipelines';
|
|
28
|
+
export { PipelineScheduleSchema } from './PipelineSchedules';
|
|
29
|
+
export { ProjectSchema, ProjectExtendedSchema, ProjectFileUploadSchema, AccessSchema, SharedWithGroupSchema, } from './Projects';
|
|
30
|
+
export { ProjectBadgeSchema } from './ProjectBadges';
|
|
31
|
+
export { ExportStatusSchema, FailedRelationSchema, ImportStatusSchema, UploadMetadata, } from './ProjectImportExport';
|
|
32
|
+
export { ProjectIssueBoardSchema } from './ProjectIssueBoards';
|
|
33
|
+
export { ProjectHookSchema } from './ProjectHooks';
|
|
34
|
+
export { ProjectSnippetSchema } from './ProjectSnippets';
|
|
35
|
+
export { SnippetNoteSchema } from './ProjectSnippetNotes';
|
|
36
|
+
export { ProtectedBranchAccessLevel, ProtectedBranchSchema } from './ProtectedBranches';
|
|
37
|
+
export { ProtectedTagSchema, ProtectedTagAccessLevel } from './ProtectedTags';
|
|
38
|
+
export { PushRulesSchema } from './PushRules';
|
|
39
|
+
export { ReleaseEvidence, ReleaseAssetSource, ReleaseAssetLink, ReleaseSchema } from './Releases';
|
|
40
|
+
export { ReleaseLinkSchema } from './ReleaseLinks';
|
|
41
|
+
export { RepositoryCompareSchema, RepositoryContributorSchema, RepositoryTreeSchema, } from './Repositories';
|
|
42
|
+
export { RepositoryFileExtendedSchema, RepositoryFileBlameSchema, RepositoryFileSchema, } from './RepositoryFiles';
|
|
43
|
+
export { RepositorySubmoduleSchema } from './RepositorySubmodules';
|
|
44
|
+
export { RunnerSchema, RunnerExtendedSchema } from './Runners';
|
|
45
|
+
export { SupportedService, ServiceSchema } from './Services';
|
|
46
|
+
export { TagSchema } from './Tags';
|
|
47
|
+
export { TodoSchema } from './Todos';
|
|
48
|
+
export { PipelineTriggerSchema } from './Triggers';
|
|
49
|
+
export { VulnerabilityFindingSchema, VulnerabilityFindingDetailItem, VulnerabilityFindingIdentifier, } from './VulnerabilityFindings';
|
|
50
|
+
export { ApplicationSettingsSchema } from './ApplicationSettings';
|
|
51
|
+
export { BroadcastMessageSchema } from './BroadcastMessages';
|
|
52
|
+
export { EventOptions, EventSchema } from './Events';
|
|
53
|
+
export { FeatureFlagSchema, FeatureFlagStrategy, FeatureFlagStrategyScope } from './FeatureFlags';
|
|
54
|
+
export { GeoNodeSchema, GeoNodeFailureSchema, GeoNodeStatusSchema } from './GeoNodes';
|
|
55
|
+
export { KeySchema } from './Keys';
|
|
56
|
+
export { LicenseSchema } from './License';
|
|
57
|
+
export { LicenseTemplateSchema } from './LicenseTemplates';
|
|
58
|
+
export { LintSchema } from './Lint';
|
|
59
|
+
export { NamespaceSchema } from './Namespaces';
|
|
60
|
+
export { NotificationSettingSchema, NotificationSettingLevel } from './NotificationSettings';
|
|
61
|
+
export { MarkdownSchema } from './Markdown';
|
|
62
|
+
export { PagesDomainSchema } from './PagesDomains';
|
|
63
|
+
export { SearchResultSchema } from './Search';
|
|
64
|
+
export { SidekickProcessMetricsSchema, ProcessMetricSchema, SidekickQueueMetricsSchema, SidekickJobStatsSchema, SidekickCompoundMetricsSchema, } from './SidekiqMetrics';
|
|
65
|
+
export { SnippetVisibility, SnippetSchema, SnippetExtendedSchema, UserAgentDetailSchema, } from './Snippets';
|
|
66
|
+
export { SystemHookSchema } from './SystemHooks';
|
|
67
|
+
export { VersionSchema } from './Version';
|
|
68
|
+
export { WikiSchema } from './Wikis';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { Sudo } from '../infrastructure';
|
|
3
|
+
export declare type AccessLevel = 0 | 5 | 10 | 20 | 30 | 40 | 50;
|
|
4
|
+
export interface AccessRequestSchema extends Record<string, unknown> {
|
|
5
|
+
id: number;
|
|
6
|
+
username: string;
|
|
7
|
+
name: string;
|
|
8
|
+
state: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
requested_at: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class ResourceAccessRequests<C extends boolean = false> extends BaseResource<C> {
|
|
13
|
+
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
14
|
+
all(resourceId: string | number): Promise<import("../infrastructure").CamelizedRecord<C, AccessRequestSchema>[]>;
|
|
15
|
+
request(resourceId: string | number): Promise<import("../infrastructure").CamelizedRecord<C, AccessRequestSchema>>;
|
|
16
|
+
approve(resourceId: string | number, userId: number, options?: {
|
|
17
|
+
accessLevel?: AccessLevel;
|
|
18
|
+
} & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, AccessRequestSchema>>;
|
|
19
|
+
deny(resourceId: string | number, userId: number): Promise<void>;
|
|
20
|
+
}
|