github-rest-mcp 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +55 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +133 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/actions.d.ts +25 -0
- package/dist/tools/actions.d.ts.map +1 -0
- package/dist/tools/actions.js +2202 -0
- package/dist/tools/actions.js.map +1 -0
- package/dist/tools/activity.d.ts +8 -0
- package/dist/tools/activity.d.ts.map +1 -0
- package/dist/tools/activity.js +385 -0
- package/dist/tools/activity.js.map +1 -0
- package/dist/tools/agent-tasks.d.ts +38 -0
- package/dist/tools/agent-tasks.d.ts.map +1 -0
- package/dist/tools/agent-tasks.js +78 -0
- package/dist/tools/agent-tasks.js.map +1 -0
- package/dist/tools/apps.d.ts +8 -0
- package/dist/tools/apps.d.ts.map +1 -0
- package/dist/tools/apps.js +402 -0
- package/dist/tools/apps.js.map +1 -0
- package/dist/tools/billing.d.ts +46 -0
- package/dist/tools/billing.d.ts.map +1 -0
- package/dist/tools/billing.js +145 -0
- package/dist/tools/billing.js.map +1 -0
- package/dist/tools/campaigns.d.ts +39 -0
- package/dist/tools/campaigns.d.ts.map +1 -0
- package/dist/tools/campaigns.js +69 -0
- package/dist/tools/campaigns.js.map +1 -0
- package/dist/tools/checks.d.ts +43 -0
- package/dist/tools/checks.d.ts.map +1 -0
- package/dist/tools/checks.js +171 -0
- package/dist/tools/checks.js.map +1 -0
- package/dist/tools/classroom.d.ts +25 -0
- package/dist/tools/classroom.d.ts.map +1 -0
- package/dist/tools/classroom.js +74 -0
- package/dist/tools/classroom.js.map +1 -0
- package/dist/tools/code-scanning.d.ts +35 -0
- package/dist/tools/code-scanning.d.ts.map +1 -0
- package/dist/tools/code-scanning.js +297 -0
- package/dist/tools/code-scanning.js.map +1 -0
- package/dist/tools/code-security.d.ts +25 -0
- package/dist/tools/code-security.d.ts.map +1 -0
- package/dist/tools/code-security.js +245 -0
- package/dist/tools/code-security.js.map +1 -0
- package/dist/tools/codes-of-conduct.d.ts +8 -0
- package/dist/tools/codes-of-conduct.d.ts.map +1 -0
- package/dist/tools/codes-of-conduct.js +27 -0
- package/dist/tools/codes-of-conduct.js.map +1 -0
- package/dist/tools/codespaces.d.ts +8 -0
- package/dist/tools/codespaces.d.ts.map +1 -0
- package/dist/tools/codespaces.js +555 -0
- package/dist/tools/codespaces.js.map +1 -0
- package/dist/tools/copilot.d.ts +17 -0
- package/dist/tools/copilot.d.ts.map +1 -0
- package/dist/tools/copilot.js +284 -0
- package/dist/tools/copilot.js.map +1 -0
- package/dist/tools/credentials.d.ts +10 -0
- package/dist/tools/credentials.d.ts.map +1 -0
- package/dist/tools/credentials.js +19 -0
- package/dist/tools/credentials.js.map +1 -0
- package/dist/tools/dependabot.d.ts +49 -0
- package/dist/tools/dependabot.d.ts.map +1 -0
- package/dist/tools/dependabot.js +311 -0
- package/dist/tools/dependabot.js.map +1 -0
- package/dist/tools/dependency-graph.d.ts +11 -0
- package/dist/tools/dependency-graph.d.ts.map +1 -0
- package/dist/tools/dependency-graph.js +45 -0
- package/dist/tools/dependency-graph.js.map +1 -0
- package/dist/tools/emojis.d.ts +8 -0
- package/dist/tools/emojis.d.ts.map +1 -0
- package/dist/tools/emojis.js +17 -0
- package/dist/tools/emojis.js.map +1 -0
- package/dist/tools/enterprise-team-memberships.d.ts +31 -0
- package/dist/tools/enterprise-team-memberships.d.ts.map +1 -0
- package/dist/tools/enterprise-team-memberships.js +82 -0
- package/dist/tools/enterprise-team-memberships.js.map +1 -0
- package/dist/tools/enterprise-team-organizations.d.ts +31 -0
- package/dist/tools/enterprise-team-organizations.d.ts.map +1 -0
- package/dist/tools/enterprise-team-organizations.js +82 -0
- package/dist/tools/enterprise-team-organizations.js.map +1 -0
- package/dist/tools/enterprise-teams.d.ts +28 -0
- package/dist/tools/enterprise-teams.d.ts.map +1 -0
- package/dist/tools/enterprise-teams.js +66 -0
- package/dist/tools/enterprise-teams.js.map +1 -0
- package/dist/tools/gists.d.ts +26 -0
- package/dist/tools/gists.d.ts.map +1 -0
- package/dist/tools/gists.js +231 -0
- package/dist/tools/gists.js.map +1 -0
- package/dist/tools/git.d.ts +58 -0
- package/dist/tools/git.d.ts.map +1 -0
- package/dist/tools/git.js +167 -0
- package/dist/tools/git.js.map +1 -0
- package/dist/tools/gitignore.d.ts +8 -0
- package/dist/tools/gitignore.d.ts.map +1 -0
- package/dist/tools/gitignore.js +27 -0
- package/dist/tools/gitignore.js.map +1 -0
- package/dist/tools/hosted-compute.d.ts +36 -0
- package/dist/tools/hosted-compute.d.ts.map +1 -0
- package/dist/tools/hosted-compute.js +77 -0
- package/dist/tools/hosted-compute.js.map +1 -0
- package/dist/tools/index.d.ts +45 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +93 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/interactions.d.ts +8 -0
- package/dist/tools/interactions.d.ts.map +1 -0
- package/dist/tools/interactions.js +100 -0
- package/dist/tools/interactions.js.map +1 -0
- package/dist/tools/issues.d.ts +126 -0
- package/dist/tools/issues.d.ts.map +1 -0
- package/dist/tools/issues.js +746 -0
- package/dist/tools/issues.js.map +1 -0
- package/dist/tools/licenses.d.ts +28 -0
- package/dist/tools/licenses.d.ts.map +1 -0
- package/dist/tools/licenses.js +43 -0
- package/dist/tools/licenses.js.map +1 -0
- package/dist/tools/markdown.d.ts +10 -0
- package/dist/tools/markdown.d.ts.map +1 -0
- package/dist/tools/markdown.js +29 -0
- package/dist/tools/markdown.js.map +1 -0
- package/dist/tools/meta.d.ts +8 -0
- package/dist/tools/meta.d.ts.map +1 -0
- package/dist/tools/meta.js +51 -0
- package/dist/tools/meta.js.map +1 -0
- package/dist/tools/migrations.d.ts +33 -0
- package/dist/tools/migrations.d.ts.map +1 -0
- package/dist/tools/migrations.js +261 -0
- package/dist/tools/migrations.js.map +1 -0
- package/dist/tools/oidc.d.ts +17 -0
- package/dist/tools/oidc.d.ts.map +1 -0
- package/dist/tools/oidc.js +94 -0
- package/dist/tools/oidc.js.map +1 -0
- package/dist/tools/orgs.d.ts +26 -0
- package/dist/tools/orgs.d.ts.map +1 -0
- package/dist/tools/orgs.js +1304 -0
- package/dist/tools/orgs.js.map +1 -0
- package/dist/tools/packages.d.ts +8 -0
- package/dist/tools/packages.d.ts.map +1 -0
- package/dist/tools/packages.js +341 -0
- package/dist/tools/packages.js.map +1 -0
- package/dist/tools/private-registries.d.ts +10 -0
- package/dist/tools/private-registries.d.ts.map +1 -0
- package/dist/tools/private-registries.js +76 -0
- package/dist/tools/private-registries.js.map +1 -0
- package/dist/tools/projects.d.ts +50 -0
- package/dist/tools/projects.d.ts.map +1 -0
- package/dist/tools/projects.js +347 -0
- package/dist/tools/projects.js.map +1 -0
- package/dist/tools/pulls.d.ts +77 -0
- package/dist/tools/pulls.d.ts.map +1 -0
- package/dist/tools/pulls.js +374 -0
- package/dist/tools/pulls.js.map +1 -0
- package/dist/tools/rate-limit.d.ts +8 -0
- package/dist/tools/rate-limit.d.ts.map +1 -0
- package/dist/tools/rate-limit.js +17 -0
- package/dist/tools/rate-limit.js.map +1 -0
- package/dist/tools/reactions.d.ts +124 -0
- package/dist/tools/reactions.d.ts.map +1 -0
- package/dist/tools/reactions.js +214 -0
- package/dist/tools/reactions.js.map +1 -0
- package/dist/tools/repos.d.ts +56 -0
- package/dist/tools/repos.d.ts.map +1 -0
- package/dist/tools/repos.js +2514 -0
- package/dist/tools/repos.js.map +1 -0
- package/dist/tools/search.d.ts +12 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/tools/search.js +108 -0
- package/dist/tools/search.js.map +1 -0
- package/dist/tools/secret-scanning.d.ts +18 -0
- package/dist/tools/secret-scanning.d.ts.map +1 -0
- package/dist/tools/secret-scanning.js +148 -0
- package/dist/tools/secret-scanning.js.map +1 -0
- package/dist/tools/security-advisories.d.ts +112 -0
- package/dist/tools/security-advisories.d.ts.map +1 -0
- package/dist/tools/security-advisories.js +152 -0
- package/dist/tools/security-advisories.js.map +1 -0
- package/dist/tools/teams.d.ts +34 -0
- package/dist/tools/teams.d.ts.map +1 -0
- package/dist/tools/teams.js +392 -0
- package/dist/tools/teams.js.map +1 -0
- package/dist/tools/users.d.ts +8 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +510 -0
- package/dist/tools/users.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,1304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orgsTools = void 0;
|
|
4
|
+
// AUTO-GENERATED by scripts/generate.ts — DO NOT EDIT
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const client_js_1 = require("../client.js");
|
|
7
|
+
exports.orgsTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "github_orgs_list",
|
|
10
|
+
description: "List organizations",
|
|
11
|
+
inputSchema: zod_1.z.object({
|
|
12
|
+
since: zod_1.z.number().optional().describe("An organization ID. Only return organizations with an ID greater than this ID."),
|
|
13
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
14
|
+
}),
|
|
15
|
+
handler: async (args) => {
|
|
16
|
+
return (0, client_js_1.githubRequest)("GET", `/organizations`, undefined, { since: args.since, per_page: args.per_page });
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "github_orgs_get",
|
|
21
|
+
description: "Get an organization",
|
|
22
|
+
inputSchema: zod_1.z.object({
|
|
23
|
+
org: zod_1.z.string().describe("org")
|
|
24
|
+
}),
|
|
25
|
+
handler: async (args) => {
|
|
26
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}`, undefined, undefined);
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "github_orgs_update",
|
|
31
|
+
description: "Update an organization",
|
|
32
|
+
inputSchema: zod_1.z.object({
|
|
33
|
+
org: zod_1.z.string().describe("org"),
|
|
34
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
35
|
+
}),
|
|
36
|
+
handler: async (args) => {
|
|
37
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}`, args.body, undefined);
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "github_orgs_delete",
|
|
42
|
+
description: "Delete an organization",
|
|
43
|
+
inputSchema: zod_1.z.object({
|
|
44
|
+
org: zod_1.z.string().describe("org")
|
|
45
|
+
}),
|
|
46
|
+
handler: async (args) => {
|
|
47
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}`, undefined, undefined);
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "github_orgs_create_artifact_deployment_record",
|
|
52
|
+
description: "Create an artifact deployment record",
|
|
53
|
+
inputSchema: zod_1.z.object({
|
|
54
|
+
org: zod_1.z.string().describe("org"),
|
|
55
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
56
|
+
}),
|
|
57
|
+
handler: async (args) => {
|
|
58
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/artifacts/metadata/deployment-record`, args.body, undefined);
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "github_orgs_set_cluster_deployment_records",
|
|
63
|
+
description: "Set cluster deployment records",
|
|
64
|
+
inputSchema: zod_1.z.object({
|
|
65
|
+
org: zod_1.z.string().describe("org"),
|
|
66
|
+
cluster: zod_1.z.string().describe("cluster"),
|
|
67
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
68
|
+
}),
|
|
69
|
+
handler: async (args) => {
|
|
70
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/artifacts/metadata/deployment-record/cluster/${args.cluster}`, args.body, undefined);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "github_orgs_create_artifact_storage_record",
|
|
75
|
+
description: "Create artifact metadata storage record",
|
|
76
|
+
inputSchema: zod_1.z.object({
|
|
77
|
+
org: zod_1.z.string().describe("org"),
|
|
78
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
79
|
+
}),
|
|
80
|
+
handler: async (args) => {
|
|
81
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/artifacts/metadata/storage-record`, args.body, undefined);
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "github_orgs_list_artifact_deployment_records",
|
|
86
|
+
description: "List artifact deployment records",
|
|
87
|
+
inputSchema: zod_1.z.object({
|
|
88
|
+
org: zod_1.z.string().describe("org"),
|
|
89
|
+
subject_digest: zod_1.z.string().describe("subject_digest")
|
|
90
|
+
}),
|
|
91
|
+
handler: async (args) => {
|
|
92
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/artifacts/${args.subject_digest}/metadata/deployment-records`, undefined, undefined);
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "github_orgs_list_artifact_storage_records",
|
|
97
|
+
description: "List artifact storage records",
|
|
98
|
+
inputSchema: zod_1.z.object({
|
|
99
|
+
org: zod_1.z.string().describe("org"),
|
|
100
|
+
subject_digest: zod_1.z.string().describe("subject_digest")
|
|
101
|
+
}),
|
|
102
|
+
handler: async (args) => {
|
|
103
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/artifacts/${args.subject_digest}/metadata/storage-records`, undefined, undefined);
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "github_orgs_list_attestations_bulk",
|
|
108
|
+
description: "List attestations by bulk subject digests",
|
|
109
|
+
inputSchema: zod_1.z.object({
|
|
110
|
+
org: zod_1.z.string().describe("org"),
|
|
111
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
112
|
+
before: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
113
|
+
after: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
114
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
115
|
+
}),
|
|
116
|
+
handler: async (args) => {
|
|
117
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/attestations/bulk-list`, args.body, { per_page: args.per_page, before: args.before, after: args.after });
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "github_orgs_delete_attestations_bulk",
|
|
122
|
+
description: "Delete attestations in bulk",
|
|
123
|
+
inputSchema: zod_1.z.object({
|
|
124
|
+
org: zod_1.z.string().describe("org"),
|
|
125
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
126
|
+
}),
|
|
127
|
+
handler: async (args) => {
|
|
128
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/attestations/delete-request`, args.body, undefined);
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "github_orgs_delete_attestations_by_subject_digest",
|
|
133
|
+
description: "Delete attestations by subject digest",
|
|
134
|
+
inputSchema: zod_1.z.object({
|
|
135
|
+
org: zod_1.z.string().describe("org"),
|
|
136
|
+
subject_digest: zod_1.z.string().describe("subject_digest")
|
|
137
|
+
}),
|
|
138
|
+
handler: async (args) => {
|
|
139
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/attestations/digest/${args.subject_digest}`, undefined, undefined);
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "github_orgs_list_attestation_repositories",
|
|
144
|
+
description: "List attestation repositories",
|
|
145
|
+
inputSchema: zod_1.z.object({
|
|
146
|
+
org: zod_1.z.string().describe("org"),
|
|
147
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
148
|
+
before: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
149
|
+
after: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
150
|
+
predicate_type: zod_1.z.string().optional().describe("Optional filter for fetching attestations with a given predicate type. This option accepts `provenance`, `sbom`, `release`, or freeform text for custom predicate types.")
|
|
151
|
+
}),
|
|
152
|
+
handler: async (args) => {
|
|
153
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/attestations/repositories`, undefined, { per_page: args.per_page, before: args.before, after: args.after, predicate_type: args.predicate_type });
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "github_orgs_delete_attestations_by_id",
|
|
158
|
+
description: "Delete attestations by ID",
|
|
159
|
+
inputSchema: zod_1.z.object({
|
|
160
|
+
org: zod_1.z.string().describe("org"),
|
|
161
|
+
attestation_id: zod_1.z.string().describe("attestation_id")
|
|
162
|
+
}),
|
|
163
|
+
handler: async (args) => {
|
|
164
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/attestations/${args.attestation_id}`, undefined, undefined);
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "github_orgs_list_attestations",
|
|
169
|
+
description: "List attestations",
|
|
170
|
+
inputSchema: zod_1.z.object({
|
|
171
|
+
org: zod_1.z.string().describe("org"),
|
|
172
|
+
subject_digest: zod_1.z.string().describe("subject_digest"),
|
|
173
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
174
|
+
before: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
175
|
+
after: zod_1.z.string().optional().describe("A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
176
|
+
predicate_type: zod_1.z.string().optional().describe("Optional filter for fetching attestations with a given predicate type. This option accepts `provenance`, `sbom`, `release`, or freeform text for custom predicate types.")
|
|
177
|
+
}),
|
|
178
|
+
handler: async (args) => {
|
|
179
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/attestations/${args.subject_digest}`, undefined, { per_page: args.per_page, before: args.before, after: args.after, predicate_type: args.predicate_type });
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: "github_orgs_list_blocked_users",
|
|
184
|
+
description: "List users blocked by an organization",
|
|
185
|
+
inputSchema: zod_1.z.object({
|
|
186
|
+
org: zod_1.z.string().describe("org"),
|
|
187
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
188
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
189
|
+
}),
|
|
190
|
+
handler: async (args) => {
|
|
191
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/blocks`, undefined, { per_page: args.per_page, page: args.page });
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "github_orgs_check_blocked_user",
|
|
196
|
+
description: "Check if a user is blocked by an organization",
|
|
197
|
+
inputSchema: zod_1.z.object({
|
|
198
|
+
org: zod_1.z.string().describe("org"),
|
|
199
|
+
username: zod_1.z.string().describe("username")
|
|
200
|
+
}),
|
|
201
|
+
handler: async (args) => {
|
|
202
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/blocks/${args.username}`, undefined, undefined);
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "github_orgs_block_user",
|
|
207
|
+
description: "Block a user from an organization",
|
|
208
|
+
inputSchema: zod_1.z.object({
|
|
209
|
+
org: zod_1.z.string().describe("org"),
|
|
210
|
+
username: zod_1.z.string().describe("username")
|
|
211
|
+
}),
|
|
212
|
+
handler: async (args) => {
|
|
213
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/blocks/${args.username}`, undefined, undefined);
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "github_orgs_unblock_user",
|
|
218
|
+
description: "Unblock a user from an organization",
|
|
219
|
+
inputSchema: zod_1.z.object({
|
|
220
|
+
org: zod_1.z.string().describe("org"),
|
|
221
|
+
username: zod_1.z.string().describe("username")
|
|
222
|
+
}),
|
|
223
|
+
handler: async (args) => {
|
|
224
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/blocks/${args.username}`, undefined, undefined);
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "github_orgs_list_failed_invitations",
|
|
229
|
+
description: "List failed organization invitations",
|
|
230
|
+
inputSchema: zod_1.z.object({
|
|
231
|
+
org: zod_1.z.string().describe("org"),
|
|
232
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
233
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
234
|
+
}),
|
|
235
|
+
handler: async (args) => {
|
|
236
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/failed_invitations`, undefined, { per_page: args.per_page, page: args.page });
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: "github_orgs_list_webhooks",
|
|
241
|
+
description: "List organization webhooks",
|
|
242
|
+
inputSchema: zod_1.z.object({
|
|
243
|
+
org: zod_1.z.string().describe("org"),
|
|
244
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
245
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
246
|
+
}),
|
|
247
|
+
handler: async (args) => {
|
|
248
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/hooks`, undefined, { per_page: args.per_page, page: args.page });
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: "github_orgs_create_webhook",
|
|
253
|
+
description: "Create an organization webhook",
|
|
254
|
+
inputSchema: zod_1.z.object({
|
|
255
|
+
org: zod_1.z.string().describe("org"),
|
|
256
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
257
|
+
}),
|
|
258
|
+
handler: async (args) => {
|
|
259
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/hooks`, args.body, undefined);
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "github_orgs_get_webhook",
|
|
264
|
+
description: "Get an organization webhook",
|
|
265
|
+
inputSchema: zod_1.z.object({
|
|
266
|
+
org: zod_1.z.string().describe("org"),
|
|
267
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
268
|
+
}),
|
|
269
|
+
handler: async (args) => {
|
|
270
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/hooks/${args.hook_id}`, undefined, undefined);
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: "github_orgs_update_webhook",
|
|
275
|
+
description: "Update an organization webhook",
|
|
276
|
+
inputSchema: zod_1.z.object({
|
|
277
|
+
org: zod_1.z.string().describe("org"),
|
|
278
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
279
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
280
|
+
}),
|
|
281
|
+
handler: async (args) => {
|
|
282
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/hooks/${args.hook_id}`, args.body, undefined);
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "github_orgs_delete_webhook",
|
|
287
|
+
description: "Delete an organization webhook",
|
|
288
|
+
inputSchema: zod_1.z.object({
|
|
289
|
+
org: zod_1.z.string().describe("org"),
|
|
290
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
291
|
+
}),
|
|
292
|
+
handler: async (args) => {
|
|
293
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/hooks/${args.hook_id}`, undefined, undefined);
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: "github_orgs_get_webhook_config_for_org",
|
|
298
|
+
description: "Get a webhook configuration for an organization",
|
|
299
|
+
inputSchema: zod_1.z.object({
|
|
300
|
+
org: zod_1.z.string().describe("org"),
|
|
301
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
302
|
+
}),
|
|
303
|
+
handler: async (args) => {
|
|
304
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/hooks/${args.hook_id}/config`, undefined, undefined);
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "github_orgs_update_webhook_config_for_org",
|
|
309
|
+
description: "Update a webhook configuration for an organization",
|
|
310
|
+
inputSchema: zod_1.z.object({
|
|
311
|
+
org: zod_1.z.string().describe("org"),
|
|
312
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
313
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
314
|
+
}),
|
|
315
|
+
handler: async (args) => {
|
|
316
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/hooks/${args.hook_id}/config`, args.body, undefined);
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "github_orgs_list_webhook_deliveries",
|
|
321
|
+
description: "List deliveries for an organization webhook",
|
|
322
|
+
inputSchema: zod_1.z.object({
|
|
323
|
+
org: zod_1.z.string().describe("org"),
|
|
324
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
325
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
326
|
+
cursor: zod_1.z.string().optional().describe("Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors."),
|
|
327
|
+
status: zod_1.z.enum(["success", "failure"]).optional().describe("Returns webhook deliveries filtered by delivery outcome classification based on `status_code` range. A `status` of `success` returns deliveries with a `status_code` in the 200-399 range (inclusive). A `status` of `failure` returns deliveries with a `status_code` in the 400-599 range (inclusive).")
|
|
328
|
+
}),
|
|
329
|
+
handler: async (args) => {
|
|
330
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/hooks/${args.hook_id}/deliveries`, undefined, { per_page: args.per_page, cursor: args.cursor, status: args.status });
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
name: "github_orgs_get_webhook_delivery",
|
|
335
|
+
description: "Get a webhook delivery for an organization webhook",
|
|
336
|
+
inputSchema: zod_1.z.object({
|
|
337
|
+
org: zod_1.z.string().describe("org"),
|
|
338
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
339
|
+
delivery_id: zod_1.z.string().describe("delivery_id")
|
|
340
|
+
}),
|
|
341
|
+
handler: async (args) => {
|
|
342
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/hooks/${args.hook_id}/deliveries/${args.delivery_id}`, undefined, undefined);
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
name: "github_orgs_redeliver_webhook_delivery",
|
|
347
|
+
description: "Redeliver a delivery for an organization webhook",
|
|
348
|
+
inputSchema: zod_1.z.object({
|
|
349
|
+
org: zod_1.z.string().describe("org"),
|
|
350
|
+
hook_id: zod_1.z.string().describe("hook_id"),
|
|
351
|
+
delivery_id: zod_1.z.string().describe("delivery_id")
|
|
352
|
+
}),
|
|
353
|
+
handler: async (args) => {
|
|
354
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/hooks/${args.hook_id}/deliveries/${args.delivery_id}/attempts`, undefined, undefined);
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "github_orgs_ping_webhook",
|
|
359
|
+
description: "Ping an organization webhook",
|
|
360
|
+
inputSchema: zod_1.z.object({
|
|
361
|
+
org: zod_1.z.string().describe("org"),
|
|
362
|
+
hook_id: zod_1.z.string().describe("hook_id")
|
|
363
|
+
}),
|
|
364
|
+
handler: async (args) => {
|
|
365
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/hooks/${args.hook_id}/pings`, undefined, undefined);
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "github_api_insights_get_route_stats_by_actor",
|
|
370
|
+
description: "Get route stats by actor",
|
|
371
|
+
inputSchema: zod_1.z.object({
|
|
372
|
+
org: zod_1.z.string().describe("org"),
|
|
373
|
+
actor_type: zod_1.z.string().describe("actor_type"),
|
|
374
|
+
actor_id: zod_1.z.string().describe("actor_id"),
|
|
375
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
376
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
377
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
378
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
379
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
380
|
+
sort: zod_1.z.array(zod_1.z.enum(["last_rate_limited_timestamp", "last_request_timestamp", "rate_limited_request_count", "http_method", "api_route", "total_request_count"])).optional().describe("The property to sort the results by."),
|
|
381
|
+
api_route_substring: zod_1.z.string().optional().describe("Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.")
|
|
382
|
+
}),
|
|
383
|
+
handler: async (args) => {
|
|
384
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/route-stats/${args.actor_type}/${args.actor_id}`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp, page: args.page, per_page: args.per_page, direction: args.direction, sort: args.sort, api_route_substring: args.api_route_substring });
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: "github_api_insights_get_subject_stats",
|
|
389
|
+
description: "Get subject stats",
|
|
390
|
+
inputSchema: zod_1.z.object({
|
|
391
|
+
org: zod_1.z.string().describe("org"),
|
|
392
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
393
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
394
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
395
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
396
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
397
|
+
sort: zod_1.z.array(zod_1.z.enum(["last_rate_limited_timestamp", "last_request_timestamp", "rate_limited_request_count", "subject_name", "total_request_count"])).optional().describe("The property to sort the results by."),
|
|
398
|
+
subject_name_substring: zod_1.z.string().optional().describe("Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.")
|
|
399
|
+
}),
|
|
400
|
+
handler: async (args) => {
|
|
401
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/subject-stats`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp, page: args.page, per_page: args.per_page, direction: args.direction, sort: args.sort, subject_name_substring: args.subject_name_substring });
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: "github_api_insights_get_summary_stats",
|
|
406
|
+
description: "Get summary stats",
|
|
407
|
+
inputSchema: zod_1.z.object({
|
|
408
|
+
org: zod_1.z.string().describe("org"),
|
|
409
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
410
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.")
|
|
411
|
+
}),
|
|
412
|
+
handler: async (args) => {
|
|
413
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/summary-stats`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp });
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "github_api_insights_get_summary_stats_by_user",
|
|
418
|
+
description: "Get summary stats by user",
|
|
419
|
+
inputSchema: zod_1.z.object({
|
|
420
|
+
org: zod_1.z.string().describe("org"),
|
|
421
|
+
user_id: zod_1.z.string().describe("user_id"),
|
|
422
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
423
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.")
|
|
424
|
+
}),
|
|
425
|
+
handler: async (args) => {
|
|
426
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/summary-stats/users/${args.user_id}`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp });
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
name: "github_api_insights_get_summary_stats_by_actor",
|
|
431
|
+
description: "Get summary stats by actor",
|
|
432
|
+
inputSchema: zod_1.z.object({
|
|
433
|
+
org: zod_1.z.string().describe("org"),
|
|
434
|
+
actor_type: zod_1.z.string().describe("actor_type"),
|
|
435
|
+
actor_id: zod_1.z.string().describe("actor_id"),
|
|
436
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
437
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.")
|
|
438
|
+
}),
|
|
439
|
+
handler: async (args) => {
|
|
440
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/summary-stats/${args.actor_type}/${args.actor_id}`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp });
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
name: "github_api_insights_get_time_stats",
|
|
445
|
+
description: "Get time stats",
|
|
446
|
+
inputSchema: zod_1.z.object({
|
|
447
|
+
org: zod_1.z.string().describe("org"),
|
|
448
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
449
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
450
|
+
timestamp_increment: zod_1.z.string().describe("The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)")
|
|
451
|
+
}),
|
|
452
|
+
handler: async (args) => {
|
|
453
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/time-stats`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp, timestamp_increment: args.timestamp_increment });
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: "github_api_insights_get_time_stats_by_user",
|
|
458
|
+
description: "Get time stats by user",
|
|
459
|
+
inputSchema: zod_1.z.object({
|
|
460
|
+
org: zod_1.z.string().describe("org"),
|
|
461
|
+
user_id: zod_1.z.string().describe("user_id"),
|
|
462
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
463
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
464
|
+
timestamp_increment: zod_1.z.string().describe("The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)")
|
|
465
|
+
}),
|
|
466
|
+
handler: async (args) => {
|
|
467
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/time-stats/users/${args.user_id}`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp, timestamp_increment: args.timestamp_increment });
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: "github_api_insights_get_time_stats_by_actor",
|
|
472
|
+
description: "Get time stats by actor",
|
|
473
|
+
inputSchema: zod_1.z.object({
|
|
474
|
+
org: zod_1.z.string().describe("org"),
|
|
475
|
+
actor_type: zod_1.z.string().describe("actor_type"),
|
|
476
|
+
actor_id: zod_1.z.string().describe("actor_id"),
|
|
477
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
478
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
479
|
+
timestamp_increment: zod_1.z.string().describe("The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)")
|
|
480
|
+
}),
|
|
481
|
+
handler: async (args) => {
|
|
482
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/time-stats/${args.actor_type}/${args.actor_id}`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp, timestamp_increment: args.timestamp_increment });
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "github_api_insights_get_user_stats",
|
|
487
|
+
description: "Get user stats",
|
|
488
|
+
inputSchema: zod_1.z.object({
|
|
489
|
+
org: zod_1.z.string().describe("org"),
|
|
490
|
+
user_id: zod_1.z.string().describe("user_id"),
|
|
491
|
+
min_timestamp: zod_1.z.string().describe("The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
492
|
+
max_timestamp: zod_1.z.string().optional().describe("The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
493
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
494
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
495
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
496
|
+
sort: zod_1.z.array(zod_1.z.enum(["last_rate_limited_timestamp", "last_request_timestamp", "rate_limited_request_count", "subject_name", "total_request_count"])).optional().describe("The property to sort the results by."),
|
|
497
|
+
actor_name_substring: zod_1.z.string().optional().describe("Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.")
|
|
498
|
+
}),
|
|
499
|
+
handler: async (args) => {
|
|
500
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/insights/api/user-stats/${args.user_id}`, undefined, { min_timestamp: args.min_timestamp, max_timestamp: args.max_timestamp, page: args.page, per_page: args.per_page, direction: args.direction, sort: args.sort, actor_name_substring: args.actor_name_substring });
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
name: "github_orgs_list_app_installations",
|
|
505
|
+
description: "List app installations for an organization",
|
|
506
|
+
inputSchema: zod_1.z.object({
|
|
507
|
+
org: zod_1.z.string().describe("org"),
|
|
508
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
509
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
510
|
+
}),
|
|
511
|
+
handler: async (args) => {
|
|
512
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/installations`, undefined, { per_page: args.per_page, page: args.page });
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "github_orgs_list_pending_invitations",
|
|
517
|
+
description: "List pending organization invitations",
|
|
518
|
+
inputSchema: zod_1.z.object({
|
|
519
|
+
org: zod_1.z.string().describe("org"),
|
|
520
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
521
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
522
|
+
role: zod_1.z.enum(["all", "admin", "direct_member", "billing_manager", "hiring_manager"]).optional().describe("Filter invitations by their member role."),
|
|
523
|
+
invitation_source: zod_1.z.enum(["all", "member", "scim"]).optional().describe("Filter invitations by their invitation source.")
|
|
524
|
+
}),
|
|
525
|
+
handler: async (args) => {
|
|
526
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/invitations`, undefined, { per_page: args.per_page, page: args.page, role: args.role, invitation_source: args.invitation_source });
|
|
527
|
+
},
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
name: "github_orgs_create_invitation",
|
|
531
|
+
description: "Create an organization invitation",
|
|
532
|
+
inputSchema: zod_1.z.object({
|
|
533
|
+
org: zod_1.z.string().describe("org"),
|
|
534
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
535
|
+
}),
|
|
536
|
+
handler: async (args) => {
|
|
537
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/invitations`, args.body, undefined);
|
|
538
|
+
},
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
name: "github_orgs_cancel_invitation",
|
|
542
|
+
description: "Cancel an organization invitation",
|
|
543
|
+
inputSchema: zod_1.z.object({
|
|
544
|
+
org: zod_1.z.string().describe("org"),
|
|
545
|
+
invitation_id: zod_1.z.string().describe("invitation_id")
|
|
546
|
+
}),
|
|
547
|
+
handler: async (args) => {
|
|
548
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/invitations/${args.invitation_id}`, undefined, undefined);
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
name: "github_orgs_list_invitation_teams",
|
|
553
|
+
description: "List organization invitation teams",
|
|
554
|
+
inputSchema: zod_1.z.object({
|
|
555
|
+
org: zod_1.z.string().describe("org"),
|
|
556
|
+
invitation_id: zod_1.z.string().describe("invitation_id"),
|
|
557
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
558
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
559
|
+
}),
|
|
560
|
+
handler: async (args) => {
|
|
561
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/invitations/${args.invitation_id}/teams`, undefined, { per_page: args.per_page, page: args.page });
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "github_orgs_list_issue_fields",
|
|
566
|
+
description: "List issue fields for an organization",
|
|
567
|
+
inputSchema: zod_1.z.object({
|
|
568
|
+
org: zod_1.z.string().describe("org")
|
|
569
|
+
}),
|
|
570
|
+
handler: async (args) => {
|
|
571
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/issue-fields`, undefined, undefined);
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: "github_orgs_create_issue_field",
|
|
576
|
+
description: "Create issue field for an organization",
|
|
577
|
+
inputSchema: zod_1.z.object({
|
|
578
|
+
org: zod_1.z.string().describe("org"),
|
|
579
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
580
|
+
}),
|
|
581
|
+
handler: async (args) => {
|
|
582
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/issue-fields`, args.body, undefined);
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
name: "github_orgs_update_issue_field",
|
|
587
|
+
description: "Update issue field for an organization",
|
|
588
|
+
inputSchema: zod_1.z.object({
|
|
589
|
+
org: zod_1.z.string().describe("org"),
|
|
590
|
+
issue_field_id: zod_1.z.string().describe("issue_field_id"),
|
|
591
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
592
|
+
}),
|
|
593
|
+
handler: async (args) => {
|
|
594
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/issue-fields/${args.issue_field_id}`, args.body, undefined);
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: "github_orgs_delete_issue_field",
|
|
599
|
+
description: "Delete issue field for an organization",
|
|
600
|
+
inputSchema: zod_1.z.object({
|
|
601
|
+
org: zod_1.z.string().describe("org"),
|
|
602
|
+
issue_field_id: zod_1.z.string().describe("issue_field_id")
|
|
603
|
+
}),
|
|
604
|
+
handler: async (args) => {
|
|
605
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/issue-fields/${args.issue_field_id}`, undefined, undefined);
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "github_orgs_list_issue_types",
|
|
610
|
+
description: "List issue types for an organization",
|
|
611
|
+
inputSchema: zod_1.z.object({
|
|
612
|
+
org: zod_1.z.string().describe("org")
|
|
613
|
+
}),
|
|
614
|
+
handler: async (args) => {
|
|
615
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/issue-types`, undefined, undefined);
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
name: "github_orgs_create_issue_type",
|
|
620
|
+
description: "Create issue type for an organization",
|
|
621
|
+
inputSchema: zod_1.z.object({
|
|
622
|
+
org: zod_1.z.string().describe("org"),
|
|
623
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
624
|
+
}),
|
|
625
|
+
handler: async (args) => {
|
|
626
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/issue-types`, args.body, undefined);
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
name: "github_orgs_update_issue_type",
|
|
631
|
+
description: "Update issue type for an organization",
|
|
632
|
+
inputSchema: zod_1.z.object({
|
|
633
|
+
org: zod_1.z.string().describe("org"),
|
|
634
|
+
issue_type_id: zod_1.z.string().describe("issue_type_id"),
|
|
635
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
636
|
+
}),
|
|
637
|
+
handler: async (args) => {
|
|
638
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/issue-types/${args.issue_type_id}`, args.body, undefined);
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
name: "github_orgs_delete_issue_type",
|
|
643
|
+
description: "Delete issue type for an organization",
|
|
644
|
+
inputSchema: zod_1.z.object({
|
|
645
|
+
org: zod_1.z.string().describe("org"),
|
|
646
|
+
issue_type_id: zod_1.z.string().describe("issue_type_id")
|
|
647
|
+
}),
|
|
648
|
+
handler: async (args) => {
|
|
649
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/issue-types/${args.issue_type_id}`, undefined, undefined);
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "github_orgs_list_members",
|
|
654
|
+
description: "List organization members",
|
|
655
|
+
inputSchema: zod_1.z.object({
|
|
656
|
+
org: zod_1.z.string().describe("org"),
|
|
657
|
+
filter: zod_1.z.enum(["2fa_disabled", "2fa_insecure", "all"]).optional().describe("Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only members with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned. These options are only available for organization owners."),
|
|
658
|
+
role: zod_1.z.enum(["all", "admin", "member"]).optional().describe("Filter members returned by their role."),
|
|
659
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
660
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
661
|
+
}),
|
|
662
|
+
handler: async (args) => {
|
|
663
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/members`, undefined, { filter: args.filter, role: args.role, per_page: args.per_page, page: args.page });
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "github_orgs_check_membership_for_user",
|
|
668
|
+
description: "Check organization membership for a user",
|
|
669
|
+
inputSchema: zod_1.z.object({
|
|
670
|
+
org: zod_1.z.string().describe("org"),
|
|
671
|
+
username: zod_1.z.string().describe("username")
|
|
672
|
+
}),
|
|
673
|
+
handler: async (args) => {
|
|
674
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/members/${args.username}`, undefined, undefined);
|
|
675
|
+
},
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
name: "github_orgs_remove_member",
|
|
679
|
+
description: "Remove an organization member",
|
|
680
|
+
inputSchema: zod_1.z.object({
|
|
681
|
+
org: zod_1.z.string().describe("org"),
|
|
682
|
+
username: zod_1.z.string().describe("username")
|
|
683
|
+
}),
|
|
684
|
+
handler: async (args) => {
|
|
685
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/members/${args.username}`, undefined, undefined);
|
|
686
|
+
},
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
name: "github_orgs_get_membership_for_user",
|
|
690
|
+
description: "Get organization membership for a user",
|
|
691
|
+
inputSchema: zod_1.z.object({
|
|
692
|
+
org: zod_1.z.string().describe("org"),
|
|
693
|
+
username: zod_1.z.string().describe("username")
|
|
694
|
+
}),
|
|
695
|
+
handler: async (args) => {
|
|
696
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/memberships/${args.username}`, undefined, undefined);
|
|
697
|
+
},
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
name: "github_orgs_set_membership_for_user",
|
|
701
|
+
description: "Set organization membership for a user",
|
|
702
|
+
inputSchema: zod_1.z.object({
|
|
703
|
+
org: zod_1.z.string().describe("org"),
|
|
704
|
+
username: zod_1.z.string().describe("username"),
|
|
705
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
706
|
+
}),
|
|
707
|
+
handler: async (args) => {
|
|
708
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/memberships/${args.username}`, args.body, undefined);
|
|
709
|
+
},
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: "github_orgs_remove_membership_for_user",
|
|
713
|
+
description: "Remove organization membership for a user",
|
|
714
|
+
inputSchema: zod_1.z.object({
|
|
715
|
+
org: zod_1.z.string().describe("org"),
|
|
716
|
+
username: zod_1.z.string().describe("username")
|
|
717
|
+
}),
|
|
718
|
+
handler: async (args) => {
|
|
719
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/memberships/${args.username}`, undefined, undefined);
|
|
720
|
+
},
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: "github_orgs_list_org_roles",
|
|
724
|
+
description: "Get all organization roles for an organization",
|
|
725
|
+
inputSchema: zod_1.z.object({
|
|
726
|
+
org: zod_1.z.string().describe("org")
|
|
727
|
+
}),
|
|
728
|
+
handler: async (args) => {
|
|
729
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/organization-roles`, undefined, undefined);
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: "github_orgs_revoke_all_org_roles_team",
|
|
734
|
+
description: "Remove all organization roles for a team",
|
|
735
|
+
inputSchema: zod_1.z.object({
|
|
736
|
+
org: zod_1.z.string().describe("org"),
|
|
737
|
+
team_slug: zod_1.z.string().describe("team_slug")
|
|
738
|
+
}),
|
|
739
|
+
handler: async (args) => {
|
|
740
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/organization-roles/teams/${args.team_slug}`, undefined, undefined);
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
name: "github_orgs_assign_team_to_org_role",
|
|
745
|
+
description: "Assign an organization role to a team",
|
|
746
|
+
inputSchema: zod_1.z.object({
|
|
747
|
+
org: zod_1.z.string().describe("org"),
|
|
748
|
+
team_slug: zod_1.z.string().describe("team_slug"),
|
|
749
|
+
role_id: zod_1.z.string().describe("role_id")
|
|
750
|
+
}),
|
|
751
|
+
handler: async (args) => {
|
|
752
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/organization-roles/teams/${args.team_slug}/${args.role_id}`, undefined, undefined);
|
|
753
|
+
},
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
name: "github_orgs_revoke_org_role_team",
|
|
757
|
+
description: "Remove an organization role from a team",
|
|
758
|
+
inputSchema: zod_1.z.object({
|
|
759
|
+
org: zod_1.z.string().describe("org"),
|
|
760
|
+
team_slug: zod_1.z.string().describe("team_slug"),
|
|
761
|
+
role_id: zod_1.z.string().describe("role_id")
|
|
762
|
+
}),
|
|
763
|
+
handler: async (args) => {
|
|
764
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/organization-roles/teams/${args.team_slug}/${args.role_id}`, undefined, undefined);
|
|
765
|
+
},
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
name: "github_orgs_revoke_all_org_roles_user",
|
|
769
|
+
description: "Remove all organization roles for a user",
|
|
770
|
+
inputSchema: zod_1.z.object({
|
|
771
|
+
org: zod_1.z.string().describe("org"),
|
|
772
|
+
username: zod_1.z.string().describe("username")
|
|
773
|
+
}),
|
|
774
|
+
handler: async (args) => {
|
|
775
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/organization-roles/users/${args.username}`, undefined, undefined);
|
|
776
|
+
},
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
name: "github_orgs_assign_user_to_org_role",
|
|
780
|
+
description: "Assign an organization role to a user",
|
|
781
|
+
inputSchema: zod_1.z.object({
|
|
782
|
+
org: zod_1.z.string().describe("org"),
|
|
783
|
+
username: zod_1.z.string().describe("username"),
|
|
784
|
+
role_id: zod_1.z.string().describe("role_id")
|
|
785
|
+
}),
|
|
786
|
+
handler: async (args) => {
|
|
787
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/organization-roles/users/${args.username}/${args.role_id}`, undefined, undefined);
|
|
788
|
+
},
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
name: "github_orgs_revoke_org_role_user",
|
|
792
|
+
description: "Remove an organization role from a user",
|
|
793
|
+
inputSchema: zod_1.z.object({
|
|
794
|
+
org: zod_1.z.string().describe("org"),
|
|
795
|
+
username: zod_1.z.string().describe("username"),
|
|
796
|
+
role_id: zod_1.z.string().describe("role_id")
|
|
797
|
+
}),
|
|
798
|
+
handler: async (args) => {
|
|
799
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/organization-roles/users/${args.username}/${args.role_id}`, undefined, undefined);
|
|
800
|
+
},
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
name: "github_orgs_get_org_role",
|
|
804
|
+
description: "Get an organization role",
|
|
805
|
+
inputSchema: zod_1.z.object({
|
|
806
|
+
org: zod_1.z.string().describe("org"),
|
|
807
|
+
role_id: zod_1.z.string().describe("role_id")
|
|
808
|
+
}),
|
|
809
|
+
handler: async (args) => {
|
|
810
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/organization-roles/${args.role_id}`, undefined, undefined);
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
name: "github_orgs_list_org_role_teams",
|
|
815
|
+
description: "List teams that are assigned to an organization role",
|
|
816
|
+
inputSchema: zod_1.z.object({
|
|
817
|
+
org: zod_1.z.string().describe("org"),
|
|
818
|
+
role_id: zod_1.z.string().describe("role_id"),
|
|
819
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
820
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
821
|
+
}),
|
|
822
|
+
handler: async (args) => {
|
|
823
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/organization-roles/${args.role_id}/teams`, undefined, { per_page: args.per_page, page: args.page });
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
name: "github_orgs_list_org_role_users",
|
|
828
|
+
description: "List users that are assigned to an organization role",
|
|
829
|
+
inputSchema: zod_1.z.object({
|
|
830
|
+
org: zod_1.z.string().describe("org"),
|
|
831
|
+
role_id: zod_1.z.string().describe("role_id"),
|
|
832
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
833
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
834
|
+
}),
|
|
835
|
+
handler: async (args) => {
|
|
836
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/organization-roles/${args.role_id}/users`, undefined, { per_page: args.per_page, page: args.page });
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
name: "github_orgs_list_outside_collaborators",
|
|
841
|
+
description: "List outside collaborators for an organization",
|
|
842
|
+
inputSchema: zod_1.z.object({
|
|
843
|
+
org: zod_1.z.string().describe("org"),
|
|
844
|
+
filter: zod_1.z.enum(["2fa_disabled", "2fa_insecure", "all"]).optional().describe("Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only outside collaborators with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned."),
|
|
845
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
846
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
847
|
+
}),
|
|
848
|
+
handler: async (args) => {
|
|
849
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/outside_collaborators`, undefined, { filter: args.filter, per_page: args.per_page, page: args.page });
|
|
850
|
+
},
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "github_orgs_convert_member_to_outside_collaborator",
|
|
854
|
+
description: "Convert an organization member to outside collaborator",
|
|
855
|
+
inputSchema: zod_1.z.object({
|
|
856
|
+
org: zod_1.z.string().describe("org"),
|
|
857
|
+
username: zod_1.z.string().describe("username"),
|
|
858
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
859
|
+
}),
|
|
860
|
+
handler: async (args) => {
|
|
861
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/outside_collaborators/${args.username}`, args.body, undefined);
|
|
862
|
+
},
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
name: "github_orgs_remove_outside_collaborator",
|
|
866
|
+
description: "Remove outside collaborator from an organization",
|
|
867
|
+
inputSchema: zod_1.z.object({
|
|
868
|
+
org: zod_1.z.string().describe("org"),
|
|
869
|
+
username: zod_1.z.string().describe("username")
|
|
870
|
+
}),
|
|
871
|
+
handler: async (args) => {
|
|
872
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/outside_collaborators/${args.username}`, undefined, undefined);
|
|
873
|
+
},
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
name: "github_orgs_list_pat_grant_requests",
|
|
877
|
+
description: "List requests to access organization resources with fine-grained personal access tokens",
|
|
878
|
+
inputSchema: zod_1.z.object({
|
|
879
|
+
org: zod_1.z.string().describe("org"),
|
|
880
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
881
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
882
|
+
sort: zod_1.z.enum(["created_at"]).optional().describe("The property by which to sort the results."),
|
|
883
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
884
|
+
owner: zod_1.z.array(zod_1.z.string()).optional().describe("A list of owner usernames to use to filter the results."),
|
|
885
|
+
repository: zod_1.z.string().optional().describe("The name of the repository to use to filter the results."),
|
|
886
|
+
permission: zod_1.z.string().optional().describe("The permission to use to filter the results."),
|
|
887
|
+
last_used_before: zod_1.z.string().optional().describe("Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
888
|
+
last_used_after: zod_1.z.string().optional().describe("Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
889
|
+
token_id: zod_1.z.array(zod_1.z.string()).optional().describe("The ID of the token")
|
|
890
|
+
}),
|
|
891
|
+
handler: async (args) => {
|
|
892
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/personal-access-token-requests`, undefined, { per_page: args.per_page, page: args.page, sort: args.sort, direction: args.direction, owner: args.owner, repository: args.repository, permission: args.permission, last_used_before: args.last_used_before, last_used_after: args.last_used_after, token_id: args.token_id });
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
name: "github_orgs_review_pat_grant_requests_in_bulk",
|
|
897
|
+
description: "Review requests to access organization resources with fine-grained personal access tokens",
|
|
898
|
+
inputSchema: zod_1.z.object({
|
|
899
|
+
org: zod_1.z.string().describe("org"),
|
|
900
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
901
|
+
}),
|
|
902
|
+
handler: async (args) => {
|
|
903
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/personal-access-token-requests`, args.body, undefined);
|
|
904
|
+
},
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
name: "github_orgs_review_pat_grant_request",
|
|
908
|
+
description: "Review a request to access organization resources with a fine-grained personal access token",
|
|
909
|
+
inputSchema: zod_1.z.object({
|
|
910
|
+
org: zod_1.z.string().describe("org"),
|
|
911
|
+
pat_request_id: zod_1.z.string().describe("pat_request_id"),
|
|
912
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
913
|
+
}),
|
|
914
|
+
handler: async (args) => {
|
|
915
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/personal-access-token-requests/${args.pat_request_id}`, args.body, undefined);
|
|
916
|
+
},
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
name: "github_orgs_list_pat_grant_request_repositories",
|
|
920
|
+
description: "List repositories requested to be accessed by a fine-grained personal access token",
|
|
921
|
+
inputSchema: zod_1.z.object({
|
|
922
|
+
org: zod_1.z.string().describe("org"),
|
|
923
|
+
pat_request_id: zod_1.z.string().describe("pat_request_id"),
|
|
924
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
925
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
926
|
+
}),
|
|
927
|
+
handler: async (args) => {
|
|
928
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/personal-access-token-requests/${args.pat_request_id}/repositories`, undefined, { per_page: args.per_page, page: args.page });
|
|
929
|
+
},
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
name: "github_orgs_list_pat_grants",
|
|
933
|
+
description: "List fine-grained personal access tokens with access to organization resources",
|
|
934
|
+
inputSchema: zod_1.z.object({
|
|
935
|
+
org: zod_1.z.string().describe("org"),
|
|
936
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
937
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
938
|
+
sort: zod_1.z.enum(["created_at"]).optional().describe("The property by which to sort the results."),
|
|
939
|
+
direction: zod_1.z.enum(["asc", "desc"]).optional().describe("The direction to sort the results by."),
|
|
940
|
+
owner: zod_1.z.array(zod_1.z.string()).optional().describe("A list of owner usernames to use to filter the results."),
|
|
941
|
+
repository: zod_1.z.string().optional().describe("The name of the repository to use to filter the results."),
|
|
942
|
+
permission: zod_1.z.string().optional().describe("The permission to use to filter the results."),
|
|
943
|
+
last_used_before: zod_1.z.string().optional().describe("Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
944
|
+
last_used_after: zod_1.z.string().optional().describe("Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."),
|
|
945
|
+
token_id: zod_1.z.array(zod_1.z.string()).optional().describe("The ID of the token")
|
|
946
|
+
}),
|
|
947
|
+
handler: async (args) => {
|
|
948
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/personal-access-tokens`, undefined, { per_page: args.per_page, page: args.page, sort: args.sort, direction: args.direction, owner: args.owner, repository: args.repository, permission: args.permission, last_used_before: args.last_used_before, last_used_after: args.last_used_after, token_id: args.token_id });
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
name: "github_orgs_update_pat_accesses",
|
|
953
|
+
description: "Update the access to organization resources via fine-grained personal access tokens",
|
|
954
|
+
inputSchema: zod_1.z.object({
|
|
955
|
+
org: zod_1.z.string().describe("org"),
|
|
956
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
957
|
+
}),
|
|
958
|
+
handler: async (args) => {
|
|
959
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/personal-access-tokens`, args.body, undefined);
|
|
960
|
+
},
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
name: "github_orgs_update_pat_access",
|
|
964
|
+
description: "Update the access a fine-grained personal access token has to organization resources",
|
|
965
|
+
inputSchema: zod_1.z.object({
|
|
966
|
+
org: zod_1.z.string().describe("org"),
|
|
967
|
+
pat_id: zod_1.z.string().describe("pat_id"),
|
|
968
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
969
|
+
}),
|
|
970
|
+
handler: async (args) => {
|
|
971
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/personal-access-tokens/${args.pat_id}`, args.body, undefined);
|
|
972
|
+
},
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
name: "github_orgs_list_pat_grant_repositories",
|
|
976
|
+
description: "List repositories a fine-grained personal access token has access to",
|
|
977
|
+
inputSchema: zod_1.z.object({
|
|
978
|
+
org: zod_1.z.string().describe("org"),
|
|
979
|
+
pat_id: zod_1.z.string().describe("pat_id"),
|
|
980
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
981
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
982
|
+
}),
|
|
983
|
+
handler: async (args) => {
|
|
984
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/personal-access-tokens/${args.pat_id}/repositories`, undefined, { per_page: args.per_page, page: args.page });
|
|
985
|
+
},
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
name: "github_orgs_custom_properties_for_repos_get_organization_definitions",
|
|
989
|
+
description: "Get all custom properties for an organization",
|
|
990
|
+
inputSchema: zod_1.z.object({
|
|
991
|
+
org: zod_1.z.string().describe("org")
|
|
992
|
+
}),
|
|
993
|
+
handler: async (args) => {
|
|
994
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/properties/schema`, undefined, undefined);
|
|
995
|
+
},
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
name: "github_orgs_custom_properties_for_repos_create_or_update_organization_definitions",
|
|
999
|
+
description: "Create or update custom properties for an organization",
|
|
1000
|
+
inputSchema: zod_1.z.object({
|
|
1001
|
+
org: zod_1.z.string().describe("org"),
|
|
1002
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1003
|
+
}),
|
|
1004
|
+
handler: async (args) => {
|
|
1005
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/properties/schema`, args.body, undefined);
|
|
1006
|
+
},
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
name: "github_orgs_custom_properties_for_repos_get_organization_definition",
|
|
1010
|
+
description: "Get a custom property for an organization",
|
|
1011
|
+
inputSchema: zod_1.z.object({
|
|
1012
|
+
org: zod_1.z.string().describe("org"),
|
|
1013
|
+
custom_property_name: zod_1.z.string().describe("custom_property_name")
|
|
1014
|
+
}),
|
|
1015
|
+
handler: async (args) => {
|
|
1016
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/properties/schema/${args.custom_property_name}`, undefined, undefined);
|
|
1017
|
+
},
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
name: "github_orgs_custom_properties_for_repos_create_or_update_organization_definition",
|
|
1021
|
+
description: "Create or update a custom property for an organization",
|
|
1022
|
+
inputSchema: zod_1.z.object({
|
|
1023
|
+
org: zod_1.z.string().describe("org"),
|
|
1024
|
+
custom_property_name: zod_1.z.string().describe("custom_property_name"),
|
|
1025
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1026
|
+
}),
|
|
1027
|
+
handler: async (args) => {
|
|
1028
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/properties/schema/${args.custom_property_name}`, args.body, undefined);
|
|
1029
|
+
},
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
name: "github_orgs_custom_properties_for_repos_delete_organization_definition",
|
|
1033
|
+
description: "Remove a custom property for an organization",
|
|
1034
|
+
inputSchema: zod_1.z.object({
|
|
1035
|
+
org: zod_1.z.string().describe("org"),
|
|
1036
|
+
custom_property_name: zod_1.z.string().describe("custom_property_name")
|
|
1037
|
+
}),
|
|
1038
|
+
handler: async (args) => {
|
|
1039
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/properties/schema/${args.custom_property_name}`, undefined, undefined);
|
|
1040
|
+
},
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
name: "github_orgs_custom_properties_for_repos_get_organization_values",
|
|
1044
|
+
description: "List custom property values for organization repositories",
|
|
1045
|
+
inputSchema: zod_1.z.object({
|
|
1046
|
+
org: zod_1.z.string().describe("org"),
|
|
1047
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1048
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1049
|
+
repository_query: zod_1.z.string().optional().describe("Finds repositories in the organization with a query containing one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See \"[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers.")
|
|
1050
|
+
}),
|
|
1051
|
+
handler: async (args) => {
|
|
1052
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/properties/values`, undefined, { per_page: args.per_page, page: args.page, repository_query: args.repository_query });
|
|
1053
|
+
},
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
name: "github_orgs_custom_properties_for_repos_create_or_update_organization_values",
|
|
1057
|
+
description: "Create or update custom property values for organization repositories",
|
|
1058
|
+
inputSchema: zod_1.z.object({
|
|
1059
|
+
org: zod_1.z.string().describe("org"),
|
|
1060
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1061
|
+
}),
|
|
1062
|
+
handler: async (args) => {
|
|
1063
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/properties/values`, args.body, undefined);
|
|
1064
|
+
},
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
name: "github_orgs_list_public_members",
|
|
1068
|
+
description: "List public organization members",
|
|
1069
|
+
inputSchema: zod_1.z.object({
|
|
1070
|
+
org: zod_1.z.string().describe("org"),
|
|
1071
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1072
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
1073
|
+
}),
|
|
1074
|
+
handler: async (args) => {
|
|
1075
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/public_members`, undefined, { per_page: args.per_page, page: args.page });
|
|
1076
|
+
},
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
name: "github_orgs_check_public_membership_for_user",
|
|
1080
|
+
description: "Check public organization membership for a user",
|
|
1081
|
+
inputSchema: zod_1.z.object({
|
|
1082
|
+
org: zod_1.z.string().describe("org"),
|
|
1083
|
+
username: zod_1.z.string().describe("username")
|
|
1084
|
+
}),
|
|
1085
|
+
handler: async (args) => {
|
|
1086
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/public_members/${args.username}`, undefined, undefined);
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
name: "github_orgs_set_public_membership_for_authenticated_user",
|
|
1091
|
+
description: "Set public organization membership for the authenticated user",
|
|
1092
|
+
inputSchema: zod_1.z.object({
|
|
1093
|
+
org: zod_1.z.string().describe("org"),
|
|
1094
|
+
username: zod_1.z.string().describe("username")
|
|
1095
|
+
}),
|
|
1096
|
+
handler: async (args) => {
|
|
1097
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/public_members/${args.username}`, undefined, undefined);
|
|
1098
|
+
},
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
name: "github_orgs_remove_public_membership_for_authenticated_user",
|
|
1102
|
+
description: "Remove public organization membership for the authenticated user",
|
|
1103
|
+
inputSchema: zod_1.z.object({
|
|
1104
|
+
org: zod_1.z.string().describe("org"),
|
|
1105
|
+
username: zod_1.z.string().describe("username")
|
|
1106
|
+
}),
|
|
1107
|
+
handler: async (args) => {
|
|
1108
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/public_members/${args.username}`, undefined, undefined);
|
|
1109
|
+
},
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: "github_orgs_get_org_ruleset_history",
|
|
1113
|
+
description: "Get organization ruleset history",
|
|
1114
|
+
inputSchema: zod_1.z.object({
|
|
1115
|
+
org: zod_1.z.string().describe("org"),
|
|
1116
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
1117
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1118
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
1119
|
+
}),
|
|
1120
|
+
handler: async (args) => {
|
|
1121
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/rulesets/${args.ruleset_id}/history`, undefined, { per_page: args.per_page, page: args.page });
|
|
1122
|
+
},
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: "github_orgs_get_org_ruleset_version",
|
|
1126
|
+
description: "Get organization ruleset version",
|
|
1127
|
+
inputSchema: zod_1.z.object({
|
|
1128
|
+
org: zod_1.z.string().describe("org"),
|
|
1129
|
+
ruleset_id: zod_1.z.string().describe("ruleset_id"),
|
|
1130
|
+
version_id: zod_1.z.string().describe("version_id")
|
|
1131
|
+
}),
|
|
1132
|
+
handler: async (args) => {
|
|
1133
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/rulesets/${args.ruleset_id}/history/${args.version_id}`, undefined, undefined);
|
|
1134
|
+
},
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
name: "github_orgs_list_security_manager_teams",
|
|
1138
|
+
description: "List security manager teams",
|
|
1139
|
+
inputSchema: zod_1.z.object({
|
|
1140
|
+
org: zod_1.z.string().describe("org")
|
|
1141
|
+
}),
|
|
1142
|
+
handler: async (args) => {
|
|
1143
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/security-managers`, undefined, undefined);
|
|
1144
|
+
},
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
name: "github_orgs_add_security_manager_team",
|
|
1148
|
+
description: "Add a security manager team",
|
|
1149
|
+
inputSchema: zod_1.z.object({
|
|
1150
|
+
org: zod_1.z.string().describe("org"),
|
|
1151
|
+
team_slug: zod_1.z.string().describe("team_slug")
|
|
1152
|
+
}),
|
|
1153
|
+
handler: async (args) => {
|
|
1154
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/security-managers/teams/${args.team_slug}`, undefined, undefined);
|
|
1155
|
+
},
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
name: "github_orgs_remove_security_manager_team",
|
|
1159
|
+
description: "Remove a security manager team",
|
|
1160
|
+
inputSchema: zod_1.z.object({
|
|
1161
|
+
org: zod_1.z.string().describe("org"),
|
|
1162
|
+
team_slug: zod_1.z.string().describe("team_slug")
|
|
1163
|
+
}),
|
|
1164
|
+
handler: async (args) => {
|
|
1165
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/security-managers/teams/${args.team_slug}`, undefined, undefined);
|
|
1166
|
+
},
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: "github_orgs_get_immutable_releases_settings",
|
|
1170
|
+
description: "Get immutable releases settings for an organization",
|
|
1171
|
+
inputSchema: zod_1.z.object({
|
|
1172
|
+
org: zod_1.z.string().describe("org")
|
|
1173
|
+
}),
|
|
1174
|
+
handler: async (args) => {
|
|
1175
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/settings/immutable-releases`, undefined, undefined);
|
|
1176
|
+
},
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: "github_orgs_set_immutable_releases_settings",
|
|
1180
|
+
description: "Set immutable releases settings for an organization",
|
|
1181
|
+
inputSchema: zod_1.z.object({
|
|
1182
|
+
org: zod_1.z.string().describe("org"),
|
|
1183
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1184
|
+
}),
|
|
1185
|
+
handler: async (args) => {
|
|
1186
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/settings/immutable-releases`, args.body, undefined);
|
|
1187
|
+
},
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
name: "github_orgs_get_immutable_releases_settings_repositories",
|
|
1191
|
+
description: "List selected repositories for immutable releases enforcement",
|
|
1192
|
+
inputSchema: zod_1.z.object({
|
|
1193
|
+
org: zod_1.z.string().describe("org"),
|
|
1194
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1195
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
1196
|
+
}),
|
|
1197
|
+
handler: async (args) => {
|
|
1198
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/settings/immutable-releases/repositories`, undefined, { page: args.page, per_page: args.per_page });
|
|
1199
|
+
},
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
name: "github_orgs_set_immutable_releases_settings_repositories",
|
|
1203
|
+
description: "Set selected repositories for immutable releases enforcement",
|
|
1204
|
+
inputSchema: zod_1.z.object({
|
|
1205
|
+
org: zod_1.z.string().describe("org"),
|
|
1206
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1207
|
+
}),
|
|
1208
|
+
handler: async (args) => {
|
|
1209
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/settings/immutable-releases/repositories`, args.body, undefined);
|
|
1210
|
+
},
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
name: "github_orgs_enable_selected_repository_immutable_releases_organization",
|
|
1214
|
+
description: "Enable a selected repository for immutable releases in an organization",
|
|
1215
|
+
inputSchema: zod_1.z.object({
|
|
1216
|
+
org: zod_1.z.string().describe("org"),
|
|
1217
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
1218
|
+
}),
|
|
1219
|
+
handler: async (args) => {
|
|
1220
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/settings/immutable-releases/repositories/${args.repository_id}`, undefined, undefined);
|
|
1221
|
+
},
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
name: "github_orgs_disable_selected_repository_immutable_releases_organization",
|
|
1225
|
+
description: "Disable a selected repository for immutable releases in an organization",
|
|
1226
|
+
inputSchema: zod_1.z.object({
|
|
1227
|
+
org: zod_1.z.string().describe("org"),
|
|
1228
|
+
repository_id: zod_1.z.string().describe("repository_id")
|
|
1229
|
+
}),
|
|
1230
|
+
handler: async (args) => {
|
|
1231
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/settings/immutable-releases/repositories/${args.repository_id}`, undefined, undefined);
|
|
1232
|
+
},
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
name: "github_orgs_enable_or_disable_security_product_on_all_org_repos",
|
|
1236
|
+
description: "Enable or disable a security feature for an organization",
|
|
1237
|
+
inputSchema: zod_1.z.object({
|
|
1238
|
+
org: zod_1.z.string().describe("org"),
|
|
1239
|
+
security_product: zod_1.z.string().describe("security_product"),
|
|
1240
|
+
enablement: zod_1.z.string().describe("enablement"),
|
|
1241
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1242
|
+
}),
|
|
1243
|
+
handler: async (args) => {
|
|
1244
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/${args.security_product}/${args.enablement}`, args.body, undefined);
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
name: "github_orgs_list_memberships_for_authenticated_user",
|
|
1249
|
+
description: "List organization memberships for the authenticated user",
|
|
1250
|
+
inputSchema: zod_1.z.object({
|
|
1251
|
+
state: zod_1.z.enum(["active", "pending"]).optional().describe("Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships."),
|
|
1252
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1253
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
1254
|
+
}),
|
|
1255
|
+
handler: async (args) => {
|
|
1256
|
+
return (0, client_js_1.githubRequest)("GET", `/user/memberships/orgs`, undefined, { state: args.state, per_page: args.per_page, page: args.page });
|
|
1257
|
+
},
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
name: "github_orgs_get_membership_for_authenticated_user",
|
|
1261
|
+
description: "Get an organization membership for the authenticated user",
|
|
1262
|
+
inputSchema: zod_1.z.object({
|
|
1263
|
+
org: zod_1.z.string().describe("org")
|
|
1264
|
+
}),
|
|
1265
|
+
handler: async (args) => {
|
|
1266
|
+
return (0, client_js_1.githubRequest)("GET", `/user/memberships/orgs/${args.org}`, undefined, undefined);
|
|
1267
|
+
},
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
name: "github_orgs_update_membership_for_authenticated_user",
|
|
1271
|
+
description: "Update an organization membership for the authenticated user",
|
|
1272
|
+
inputSchema: zod_1.z.object({
|
|
1273
|
+
org: zod_1.z.string().describe("org"),
|
|
1274
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
1275
|
+
}),
|
|
1276
|
+
handler: async (args) => {
|
|
1277
|
+
return (0, client_js_1.githubRequest)("PATCH", `/user/memberships/orgs/${args.org}`, args.body, undefined);
|
|
1278
|
+
},
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
name: "github_orgs_list_for_authenticated_user",
|
|
1282
|
+
description: "List organizations for the authenticated user",
|
|
1283
|
+
inputSchema: zod_1.z.object({
|
|
1284
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1285
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
1286
|
+
}),
|
|
1287
|
+
handler: async (args) => {
|
|
1288
|
+
return (0, client_js_1.githubRequest)("GET", `/user/orgs`, undefined, { per_page: args.per_page, page: args.page });
|
|
1289
|
+
},
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
name: "github_orgs_list_for_user",
|
|
1293
|
+
description: "List organizations for a user",
|
|
1294
|
+
inputSchema: zod_1.z.object({
|
|
1295
|
+
username: zod_1.z.string().describe("username"),
|
|
1296
|
+
per_page: zod_1.z.number().optional().describe("The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""),
|
|
1297
|
+
page: zod_1.z.number().optional().describe("The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"")
|
|
1298
|
+
}),
|
|
1299
|
+
handler: async (args) => {
|
|
1300
|
+
return (0, client_js_1.githubRequest)("GET", `/users/${args.username}/orgs`, undefined, { per_page: args.per_page, page: args.page });
|
|
1301
|
+
},
|
|
1302
|
+
},
|
|
1303
|
+
];
|
|
1304
|
+
//# sourceMappingURL=orgs.js.map
|