Skip to content

Commit ac8dcb3

Browse files
authored
Update API from gitea.com (#3)
1 parent 3bef988 commit ac8dcb3

File tree

238 files changed

+45050
-7058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+45050
-7058
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ hs_err_pid*
1919
target
2020
.gradle
2121
build
22+
23+
# IntelliJ IDEA files
24+
*.iml
25+
/.idea/

.swagger-codegen/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.8
1+
2.4.19

docs/AddTimeOption.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
78
**time** | **Long** | time in seconds |
9+
**userName** | **String** | User who spent the time (optional) | [optional]
810

911

1012

docs/AdminApi.md

Lines changed: 528 additions & 16 deletions
Large diffs are not rendered by default.

docs/Branch.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional]
8+
**effectiveBranchProtectionName** | **String** | | [optional]
9+
**enableStatusCheck** | **Boolean** | | [optional]
810
**name** | **String** | | [optional]
11+
**_protected** | **Boolean** | | [optional]
12+
**requiredApprovals** | **Long** | | [optional]
13+
**statusCheckContexts** | **List<String>** | | [optional]
14+
**userCanMerge** | **Boolean** | | [optional]
15+
**userCanPush** | **Boolean** | | [optional]
916

1017

1118

docs/BranchProtection.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
# BranchProtection
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**approvalsWhitelistTeams** | **List<String>** | | [optional]
8+
**approvalsWhitelistUsername** | **List<String>** | | [optional]
9+
**blockOnOfficialReviewRequests** | **Boolean** | | [optional]
10+
**blockOnOutdatedBranch** | **Boolean** | | [optional]
11+
**blockOnRejectedReviews** | **Boolean** | | [optional]
12+
**branchName** | **String** | | [optional]
13+
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
14+
**dismissStaleApprovals** | **Boolean** | | [optional]
15+
**enableApprovalsWhitelist** | **Boolean** | | [optional]
16+
**enableMergeWhitelist** | **Boolean** | | [optional]
17+
**enablePush** | **Boolean** | | [optional]
18+
**enablePushWhitelist** | **Boolean** | | [optional]
19+
**enableStatusCheck** | **Boolean** | | [optional]
20+
**mergeWhitelistTeams** | **List<String>** | | [optional]
21+
**mergeWhitelistUsernames** | **List<String>** | | [optional]
22+
**protectedFilePatterns** | **String** | | [optional]
23+
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
24+
**pushWhitelistTeams** | **List<String>** | | [optional]
25+
**pushWhitelistUsernames** | **List<String>** | | [optional]
26+
**requireSignedCommits** | **Boolean** | | [optional]
27+
**requiredApprovals** | **Long** | | [optional]
28+
**statusCheckContexts** | **List<String>** | | [optional]
29+
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
30+
31+
32+

docs/CombinedStatus.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# CombinedStatus
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**commitUrl** | **String** | | [optional]
8+
**repository** | [**Repository**](Repository.md) | | [optional]
9+
**sha** | **String** | | [optional]
10+
**state** | **String** | | [optional]
11+
**statuses** | [**List<CommitStatus>**](CommitStatus.md) | | [optional]
12+
**totalCount** | **Long** | | [optional]
13+
**url** | **String** | | [optional]
14+
15+
16+

docs/Commit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
77
**author** | [**User**](User.md) | | [optional]
88
**commit** | [**RepoCommit**](RepoCommit.md) | | [optional]
99
**committer** | [**User**](User.md) | | [optional]
10+
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
11+
**files** | [**List<CommitAffectedFiles>**](CommitAffectedFiles.md) | | [optional]
1012
**htmlUrl** | **String** | | [optional]
1113
**parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional]
1214
**sha** | **String** | | [optional]

docs/CommitAffectedFiles.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# CommitAffectedFiles
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**filename** | **String** | | [optional]
8+
9+
10+

docs/CommitDateOptions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# CommitDateOptions
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**author** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
8+
**committer** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
9+
10+
11+

