@structured-world/gitlab-mcp 5.6.1 → 5.8.0

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.
Files changed (95) hide show
  1. package/README.md +236 -1
  2. package/dist/config.d.ts +5 -0
  3. package/dist/config.js +6 -1
  4. package/dist/config.js.map +1 -1
  5. package/dist/entities/core/registry.js +53 -20
  6. package/dist/entities/core/registry.js.map +1 -1
  7. package/dist/entities/core/schema-readonly.d.ts +172 -442
  8. package/dist/entities/core/schema.d.ts +65 -173
  9. package/dist/entities/files/registry.js +51 -22
  10. package/dist/entities/files/registry.js.map +1 -1
  11. package/dist/entities/files/schema-readonly.d.ts +24 -124
  12. package/dist/entities/files/schema.d.ts +17 -82
  13. package/dist/entities/labels/registry.js +39 -6
  14. package/dist/entities/labels/registry.js.map +1 -1
  15. package/dist/entities/labels/schema-readonly.d.ts +6 -24
  16. package/dist/entities/labels/schema.d.ts +5 -37
  17. package/dist/entities/milestones/registry.js +44 -11
  18. package/dist/entities/milestones/registry.js.map +1 -1
  19. package/dist/entities/milestones/schema-readonly.d.ts +20 -100
  20. package/dist/entities/milestones/schema.d.ts +11 -48
  21. package/dist/entities/mrs/registry.js +56 -23
  22. package/dist/entities/mrs/registry.js.map +1 -1
  23. package/dist/entities/mrs/schema-readonly.d.ts +68 -243
  24. package/dist/entities/mrs/schema.d.ts +142 -885
  25. package/dist/entities/pipelines/registry.js +46 -13
  26. package/dist/entities/pipelines/registry.js.map +1 -1
  27. package/dist/entities/pipelines/schema-readonly.d.ts +115 -525
  28. package/dist/entities/pipelines/schema.d.ts +30 -104
  29. package/dist/entities/shared.d.ts +110 -787
  30. package/dist/entities/utils.d.ts +2 -2
  31. package/dist/entities/variables/registry.js +40 -7
  32. package/dist/entities/variables/registry.js.map +1 -1
  33. package/dist/entities/variables/schema-readonly.d.ts +3 -28
  34. package/dist/entities/variables/schema.d.ts +20 -80
  35. package/dist/entities/wiki/registry.js +40 -13
  36. package/dist/entities/wiki/registry.js.map +1 -1
  37. package/dist/entities/wiki/schema-readonly.d.ts +4 -35
  38. package/dist/entities/wiki/schema.d.ts +3 -31
  39. package/dist/entities/workitems/registry.js +40 -7
  40. package/dist/entities/workitems/registry.js.map +1 -1
  41. package/dist/entities/workitems/schema-readonly.d.ts +35 -32
  42. package/dist/entities/workitems/schema-readonly.js +1 -1
  43. package/dist/entities/workitems/schema-readonly.js.map +1 -1
  44. package/dist/entities/workitems/schema.d.ts +21 -45
  45. package/dist/middleware/index.d.ts +1 -0
  46. package/dist/middleware/index.js +8 -0
  47. package/dist/middleware/index.js.map +1 -0
  48. package/dist/middleware/oauth-auth.d.ts +4 -0
  49. package/dist/middleware/oauth-auth.js +135 -0
  50. package/dist/middleware/oauth-auth.js.map +1 -0
  51. package/dist/oauth/config.d.ts +19 -0
  52. package/dist/oauth/config.js +70 -0
  53. package/dist/oauth/config.js.map +1 -0
  54. package/dist/oauth/endpoints/authorize.d.ts +3 -0
  55. package/dist/oauth/endpoints/authorize.js +414 -0
  56. package/dist/oauth/endpoints/authorize.js.map +1 -0
  57. package/dist/oauth/endpoints/index.d.ts +3 -0
  58. package/dist/oauth/endpoints/index.js +13 -0
  59. package/dist/oauth/endpoints/index.js.map +1 -0
  60. package/dist/oauth/endpoints/metadata.d.ts +4 -0
  61. package/dist/oauth/endpoints/metadata.js +36 -0
  62. package/dist/oauth/endpoints/metadata.js.map +1 -0
  63. package/dist/oauth/endpoints/token.d.ts +2 -0
  64. package/dist/oauth/endpoints/token.js +159 -0
  65. package/dist/oauth/endpoints/token.js.map +1 -0
  66. package/dist/oauth/gitlab-device-flow.d.ts +8 -0
  67. package/dist/oauth/gitlab-device-flow.js +172 -0
  68. package/dist/oauth/gitlab-device-flow.js.map +1 -0
  69. package/dist/oauth/index.d.ts +8 -0
  70. package/dist/oauth/index.js +48 -0
  71. package/dist/oauth/index.js.map +1 -0
  72. package/dist/oauth/session-store.d.ts +37 -0
  73. package/dist/oauth/session-store.js +182 -0
  74. package/dist/oauth/session-store.js.map +1 -0
  75. package/dist/oauth/token-context.d.ts +8 -0
  76. package/dist/oauth/token-context.js +40 -0
  77. package/dist/oauth/token-context.js.map +1 -0
  78. package/dist/oauth/token-utils.d.ts +14 -0
  79. package/dist/oauth/token-utils.js +148 -0
  80. package/dist/oauth/token-utils.js.map +1 -0
  81. package/dist/oauth/types.d.ts +94 -0
  82. package/dist/oauth/types.js +3 -0
  83. package/dist/oauth/types.js.map +1 -0
  84. package/dist/server.js +147 -9
  85. package/dist/server.js.map +1 -1
  86. package/dist/structured-world-gitlab-mcp-5.8.0.tgz +0 -0
  87. package/dist/tsconfig.build.tsbuildinfo +1 -1
  88. package/dist/utils/fetch.d.ts +3 -7
  89. package/dist/utils/fetch.js +82 -54
  90. package/dist/utils/fetch.js.map +1 -1
  91. package/dist/utils/workItemTypes.d.ts +1 -1
  92. package/dist/utils/workItemTypes.js +2 -2
  93. package/dist/utils/workItemTypes.js.map +1 -1
  94. package/package.json +23 -23
  95. package/dist/structured-world-gitlab-mcp-5.6.1.tgz +0 -0
