@structured-world/gitlab-mcp 6.2.1 → 6.2.3
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/dist/src/entities/core/registry.js +51 -47
- package/dist/src/entities/core/registry.js.map +1 -1
- package/dist/src/entities/core/schema-readonly.d.ts +42 -97
- package/dist/src/entities/core/schema-readonly.js +71 -74
- package/dist/src/entities/core/schema-readonly.js.map +1 -1
- package/dist/src/entities/core/schema.d.ts +18 -28
- package/dist/src/entities/core/schema.js +43 -32
- package/dist/src/entities/core/schema.js.map +1 -1
- package/dist/src/entities/files/registry.js +25 -15
- package/dist/src/entities/files/registry.js.map +1 -1
- package/dist/src/entities/files/schema-readonly.d.ts +8 -24
- package/dist/src/entities/files/schema-readonly.js +25 -31
- package/dist/src/entities/files/schema-readonly.js.map +1 -1
- package/dist/src/entities/files/schema.d.ts +15 -63
- package/dist/src/entities/files/schema.js +74 -64
- package/dist/src/entities/files/schema.js.map +1 -1
- package/dist/src/entities/milestones/schema-readonly.d.ts +4 -4
- package/dist/src/entities/milestones/schema-readonly.js +1 -1
- package/dist/src/entities/milestones/schema-readonly.js.map +1 -1
- package/dist/src/entities/milestones/schema.d.ts +3 -3
- package/dist/src/entities/milestones/schema.js +4 -3
- package/dist/src/entities/milestones/schema.js.map +1 -1
- package/dist/src/entities/mrs/registry.js +58 -32
- package/dist/src/entities/mrs/registry.js.map +1 -1
- package/dist/src/entities/mrs/schema-readonly.d.ts +23 -162
- package/dist/src/entities/mrs/schema-readonly.js +307 -198
- package/dist/src/entities/mrs/schema-readonly.js.map +1 -1
- package/dist/src/entities/mrs/schema.d.ts +36 -396
- package/dist/src/entities/mrs/schema.js +237 -230
- package/dist/src/entities/mrs/schema.js.map +1 -1
- package/dist/src/entities/pipelines/registry.js +30 -14
- package/dist/src/entities/pipelines/registry.js.map +1 -1
- package/dist/src/entities/pipelines/schema-readonly.d.ts +16 -32
- package/dist/src/entities/pipelines/schema-readonly.js +54 -52
- package/dist/src/entities/pipelines/schema-readonly.js.map +1 -1
- package/dist/src/entities/pipelines/schema.d.ts +16 -23
- package/dist/src/entities/pipelines/schema.js +24 -37
- package/dist/src/entities/pipelines/schema.js.map +1 -1
- package/dist/src/entities/shared.d.ts +1 -1
- package/dist/src/entities/shared.js +1 -1
- package/dist/src/entities/shared.js.map +1 -1
- package/dist/src/entities/utils.d.ts +1 -0
- package/dist/src/entities/utils.js +6 -0
- package/dist/src/entities/utils.js.map +1 -1
- package/dist/src/entities/workitems/registry.js +30 -21
- package/dist/src/entities/workitems/registry.js.map +1 -1
- package/dist/src/entities/workitems/schema-readonly.d.ts +7 -35
- package/dist/src/entities/workitems/schema-readonly.js +15 -41
- package/dist/src/entities/workitems/schema-readonly.js.map +1 -1
- package/dist/src/entities/workitems/schema.d.ts +10 -52
- package/dist/src/entities/workitems/schema.js +26 -48
- package/dist/src/entities/workitems/schema.js.map +1 -1
- package/dist/structured-world-gitlab-mcp-6.2.3.tgz +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/structured-world-gitlab-mcp-6.2.1.tgz +0 -0
|
@@ -56,38 +56,22 @@ export declare const GitLabTreeSchema: z.ZodObject<{
|
|
|
56
56
|
path: z.ZodString;
|
|
57
57
|
mode: z.ZodString;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
|
-
export declare const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
page: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
export declare const GetFileContentsSchema: z.ZodObject<{
|
|
68
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
69
|
-
file_path: z.ZodString;
|
|
70
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
export declare const BrowseFilesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
73
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
59
|
+
export declare const BrowseFilesSchema: z.ZodObject<{
|
|
60
|
+
action: z.ZodEnum<{
|
|
61
|
+
content: "content";
|
|
62
|
+
tree: "tree";
|
|
63
|
+
}>;
|
|
64
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
74
65
|
ref: z.ZodOptional<z.ZodString>;
|
|
75
|
-
action: z.ZodLiteral<"tree">;
|
|
76
66
|
path: z.ZodOptional<z.ZodString>;
|
|
77
67
|
recursive: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
78
68
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
79
69
|
page: z.ZodOptional<z.ZodNumber>;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
83
|
-
action: z.ZodLiteral<"content">;
|
|
84
|
-
file_path: z.ZodString;
|
|
85
|
-
}, z.core.$strip>], "action">;
|
|
70
|
+
file_path: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>;
|
|
86
72
|
export type GitLabFileContent = z.infer<typeof GitLabFileContentSchema>;
|
|
87
73
|
export type GitLabDirectoryContent = z.infer<typeof GitLabDirectoryContentSchema>;
|
|
88
74
|
export type GitLabContent = z.infer<typeof GitLabContentSchema>;
|
|
89
75
|
export type GitLabCreateUpdateFileResponse = z.infer<typeof GitLabCreateUpdateFileResponseSchema>;
|
|
90
76
|
export type GitLabTree = z.infer<typeof GitLabTreeSchema>;
|
|
91
|
-
export type GetRepositoryTreeOptions = z.infer<typeof GetRepositoryTreeSchema>;
|
|
92
|
-
export type GetFileContentsOptions = z.infer<typeof GetFileContentsSchema>;
|
|
93
77
|
export type BrowseFilesInput = z.infer<typeof BrowseFilesSchema>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BrowseFilesSchema = exports.
|
|
3
|
+
exports.BrowseFilesSchema = exports.GitLabTreeSchema = exports.GitLabCreateUpdateFileResponseSchema = exports.GitLabContentSchema = exports.GitLabDirectoryContentSchema = exports.GitLabFileContentSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
const shared_1 = require("../shared");
|
|
7
6
|
exports.GitLabFileContentSchema = zod_1.z.object({
|
|
8
7
|
file_name: zod_1.z.string(),
|
|
9
8
|
file_path: zod_1.z.string(),
|
|
@@ -35,35 +34,30 @@ exports.GitLabTreeSchema = zod_1.z.object({
|
|
|
35
34
|
path: zod_1.z.string(),
|
|
36
35
|
mode: zod_1.z.string(),
|
|
37
36
|
});
|
|
38
|
-
exports.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
recursive: utils_1.flexibleBoolean.optional().describe("Boolean value used to get a recursive tree"),
|
|
43
|
-
per_page: zod_1.z.number().int().min(1).max(100).optional().describe("Number of results per page"),
|
|
44
|
-
page: zod_1.z.number().int().min(1).optional().describe("Page number"),
|
|
45
|
-
});
|
|
46
|
-
exports.GetFileContentsSchema = shared_1.ProjectParamsSchema.extend({
|
|
47
|
-
file_path: zod_1.z.string().describe("URL-encoded full path to the file"),
|
|
48
|
-
ref: zod_1.z.string().optional().describe("The name of branch, tag or commit"),
|
|
49
|
-
});
|
|
50
|
-
const BrowseFilesBaseSchema = zod_1.z.object({
|
|
51
|
-
project_id: zod_1.z.coerce.string().describe("Project ID or URL-encoded path"),
|
|
37
|
+
exports.BrowseFilesSchema = zod_1.z
|
|
38
|
+
.object({
|
|
39
|
+
action: zod_1.z.enum(["tree", "content"]).describe("Action to perform: tree or content"),
|
|
40
|
+
project_id: utils_1.requiredId.describe("Project ID or URL-encoded path"),
|
|
52
41
|
ref: zod_1.z.string().optional().describe("Branch, tag, or commit SHA"),
|
|
42
|
+
path: zod_1.z.string().optional().describe("Directory path to list. For 'tree' action."),
|
|
43
|
+
recursive: utils_1.flexibleBoolean
|
|
44
|
+
.optional()
|
|
45
|
+
.describe("Include nested directories. For 'tree' action."),
|
|
46
|
+
per_page: zod_1.z
|
|
47
|
+
.number()
|
|
48
|
+
.int()
|
|
49
|
+
.min(1)
|
|
50
|
+
.max(100)
|
|
51
|
+
.optional()
|
|
52
|
+
.describe("Results per page (max 100). For 'tree' action."),
|
|
53
|
+
page: zod_1.z.number().int().min(1).optional().describe("Page number. For 'tree' action."),
|
|
54
|
+
file_path: zod_1.z
|
|
55
|
+
.string()
|
|
56
|
+
.optional()
|
|
57
|
+
.describe("Path to the file to read. Required for 'content' action."),
|
|
58
|
+
})
|
|
59
|
+
.refine(data => data.action !== "content" || data.file_path !== undefined, {
|
|
60
|
+
message: "file_path is required for 'content' action",
|
|
61
|
+
path: ["file_path"],
|
|
53
62
|
});
|
|
54
|
-
const BrowseFilesTreeSchema = BrowseFilesBaseSchema.extend({
|
|
55
|
-
action: zod_1.z.literal("tree"),
|
|
56
|
-
path: zod_1.z.string().optional().describe("Directory path to list"),
|
|
57
|
-
recursive: utils_1.flexibleBoolean.optional().describe("Include nested directories"),
|
|
58
|
-
per_page: zod_1.z.number().int().min(1).max(100).optional().describe("Results per page (max 100)"),
|
|
59
|
-
page: zod_1.z.number().int().min(1).optional().describe("Page number"),
|
|
60
|
-
});
|
|
61
|
-
const BrowseFilesContentSchema = BrowseFilesBaseSchema.extend({
|
|
62
|
-
action: zod_1.z.literal("content"),
|
|
63
|
-
file_path: zod_1.z.string().describe("Path to the file to read"),
|
|
64
|
-
});
|
|
65
|
-
exports.BrowseFilesSchema = zod_1.z.discriminatedUnion("action", [
|
|
66
|
-
BrowseFilesTreeSchema,
|
|
67
|
-
BrowseFilesContentSchema,
|
|
68
|
-
]);
|
|
69
63
|
//# sourceMappingURL=schema-readonly.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-readonly.js","sourceRoot":"","sources":["../../../../src/entities/files/schema-readonly.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"schema-readonly.js","sourceRoot":"","sources":["../../../../src/entities/files/schema-readonly.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAAuD;AAM1C,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,+BAAuB,EAAE,oCAA4B,CAAC,CAAC,CAAC;AAEvF,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IAC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E;SACV,QAAQ,CAAC,0DAA0D,CAAC;CACxE,CAAC;KACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;IACzE,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,CAAC,WAAW,CAAC;CACpB,CAAC,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const ManageFilesSchema: z.ZodObject<{
|
|
3
|
+
action: z.ZodEnum<{
|
|
4
|
+
single: "single";
|
|
5
|
+
batch: "batch";
|
|
6
|
+
upload: "upload";
|
|
7
|
+
}>;
|
|
8
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
9
|
+
file_path: z.ZodOptional<z.ZodString>;
|
|
10
|
+
content: z.ZodOptional<z.ZodString>;
|
|
11
|
+
commit_message: z.ZodOptional<z.ZodString>;
|
|
12
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
6
13
|
start_branch: z.ZodOptional<z.ZodString>;
|
|
7
14
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
8
15
|
base64: "base64";
|
|
@@ -10,16 +17,9 @@ export declare const CreateOrUpdateFileSchema: z.ZodObject<{
|
|
|
10
17
|
}>>;
|
|
11
18
|
author_email: z.ZodOptional<z.ZodString>;
|
|
12
19
|
author_name: z.ZodOptional<z.ZodString>;
|
|
13
|
-
content: z.ZodString;
|
|
14
|
-
commit_message: z.ZodString;
|
|
15
20
|
last_commit_id: z.ZodOptional<z.ZodString>;
|
|
16
21
|
execute_filemode: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
17
|
-
|
|
18
|
-
export declare const PushFilesSchema: z.ZodObject<{
|
|
19
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
20
|
-
branch: z.ZodString;
|
|
21
|
-
commit_message: z.ZodString;
|
|
22
|
-
files: z.ZodArray<z.ZodObject<{
|
|
22
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
23
|
file_path: z.ZodString;
|
|
24
24
|
content: z.ZodString;
|
|
25
25
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
@@ -27,56 +27,8 @@ export declare const PushFilesSchema: z.ZodObject<{
|
|
|
27
27
|
text: "text";
|
|
28
28
|
}>>;
|
|
29
29
|
execute_filemode: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
30
|
-
}, z.core.$strip
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
author_name: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
export declare const MarkdownUploadSchema: z.ZodObject<{
|
|
36
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
37
|
-
file: z.ZodString;
|
|
38
|
-
filename: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
file: z.ZodOptional<z.ZodString>;
|
|
32
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
39
33
|
}, z.core.$strip>;
|
|
40
|
-
export declare const ManageFilesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
42
|
-
action: z.ZodLiteral<"single">;
|
|
43
|
-
file_path: z.ZodString;
|
|
44
|
-
content: z.ZodString;
|
|
45
|
-
commit_message: z.ZodString;
|
|
46
|
-
branch: z.ZodString;
|
|
47
|
-
start_branch: z.ZodOptional<z.ZodString>;
|
|
48
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
|
49
|
-
base64: "base64";
|
|
50
|
-
text: "text";
|
|
51
|
-
}>>;
|
|
52
|
-
author_email: z.ZodOptional<z.ZodString>;
|
|
53
|
-
author_name: z.ZodOptional<z.ZodString>;
|
|
54
|
-
last_commit_id: z.ZodOptional<z.ZodString>;
|
|
55
|
-
execute_filemode: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
58
|
-
action: z.ZodLiteral<"batch">;
|
|
59
|
-
branch: z.ZodString;
|
|
60
|
-
commit_message: z.ZodString;
|
|
61
|
-
files: z.ZodArray<z.ZodObject<{
|
|
62
|
-
file_path: z.ZodString;
|
|
63
|
-
content: z.ZodString;
|
|
64
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
|
65
|
-
base64: "base64";
|
|
66
|
-
text: "text";
|
|
67
|
-
}>>;
|
|
68
|
-
execute_filemode: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
69
|
-
}, z.core.$strip>>;
|
|
70
|
-
start_branch: z.ZodOptional<z.ZodString>;
|
|
71
|
-
author_email: z.ZodOptional<z.ZodString>;
|
|
72
|
-
author_name: z.ZodOptional<z.ZodString>;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
project_id: z.ZodCoercedString<unknown>;
|
|
75
|
-
action: z.ZodLiteral<"upload">;
|
|
76
|
-
file: z.ZodString;
|
|
77
|
-
filename: z.ZodString;
|
|
78
|
-
}, z.core.$strip>], "action">;
|
|
79
|
-
export type CreateOrUpdateFileOptions = z.infer<typeof CreateOrUpdateFileSchema>;
|
|
80
|
-
export type PushFilesOptions = z.infer<typeof PushFilesSchema>;
|
|
81
|
-
export type MarkdownUploadOptions = z.infer<typeof MarkdownUploadSchema>;
|
|
82
34
|
export type ManageFilesInput = z.infer<typeof ManageFilesSchema>;
|
|
@@ -1,79 +1,89 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageFilesSchema =
|
|
3
|
+
exports.ManageFilesSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
const shared_1 = require("../shared");
|
|
7
|
-
exports.CreateOrUpdateFileSchema = shared_1.ProjectParamsSchema.extend({
|
|
8
|
-
file_path: zod_1.z.string().describe("URL-encoded full path to the file"),
|
|
9
|
-
branch: zod_1.z.string().describe("Name of the new branch to create"),
|
|
10
|
-
start_branch: zod_1.z.string().optional().describe("Name of the base branch to start from"),
|
|
11
|
-
encoding: zod_1.z.enum(["text", "base64"]).optional().describe("Change encoding"),
|
|
12
|
-
author_email: zod_1.z.string().optional().describe("Author email for the commit"),
|
|
13
|
-
author_name: zod_1.z.string().optional().describe("Author name for the commit"),
|
|
14
|
-
content: zod_1.z.string().describe("File content"),
|
|
15
|
-
commit_message: zod_1.z.string().describe("Commit message"),
|
|
16
|
-
last_commit_id: zod_1.z.string().optional().describe("Last known file commit id"),
|
|
17
|
-
execute_filemode: utils_1.flexibleBoolean.optional().describe("Execute file mode"),
|
|
18
|
-
});
|
|
19
|
-
exports.PushFilesSchema = shared_1.ProjectParamsSchema.extend({
|
|
20
|
-
branch: zod_1.z.string().describe("Target branch name"),
|
|
21
|
-
commit_message: zod_1.z.string().describe("Commit message"),
|
|
22
|
-
files: zod_1.z
|
|
23
|
-
.array(zod_1.z.object({
|
|
24
|
-
file_path: zod_1.z.string(),
|
|
25
|
-
content: zod_1.z.string(),
|
|
26
|
-
encoding: zod_1.z.enum(["text", "base64"]).optional(),
|
|
27
|
-
execute_filemode: utils_1.flexibleBoolean.optional(),
|
|
28
|
-
}))
|
|
29
|
-
.describe("Array of files to push"),
|
|
30
|
-
start_branch: zod_1.z.string().optional().describe("Start branch name"),
|
|
31
|
-
author_email: zod_1.z.string().optional().describe("Author email"),
|
|
32
|
-
author_name: zod_1.z.string().optional().describe("Author name"),
|
|
33
|
-
});
|
|
34
|
-
exports.MarkdownUploadSchema = shared_1.ProjectParamsSchema.extend({
|
|
35
|
-
file: zod_1.z.string().describe("Base64 encoded file content or file path"),
|
|
36
|
-
filename: zod_1.z.string().describe("Name of the file"),
|
|
37
|
-
});
|
|
38
|
-
const ManageFilesSingleSchema = zod_1.z.object({
|
|
39
|
-
project_id: zod_1.z.coerce.string().describe("Project ID or URL-encoded path"),
|
|
40
|
-
action: zod_1.z.literal("single"),
|
|
41
|
-
file_path: zod_1.z.string().describe("Path to the file"),
|
|
42
|
-
content: zod_1.z.string().describe("File content (text or base64 encoded)"),
|
|
43
|
-
commit_message: zod_1.z.string().describe("Commit message"),
|
|
44
|
-
branch: zod_1.z.string().describe("Target branch name"),
|
|
45
|
-
start_branch: zod_1.z.string().optional().describe("Base branch to start from"),
|
|
46
|
-
encoding: zod_1.z.enum(["text", "base64"]).optional().describe("Content encoding (default: text)"),
|
|
47
|
-
author_email: zod_1.z.string().optional().describe("Commit author email"),
|
|
48
|
-
author_name: zod_1.z.string().optional().describe("Commit author name"),
|
|
49
|
-
last_commit_id: zod_1.z.string().optional().describe("Last known commit ID for conflict detection"),
|
|
50
|
-
execute_filemode: utils_1.flexibleBoolean.optional().describe("Set executable permission"),
|
|
51
|
-
});
|
|
52
6
|
const BatchFileActionSchema = zod_1.z.object({
|
|
53
7
|
file_path: zod_1.z.string().describe("Path to the file"),
|
|
54
8
|
content: zod_1.z.string().describe("File content"),
|
|
55
9
|
encoding: zod_1.z.enum(["text", "base64"]).optional().describe("Content encoding"),
|
|
56
10
|
execute_filemode: utils_1.flexibleBoolean.optional().describe("Set executable permission"),
|
|
57
11
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
action: zod_1.z.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
12
|
+
exports.ManageFilesSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
action: zod_1.z.enum(["single", "batch", "upload"]).describe("Action to perform"),
|
|
15
|
+
project_id: utils_1.requiredId.describe("Project ID or URL-encoded path"),
|
|
16
|
+
file_path: zod_1.z.string().optional().describe("Path to the file. Required for 'single' action."),
|
|
17
|
+
content: zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("File content (text or base64 encoded). Required for 'single' action."),
|
|
21
|
+
commit_message: zod_1.z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe("Commit message. Required for 'single' and 'batch' actions."),
|
|
25
|
+
branch: zod_1.z
|
|
26
|
+
.string()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe("Target branch name. Required for 'single' and 'batch' actions."),
|
|
64
29
|
start_branch: zod_1.z.string().optional().describe("Base branch to start from"),
|
|
30
|
+
encoding: zod_1.z
|
|
31
|
+
.enum(["text", "base64"])
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Content encoding (default: text). For 'single' action."),
|
|
65
34
|
author_email: zod_1.z.string().optional().describe("Commit author email"),
|
|
66
35
|
author_name: zod_1.z.string().optional().describe("Commit author name"),
|
|
36
|
+
last_commit_id: zod_1.z
|
|
37
|
+
.string()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("Last known commit ID for conflict detection. For 'single' action."),
|
|
40
|
+
execute_filemode: utils_1.flexibleBoolean
|
|
41
|
+
.optional()
|
|
42
|
+
.describe("Set executable permission. For 'single' action."),
|
|
43
|
+
files: zod_1.z
|
|
44
|
+
.array(BatchFileActionSchema)
|
|
45
|
+
.optional()
|
|
46
|
+
.describe("Files to commit. Required for 'batch' action."),
|
|
47
|
+
file: zod_1.z
|
|
48
|
+
.string()
|
|
49
|
+
.optional()
|
|
50
|
+
.describe("Base64 encoded file content. Required for 'upload' action."),
|
|
51
|
+
filename: zod_1.z.string().optional().describe("Name of the file. Required for 'upload' action."),
|
|
52
|
+
})
|
|
53
|
+
.refine(data => data.action !== "single" || data.file_path !== undefined, {
|
|
54
|
+
message: "file_path is required for 'single' action",
|
|
55
|
+
path: ["file_path"],
|
|
56
|
+
})
|
|
57
|
+
.refine(data => data.action !== "single" || data.content !== undefined, {
|
|
58
|
+
message: "content is required for 'single' action",
|
|
59
|
+
path: ["content"],
|
|
60
|
+
})
|
|
61
|
+
.refine(data => data.action !== "single" || data.commit_message !== undefined, {
|
|
62
|
+
message: "commit_message is required for 'single' action",
|
|
63
|
+
path: ["commit_message"],
|
|
64
|
+
})
|
|
65
|
+
.refine(data => data.action !== "single" || data.branch !== undefined, {
|
|
66
|
+
message: "branch is required for 'single' action",
|
|
67
|
+
path: ["branch"],
|
|
68
|
+
})
|
|
69
|
+
.refine(data => data.action !== "batch" || data.branch !== undefined, {
|
|
70
|
+
message: "branch is required for 'batch' action",
|
|
71
|
+
path: ["branch"],
|
|
72
|
+
})
|
|
73
|
+
.refine(data => data.action !== "batch" || data.commit_message !== undefined, {
|
|
74
|
+
message: "commit_message is required for 'batch' action",
|
|
75
|
+
path: ["commit_message"],
|
|
76
|
+
})
|
|
77
|
+
.refine(data => data.action !== "batch" || (data.files && data.files.length > 0), {
|
|
78
|
+
message: "files array with at least one file is required for 'batch' action",
|
|
79
|
+
path: ["files"],
|
|
80
|
+
})
|
|
81
|
+
.refine(data => data.action !== "upload" || data.file !== undefined, {
|
|
82
|
+
message: "file is required for 'upload' action",
|
|
83
|
+
path: ["file"],
|
|
84
|
+
})
|
|
85
|
+
.refine(data => data.action !== "upload" || data.filename !== undefined, {
|
|
86
|
+
message: "filename is required for 'upload' action",
|
|
87
|
+
path: ["filename"],
|
|
67
88
|
});
|
|
68
|
-
const ManageFilesUploadSchema = zod_1.z.object({
|
|
69
|
-
project_id: zod_1.z.coerce.string().describe("Project ID or URL-encoded path"),
|
|
70
|
-
action: zod_1.z.literal("upload"),
|
|
71
|
-
file: zod_1.z.string().describe("Base64 encoded file content"),
|
|
72
|
-
filename: zod_1.z.string().describe("Name of the file"),
|
|
73
|
-
});
|
|
74
|
-
exports.ManageFilesSchema = zod_1.z.discriminatedUnion("action", [
|
|
75
|
-
ManageFilesSingleSchema,
|
|
76
|
-
ManageFilesBatchSchema,
|
|
77
|
-
ManageFilesUploadSchema,
|
|
78
|
-
]);
|
|
79
89
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/entities/files/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/entities/files/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAAuD;AASvD,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;IAC5C,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC5E,gBAAgB,EAAE,uBAAe,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACnF,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC3E,UAAU,EAAE,kBAAU,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAEjE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IAC5F,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sEAAsE,CAAC;IAEnF,cAAc,EAAE,OAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4DAA4D,CAAC;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AI,KAAK,SAAS,EAAE;IACnE,OAAO,EAAE,sCAAsC;IAC/C,IAAI,EAAE,CAAC,MAAM,CAAC;CACf,CAAC;KACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;IACvE,OAAO,EAAE,0CAA0C;IACnD,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -32,21 +32,21 @@ export declare const ListProjectMilestonesSchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export declare const GetProjectMilestoneSchema: z.ZodObject<{
|
|
34
34
|
namespace: z.ZodString;
|
|
35
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
35
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
export declare const GetMilestoneIssuesSchema: z.ZodObject<{
|
|
38
38
|
namespace: z.ZodString;
|
|
39
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
39
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
export declare const GetMilestoneMergeRequestsSchema: z.ZodObject<{
|
|
42
42
|
namespace: z.ZodString;
|
|
43
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
43
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
44
44
|
page: z.ZodOptional<z.ZodNumber>;
|
|
45
45
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
export declare const GetMilestoneBurndownEventsSchema: z.ZodObject<{
|
|
48
48
|
namespace: z.ZodString;
|
|
49
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
49
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
50
50
|
page: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
52
52
|
}, z.core.$strip>;
|
|
@@ -51,7 +51,7 @@ exports.ListProjectMilestonesSchema = zod_1.z
|
|
|
51
51
|
.merge(shared_1.PaginationOptionsSchema);
|
|
52
52
|
const GetProjectMilestoneBaseSchema = zod_1.z.object({
|
|
53
53
|
namespace: zod_1.z.string().describe("Namespace path (group or project) containing the milestone"),
|
|
54
|
-
milestone_id:
|
|
54
|
+
milestone_id: utils_1.requiredId.describe("The ID of a project or group milestone"),
|
|
55
55
|
});
|
|
56
56
|
exports.GetProjectMilestoneSchema = GetProjectMilestoneBaseSchema;
|
|
57
57
|
exports.GetMilestoneIssuesSchema = exports.GetProjectMilestoneSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-readonly.js","sourceRoot":"","sources":["../../../../src/entities/milestones/schema-readonly.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sCAA2E;AAIlE,sGAJyB,8BAAqB,OAIzB;AAH9B,
|
|
1
|
+
{"version":3,"file":"schema-readonly.js","sourceRoot":"","sources":["../../../../src/entities/milestones/schema-readonly.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sCAA2E;AAIlE,sGAJyB,8BAAqB,OAIzB;AAH9B,oCAAuD;AAM1C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAA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AuB,CAAC,CAAC;AAGlC,MAAM,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4DAA4D,CAAC;IAC5F,YAAY,EAAE,kBAAU,CAAC,QAAQ,CAAC,wCAAwC,CAAC;CAC5E,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,6BAA6B,CAAC;AAG1D,QAAA,wBAAwB,GAAG,iCAAyB,CAAC;AAGrD,QAAA,+BAA+B,GAC1C,6BAA6B,CAAC,KAAK,CAAC,gCAAuB,CAAC,CAAC;AAGlD,QAAA,gCAAgC,GAC3C,6BAA6B,CAAC,KAAK,CAAC,gCAAuB,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const CreateProjectMilestoneSchema: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export declare const EditProjectMilestoneSchema: z.ZodObject<{
|
|
10
10
|
namespace: z.ZodString;
|
|
11
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
11
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
12
12
|
title: z.ZodOptional<z.ZodString>;
|
|
13
13
|
description: z.ZodOptional<z.ZodString>;
|
|
14
14
|
due_date: z.ZodOptional<z.ZodString>;
|
|
@@ -20,11 +20,11 @@ export declare const EditProjectMilestoneSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export declare const DeleteProjectMilestoneSchema: z.ZodObject<{
|
|
22
22
|
namespace: z.ZodString;
|
|
23
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
23
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export declare const PromoteProjectMilestoneSchema: z.ZodObject<{
|
|
26
26
|
namespace: z.ZodString;
|
|
27
|
-
milestone_id: z.ZodCoercedString<unknown
|
|
27
|
+
milestone_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
export type CreateProjectMilestoneOptions = z.infer<typeof CreateProjectMilestoneSchema>;
|
|
30
30
|
export type EditProjectMilestoneOptions = z.infer<typeof EditProjectMilestoneSchema>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PromoteProjectMilestoneSchema = exports.DeleteProjectMilestoneSchema = exports.EditProjectMilestoneSchema = exports.CreateProjectMilestoneSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
5
6
|
exports.CreateProjectMilestoneSchema = zod_1.z.object({
|
|
6
7
|
namespace: zod_1.z.string().describe("Namespace path (group or project) to create milestone in"),
|
|
7
8
|
title: zod_1.z.string().describe("The title of the milestone"),
|
|
@@ -11,7 +12,7 @@ exports.CreateProjectMilestoneSchema = zod_1.z.object({
|
|
|
11
12
|
});
|
|
12
13
|
exports.EditProjectMilestoneSchema = zod_1.z.object({
|
|
13
14
|
namespace: zod_1.z.string().describe("Namespace path (group or project) containing the milestone"),
|
|
14
|
-
milestone_id:
|
|
15
|
+
milestone_id: utils_1.requiredId.describe("The ID of a project or group milestone"),
|
|
15
16
|
title: zod_1.z.string().optional().describe("The title of the milestone"),
|
|
16
17
|
description: zod_1.z.string().optional().describe("The description of the milestone"),
|
|
17
18
|
due_date: zod_1.z.string().optional().describe("The due date of the milestone (YYYY-MM-DD)"),
|
|
@@ -25,10 +26,10 @@ exports.EditProjectMilestoneSchema = zod_1.z.object({
|
|
|
25
26
|
});
|
|
26
27
|
exports.DeleteProjectMilestoneSchema = zod_1.z.object({
|
|
27
28
|
namespace: zod_1.z.string().describe("Namespace path (group or project) containing the milestone"),
|
|
28
|
-
milestone_id:
|
|
29
|
+
milestone_id: utils_1.requiredId.describe("The ID of a project or group milestone"),
|
|
29
30
|
});
|
|
30
31
|
exports.PromoteProjectMilestoneSchema = zod_1.z.object({
|
|
31
32
|
namespace: zod_1.z.string().describe("Namespace path (group or project) containing the milestone"),
|
|
32
|
-
milestone_id:
|
|
33
|
+
milestone_id: utils_1.requiredId.describe("The ID of a project or group milestone"),
|
|
33
34
|
});
|
|
34
35
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/entities/milestones/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/entities/milestones/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAAsC;AAIzB,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IAC1F,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACxD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC/E,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACtF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;CAC3F,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4DAA4D,CAAC;IAC5F,YAAY,EAAE,kBAAU,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IAC3E,KAAK,EAAE,OAAC,CAAC,MAAM,E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