docs/CommitMeta.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
78
**sha** | **String** | | [optional]
89
**url** | **String** | | [optional]
910

docs/CommitStatus.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# CommitStatus
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**context** | **String** | | [optional]
8+
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
9+
**creator** | [**User**](User.md) | | [optional]
10+
**description** | **String** | | [optional]
11+
**id** | **Long** | | [optional]
12+
**status** | **String** | | [optional]
13+
**targetUrl** | **String** | | [optional]
14+
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
15+
**url** | **String** | | [optional]
16+
17+
18+

docs/CreateBranchProtectionOption.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
# CreateBranchProtectionOption
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**approvalsWhitelistTeams** | **List<String>** | | [optional]
8+
**approvalsWhitelistUsername** | **List<String>** | | [optional]
9+
**blockOnOfficialReviewRequests** | **Boolean** | | [optional]
10+
**blockOnOutdatedBranch** | **Boolean** | | [optional]
11+
**blockOnRejectedReviews** | **Boolean** | | [optional]
12+
**branchName** | **String** | | [optional]
13+
**dismissStaleApprovals** | **Boolean** | | [optional]
14+
**enableApprovalsWhitelist** | **Boolean** | | [optional]
15+
**enableMergeWhitelist** | **Boolean** | | [optional]
16+
**enablePush** | **Boolean** | | [optional]
17+
**enablePushWhitelist** | **Boolean** | | [optional]
18+
**enableStatusCheck** | **Boolean** | | [optional]
19+
**mergeWhitelistTeams** | **List<String>** | | [optional]
20+
**mergeWhitelistUsernames** | **List<String>** | | [optional]
21+
**protectedFilePatterns** | **String** | | [optional]
22+
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
23+
**pushWhitelistTeams** | **List<String>** | | [optional]
24+
**pushWhitelistUsernames** | **List<String>** | | [optional]
25+
**requireSignedCommits** | **Boolean** | | [optional]
26+
**requiredApprovals** | **Long** | | [optional]
27+
**statusCheckContexts** | **List<String>** | | [optional]
28+
29+
30+

docs/CreateBranchRepoOption.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# CreateBranchRepoOption
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**newBranchName** | **String** | Name of the branch to create |
8+
**oldBranchName** | **String** | Name of the old branch to create from | [optional]
9+
10+
11+

docs/CreateFileOptions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ Name | Type | Description | Notes
88
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
99
**committer** | [**Identity**](Identity.md) | | [optional]
1010
**content** | **String** | content must be base64 encoded |
11+
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
1112
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
1213
**newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]
14+
**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]
1315

1416

1517

