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,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.codeSecurityTools = 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.codeSecurityTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "github_code_security_get_configurations_for_enterprise",
|
|
10
|
+
description: "Get code security configurations for an enterprise",
|
|
11
|
+
inputSchema: zod_1.z.object({
|
|
12
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
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
|
+
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).\""),
|
|
15
|
+
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).\"")
|
|
16
|
+
}),
|
|
17
|
+
handler: async (args) => {
|
|
18
|
+
return (0, client_js_1.githubRequest)("GET", `/enterprises/${args.enterprise}/code-security/configurations`, undefined, { per_page: args.per_page, before: args.before, after: args.after });
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "github_code_security_create_configuration_for_enterprise",
|
|
23
|
+
description: "Create a code security configuration for an enterprise",
|
|
24
|
+
inputSchema: zod_1.z.object({
|
|
25
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
26
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
27
|
+
}),
|
|
28
|
+
handler: async (args) => {
|
|
29
|
+
return (0, client_js_1.githubRequest)("POST", `/enterprises/${args.enterprise}/code-security/configurations`, args.body, undefined);
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "github_code_security_get_default_configurations_for_enterprise",
|
|
34
|
+
description: "Get default code security configurations for an enterprise",
|
|
35
|
+
inputSchema: zod_1.z.object({
|
|
36
|
+
enterprise: zod_1.z.string().describe("enterprise")
|
|
37
|
+
}),
|
|
38
|
+
handler: async (args) => {
|
|
39
|
+
return (0, client_js_1.githubRequest)("GET", `/enterprises/${args.enterprise}/code-security/configurations/defaults`, undefined, undefined);
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "github_code_security_get_single_configuration_for_enterprise",
|
|
44
|
+
description: "Retrieve a code security configuration of an enterprise",
|
|
45
|
+
inputSchema: zod_1.z.object({
|
|
46
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
47
|
+
configuration_id: zod_1.z.string().describe("configuration_id")
|
|
48
|
+
}),
|
|
49
|
+
handler: async (args) => {
|
|
50
|
+
return (0, client_js_1.githubRequest)("GET", `/enterprises/${args.enterprise}/code-security/configurations/${args.configuration_id}`, undefined, undefined);
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "github_code_security_update_enterprise_configuration",
|
|
55
|
+
description: "Update a custom code security configuration for an enterprise",
|
|
56
|
+
inputSchema: zod_1.z.object({
|
|
57
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
58
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
59
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
60
|
+
}),
|
|
61
|
+
handler: async (args) => {
|
|
62
|
+
return (0, client_js_1.githubRequest)("PATCH", `/enterprises/${args.enterprise}/code-security/configurations/${args.configuration_id}`, args.body, undefined);
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "github_code_security_delete_configuration_for_enterprise",
|
|
67
|
+
description: "Delete a code security configuration for an enterprise",
|
|
68
|
+
inputSchema: zod_1.z.object({
|
|
69
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
70
|
+
configuration_id: zod_1.z.string().describe("configuration_id")
|
|
71
|
+
}),
|
|
72
|
+
handler: async (args) => {
|
|
73
|
+
return (0, client_js_1.githubRequest)("DELETE", `/enterprises/${args.enterprise}/code-security/configurations/${args.configuration_id}`, undefined, undefined);
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "github_code_security_attach_enterprise_configuration",
|
|
78
|
+
description: "Attach an enterprise configuration to repositories",
|
|
79
|
+
inputSchema: zod_1.z.object({
|
|
80
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
81
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
82
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
83
|
+
}),
|
|
84
|
+
handler: async (args) => {
|
|
85
|
+
return (0, client_js_1.githubRequest)("POST", `/enterprises/${args.enterprise}/code-security/configurations/${args.configuration_id}/attach`, args.body, undefined);
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "github_code_security_set_configuration_as_default_for_enterprise",
|
|
90
|
+
description: "Set a code security configuration as a default for an enterprise",
|
|
91
|
+
inputSchema: zod_1.z.object({
|
|
92
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
93
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
94
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
95
|
+
}),
|
|
96
|
+
handler: async (args) => {
|
|
97
|
+
return (0, client_js_1.githubRequest)("PUT", `/enterprises/${args.enterprise}/code-security/configurations/${args.configuration_id}/defaults`, args.body, undefined);
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "github_code_security_get_repositories_for_enterprise_configuration",
|
|
102
|
+
description: "Get repositories associated with an enterprise code security configuration",
|
|
103
|
+
inputSchema: zod_1.z.object({
|
|
104
|
+
enterprise: zod_1.z.string().describe("enterprise"),
|
|
105
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
106
|
+
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).\""),
|
|
107
|
+
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).\""),
|
|
108
|
+
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).\""),
|
|
109
|
+
status: zod_1.z.string().optional().describe("A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise`")
|
|
110
|
+
}),
|
|
111
|
+
handler: async (args) => {
|
|
112
|
+
return (0, client_js_1.githubRequest)("GET", `/enterprises/${args.enterprise}/code-security/configurations/${args.configuration_id}/repositories`, undefined, { per_page: args.per_page, before: args.before, after: args.after, status: args.status });
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "github_code_security_get_configurations_for_org",
|
|
117
|
+
description: "Get code security configurations for an organization",
|
|
118
|
+
inputSchema: zod_1.z.object({
|
|
119
|
+
org: zod_1.z.string().describe("org"),
|
|
120
|
+
target_type: zod_1.z.enum(["global", "all"]).optional().describe("The target type of the code security configuration"),
|
|
121
|
+
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).\""),
|
|
122
|
+
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).\""),
|
|
123
|
+
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).\"")
|
|
124
|
+
}),
|
|
125
|
+
handler: async (args) => {
|
|
126
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/code-security/configurations`, undefined, { target_type: args.target_type, per_page: args.per_page, before: args.before, after: args.after });
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "github_code_security_create_configuration",
|
|
131
|
+
description: "Create a code security configuration",
|
|
132
|
+
inputSchema: zod_1.z.object({
|
|
133
|
+
org: zod_1.z.string().describe("org"),
|
|
134
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
135
|
+
}),
|
|
136
|
+
handler: async (args) => {
|
|
137
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/code-security/configurations`, args.body, undefined);
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "github_code_security_get_default_configurations",
|
|
142
|
+
description: "Get default code security configurations",
|
|
143
|
+
inputSchema: zod_1.z.object({
|
|
144
|
+
org: zod_1.z.string().describe("org")
|
|
145
|
+
}),
|
|
146
|
+
handler: async (args) => {
|
|
147
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/code-security/configurations/defaults`, undefined, undefined);
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "github_code_security_detach_configuration",
|
|
152
|
+
description: "Detach configurations from repositories",
|
|
153
|
+
inputSchema: zod_1.z.object({
|
|
154
|
+
org: zod_1.z.string().describe("org")
|
|
155
|
+
}),
|
|
156
|
+
handler: async (args) => {
|
|
157
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/code-security/configurations/detach`, undefined, undefined);
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "github_code_security_get_configuration",
|
|
162
|
+
description: "Get a code security configuration",
|
|
163
|
+
inputSchema: zod_1.z.object({
|
|
164
|
+
org: zod_1.z.string().describe("org"),
|
|
165
|
+
configuration_id: zod_1.z.string().describe("configuration_id")
|
|
166
|
+
}),
|
|
167
|
+
handler: async (args) => {
|
|
168
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/code-security/configurations/${args.configuration_id}`, undefined, undefined);
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "github_code_security_update_configuration",
|
|
173
|
+
description: "Update a code security configuration",
|
|
174
|
+
inputSchema: zod_1.z.object({
|
|
175
|
+
org: zod_1.z.string().describe("org"),
|
|
176
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
177
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
178
|
+
}),
|
|
179
|
+
handler: async (args) => {
|
|
180
|
+
return (0, client_js_1.githubRequest)("PATCH", `/orgs/${args.org}/code-security/configurations/${args.configuration_id}`, args.body, undefined);
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "github_code_security_delete_configuration",
|
|
185
|
+
description: "Delete a code security configuration",
|
|
186
|
+
inputSchema: zod_1.z.object({
|
|
187
|
+
org: zod_1.z.string().describe("org"),
|
|
188
|
+
configuration_id: zod_1.z.string().describe("configuration_id")
|
|
189
|
+
}),
|
|
190
|
+
handler: async (args) => {
|
|
191
|
+
return (0, client_js_1.githubRequest)("DELETE", `/orgs/${args.org}/code-security/configurations/${args.configuration_id}`, undefined, undefined);
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "github_code_security_attach_configuration",
|
|
196
|
+
description: "Attach a configuration to repositories",
|
|
197
|
+
inputSchema: zod_1.z.object({
|
|
198
|
+
org: zod_1.z.string().describe("org"),
|
|
199
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
200
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
201
|
+
}),
|
|
202
|
+
handler: async (args) => {
|
|
203
|
+
return (0, client_js_1.githubRequest)("POST", `/orgs/${args.org}/code-security/configurations/${args.configuration_id}/attach`, args.body, undefined);
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "github_code_security_set_configuration_as_default",
|
|
208
|
+
description: "Set a code security configuration as a default for an organization",
|
|
209
|
+
inputSchema: zod_1.z.object({
|
|
210
|
+
org: zod_1.z.string().describe("org"),
|
|
211
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
212
|
+
body: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe("Request body (JSON object)")
|
|
213
|
+
}),
|
|
214
|
+
handler: async (args) => {
|
|
215
|
+
return (0, client_js_1.githubRequest)("PUT", `/orgs/${args.org}/code-security/configurations/${args.configuration_id}/defaults`, args.body, undefined);
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: "github_code_security_get_repositories_for_configuration",
|
|
220
|
+
description: "Get repositories associated with a code security configuration",
|
|
221
|
+
inputSchema: zod_1.z.object({
|
|
222
|
+
org: zod_1.z.string().describe("org"),
|
|
223
|
+
configuration_id: zod_1.z.string().describe("configuration_id"),
|
|
224
|
+
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).\""),
|
|
225
|
+
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).\""),
|
|
226
|
+
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).\""),
|
|
227
|
+
status: zod_1.z.string().optional().describe("A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise`")
|
|
228
|
+
}),
|
|
229
|
+
handler: async (args) => {
|
|
230
|
+
return (0, client_js_1.githubRequest)("GET", `/orgs/${args.org}/code-security/configurations/${args.configuration_id}/repositories`, undefined, { per_page: args.per_page, before: args.before, after: args.after, status: args.status });
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "github_code_security_get_configuration_for_repository",
|
|
235
|
+
description: "Get the code security configuration associated with a repository",
|
|
236
|
+
inputSchema: zod_1.z.object({
|
|
237
|
+
owner: zod_1.z.string().describe("owner"),
|
|
238
|
+
repo: zod_1.z.string().describe("repo")
|
|
239
|
+
}),
|
|
240
|
+
handler: async (args) => {
|
|
241
|
+
return (0, client_js_1.githubRequest)("GET", `/repos/${args.owner}/${args.repo}/code-security-configuration`, undefined, undefined);
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
];
|
|
245
|
+
//# sourceMappingURL=code-security.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-security.js","sourceRoot":"","sources":["../../src/tools/code-security.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,iBAAiB,GAAG;IAC/B;QACE,IAAI,EAAE,wDAAwD;QAC9D,WAAW,EAAE,oDAAoD;QACjE,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;YAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+LAA+L,CAAC;YACzO,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6VAA6V,CAAC;YACrY,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4VAA4V,CAAC;SACpY,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAAyB,EAAE,EAAE;YAC3C,OAAO,IAAA,yBAAa,EAAC,KAAK,EAA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EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;YACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;SAClC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAAyB,EAAE,EAAE;YAC3C,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,UAAU,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,8BAA8B,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QACrH,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const codesOfConductTools: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
handler: (args: Record<string, any>) => Promise<unknown>;
|
|
7
|
+
}[];
|
|
8
|
+
//# sourceMappingURL=codes-of-conduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codes-of-conduct.d.ts","sourceRoot":"","sources":["../../src/tools/codes-of-conduct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;oBAKN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;GAc5C,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.codesOfConductTools = 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.codesOfConductTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "github_codes_of_conduct_get_all_codes_of_conduct",
|
|
10
|
+
description: "Get all codes of conduct",
|
|
11
|
+
inputSchema: zod_1.z.object({}),
|
|
12
|
+
handler: async (args) => {
|
|
13
|
+
return (0, client_js_1.githubRequest)("GET", `/codes_of_conduct`, undefined, undefined);
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "github_codes_of_conduct_get_conduct_code",
|
|
18
|
+
description: "Get a code of conduct",
|
|
19
|
+
inputSchema: zod_1.z.object({
|
|
20
|
+
key: zod_1.z.string().describe("key")
|
|
21
|
+
}),
|
|
22
|
+
handler: async (args) => {
|
|
23
|
+
return (0, client_js_1.githubRequest)("GET", `/codes_of_conduct/${args.key}`, undefined, undefined);
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=codes-of-conduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codes-of-conduct.js","sourceRoot":"","sources":["../../src/tools/codes-of-conduct.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,mBAAmB,GAAG;IACjC;QACE,IAAI,EAAE,kDAAkD;QACxD,WAAW,EAAE,0BAA0B;QACvC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,KAAK,EAAE,IAAyB,EAAE,EAAE;YAC3C,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QACzE,CAAC;KACF;IACD;QACE,IAAI,EAAE,0CAA0C;QAChD,WAAW,EAAE,uBAAuB;QACpC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACpB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;SAChC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,IAAyB,EAAE,EAAE;YAC3C,OAAO,IAAA,yBAAa,EAAC,KAAK,EAAE,qBAAqB,IAAI,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QACrF,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codespaces.d.ts","sourceRoot":"","sources":["../../src/tools/codespaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;oBAwXF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;GA2K5C,CAAC"}
|