mcp4openapi 0.3.1 → 0.3.4
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 +7 -0
- package/dist/src/auth/oauth-provider.d.ts +1 -0
- package/dist/src/auth/oauth-provider.d.ts.map +1 -1
- package/dist/src/auth/oauth-provider.js +17 -0
- package/dist/src/auth/oauth-provider.js.map +1 -1
- package/dist/src/core/cli-config.d.ts.map +1 -1
- package/dist/src/core/cli-config.js +2 -0
- package/dist/src/core/cli-config.js.map +1 -1
- package/dist/src/core/index.d.ts.map +1 -1
- package/dist/src/core/index.js +18 -3
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/index.js +0 -0
- package/dist/src/profile/profile-allowlist.d.ts +18 -0
- package/dist/src/profile/profile-allowlist.d.ts.map +1 -0
- package/dist/src/profile/profile-allowlist.js +68 -0
- package/dist/src/profile/profile-allowlist.js.map +1 -0
- package/dist/src/profile/profile-registry.d.ts +5 -0
- package/dist/src/profile/profile-registry.d.ts.map +1 -1
- package/dist/src/profile/profile-registry.js +38 -14
- package/dist/src/profile/profile-registry.js.map +1 -1
- package/dist/src/security/ssrf-validator.d.ts +31 -0
- package/dist/src/security/ssrf-validator.d.ts.map +1 -0
- package/dist/src/security/ssrf-validator.js +190 -0
- package/dist/src/security/ssrf-validator.js.map +1 -0
- package/package.json +2 -2
- package/profiles/gitlab/developer-profile-oauth.json +445 -81
- package/profiles/gitlab/developer-profile-oauth.test.json +1037 -12
- package/profiles/gitlab/openapi.yaml +1420 -165
- package/profiles/gitlab/profile-optimized-oauth.json +928 -0
- package/profiles/gitlab/profile-optimized-oauth.test.json +1606 -0
- package/profiles/grafana/openapi.json +28078 -0
- package/profiles/grafana/profile.json +1083 -0
- package/profiles/grafana/profile.test.json +235 -0
- package/profiles/mattermost/openapi.yaml +27434 -0
- package/profiles/mattermost/profile.json +463 -0
- package/profiles/mattermost/profile.test.json +607 -0
- package/profiles/n8n/profile-optimized.json +1002 -364
- package/profiles/n8n/profile-optimized.test.json +43 -43
- package/dist/src/argument-normalizer.d.ts +0 -5
- package/dist/src/argument-normalizer.d.ts.map +0 -1
- package/dist/src/argument-normalizer.js +0 -61
- package/dist/src/argument-normalizer.js.map +0 -1
- package/dist/src/cli-config.d.ts +0 -9
- package/dist/src/cli-config.d.ts.map +0 -1
- package/dist/src/cli-config.js +0 -111
- package/dist/src/cli-config.js.map +0 -1
- package/dist/src/composite-executor.d.ts +0 -77
- package/dist/src/composite-executor.d.ts.map +0 -1
- package/dist/src/composite-executor.js +0 -193
- package/dist/src/composite-executor.js.map +0 -1
- package/dist/src/constants.d.ts +0 -85
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -85
- package/dist/src/constants.js.map +0 -1
- package/dist/src/dag-executor.d.ts +0 -49
- package/dist/src/dag-executor.d.ts.map +0 -1
- package/dist/src/dag-executor.js +0 -138
- package/dist/src/dag-executor.js.map +0 -1
- package/dist/src/errors.d.ts +0 -59
- package/dist/src/errors.d.ts.map +0 -1
- package/dist/src/errors.js +0 -119
- package/dist/src/errors.js.map +0 -1
- package/dist/src/filtering.d.ts +0 -19
- package/dist/src/filtering.d.ts.map +0 -1
- package/dist/src/filtering.js +0 -292
- package/dist/src/filtering.js.map +0 -1
- package/dist/src/http-client-factory.d.ts +0 -62
- package/dist/src/http-client-factory.d.ts.map +0 -1
- package/dist/src/http-client-factory.js +0 -133
- package/dist/src/http-client-factory.js.map +0 -1
- package/dist/src/http-transport-config.d.ts +0 -6
- package/dist/src/http-transport-config.d.ts.map +0 -1
- package/dist/src/http-transport-config.js +0 -47
- package/dist/src/http-transport-config.js.map +0 -1
- package/dist/src/http-transport.d.ts +0 -316
- package/dist/src/http-transport.d.ts.map +0 -1
- package/dist/src/http-transport.js +0 -2412
- package/dist/src/http-transport.js.map +0 -1
- package/dist/src/interceptors.d.ts +0 -116
- package/dist/src/interceptors.d.ts.map +0 -1
- package/dist/src/interceptors.js +0 -392
- package/dist/src/interceptors.js.map +0 -1
- package/dist/src/jsonrpc-validator.d.ts +0 -27
- package/dist/src/jsonrpc-validator.d.ts.map +0 -1
- package/dist/src/jsonrpc-validator.js +0 -58
- package/dist/src/jsonrpc-validator.js.map +0 -1
- package/dist/src/logger.d.ts +0 -59
- package/dist/src/logger.d.ts.map +0 -1
- package/dist/src/logger.js +0 -177
- package/dist/src/logger.js.map +0 -1
- package/dist/src/mcp-server-manager.d.ts +0 -20
- package/dist/src/mcp-server-manager.d.ts.map +0 -1
- package/dist/src/mcp-server-manager.js +0 -38
- package/dist/src/mcp-server-manager.js.map +0 -1
- package/dist/src/mcp-server.d.ts +0 -203
- package/dist/src/mcp-server.d.ts.map +0 -1
- package/dist/src/mcp-server.js +0 -1369
- package/dist/src/mcp-server.js.map +0 -1
- package/dist/src/metrics.d.ts +0 -97
- package/dist/src/metrics.d.ts.map +0 -1
- package/dist/src/metrics.js +0 -273
- package/dist/src/metrics.js.map +0 -1
- package/dist/src/naming-warnings.d.ts +0 -23
- package/dist/src/naming-warnings.d.ts.map +0 -1
- package/dist/src/naming-warnings.js +0 -83
- package/dist/src/naming-warnings.js.map +0 -1
- package/dist/src/naming.d.ts +0 -58
- package/dist/src/naming.d.ts.map +0 -1
- package/dist/src/naming.js +0 -510
- package/dist/src/naming.js.map +0 -1
- package/dist/src/oauth-provider.d.ts +0 -131
- package/dist/src/oauth-provider.d.ts.map +0 -1
- package/dist/src/oauth-provider.js +0 -836
- package/dist/src/oauth-provider.js.map +0 -1
- package/dist/src/openapi-parser.d.ts +0 -70
- package/dist/src/openapi-parser.d.ts.map +0 -1
- package/dist/src/openapi-parser.js +0 -436
- package/dist/src/openapi-parser.js.map +0 -1
- package/dist/src/profile-loader.d.ts +0 -78
- package/dist/src/profile-loader.d.ts.map +0 -1
- package/dist/src/profile-loader.js +0 -483
- package/dist/src/profile-loader.js.map +0 -1
- package/dist/src/profile-registry.d.ts +0 -18
- package/dist/src/profile-registry.d.ts.map +0 -1
- package/dist/src/profile-registry.js +0 -26
- package/dist/src/profile-registry.js.map +0 -1
- package/dist/src/profile-resolver.d.ts +0 -19
- package/dist/src/profile-resolver.d.ts.map +0 -1
- package/dist/src/profile-resolver.js +0 -167
- package/dist/src/profile-resolver.js.map +0 -1
- package/dist/src/proxy-executor.d.ts +0 -86
- package/dist/src/proxy-executor.d.ts.map +0 -1
- package/dist/src/proxy-executor.js +0 -497
- package/dist/src/proxy-executor.js.map +0 -1
- package/dist/src/schema-validator.d.ts +0 -30
- package/dist/src/schema-validator.d.ts.map +0 -1
- package/dist/src/schema-validator.js +0 -128
- package/dist/src/schema-validator.js.map +0 -1
- package/dist/src/startup-profile.d.ts +0 -17
- package/dist/src/startup-profile.d.ts.map +0 -1
- package/dist/src/startup-profile.js +0 -30
- package/dist/src/startup-profile.js.map +0 -1
- package/dist/src/startup-validation.d.ts +0 -11
- package/dist/src/startup-validation.d.ts.map +0 -1
- package/dist/src/startup-validation.js +0 -21
- package/dist/src/startup-validation.js.map +0 -1
- package/dist/src/tool-filter.d.ts +0 -65
- package/dist/src/tool-filter.d.ts.map +0 -1
- package/dist/src/tool-filter.js +0 -471
- package/dist/src/tool-filter.js.map +0 -1
- package/dist/src/tool-generator.d.ts +0 -67
- package/dist/src/tool-generator.d.ts.map +0 -1
- package/dist/src/tool-generator.js +0 -182
- package/dist/src/tool-generator.js.map +0 -1
- package/dist/src/validation-utils.d.ts +0 -49
- package/dist/src/validation-utils.d.ts.map +0 -1
- package/dist/src/validation-utils.js +0 -138
- package/dist/src/validation-utils.js.map +0 -1
- package/profiles/gitlab/developer-profile.json +0 -1508
- package/profiles/gitlab/developer-profile.test.json +0 -3432
|
@@ -80,11 +80,13 @@
|
|
|
80
80
|
|
|
81
81
|
{
|
|
82
82
|
"name": "manage_pipelines_jobs",
|
|
83
|
-
"description": "Run and inspect pipelines/jobs. Actions: 'run_pipeline', 'get_pipeline', 'get_job', 'retry_job', 'cancel_job', 'play_job', 'download_job_artifacts' (proxy download). For 'run_pipeline', pass 'ref'. For 'get_pipeline', pass 'pipeline_id'. For job actions, pass 'job_id'.",
|
|
83
|
+
"description": "Run and inspect pipelines/jobs. Actions: 'list_pipelines', 'run_pipeline', 'get_pipeline', 'list_pipeline_jobs', 'get_job', 'retry_job', 'cancel_job', 'play_job', 'download_job_artifacts' (proxy download), 'download_job_artifact' (single file). For 'list_pipelines', optionally pass 'ref'. For 'run_pipeline', pass 'ref'. For 'get_pipeline' and 'list_pipeline_jobs', pass 'pipeline_id'. For job actions, pass 'job_id'. For 'download_job_artifact', pass 'artifact_path'.",
|
|
84
84
|
"metadata_params": ["action", "project_id", "pipeline_id", "job_id"],
|
|
85
85
|
"operations": {
|
|
86
|
+
"list_pipelines": "getApiV4ProjectsIdPipelines",
|
|
86
87
|
"run_pipeline": "postApiV4ProjectsIdPipeline",
|
|
87
88
|
"get_pipeline": "getApiV4ProjectsIdPipelinesPipelineId",
|
|
89
|
+
"list_pipeline_jobs": "getApiV4ProjectsIdPipelinesPipelineIdJobs",
|
|
88
90
|
"get_job": "getSingleJob",
|
|
89
91
|
"retry_job": "postApiV4ProjectsIdJobsJobIdRetry",
|
|
90
92
|
"play_job": "triggerManualJob",
|
|
@@ -93,17 +95,24 @@
|
|
|
93
95
|
"type": "proxy_download",
|
|
94
96
|
"metadata_endpoint": "getSingleJob",
|
|
95
97
|
"download_endpoint": "getApiV4ProjectsIdJobsJobIdArtifacts"
|
|
98
|
+
},
|
|
99
|
+
"download_job_artifact": {
|
|
100
|
+
"type": "proxy_download",
|
|
101
|
+
"metadata_endpoint": "getSingleJob",
|
|
102
|
+
"download_endpoint": "getApiV4ProjectsIdJobsJobIdArtifactsArtifactPath"
|
|
96
103
|
}
|
|
97
104
|
},
|
|
98
105
|
"response_fields": {
|
|
106
|
+
"list_pipelines": ["id", "status", "ref", "web_url"],
|
|
99
107
|
"run_pipeline": ["id", "status", "ref", "web_url"],
|
|
100
108
|
"get_pipeline": ["id", "status", "ref", "web_url"],
|
|
109
|
+
"list_pipeline_jobs": ["id", "status", "stage", "name", "ref", "web_url"],
|
|
101
110
|
"get_job": ["id", "status", "stage", "name", "ref", "web_url"]
|
|
102
111
|
},
|
|
103
112
|
"parameters": {
|
|
104
113
|
"action": {
|
|
105
114
|
"type": "string",
|
|
106
|
-
"enum": ["run_pipeline", "get_pipeline", "get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts"],
|
|
115
|
+
"enum": ["list_pipelines", "run_pipeline", "get_pipeline", "list_pipeline_jobs", "get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts", "download_job_artifact"],
|
|
107
116
|
"description": "Pipeline/job action to perform",
|
|
108
117
|
"required": true
|
|
109
118
|
},
|
|
@@ -115,51 +124,65 @@
|
|
|
115
124
|
"pipeline_id": {
|
|
116
125
|
"type": "integer",
|
|
117
126
|
"description": "Pipeline ID",
|
|
118
|
-
"required_for": ["get_pipeline"]
|
|
127
|
+
"required_for": ["get_pipeline", "list_pipeline_jobs"]
|
|
119
128
|
},
|
|
120
129
|
"job_id": {
|
|
121
130
|
"type": "integer",
|
|
122
131
|
"description": "Job ID",
|
|
123
|
-
"required_for": ["get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts"]
|
|
132
|
+
"required_for": ["get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts", "download_job_artifact"]
|
|
124
133
|
},
|
|
125
134
|
"ref": {
|
|
126
135
|
"type": "string",
|
|
127
136
|
"description": "Branch or tag to run pipeline on",
|
|
128
137
|
"required_for": ["run_pipeline"]
|
|
138
|
+
},
|
|
139
|
+
"artifact_path": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Path to a file inside the job artifacts archive",
|
|
142
|
+
"required_for": ["download_job_artifact"]
|
|
129
143
|
}
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
146
|
|
|
133
147
|
{
|
|
134
148
|
"name": "manage_labels_milestones",
|
|
135
|
-
"description": "Manage project
|
|
136
|
-
"metadata_params": ["action", "project_id", "milestone_id"],
|
|
149
|
+
"description": "Manage project and group labels/milestones. Actions: 'list_labels', 'list_group_labels', 'create_label', 'delete_label', 'list_milestones', 'list_group_milestones', 'create_milestone', 'update_milestone'. For 'create_label', pass 'name' and 'color'. For 'delete_label', pass 'name'. For 'create_milestone' and 'update_milestone', pass 'title'. For 'update_milestone', also pass 'milestone_id'. For group list actions, pass 'group_id'.",
|
|
150
|
+
"metadata_params": ["action", "project_id", "group_id", "milestone_id"],
|
|
137
151
|
"operations": {
|
|
138
152
|
"list_labels": "getApiV4ProjectsIdLabels",
|
|
153
|
+
"list_group_labels": "getApiV4GroupsIdLabels",
|
|
139
154
|
"create_label": "postApiV4ProjectsIdLabels",
|
|
140
155
|
"delete_label": "deleteApiV4ProjectsIdLabels",
|
|
141
156
|
"list_milestones": "getApiV4ProjectsIdMilestones",
|
|
157
|
+
"list_group_milestones": "getApiV4GroupsIdMilestones",
|
|
142
158
|
"create_milestone": "postApiV4ProjectsIdMilestones",
|
|
143
159
|
"update_milestone": "putApiV4ProjectsIdMilestonesMilestoneId"
|
|
144
160
|
},
|
|
145
161
|
"response_fields": {
|
|
146
162
|
"list_labels": ["id", "name", "color", "description"],
|
|
163
|
+
"list_group_labels": ["id", "name", "color", "description"],
|
|
147
164
|
"create_label": ["id", "name", "color", "description"],
|
|
148
165
|
"list_milestones": ["id", "iid", "title", "state"],
|
|
166
|
+
"list_group_milestones": ["id", "iid", "title", "state"],
|
|
149
167
|
"create_milestone": ["id", "iid", "title", "state"],
|
|
150
168
|
"update_milestone": ["id", "iid", "title", "state"]
|
|
151
169
|
},
|
|
152
170
|
"parameters": {
|
|
153
171
|
"action": {
|
|
154
172
|
"type": "string",
|
|
155
|
-
"enum": ["list_labels", "create_label", "delete_label", "list_milestones", "create_milestone", "update_milestone"],
|
|
173
|
+
"enum": ["list_labels", "list_group_labels", "create_label", "delete_label", "list_milestones", "list_group_milestones", "create_milestone", "update_milestone"],
|
|
156
174
|
"description": "Action to perform",
|
|
157
175
|
"required": true
|
|
158
176
|
},
|
|
159
177
|
"project_id": {
|
|
160
178
|
"type": "string",
|
|
161
179
|
"description": "Project ID",
|
|
162
|
-
"
|
|
180
|
+
"required_for": ["list_labels", "create_label", "delete_label", "list_milestones", "create_milestone", "update_milestone"]
|
|
181
|
+
},
|
|
182
|
+
"group_id": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "Group ID",
|
|
185
|
+
"required_for": ["list_group_labels", "list_group_milestones"]
|
|
163
186
|
},
|
|
164
187
|
"name": {
|
|
165
188
|
"type": "string",
|
|
@@ -282,21 +305,25 @@
|
|
|
282
305
|
|
|
283
306
|
{
|
|
284
307
|
"name": "manage_project_hooks",
|
|
285
|
-
"description": "Manage project webhooks. Actions: 'list_hooks', 'create_hook', 'delete_hook'. For 'create_hook', pass 'url'. For 'delete_hook', pass 'hook_id'.",
|
|
308
|
+
"description": "Manage project webhooks. Actions: 'list_hooks', 'get_hook', 'create_hook', 'update_hook', 'delete_hook'. For 'create_hook' and 'update_hook', pass 'url'. For 'get_hook' and 'delete_hook', pass 'hook_id'.",
|
|
286
309
|
"metadata_params": ["action", "project_id", "hook_id"],
|
|
287
310
|
"operations": {
|
|
288
311
|
"list_hooks": "getApiV4ProjectsIdHooks",
|
|
312
|
+
"get_hook": "getApiV4ProjectsIdHooksHookId",
|
|
289
313
|
"create_hook": "postApiV4ProjectsIdHooks",
|
|
314
|
+
"update_hook": "putApiV4ProjectsIdHooksHookId",
|
|
290
315
|
"delete_hook": "deleteApiV4ProjectsIdHooksHookId"
|
|
291
316
|
},
|
|
292
317
|
"response_fields": {
|
|
293
318
|
"list_hooks": ["id", "url", "push_events", "issues_events", "merge_requests_events"],
|
|
294
|
-
"
|
|
319
|
+
"get_hook": ["id", "url", "push_events", "issues_events", "merge_requests_events"],
|
|
320
|
+
"create_hook": ["id", "url", "push_events", "issues_events", "merge_requests_events"],
|
|
321
|
+
"update_hook": ["id", "url", "push_events", "issues_events", "merge_requests_events"]
|
|
295
322
|
},
|
|
296
323
|
"parameters": {
|
|
297
324
|
"action": {
|
|
298
325
|
"type": "string",
|
|
299
|
-
"enum": ["list_hooks", "create_hook", "delete_hook"],
|
|
326
|
+
"enum": ["list_hooks", "get_hook", "create_hook", "update_hook", "delete_hook"],
|
|
300
327
|
"description": "Action to perform",
|
|
301
328
|
"required": true
|
|
302
329
|
},
|
|
@@ -308,12 +335,12 @@
|
|
|
308
335
|
"hook_id": {
|
|
309
336
|
"type": "integer",
|
|
310
337
|
"description": "Hook ID",
|
|
311
|
-
"required_for": ["delete_hook"]
|
|
338
|
+
"required_for": ["get_hook", "update_hook", "delete_hook"]
|
|
312
339
|
},
|
|
313
340
|
"url": {
|
|
314
341
|
"type": "string",
|
|
315
342
|
"description": "Hook URL",
|
|
316
|
-
"required_for": ["create_hook"]
|
|
343
|
+
"required_for": ["create_hook", "update_hook"]
|
|
317
344
|
},
|
|
318
345
|
"push_events": {
|
|
319
346
|
"type": "boolean",
|
|
@@ -330,6 +357,54 @@
|
|
|
330
357
|
}
|
|
331
358
|
},
|
|
332
359
|
|
|
360
|
+
{
|
|
361
|
+
"name": "manage_project_variables",
|
|
362
|
+
"description": "Manage project variables. Actions: 'list', 'get', 'create', 'update', 'delete'. For 'get', 'update', and 'delete', pass 'key'. For 'create' and 'update', pass 'value'.",
|
|
363
|
+
"metadata_params": ["action", "project_id"],
|
|
364
|
+
"operations": {
|
|
365
|
+
"list": "getApiV4ProjectsIdVariables",
|
|
366
|
+
"get": "getApiV4ProjectsIdVariablesKey",
|
|
367
|
+
"create": "postApiV4ProjectsIdVariables",
|
|
368
|
+
"update": "putApiV4ProjectsIdVariablesKey",
|
|
369
|
+
"delete": "deleteApiV4ProjectsIdVariablesKey"
|
|
370
|
+
},
|
|
371
|
+
"parameters": {
|
|
372
|
+
"action": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"enum": ["list", "get", "create", "update", "delete"],
|
|
375
|
+
"description": "Action to perform",
|
|
376
|
+
"required": true
|
|
377
|
+
},
|
|
378
|
+
"project_id": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "Project ID",
|
|
381
|
+
"required": true
|
|
382
|
+
},
|
|
383
|
+
"key": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"description": "Variable key",
|
|
386
|
+
"required_for": ["get", "update", "delete"]
|
|
387
|
+
},
|
|
388
|
+
"value": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "Variable value",
|
|
391
|
+
"required_for": ["create", "update"]
|
|
392
|
+
},
|
|
393
|
+
"protected": {
|
|
394
|
+
"type": "boolean",
|
|
395
|
+
"description": "Whether the variable is protected"
|
|
396
|
+
},
|
|
397
|
+
"masked": {
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"description": "Whether the variable is masked"
|
|
400
|
+
},
|
|
401
|
+
"environment_scope": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"description": "Environment scope for the variable"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
|
|
333
408
|
{
|
|
334
409
|
"name": "manage_snippets",
|
|
335
410
|
"description": "Read project snippets and download raw content via proxy. Actions: 'list_snippets', 'get_snippet', 'download_snippet'. For 'get_snippet' and 'download_snippet', pass 'snippet_id'.",
|
|
@@ -369,26 +444,28 @@
|
|
|
369
444
|
|
|
370
445
|
{
|
|
371
446
|
"name": "manage_projects",
|
|
372
|
-
"description": "Work with GitLab projects. Actions: 'list' (all projects), 'get' (project details), '
|
|
447
|
+
"description": "Work with GitLab projects. Actions: 'list' (all projects), 'get' (project details), 'list_members' (project members). Use 'list' to discover projects. For 'get' and 'list_members', pass 'project_id'.",
|
|
373
448
|
"metadata_params": ["action", "project_id"],
|
|
374
449
|
"operations": {
|
|
375
450
|
"list": "getApiV4Projects",
|
|
376
|
-
"get": "getApiV4ProjectsId"
|
|
451
|
+
"get": "getApiV4ProjectsId",
|
|
452
|
+
"list_members": "getApiV4ProjectsIdMembers"
|
|
377
453
|
},
|
|
378
454
|
"response_fields": {
|
|
379
|
-
"list": ["id", "name", "path", "path_with_namespace", "description", "visibility", "web_url", "last_activity_at", "star_count", "forks_count", "avatar_url", "namespace"]
|
|
455
|
+
"list": ["id", "name", "path", "path_with_namespace", "description", "visibility", "web_url", "last_activity_at", "star_count", "forks_count", "avatar_url", "namespace"],
|
|
456
|
+
"list_members": ["id", "name", "username", "access_level"]
|
|
380
457
|
},
|
|
381
458
|
"parameters": {
|
|
382
459
|
"action": {
|
|
383
460
|
"type": "string",
|
|
384
|
-
"enum": ["list", "get"],
|
|
461
|
+
"enum": ["list", "get", "list_members"],
|
|
385
462
|
"description": "Action to perform",
|
|
386
463
|
"required": true
|
|
387
464
|
},
|
|
388
465
|
"project_id": {
|
|
389
466
|
"type": "string",
|
|
390
467
|
"description": "Project ID. Use numeric ID (e.g. '123') or URL-encoded path (e.g. 'group%2Fproject').",
|
|
391
|
-
"required_for": ["get"],
|
|
468
|
+
"required_for": ["get", "list_members"],
|
|
392
469
|
"example": "123"
|
|
393
470
|
},
|
|
394
471
|
"page": {
|
|
@@ -403,22 +480,55 @@
|
|
|
403
480
|
},
|
|
404
481
|
"search": {
|
|
405
482
|
"type": "string",
|
|
406
|
-
"description": "Search for projects by name or description"
|
|
483
|
+
"description": "Search for projects by name or description",
|
|
484
|
+
"required_for": ["list"]
|
|
485
|
+
},
|
|
486
|
+
"archived": {
|
|
487
|
+
"type": "boolean",
|
|
488
|
+
"description": "Limit by archived status",
|
|
489
|
+
"required_for": ["list"]
|
|
490
|
+
},
|
|
491
|
+
"id_after": {
|
|
492
|
+
"type": "integer",
|
|
493
|
+
"description": "Limit results to projects with IDs greater than the specified ID",
|
|
494
|
+
"required_for": ["list"]
|
|
495
|
+
},
|
|
496
|
+
"id_before": {
|
|
497
|
+
"type": "integer",
|
|
498
|
+
"description": "Limit results to projects with IDs less than the specified ID",
|
|
499
|
+
"required_for": ["list"]
|
|
500
|
+
},
|
|
501
|
+
"min_access_level": {
|
|
502
|
+
"type": "integer",
|
|
503
|
+
"description": "Limit to projects with at least the specified access level",
|
|
504
|
+
"required_for": ["list"]
|
|
505
|
+
},
|
|
506
|
+
"order_by": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"description": "Order results by supported fields",
|
|
509
|
+
"required_for": ["list"]
|
|
407
510
|
},
|
|
408
511
|
"owned": {
|
|
409
512
|
"type": "boolean",
|
|
410
|
-
"description": "Limit to projects owned by current user"
|
|
513
|
+
"description": "Limit to projects owned by current user",
|
|
514
|
+
"required_for": ["list"]
|
|
411
515
|
},
|
|
412
516
|
"membership": {
|
|
413
517
|
"type": "boolean",
|
|
414
|
-
"description": "Limit to projects current user is a member of"
|
|
518
|
+
"description": "Limit to projects current user is a member of",
|
|
519
|
+
"required_for": ["list"]
|
|
520
|
+
},
|
|
521
|
+
"simple": {
|
|
522
|
+
"type": "boolean",
|
|
523
|
+
"description": "Return only limited fields for each project",
|
|
524
|
+
"required_for": ["list"]
|
|
415
525
|
}
|
|
416
526
|
}
|
|
417
527
|
},
|
|
418
528
|
|
|
419
529
|
{
|
|
420
530
|
"name": "manage_merge_requests",
|
|
421
|
-
"description": "Work with merge requests. Actions: 'list' (all MRs in project), 'get' (single MR details), 'create' (create new MR), 'update' (update MR), 'delete' (delete MR - admins only), 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment), 'download_note_attachment' (download note attachment via proxy), 'list_discussions', 'get_discussion', 'create_discussion', 'reply_discussion', 'delete_discussion', 'set_discussion_resolved', 'get_approvals', 'approve', 'unapprove', '
|
|
531
|
+
"description": "Work with merge requests. Actions: 'list' (all MRs in project), 'get' (single MR details), 'create' (create new MR), 'update' (update MR), 'delete' (delete MR - admins only), 'merge' (accept MR), 'list_commits', 'list_diffs', 'list_raw_diffs', 'list_pipelines', 'create_pipeline', 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment), 'download_note_attachment' (download note attachment via proxy), 'list_discussions', 'get_discussion', 'create_discussion', 'reply_discussion', 'delete_discussion', 'set_discussion_resolved', 'get_approvals', 'approve', 'unapprove', 'list_versions' (list diff versions), 'get_version' (specific diff version), 'list_award_emoji', 'get_award_emoji', 'create_award_emoji', 'delete_award_emoji', 'list_note_award_emoji', 'get_note_award_emoji', 'create_note_award_emoji', 'delete_note_award_emoji'. Use 'list' to see all merge requests, filter by state (opened, closed, merged, all). For actions that target a specific MR, pass 'merge_request_iid'.",
|
|
422
532
|
"metadata_params": ["action", "project_id", "merge_request_iid", "note_id", "award_id", "discussion_id", "version_id"],
|
|
423
533
|
"operations": {
|
|
424
534
|
"list": "getApiV4ProjectsIdMergeRequests",
|
|
@@ -426,6 +536,12 @@
|
|
|
426
536
|
"create": "postApiV4ProjectsIdMergeRequests",
|
|
427
537
|
"update": "putApiV4ProjectsIdMergeRequestsMergeRequestIid",
|
|
428
538
|
"delete": "deleteApiV4ProjectsIdMergeRequestsMergeRequestIid",
|
|
539
|
+
"merge": "putApiV4ProjectsIdMergeRequestsMergeRequestIidMerge",
|
|
540
|
+
"list_commits": "getApiV4ProjectsIdMergeRequestsMergeRequestIidCommits",
|
|
541
|
+
"list_diffs": "getApiV4ProjectsIdMergeRequestsMergeRequestIidDiffs",
|
|
542
|
+
"list_raw_diffs": "getApiV4ProjectsIdMergeRequestsMergeRequestIidRawDiffs",
|
|
543
|
+
"list_pipelines": "getApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines",
|
|
544
|
+
"create_pipeline": "postApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines",
|
|
429
545
|
"list_notes": "getApiV4ProjectsIdMergeRequestsMergeRequestIidNotes",
|
|
430
546
|
"get_note": "getApiV4ProjectsIdMergeRequestsMergeRequestIidNotesNoteId",
|
|
431
547
|
"create_note": "postApiV4ProjectsIdMergeRequestsMergeRequestIidNotes",
|
|
@@ -445,7 +561,6 @@
|
|
|
445
561
|
"get_approvals": "getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals",
|
|
446
562
|
"approve": "postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove",
|
|
447
563
|
"unapprove": "postApiV4ProjectsIdMergeRequestsMergeRequestIidUnapprove",
|
|
448
|
-
"get_changes": "getApiV4ProjectsIdMergeRequestsMergeRequestIidChanges",
|
|
449
564
|
"list_versions": "getApiV4ProjectsIdMergeRequestsMergeRequestIidVersions",
|
|
450
565
|
"get_version": "getApiV4ProjectsIdMergeRequestsMergeRequestIidVersionsVersionId",
|
|
451
566
|
"list_award_emoji": "getApiV4ProjectsIdMergeRequestsMergeRequestIidAwardEmoji",
|
|
@@ -461,6 +576,11 @@
|
|
|
461
576
|
"list": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
462
577
|
"create": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at"],
|
|
463
578
|
"update": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
579
|
+
"merge": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
580
|
+
"list_commits": ["id", "short_id", "title", "message", "author_name", "authored_date", "committed_date"],
|
|
581
|
+
"list_diffs": ["old_path", "new_path", "new_file", "renamed_file", "deleted_file", "diff"],
|
|
582
|
+
"list_pipelines": ["id", "status", "ref", "sha", "web_url"],
|
|
583
|
+
"create_pipeline": ["id", "status", "ref", "sha", "web_url"],
|
|
464
584
|
"list_notes": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"],
|
|
465
585
|
"get_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential", "attachment"],
|
|
466
586
|
"create_note": ["id", "body", "author", "created_at", "system", "confidential"],
|
|
@@ -473,7 +593,6 @@
|
|
|
473
593
|
"get_approvals": ["approvals_required", "approvals_left", "approved_by"],
|
|
474
594
|
"approve": ["approvals_required", "approvals_left", "approved_by"],
|
|
475
595
|
"unapprove": ["approvals_required", "approvals_left", "approved_by"],
|
|
476
|
-
"get_changes": ["id", "iid", "title", "state", "changes"],
|
|
477
596
|
"list_versions": ["id", "short_commit_id", "created_at", "real_size", "commits_count", "head_commit_sha", "base_commit_sha", "start_commit_sha"],
|
|
478
597
|
"get_version": ["id", "head_commit_sha", "base_commit_sha", "start_commit_sha", "real_size", "created_at", "diffs"],
|
|
479
598
|
"list_award_emoji": ["id", "name", "user", "created_at", "updated_at", "awardable_id", "awardable_type"],
|
|
@@ -486,7 +605,7 @@
|
|
|
486
605
|
"parameters": {
|
|
487
606
|
"action": {
|
|
488
607
|
"type": "string",
|
|
489
|
-
"enum": ["list", "get", "create", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "
|
|
608
|
+
"enum": ["list", "get", "create", "update", "delete", "merge", "list_commits", "list_diffs", "list_raw_diffs", "list_pipelines", "create_pipeline", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "list_versions", "get_version", "list_award_emoji", "get_award_emoji", "create_award_emoji", "delete_award_emoji", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"],
|
|
490
609
|
"description": "Action to perform",
|
|
491
610
|
"required": true
|
|
492
611
|
},
|
|
@@ -499,7 +618,7 @@
|
|
|
499
618
|
"merge_request_iid": {
|
|
500
619
|
"type": "integer",
|
|
501
620
|
"description": "The internal ID of the merge request",
|
|
502
|
-
"required_for": ["get", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "
|
|
621
|
+
"required_for": ["get", "update", "delete", "merge", "list_commits", "list_diffs", "list_raw_diffs", "list_pipelines", "create_pipeline", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "list_versions", "get_version", "list_award_emoji", "get_award_emoji", "create_award_emoji", "delete_award_emoji", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"]
|
|
503
622
|
},
|
|
504
623
|
"discussion_id": {
|
|
505
624
|
"type": "string",
|
|
@@ -609,7 +728,116 @@
|
|
|
609
728
|
"type": "string",
|
|
610
729
|
"enum": ["opened", "closed", "merged", "all"],
|
|
611
730
|
"description": "Filter by merge request state",
|
|
612
|
-
"default": "opened"
|
|
731
|
+
"default": "opened",
|
|
732
|
+
"required_for": ["list"]
|
|
733
|
+
},
|
|
734
|
+
"scope": {
|
|
735
|
+
"type": "string",
|
|
736
|
+
"enum": ["created_by_me", "assigned_to_me", "reviews_for_me", "all"],
|
|
737
|
+
"description": "Filter by merge request scope",
|
|
738
|
+
"required_for": ["list"]
|
|
739
|
+
},
|
|
740
|
+
"search": {
|
|
741
|
+
"type": "string",
|
|
742
|
+
"description": "Search merge requests by title or description",
|
|
743
|
+
"required_for": ["list"]
|
|
744
|
+
},
|
|
745
|
+
"in": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"description": "Search scope (title, description, or title,description)",
|
|
748
|
+
"required_for": ["list"]
|
|
749
|
+
},
|
|
750
|
+
"labels": {
|
|
751
|
+
"type": "string",
|
|
752
|
+
"description": "Filter by labels (comma-separated)",
|
|
753
|
+
"required_for": ["list"]
|
|
754
|
+
},
|
|
755
|
+
"milestone": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"description": "Filter by milestone title",
|
|
758
|
+
"required_for": ["list"]
|
|
759
|
+
},
|
|
760
|
+
"assignee_id": {
|
|
761
|
+
"type": "integer",
|
|
762
|
+
"description": "Filter by assignee ID",
|
|
763
|
+
"required_for": ["list"]
|
|
764
|
+
},
|
|
765
|
+
"assignee_username": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "Filter by assignee username (single or comma-separated)",
|
|
768
|
+
"required_for": ["list"]
|
|
769
|
+
},
|
|
770
|
+
"author_id": {
|
|
771
|
+
"type": "integer",
|
|
772
|
+
"description": "Filter by author ID",
|
|
773
|
+
"required_for": ["list"]
|
|
774
|
+
},
|
|
775
|
+
"author_username": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"description": "Filter by author username",
|
|
778
|
+
"required_for": ["list"]
|
|
779
|
+
},
|
|
780
|
+
"reviewer_id": {
|
|
781
|
+
"type": "integer",
|
|
782
|
+
"description": "Filter by reviewer ID",
|
|
783
|
+
"required_for": ["list"]
|
|
784
|
+
},
|
|
785
|
+
"reviewer_username": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"description": "Filter by reviewer username",
|
|
788
|
+
"required_for": ["list"]
|
|
789
|
+
},
|
|
790
|
+
"source_branch": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"description": "Filter by source branch",
|
|
793
|
+
"required_for": ["list"]
|
|
794
|
+
},
|
|
795
|
+
"target_branch": {
|
|
796
|
+
"type": "string",
|
|
797
|
+
"description": "Filter by target branch",
|
|
798
|
+
"required_for": ["list"]
|
|
799
|
+
},
|
|
800
|
+
"wip": {
|
|
801
|
+
"type": "string",
|
|
802
|
+
"description": "Filter draft merge requests (yes or no)",
|
|
803
|
+
"required_for": ["list"]
|
|
804
|
+
},
|
|
805
|
+
"view": {
|
|
806
|
+
"type": "string",
|
|
807
|
+
"description": "Return simplified merge request fields (simple)",
|
|
808
|
+
"required_for": ["list"]
|
|
809
|
+
},
|
|
810
|
+
"my_reaction_emoji": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"description": "Filter by your reaction emoji",
|
|
813
|
+
"required_for": ["list"]
|
|
814
|
+
},
|
|
815
|
+
"with_labels_details": {
|
|
816
|
+
"type": "boolean",
|
|
817
|
+
"description": "Include extra label details in list responses",
|
|
818
|
+
"required_for": ["list"]
|
|
819
|
+
},
|
|
820
|
+
"order_by": {
|
|
821
|
+
"type": "string",
|
|
822
|
+
"description": "Order results by supported fields",
|
|
823
|
+
"required_for": ["list", "list_notes"]
|
|
824
|
+
},
|
|
825
|
+
"sort": {
|
|
826
|
+
"type": "string",
|
|
827
|
+
"enum": ["asc", "desc"],
|
|
828
|
+
"description": "Sort results in asc or desc order",
|
|
829
|
+
"default": "desc",
|
|
830
|
+
"required_for": ["list", "list_notes"]
|
|
831
|
+
},
|
|
832
|
+
"updated_after": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"description": "Return merge requests updated on or after the given time (ISO 8601)",
|
|
835
|
+
"required_for": ["list"]
|
|
836
|
+
},
|
|
837
|
+
"updated_before": {
|
|
838
|
+
"type": "string",
|
|
839
|
+
"description": "Return merge requests updated on or before the given time (ISO 8601)",
|
|
840
|
+
"required_for": ["list"]
|
|
613
841
|
},
|
|
614
842
|
"page": {
|
|
615
843
|
"type": "integer",
|
|
@@ -650,12 +878,6 @@
|
|
|
650
878
|
"default": false,
|
|
651
879
|
"example": false
|
|
652
880
|
},
|
|
653
|
-
"sort": {
|
|
654
|
-
"type": "string",
|
|
655
|
-
"enum": ["asc", "desc"],
|
|
656
|
-
"description": "Return notes sorted in created order",
|
|
657
|
-
"default": "desc"
|
|
658
|
-
},
|
|
659
881
|
"state_event": {
|
|
660
882
|
"type": "string",
|
|
661
883
|
"enum": ["close", "reopen"],
|
|
@@ -1038,66 +1260,185 @@
|
|
|
1038
1260
|
"description": "Action to perform",
|
|
1039
1261
|
"required": true
|
|
1040
1262
|
},
|
|
1041
|
-
"
|
|
1263
|
+
"glql_yaml": {
|
|
1042
1264
|
"type": "string",
|
|
1043
|
-
"description": "GLQL
|
|
1265
|
+
"description": "GLQL YAML payload. Example:\nfields: id,title,author\ngroup: my-group\nlimit: 10\nsort: created desc\nquery: state = opened\nDocs: https://docs.gitlab.com/api/glql/",
|
|
1044
1266
|
"required_for": ["query"],
|
|
1045
|
-
"example": "
|
|
1267
|
+
"example": "fields: id,title,author\ngroup: my-group\nlimit: 10\nsort: created desc\nquery: state = opened"
|
|
1046
1268
|
}
|
|
1047
1269
|
}
|
|
1048
1270
|
},
|
|
1049
1271
|
|
|
1050
1272
|
{
|
|
1051
1273
|
"name": "manage_issues",
|
|
1052
|
-
"description": "Work with issues. Actions: 'list' (all issues in project), 'get' (single issue details), 'create' (create new issue), 'delete' (delete issue - admins only), 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment). Use 'list' to see all issues, filter by state (opened, closed, all). For actions that target a specific issue, pass 'issue_iid'. For 'create', pass 'title'. For note actions, pass 'body' and/or 'note_id' as required.",
|
|
1274
|
+
"description": "Work with issues. Actions: 'list' (all issues in project), 'list_global' (issues across projects), 'get' (single issue details), 'create' (create new issue), 'update' (update issue), 'delete' (delete issue - admins only), 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment), 'list_discussions', 'get_discussion', 'create_discussion', 'reply_discussion', 'delete_discussion', 'set_discussion_resolved', 'list_note_award_emoji', 'get_note_award_emoji', 'create_note_award_emoji', 'delete_note_award_emoji'. Use 'list' to see all issues, filter by state (opened, closed, all). For actions that target a specific issue, pass 'issue_iid'. For 'create', pass 'title'. For note and discussion actions, pass 'body' and/or 'note_id' or 'discussion_id' as required.",
|
|
1053
1275
|
"metadata_params": ["action", "project_id", "issue_iid", "note_id"],
|
|
1054
1276
|
"operations": {
|
|
1055
1277
|
"list": "getApiV4ProjectsIdIssues",
|
|
1278
|
+
"list_global": "getApiV4Issues",
|
|
1056
1279
|
"get": "getApiV4ProjectsIdIssuesIssueIid",
|
|
1057
1280
|
"create": "postApiV4ProjectsIdIssues",
|
|
1281
|
+
"update": "putApiV4ProjectsIdIssuesIssueIid",
|
|
1058
1282
|
"delete": "deleteApiV4ProjectsIdIssuesIssueIid",
|
|
1059
1283
|
"list_notes": "getApiV4ProjectsIdIssuesIssueIidNotes",
|
|
1060
1284
|
"get_note": "getApiV4ProjectsIdIssuesIssueIidNotesNoteId",
|
|
1061
1285
|
"create_note": "postApiV4ProjectsIdIssuesIssueIidNotes",
|
|
1062
1286
|
"update_note": "putApiV4ProjectsIdIssuesIssueIidNotesNoteId",
|
|
1063
|
-
"delete_note": "deleteApiV4ProjectsIdIssuesIssueIidNotesNoteId"
|
|
1287
|
+
"delete_note": "deleteApiV4ProjectsIdIssuesIssueIidNotesNoteId",
|
|
1288
|
+
"list_discussions": "getApiV4ProjectsIdIssuesIssueIidDiscussions",
|
|
1289
|
+
"get_discussion": "getApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionId",
|
|
1290
|
+
"create_discussion": "postApiV4ProjectsIdIssuesIssueIidDiscussions",
|
|
1291
|
+
"reply_discussion": "postApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionIdNotes",
|
|
1292
|
+
"delete_discussion": "deleteApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionId",
|
|
1293
|
+
"set_discussion_resolved": "putApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionId",
|
|
1294
|
+
"list_note_award_emoji": "getApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmoji",
|
|
1295
|
+
"get_note_award_emoji": "getApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmojiAwardId",
|
|
1296
|
+
"create_note_award_emoji": "postApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmoji",
|
|
1297
|
+
"delete_note_award_emoji": "deleteApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmojiAwardId"
|
|
1064
1298
|
},
|
|
1065
1299
|
"response_fields": {
|
|
1066
1300
|
"list": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
1301
|
+
"list_global": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
1067
1302
|
"create": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at"],
|
|
1303
|
+
"update": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
1068
1304
|
"list_notes": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"],
|
|
1069
1305
|
"get_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential", "attachment"],
|
|
1070
1306
|
"create_note": ["id", "body", "author", "created_at", "system", "confidential"],
|
|
1071
|
-
"update_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"]
|
|
1307
|
+
"update_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"],
|
|
1308
|
+
"list_discussions": ["id", "notes", "resolved"],
|
|
1309
|
+
"get_discussion": ["id", "notes", "resolved"],
|
|
1310
|
+
"create_discussion": ["id", "notes", "resolved"],
|
|
1311
|
+
"reply_discussion": ["id", "notes", "resolved"],
|
|
1312
|
+
"set_discussion_resolved": ["id", "notes", "resolved"],
|
|
1313
|
+
"list_note_award_emoji": ["id", "name", "user", "created_at"],
|
|
1314
|
+
"get_note_award_emoji": ["id", "name", "user", "created_at"],
|
|
1315
|
+
"create_note_award_emoji": ["id", "name", "user", "created_at"]
|
|
1072
1316
|
},
|
|
1073
1317
|
"parameters": {
|
|
1074
1318
|
"action": {
|
|
1075
1319
|
"type": "string",
|
|
1076
|
-
"enum": ["list", "get", "create", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note"],
|
|
1320
|
+
"enum": ["list", "list_global", "get", "create", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"],
|
|
1077
1321
|
"description": "Action to perform",
|
|
1078
1322
|
"required": true
|
|
1079
1323
|
},
|
|
1080
1324
|
"project_id": {
|
|
1081
1325
|
"type": "string",
|
|
1082
1326
|
"description": "Project ID. Use numeric ID (e.g. '123') or URL-encoded path (e.g. 'group%2Fproject').",
|
|
1083
|
-
"
|
|
1327
|
+
"required_for": ["list", "get", "create", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"],
|
|
1084
1328
|
"example": "123"
|
|
1085
1329
|
},
|
|
1086
1330
|
"issue_iid": {
|
|
1087
1331
|
"type": "integer",
|
|
1088
1332
|
"description": "The internal ID of the issue",
|
|
1089
|
-
"required_for": ["get", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note"]
|
|
1333
|
+
"required_for": ["get", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"]
|
|
1090
1334
|
},
|
|
1091
1335
|
"note_id": {
|
|
1092
1336
|
"type": "integer",
|
|
1093
1337
|
"description": "The ID of the note",
|
|
1094
|
-
"required_for": ["get_note", "update_note", "delete_note"]
|
|
1338
|
+
"required_for": ["get_note", "update_note", "delete_note", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"]
|
|
1339
|
+
},
|
|
1340
|
+
"discussion_id": {
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"description": "The ID of the discussion",
|
|
1343
|
+
"required_for": ["get_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved"]
|
|
1344
|
+
},
|
|
1345
|
+
"award_id": {
|
|
1346
|
+
"type": "integer",
|
|
1347
|
+
"description": "The ID of the award emoji",
|
|
1348
|
+
"required_for": ["get_note_award_emoji", "delete_note_award_emoji"]
|
|
1349
|
+
},
|
|
1350
|
+
"name": {
|
|
1351
|
+
"type": "string",
|
|
1352
|
+
"description": "Emoji name (for award emoji actions)",
|
|
1353
|
+
"required_for": ["create_note_award_emoji"]
|
|
1095
1354
|
},
|
|
1096
1355
|
"state": {
|
|
1097
1356
|
"type": "string",
|
|
1098
1357
|
"enum": ["opened", "closed", "all"],
|
|
1099
1358
|
"description": "Filter by issue state",
|
|
1100
|
-
"default": "opened"
|
|
1359
|
+
"default": "opened",
|
|
1360
|
+
"required_for": ["list", "list_global"]
|
|
1361
|
+
},
|
|
1362
|
+
"search": {
|
|
1363
|
+
"type": "string",
|
|
1364
|
+
"description": "Search issues by title or description",
|
|
1365
|
+
"required_for": ["list", "list_global"]
|
|
1366
|
+
},
|
|
1367
|
+
"in": {
|
|
1368
|
+
"type": "string",
|
|
1369
|
+
"description": "Search scope (title, description, or title,description)",
|
|
1370
|
+
"required_for": ["list", "list_global"]
|
|
1371
|
+
},
|
|
1372
|
+
"labels": {
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
"description": "Filter by labels (comma-separated)",
|
|
1375
|
+
"required_for": ["list", "list_global", "create", "update"]
|
|
1376
|
+
},
|
|
1377
|
+
"milestone": {
|
|
1378
|
+
"type": "string",
|
|
1379
|
+
"description": "Filter by milestone title",
|
|
1380
|
+
"required_for": ["list", "list_global"]
|
|
1381
|
+
},
|
|
1382
|
+
"milestone_id": {
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"description": "Filter by milestone ID or special values like None/Any",
|
|
1385
|
+
"required_for": ["list", "list_global", "create", "update"]
|
|
1386
|
+
},
|
|
1387
|
+
"assignee_id": {
|
|
1388
|
+
"type": "integer",
|
|
1389
|
+
"description": "Filter by assignee ID",
|
|
1390
|
+
"required_for": ["list", "list_global", "create"]
|
|
1391
|
+
},
|
|
1392
|
+
"author_id": {
|
|
1393
|
+
"type": "integer",
|
|
1394
|
+
"description": "Filter by author ID",
|
|
1395
|
+
"required_for": ["list", "list_global"]
|
|
1396
|
+
},
|
|
1397
|
+
"scope": {
|
|
1398
|
+
"type": "string",
|
|
1399
|
+
"enum": ["created_by_me", "assigned_to_me", "all"],
|
|
1400
|
+
"description": "Issue scope",
|
|
1401
|
+
"required_for": ["list", "list_global"]
|
|
1402
|
+
},
|
|
1403
|
+
"confidential": {
|
|
1404
|
+
"type": "boolean",
|
|
1405
|
+
"description": "Filter confidential issues",
|
|
1406
|
+
"required_for": ["list", "list_global", "create", "update"]
|
|
1407
|
+
},
|
|
1408
|
+
"my_reaction_emoji": {
|
|
1409
|
+
"type": "string",
|
|
1410
|
+
"description": "Filter by your reaction emoji",
|
|
1411
|
+
"required_for": ["list", "list_global"]
|
|
1412
|
+
},
|
|
1413
|
+
"non_archived": {
|
|
1414
|
+
"type": "boolean",
|
|
1415
|
+
"description": "Return issues only from non-archived projects",
|
|
1416
|
+
"required_for": ["list", "list_global"]
|
|
1417
|
+
},
|
|
1418
|
+
"order_by": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"description": "Order results by supported fields",
|
|
1421
|
+
"required_for": ["list_notes"]
|
|
1422
|
+
},
|
|
1423
|
+
"sort": {
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"description": "Sort results in asc or desc order",
|
|
1426
|
+
"required_for": ["list", "list_global", "list_notes"]
|
|
1427
|
+
},
|
|
1428
|
+
"updated_after": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"description": "Return issues updated on or after the given time (ISO 8601)",
|
|
1431
|
+
"required_for": ["list", "list_global"]
|
|
1432
|
+
},
|
|
1433
|
+
"updated_before": {
|
|
1434
|
+
"type": "string",
|
|
1435
|
+
"description": "Return issues updated on or before the given time (ISO 8601)",
|
|
1436
|
+
"required_for": ["list", "list_global"]
|
|
1437
|
+
},
|
|
1438
|
+
"activity_filter": {
|
|
1439
|
+
"type": "string",
|
|
1440
|
+
"description": "Filter issue notes by activity type (all_notes, only_comments, only_activity)",
|
|
1441
|
+
"required_for": ["list_notes"]
|
|
1101
1442
|
},
|
|
1102
1443
|
"page": {
|
|
1103
1444
|
"type": "integer",
|
|
@@ -1120,16 +1461,21 @@
|
|
|
1120
1461
|
"description": "The description of the issue (optional for create)",
|
|
1121
1462
|
"example": "This implements the new feature requested by the team."
|
|
1122
1463
|
},
|
|
1464
|
+
"state_event": {
|
|
1465
|
+
"type": "string",
|
|
1466
|
+
"enum": ["close", "reopen"],
|
|
1467
|
+
"description": "Change issue state (for update)"
|
|
1468
|
+
},
|
|
1123
1469
|
"body": {
|
|
1124
1470
|
"type": "string",
|
|
1125
1471
|
"description": "The content of the note",
|
|
1126
1472
|
"required_for": ["create_note", "update_note"],
|
|
1127
1473
|
"example": "Looks good to me."
|
|
1128
1474
|
},
|
|
1129
|
-
"
|
|
1130
|
-
"type": "
|
|
1131
|
-
"description": "
|
|
1132
|
-
"
|
|
1475
|
+
"resolved": {
|
|
1476
|
+
"type": "boolean",
|
|
1477
|
+
"description": "Resolve or unresolve discussion",
|
|
1478
|
+
"required_for": ["set_discussion_resolved"]
|
|
1133
1479
|
},
|
|
1134
1480
|
"assignee_ids": {
|
|
1135
1481
|
"type": "array",
|
|
@@ -1139,39 +1485,17 @@
|
|
|
1139
1485
|
"description": "The IDs of the users to assign the issue to (optional for create)",
|
|
1140
1486
|
"example": [123, 456]
|
|
1141
1487
|
},
|
|
1142
|
-
"labels": {
|
|
1143
|
-
"type": "string",
|
|
1144
|
-
"description": "Labels to be added to the issue (comma-separated, optional for create)",
|
|
1145
|
-
"example": "bug,feature,frontend"
|
|
1146
|
-
},
|
|
1147
|
-
"milestone_id": {
|
|
1148
|
-
"type": "integer",
|
|
1149
|
-
"description": "The ID of the milestone to assign the issue to (optional for create)",
|
|
1150
|
-
"example": 42
|
|
1151
|
-
},
|
|
1152
1488
|
"due_date": {
|
|
1153
1489
|
"type": "string",
|
|
1154
1490
|
"format": "date",
|
|
1155
1491
|
"description": "The due date of the issue (optional for create)",
|
|
1156
1492
|
"example": "2024-12-31"
|
|
1157
1493
|
},
|
|
1158
|
-
"confidential": {
|
|
1159
|
-
"type": "boolean",
|
|
1160
|
-
"description": "Whether the issue should be confidential (optional for create). For notes, use with create_note.",
|
|
1161
|
-
"default": false,
|
|
1162
|
-
"example": false
|
|
1163
|
-
},
|
|
1164
1494
|
"weight": {
|
|
1165
1495
|
"type": "integer",
|
|
1166
1496
|
"description": "The weight of the issue (optional for create)",
|
|
1167
1497
|
"minimum": 0,
|
|
1168
1498
|
"example": 5
|
|
1169
|
-
},
|
|
1170
|
-
"sort": {
|
|
1171
|
-
"type": "string",
|
|
1172
|
-
"enum": ["asc", "desc"],
|
|
1173
|
-
"description": "Return notes sorted in created order",
|
|
1174
|
-
"default": "desc"
|
|
1175
1499
|
}
|
|
1176
1500
|
}
|
|
1177
1501
|
},
|
|
@@ -1289,18 +1613,21 @@
|
|
|
1289
1613
|
|
|
1290
1614
|
{
|
|
1291
1615
|
"name": "repository_commits",
|
|
1292
|
-
"description": "
|
|
1616
|
+
"description": "Repository commits and comparisons. Actions: 'list', 'get_commit', 'compare'.",
|
|
1293
1617
|
"metadata_params": ["action", "project_id"],
|
|
1294
1618
|
"operations": {
|
|
1295
|
-
"list": "getApiV4ProjectsIdRepositoryCommits"
|
|
1619
|
+
"list": "getApiV4ProjectsIdRepositoryCommits",
|
|
1620
|
+
"get_commit": "getApiV4ProjectsIdRepositoryCommitsSha",
|
|
1621
|
+
"compare": "getApiV4ProjectsIdRepositoryCompare"
|
|
1296
1622
|
},
|
|
1297
1623
|
"response_fields": {
|
|
1298
|
-
"list": ["id", "short_id", "title", "message", "author_name", "author_email", "authored_date", "committed_date", "web_url"]
|
|
1624
|
+
"list": ["id", "short_id", "title", "message", "author_name", "author_email", "authored_date", "committed_date", "web_url"],
|
|
1625
|
+
"get_commit": ["id", "short_id", "title", "message", "author_name", "author_email", "authored_date", "committed_date", "web_url"]
|
|
1299
1626
|
},
|
|
1300
1627
|
"parameters": {
|
|
1301
1628
|
"action": {
|
|
1302
1629
|
"type": "string",
|
|
1303
|
-
"enum": ["list"],
|
|
1630
|
+
"enum": ["list", "get_commit", "compare"],
|
|
1304
1631
|
"description": "Action to perform",
|
|
1305
1632
|
"required": true
|
|
1306
1633
|
},
|
|
@@ -1350,17 +1677,36 @@
|
|
|
1350
1677
|
"order": {
|
|
1351
1678
|
"type": "string",
|
|
1352
1679
|
"description": "Order commits, for example default or topo"
|
|
1680
|
+
},
|
|
1681
|
+
"sha": {
|
|
1682
|
+
"type": "string",
|
|
1683
|
+
"description": "Commit SHA",
|
|
1684
|
+
"required_for": ["get_commit"]
|
|
1685
|
+
},
|
|
1686
|
+
"from": {
|
|
1687
|
+
"type": "string",
|
|
1688
|
+
"description": "Source ref for compare",
|
|
1689
|
+
"required_for": ["compare"]
|
|
1690
|
+
},
|
|
1691
|
+
"to": {
|
|
1692
|
+
"type": "string",
|
|
1693
|
+
"description": "Target ref for compare",
|
|
1694
|
+
"required_for": ["compare"]
|
|
1353
1695
|
}
|
|
1354
1696
|
}
|
|
1355
1697
|
},
|
|
1356
1698
|
|
|
1357
1699
|
{
|
|
1358
1700
|
"name": "repository_files",
|
|
1359
|
-
"description": "
|
|
1701
|
+
"description": "Repository files and tree. Actions: 'list_tree', 'get_file' (metadata + base64 content), 'get_raw' (raw content), 'create_file', 'update_file', 'delete_file'.",
|
|
1360
1702
|
"metadata_params": ["action", "project_id", "file_path"],
|
|
1361
1703
|
"operations": {
|
|
1704
|
+
"list_tree": "getApiV4ProjectsIdRepositoryTree",
|
|
1362
1705
|
"get_file": "getApiV4ProjectsIdRepositoryFilesFilePath",
|
|
1363
|
-
"get_raw": "getApiV4ProjectsIdRepositoryFilesFilePathRaw"
|
|
1706
|
+
"get_raw": "getApiV4ProjectsIdRepositoryFilesFilePathRaw",
|
|
1707
|
+
"create_file": "postApiV4ProjectsIdRepositoryFilesFilePath",
|
|
1708
|
+
"update_file": "putApiV4ProjectsIdRepositoryFilesFilePath",
|
|
1709
|
+
"delete_file": "deleteApiV4ProjectsIdRepositoryFilesFilePath"
|
|
1364
1710
|
},
|
|
1365
1711
|
"response_fields": {
|
|
1366
1712
|
"get_file": ["file_name", "file_path", "size", "encoding", "content", "ref", "blob_id", "commit_id", "last_commit_id"]
|
|
@@ -1368,7 +1714,7 @@
|
|
|
1368
1714
|
"parameters": {
|
|
1369
1715
|
"action": {
|
|
1370
1716
|
"type": "string",
|
|
1371
|
-
"enum": ["get_file", "get_raw"],
|
|
1717
|
+
"enum": ["list_tree", "get_file", "get_raw", "create_file", "update_file", "delete_file"],
|
|
1372
1718
|
"description": "Action to perform",
|
|
1373
1719
|
"required": true
|
|
1374
1720
|
},
|
|
@@ -1381,13 +1727,31 @@
|
|
|
1381
1727
|
"file_path": {
|
|
1382
1728
|
"type": "string",
|
|
1383
1729
|
"description": "URL-encoded full path to the file, e.g., 'src%2Findex.js'. Use %2F instead of '/'.",
|
|
1384
|
-
"
|
|
1730
|
+
"required_for": ["get_file", "get_raw", "create_file", "update_file", "delete_file"]
|
|
1385
1731
|
},
|
|
1386
1732
|
"ref": {
|
|
1387
1733
|
"type": "string",
|
|
1388
|
-
"description": "Branch name, tag, or commit SHA to read from",
|
|
1389
|
-
"
|
|
1390
|
-
|
|
1734
|
+
"description": "Branch name, tag, or commit SHA to read from (for list_tree/get_file/get_raw)",
|
|
1735
|
+
"required_for": ["get_file", "get_raw"]
|
|
1736
|
+
},
|
|
1737
|
+
"path": {
|
|
1738
|
+
"type": "string",
|
|
1739
|
+
"description": "Directory path within the repository (for list_tree)"
|
|
1740
|
+
},
|
|
1741
|
+
"branch": {
|
|
1742
|
+
"type": "string",
|
|
1743
|
+
"description": "Branch name for file operations",
|
|
1744
|
+
"required_for": ["create_file", "update_file", "delete_file"]
|
|
1745
|
+
},
|
|
1746
|
+
"content": {
|
|
1747
|
+
"type": "string",
|
|
1748
|
+
"description": "File content",
|
|
1749
|
+
"required_for": ["create_file", "update_file"]
|
|
1750
|
+
},
|
|
1751
|
+
"commit_message": {
|
|
1752
|
+
"type": "string",
|
|
1753
|
+
"description": "Commit message",
|
|
1754
|
+
"required_for": ["create_file", "update_file", "delete_file"]
|
|
1391
1755
|
}
|
|
1392
1756
|
}
|
|
1393
1757
|
},
|