docs/CreateHookOption.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**active** | **Boolean** | | [optional]
88
**branchFilter** | **String** | | [optional]
9-
**config** | **Map<String, String>** | |
9+
**config** | [**CreateHookOptionConfig**](CreateHookOptionConfig.md) | |
1010
**events** | **List<String>** | | [optional]
1111
**type** | [**TypeEnum**](#TypeEnum) | |
1212

@@ -15,10 +15,14 @@ Name | Type | Description | Notes
1515
## Enum: TypeEnum
1616
Name | Value
1717
---- | -----
18+
DINGTALK | "dingtalk"
19+
DISCORD | "discord"
1820
GITEA | "gitea"
1921
GOGS | "gogs"
22+
MSTEAMS | "msteams"
2023
SLACK | "slack"
21-
DISCORD | "discord"
24+
TELEGRAM | "telegram"
25+
FEISHU | "feishu"
2226

2327

2428

docs/CreateHookOptionConfig.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# CreateHookOptionConfig
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+
9+

docs/CreateIssueOption.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**assignee** | **String** | username of assignee | [optional]
7+
**assignee** | **String** | deprecated | [optional]
88
**assignees** | **List<String>** | | [optional]
99
**body** | **String** | | [optional]
1010
**closed** | **Boolean** | | [optional]
1111
**dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
1212
**labels** | **List<Long>** | list of label ids | [optional]
1313
**milestone** | **Long** | milestone id | [optional]
14+
**ref** | **String** | | [optional]
1415
**title** | **String** | |
1516

1617

docs/CreateMilestoneOption.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**description** | **String** | | [optional]
88
**dueOn** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
9+
**state** | [**StateEnum**](#StateEnum) | | [optional]
910
**title** | **String** | | [optional]
1011

1112

13+
<a name="StateEnum"></a>
14+
## Enum: StateEnum
15+
Name | Value
16+
---- | -----
17+
OPEN | &quot;open&quot;
18+
CLOSED | &quot;closed&quot;
19+
20+
1221

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# CreateOAuth2ApplicationOptions
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | | [optional]
8+
**redirectUris** | **List&lt;String&gt;** | | [optional]
9+
10+
11+

docs/CreatePullReviewComment.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# CreatePullReviewComment
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**body** | **String** | | [optional]
8+
**newPosition** | **Long** | if comment to new file line or 0 | [optional]
9+
**oldPosition** | **Long** | if comment to old file line or 0 | [optional]
10+
**path** | **String** | the tree path | [optional]
11+
12+
13+

docs/CreatePullReviewOptions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# CreatePullReviewOptions
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**body** | **String** | | [optional]
8+
**comments** | [**List&lt;CreatePullReviewComment&gt;**](CreatePullReviewComment.md) | | [optional]
9+
**commitId** | **String** | | [optional]
10+
**event** | **String** | | [optional]
11+
12+
13+

docs/CreateRepoOption.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,26 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional]
8+
**defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional]
89
**description** | **String** | Description of the repository to create | [optional]
910
**gitignores** | **String** | Gitignores to use | [optional]
10-
**issueLabels** | **String** | Issue Label set to use | [optional]
11+
**issueLabels** | **String** | Label-Set to use | [optional]
1112
**license** | **String** | License to use | [optional]
1213
**name** | **String** | Name of the repository to create |
1314
**_private** | **Boolean** | Whether the repository is private | [optional]
1415
**readme** | **String** | Readme of the repository to create | [optional]
16+
**template** | **Boolean** | Whether the repository is template | [optional]
17+
**trustModel** | [**TrustModelEnum**](#TrustModelEnum) | TrustModel of the repository | [optional]
18+
19+
20+
<a name="TrustModelEnum"></a>
21+
## Enum: TrustModelEnum
22+
Name | Value
23+
---- | -----
24+
DEFAULT | &quot;default&quot;
25+
COLLABORATOR | &quot;collaborator&quot;
26+
COMMITTER | &quot;committer&quot;
27+
COLLABORATORCOMMITTER | &quot;collaboratorcommitter&quot;
1528

1629

1730

docs/CreateTeamOption.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**canCreateOrgRepo** | **Boolean** | | [optional]
78
**description** | **String** | | [optional]
9+
**includesAllRepositories** | **Boolean** | | [optional]
810
**name** | **String** | |
911
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
1012
**units** | **List&lt;String&gt;** | | [optional]

docs/Cron.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Cron
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**execTimes** | **Long** | | [optional]
8+
**name** | **String** | | [optional]
9+
**next** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
10+
**prev** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
11+
**schedule** | **String** | | [optional]
12+
13+
14+

docs/DeleteFileOptions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ Name | Type | Description | Notes
77
**author** | [**Identity**](Identity.md) | | [optional]
88
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
99
**committer** | [**Identity**](Identity.md) | | [optional]
10+
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
1011
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
1112
**newBranch** | **String** | new_branch (optional) will make a new branch from &#x60;branch&#x60; before creating the file | [optional]
1213
**sha** | **String** | sha is the SHA for the file that already exists |
14+
**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]
1315

1416

1517

docs/DismissPullReviewOptions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# DismissPullReviewOptions
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**message** | **String** | | [optional]
8+
9+
10+

0 commit comments

Comments
 (0)