@@ -1,123 +1,49 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreatePipelineSchema: z.ZodObject<{
3
- project_id: z.ZodString;
3
+ project_id: z.ZodCoercedString<unknown>;
4
4
  ref: z.ZodString;
5
5
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
6
  key: z.ZodString;
7
7
  value: z.ZodString;
8
- variable_type: z.ZodOptional<z.ZodEnum<["env_var", "file"]>>;
9
- }, "strip", z.ZodTypeAny, {
10
- key: string;
11
- value: string;
12
- variable_type?: "file" | "env_var" | undefined;
13
- }, {
14
- key: string;
15
- value: string;
16
- variable_type?: "file" | "env_var" | undefined;
17
- }>, "many">>;
18
- }, "strip", z.ZodTypeAny, {
19
- project_id: string;
20
- ref: string;
21
- variables?: {
22
- key: string;
23
- value: string;
24
- variable_type?: "file" | "env_var" | undefined;
25
- }[] | undefined;
26
- }, {
27
- project_id: string;
28
- ref: string;
29
- variables?: {
30
- key: string;
31
- value: string;
32
- variable_type?: "file" | "env_var" | undefined;
33
- }[] | undefined;
34
- }>;
8
+ variable_type: z.ZodOptional<z.ZodEnum<{
9
+ file: "file";
10
+ env_var: "env_var";
11
+ }>>;
12
+ }, z.core.$strip>>>;
13
+ }, z.core.$strip>;
35
14
  export declare const RetryPipelineSchema: z.ZodObject<{
36
- project_id: z.ZodString;
37
- pipeline_id: z.ZodString;
38
- }, "strip", z.ZodTypeAny, {
39
- project_id: string;
40
- pipeline_id: string;
41
- }, {
42
- project_id: string;
43
- pipeline_id: string;
44
- }>;
15
+ project_id: z.ZodCoercedString<unknown>;
16
+ pipeline_id: z.ZodCoercedString<unknown>;
17
+ }, z.core.$strip>;
45
18
  export declare const CancelPipelineSchema: z.ZodObject<{
46
- project_id: z.ZodString;
47
- pipeline_id: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- project_id: string;
50
- pipeline_id: string;
51
- }, {
52
- project_id: string;
53
- pipeline_id: string;
54
- }>;
19
+ project_id: z.ZodCoercedString<unknown>;
20
+ pipeline_id: z.ZodCoercedString<unknown>;
21
+ }, z.core.$strip>;
55
22
  export declare const PlayPipelineJobSchema: z.ZodObject<{
56
- project_id: z.ZodString;
57
- job_id: z.ZodString;
23
+ project_id: z.ZodCoercedString<unknown>;
24
+ job_id: z.ZodCoercedString<unknown>;
58
25
  job_variables_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
26
  key: z.ZodString;
60
27
  value: z.ZodString;
61
- variable_type: z.ZodOptional<z.ZodEnum<["env_var", "file"]>>;
62
- }, "strip", z.ZodTypeAny, {
63
- key: string;
64
- value: string;
65
- variable_type?: "file" | "env_var" | undefined;
66
- }, {
67
- key: string;
68
- value: string;
69
- variable_type?: "file" | "env_var" | undefined;
70
- }>, "many">>;
71
- }, "strip", z.ZodTypeAny, {
72
- project_id: string;
73
- job_id: string;
74
- job_variables_attributes?: {
75
- key: string;
76
- value: string;
77
- variable_type?: "file" | "env_var" | undefined;
78
- }[] | undefined;
79
- }, {
80
- project_id: string;
81
- job_id: string;
82
- job_variables_attributes?: {
83
- key: string;
84
- value: string;
85
- variable_type?: "file" | "env_var" | undefined;
86
- }[] | undefined;
87
- }>;
28
+ variable_type: z.ZodOptional<z.ZodEnum<{
29
+ file: "file";
30
+ env_var: "env_var";
31
+ }>>;
32
+ }, z.core.$strip>>>;
33
+ }, z.core.$strip>;
88
34
  export declare const PipelineJobControlSchema: z.ZodObject<{
89
- project_id: z.ZodString;
90
- job_id: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- project_id: string;
93
- job_id: string;
94
- }, {
95
- project_id: string;
96
- job_id: string;
97
- }>;
35
+ project_id: z.ZodCoercedString<unknown>;
36
+ job_id: z.ZodCoercedString<unknown>;
37
+ }, z.core.$strip>;
98
38
  export declare const RetryPipelineJobSchema: z.ZodObject<{
99
- project_id: z.ZodString;
100
- job_id: z.ZodString;
101
- }, "strip", z.ZodTypeAny, {
102
- project_id: string;
103
- job_id: string;
104
- }, {
105
- project_id: string;
106
- job_id: string;
107
- }>;
39
+ project_id: z.ZodCoercedString<unknown>;
40
+ job_id: z.ZodCoercedString<unknown>;
41
+ }, z.core.$strip>;
108
42
  export declare const CancelPipelineJobSchema: z.ZodObject<{
109
- project_id: z.ZodString;
110
- job_id: z.ZodString;
43
+ project_id: z.ZodCoercedString<unknown>;
44
+ job_id: z.ZodCoercedString<unknown>;
111
45
  force: z.ZodOptional<z.ZodBoolean>;
112
- }, "strip", z.ZodTypeAny, {
113
- project_id: string;
114
- job_id: string;
115
- force?: boolean | undefined;
116
- }, {
117
- project_id: string;
118
- job_id: string;
119
- force?: boolean | undefined;
120
- }>;
46
+ }, z.core.$strip>;
121
47
  export type CreatePipelineOptions = z.infer<typeof CreatePipelineSchema>;
122
48
  export type RetryPipelineOptions = z.infer<typeof RetryPipelineSchema>;
123
49
  export type CancelPipelineOptions = z.infer<typeof CancelPipelineSchema>;