@zereight/mcp-gitlab 2.3.23 → 2.3.24-next.218
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/build/schemas.js +12 -4
- package/package.json +1 -1
package/build/schemas.js
CHANGED
|
@@ -4058,15 +4058,23 @@ export const GitLabProtectedTagSchema = z.object({
|
|
|
4058
4058
|
name: z.string(),
|
|
4059
4059
|
create_access_levels: z.array(GitLabProtectedTagAccessLevelSchema).optional(),
|
|
4060
4060
|
});
|
|
4061
|
+
// Tag response shape varies by GitLab version and tag type:
|
|
4062
|
+
// - top-level created_at is not exposed by GitLab 16.0.x (Entities::Tag in v16.0.8-ee has no
|
|
4063
|
+
// created_at); newer versions return it, and lightweight tags return null.
|
|
4064
|
+
// - message is null for lightweight tags.
|
|
4065
|
+
// - release is omitted or null when no release exists; release.description may be null.
|
|
4066
|
+
// - commit.created_at is accepted as null or omitted as a defensive loosening; GitLab usually
|
|
4067
|
+
// emits committed_date there, and #1015's error listed only the top-level created_at.
|
|
4068
|
+
// name, target, commit.id and protected stay required (always emitted by GitLab).
|
|
4061
4069
|
export const GitLabTagSchema = z.object({
|
|
4062
4070
|
name: z.string(),
|
|
4063
|
-
message: z.string().
|
|
4071
|
+
message: z.string().nullish(),
|
|
4064
4072
|
target: z.string(),
|
|
4065
4073
|
commit: z.object({
|
|
4066
4074
|
id: z.string(),
|
|
4067
4075
|
short_id: z.string(),
|
|
4068
4076
|
title: z.string(),
|
|
4069
|
-
created_at: z.string(),
|
|
4077
|
+
created_at: z.string().nullish(),
|
|
4070
4078
|
parent_ids: z.array(z.string()),
|
|
4071
4079
|
message: z.string(),
|
|
4072
4080
|
author_name: z.string(),
|
|
@@ -4079,11 +4087,11 @@ export const GitLabTagSchema = z.object({
|
|
|
4079
4087
|
release: z
|
|
4080
4088
|
.object({
|
|
4081
4089
|
tag_name: z.string(),
|
|
4082
|
-
description: z.string(),
|
|
4090
|
+
description: z.string().nullish(),
|
|
4083
4091
|
})
|
|
4084
4092
|
.nullish(),
|
|
4085
4093
|
protected: z.boolean(),
|
|
4086
|
-
created_at: z.string().
|
|
4094
|
+
created_at: z.string().nullish(),
|
|
4087
4095
|
});
|
|
4088
4096
|
// --- Snippet schemas ---
|
|
4089
4097
|
export const ListSnippetsSchema = z
|
package/package.json
CHANGED