forges 0.0.0 → 0.1.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/LICENCE +21 -0
- package/README.md +72 -0
- package/dist/azure-devops/index.d.mts +2 -0
- package/dist/azure-devops/index.mjs +1 -0
- package/dist/azure-devops-DwQvL4TV.mjs +1355 -0
- package/dist/bitbucket/index.d.mts +2 -0
- package/dist/bitbucket/index.mjs +1 -0
- package/dist/bitbucket-CpcfJlYi.mjs +1171 -0
- package/dist/crypto-CQNEyYHD.mjs +156 -0
- package/dist/cursor-origin/index.d.mts +2 -0
- package/dist/cursor-origin/index.mjs +1 -0
- package/dist/cursor-origin-BhqYx2oW.mjs +980 -0
- package/dist/define-B2_4ob2i.d.mts +307 -0
- package/dist/define-D3yEXtKK.mjs +2276 -0
- package/dist/env.d.mts +46 -0
- package/dist/env.mjs +283 -0
- package/dist/fake/index.d.mts +227 -0
- package/dist/fake/index.mjs +1001 -0
- package/dist/fetch-D4pSRvvA.d.mts +1723 -0
- package/dist/forgejo/index.d.mts +2 -0
- package/dist/forgejo/index.mjs +1 -0
- package/dist/forgejo-BCefbHUN.mjs +2005 -0
- package/dist/gitea/index.d.mts +2 -0
- package/dist/gitea/index.mjs +22 -0
- package/dist/gitee/index.d.mts +2 -0
- package/dist/gitee/index.mjs +1 -0
- package/dist/gitee-CA-f7Rs8.mjs +1272 -0
- package/dist/github/index.d.mts +2 -0
- package/dist/github/index.mjs +1 -0
- package/dist/github-B0umL8_f.mjs +3259 -0
- package/dist/gitlab/index.d.mts +2 -0
- package/dist/gitlab/index.mjs +1 -0
- package/dist/gitlab-Bsr__Z0C.mjs +2378 -0
- package/dist/graphql-D7uGzZTf.mjs +366 -0
- package/dist/index-BQ6VS31s.d.mts +32 -0
- package/dist/index-C-jz9Mo3.d.mts +16 -0
- package/dist/index-C4fYzmK3.d.mts +102 -0
- package/dist/index-CQiIX4SH.d.mts +27 -0
- package/dist/index-CTj5gQzl.d.mts +35 -0
- package/dist/index-CliBWzOF.d.mts +23 -0
- package/dist/index-Cz_y-t3d.d.mts +36 -0
- package/dist/index-DEt25E1w.d.mts +77 -0
- package/dist/index-DIuS0EOy.d.mts +43 -0
- package/dist/index-uSpsMCrC.d.mts +26 -0
- package/dist/index.d.mts +41 -0
- package/dist/index.mjs +13 -0
- package/dist/kit.d.mts +183 -0
- package/dist/kit.mjs +4 -0
- package/dist/provider-CoZ7cCxp.d.mts +1439 -0
- package/dist/provider-Ed1YhkQN.mjs +169 -0
- package/dist/pushin/index.d.mts +2 -0
- package/dist/pushin/index.mjs +1 -0
- package/dist/pushin-CkxgJ2cU.mjs +343 -0
- package/dist/schema/Actor.json +96 -0
- package/dist/schema/AlertSupport.json +49 -0
- package/dist/schema/AuthKind.json +15 -0
- package/dist/schema/Branch.json +31 -0
- package/dist/schema/ChangedFile.json +58 -0
- package/dist/schema/Check.json +169 -0
- package/dist/schema/CheckRef.json +114 -0
- package/dist/schema/CheckState.json +14 -0
- package/dist/schema/ChecksSummary.json +34 -0
- package/dist/schema/CiJob.json +186 -0
- package/dist/schema/CiJobRef.json +132 -0
- package/dist/schema/CiRun.json +234 -0
- package/dist/schema/CiRunRef.json +103 -0
- package/dist/schema/CodeFragment.json +19 -0
- package/dist/schema/CodeMatch.json +128 -0
- package/dist/schema/Collaborator.json +169 -0
- package/dist/schema/Comment.json +336 -0
- package/dist/schema/CommentRef.json +158 -0
- package/dist/schema/Commit.json +307 -0
- package/dist/schema/CommitRef.json +104 -0
- package/dist/schema/CommitSignature.json +118 -0
- package/dist/schema/Comparison.json +355 -0
- package/dist/schema/Cursor.json +21 -0
- package/dist/schema/EventAction.json +33 -0
- package/dist/schema/EventDetail.json +649 -0
- package/dist/schema/EventKind.json +26 -0
- package/dist/schema/FileContent.json +73 -0
- package/dist/schema/FileStatus.json +15 -0
- package/dist/schema/ForgeCapabilities.json +737 -0
- package/dist/schema/ForgeEvent.json +789 -0
- package/dist/schema/ForgeInstance.json +7 -0
- package/dist/schema/ForgeKind.json +32 -0
- package/dist/schema/ForgeWarning.json +49 -0
- package/dist/schema/ForgeWarningCode.json +7 -0
- package/dist/schema/GetManyResult.json +699 -0
- package/dist/schema/Installation.json +131 -0
- package/dist/schema/InstallationToken.json +31 -0
- package/dist/schema/KnownForgeKind.json +19 -0
- package/dist/schema/Label.json +22 -0
- package/dist/schema/MergeMethod.json +14 -0
- package/dist/schema/Milestone.json +40 -0
- package/dist/schema/Notification.json +498 -0
- package/dist/schema/NotificationReason.json +28 -0
- package/dist/schema/NotificationRef.json +60 -0
- package/dist/schema/NotificationSubject.json +376 -0
- package/dist/schema/PerKind.json +49 -0
- package/dist/schema/PullBranches.json +125 -0
- package/dist/schema/PushCommit.json +24 -0
- package/dist/schema/Reaction.json +148 -0
- package/dist/schema/ReactionContent.json +17 -0
- package/dist/schema/ReactionSummary.json +70 -0
- package/dist/schema/Release.json +286 -0
- package/dist/schema/ReleaseAsset.json +169 -0
- package/dist/schema/ReleaseAssetRef.json +138 -0
- package/dist/schema/ReleaseRef.json +107 -0
- package/dist/schema/Repo.json +354 -0
- package/dist/schema/RepoFeatures.json +35 -0
- package/dist/schema/RepoPermissions.json +35 -0
- package/dist/schema/RepoRef.json +77 -0
- package/dist/schema/RepoRole.json +15 -0
- package/dist/schema/RepoVisibility.json +12 -0
- package/dist/schema/Review.json +371 -0
- package/dist/schema/ReviewComment.json +280 -0
- package/dist/schema/ReviewCommentInput.json +34 -0
- package/dist/schema/ReviewRef.json +158 -0
- package/dist/schema/ReviewState.json +15 -0
- package/dist/schema/Reviewer.json +133 -0
- package/dist/schema/SecurityAlert.json +219 -0
- package/dist/schema/SecurityAlertKind.json +14 -0
- package/dist/schema/SecurityAlertRef.json +122 -0
- package/dist/schema/SecuritySeverity.json +14 -0
- package/dist/schema/SourceKind.json +12 -0
- package/dist/schema/SubscriptionState.json +12 -0
- package/dist/schema/Support.json +23 -0
- package/dist/schema/Tag.json +25 -0
- package/dist/schema/TextLimits.json +18 -0
- package/dist/schema/Thread.json +653 -0
- package/dist/schema/ThreadKind.json +14 -0
- package/dist/schema/ThreadRef.json +131 -0
- package/dist/schema/ThreadStack.json +146 -0
- package/dist/schema/ThreadState.json +13 -0
- package/dist/schema/TreeEntry.json +46 -0
- package/dist/schema/TreeEntryType.json +13 -0
- package/dist/schema/UpsertCommentResult.json +355 -0
- package/dist/schema/User.json +123 -0
- package/dist/schema/Webhook.json +188 -0
- package/dist/schema/WebhookDeliveryRecord.json +173 -0
- package/dist/schema/WebhookDeliveryRef.json +135 -0
- package/dist/schema/WebhookRef.json +105 -0
- package/dist/schema/index.d.mts +4 -0
- package/dist/schema/index.mjs +3219 -0
- package/dist/tangled/index.d.mts +2 -0
- package/dist/tangled/index.mjs +1 -0
- package/dist/tangled-ChdPmiv-.mjs +1570 -0
- package/dist/testing/index.d.mts +123 -0
- package/dist/testing/index.mjs +242 -0
- package/dist/webhooks-rn9-8lxT.mjs +70 -0
- package/package.json +115 -3
- package/dist/.gitkeep +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"forge": {
|
|
6
|
+
"$ref": "#/definitions/ForgeKind"
|
|
7
|
+
},
|
|
8
|
+
"instance": {
|
|
9
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
10
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
11
|
+
},
|
|
12
|
+
"id": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"account": {
|
|
16
|
+
"$ref": "#/definitions/Actor"
|
|
17
|
+
},
|
|
18
|
+
"targetTypeRaw": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Forge-native target type, for example `Organization` or `User`."
|
|
21
|
+
},
|
|
22
|
+
"repositorySelectionRaw": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Forge-native repository selection, for example `all` or `selected`."
|
|
25
|
+
},
|
|
26
|
+
"raw": {}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"forge",
|
|
30
|
+
"id",
|
|
31
|
+
"instance",
|
|
32
|
+
"raw"
|
|
33
|
+
],
|
|
34
|
+
"description": "An app installation on an account, with its own credential scope.",
|
|
35
|
+
"x-forges-type": "Installation",
|
|
36
|
+
"definitions": {
|
|
37
|
+
"Actor": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"forge": {
|
|
41
|
+
"$ref": "#/definitions/ForgeKind"
|
|
42
|
+
},
|
|
43
|
+
"instance": {
|
|
44
|
+
"$ref": "#/definitions/ForgeInstance",
|
|
45
|
+
"description": "The host of the instance, such as `github.com` or `git.example.com`."
|
|
46
|
+
},
|
|
47
|
+
"login": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"id": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"name": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"avatarUrl": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"url": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"typeRaw": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Forge-reported account type, retained verbatim for callers that classify further."
|
|
65
|
+
},
|
|
66
|
+
"isBotHint": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "Hint derived from forge metadata that the actor is automation. Callers own the classification policy."
|
|
69
|
+
},
|
|
70
|
+
"app": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"slug": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"id": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"slug"
|
|
82
|
+
],
|
|
83
|
+
"description": "The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": [
|
|
87
|
+
"forge",
|
|
88
|
+
"id",
|
|
89
|
+
"instance",
|
|
90
|
+
"isBotHint",
|
|
91
|
+
"login"
|
|
92
|
+
],
|
|
93
|
+
"description": "An account: a user, an organisation or a bot.",
|
|
94
|
+
"x-forges-type": "Actor"
|
|
95
|
+
},
|
|
96
|
+
"ForgeInstance": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Host of a single forge deployment, for example `github.com` or `codeberg.org`.",
|
|
99
|
+
"x-forges-type": "ForgeInstance"
|
|
100
|
+
},
|
|
101
|
+
"ForgeKind": {
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"$ref": "#/definitions/KnownForgeKind"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"description": "Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.",
|
|
111
|
+
"x-forges-type": "ForgeKind"
|
|
112
|
+
},
|
|
113
|
+
"KnownForgeKind": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"enum": [
|
|
116
|
+
"github",
|
|
117
|
+
"gitlab",
|
|
118
|
+
"bitbucket",
|
|
119
|
+
"forgejo",
|
|
120
|
+
"gitea",
|
|
121
|
+
"tangled",
|
|
122
|
+
"gitee",
|
|
123
|
+
"azure-devops",
|
|
124
|
+
"cursor-origin",
|
|
125
|
+
"pushin"
|
|
126
|
+
],
|
|
127
|
+
"description": "The forges this package ships providers for.",
|
|
128
|
+
"x-forges-type": "KnownForgeKind"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"token": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"expiresAt": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "date-time"
|
|
11
|
+
},
|
|
12
|
+
"permissions": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"repositorySelection": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Whether the token reaches all repositories or only selected ones."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"token",
|
|
25
|
+
"expiresAt",
|
|
26
|
+
"permissions"
|
|
27
|
+
],
|
|
28
|
+
"description": "A short-lived token that acts as one app installation.",
|
|
29
|
+
"x-forges-type": "InstallationToken",
|
|
30
|
+
"definitions": {}
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"enum": [
|
|
5
|
+
"github",
|
|
6
|
+
"gitlab",
|
|
7
|
+
"bitbucket",
|
|
8
|
+
"forgejo",
|
|
9
|
+
"gitea",
|
|
10
|
+
"tangled",
|
|
11
|
+
"gitee",
|
|
12
|
+
"azure-devops",
|
|
13
|
+
"cursor-origin",
|
|
14
|
+
"pushin"
|
|
15
|
+
],
|
|
16
|
+
"description": "The forges this package ships providers for.",
|
|
17
|
+
"x-forges-type": "KnownForgeKind",
|
|
18
|
+
"definitions": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"colour": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The colour as hex digits, without a leading `#`."
|
|
11
|
+
},
|
|
12
|
+
"description": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": [
|
|
17
|
+
"name"
|
|
18
|
+
],
|
|
19
|
+
"description": "A label that a repository defines.",
|
|
20
|
+
"x-forges-type": "Label",
|
|
21
|
+
"definitions": {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "string",
|
|
4
|
+
"enum": [
|
|
5
|
+
"merge",
|
|
6
|
+
"squash",
|
|
7
|
+
"rebase",
|
|
8
|
+
"rebase_merge",
|
|
9
|
+
"fast_forward_only"
|
|
10
|
+
],
|
|
11
|
+
"description": "How a pull request is merged.",
|
|
12
|
+
"x-forges-type": "MergeMethod",
|
|
13
|
+
"definitions": {}
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Forge-native milestone id, as `threads.setMilestone` takes it."
|
|
8
|
+
},
|
|
9
|
+
"title": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"state": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"open",
|
|
16
|
+
"closed"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"description": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"dueOn": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "date-time"
|
|
25
|
+
},
|
|
26
|
+
"url": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"raw": {}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"id",
|
|
33
|
+
"title",
|
|
34
|
+
"state",
|
|
35
|
+
"raw"
|
|
36
|
+
],
|
|
37
|
+
"description": "A milestone that groups threads.",
|
|
38
|
+
"x-forges-type": "Milestone",
|
|
39
|
+
"definitions": {}
|
|
40
|
+
}
|