@structured-world/gitlab-mcp 4.0.0 → 4.1.1

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 (86) hide show
  1. package/README.md +90 -4
  2. package/dist/entities/core/registry.js +162 -70
  3. package/dist/entities/core/registry.js.map +1 -1
  4. package/dist/entities/core/schema-readonly.d.ts +421 -199
  5. package/dist/entities/core/schema-readonly.js +222 -131
  6. package/dist/entities/core/schema-readonly.js.map +1 -1
  7. package/dist/entities/core/schema.d.ts +152 -61
  8. package/dist/entities/core/schema.js +111 -55
  9. package/dist/entities/core/schema.js.map +1 -1
  10. package/dist/entities/files/registry.js +5 -5
  11. package/dist/entities/files/registry.js.map +1 -1
  12. package/dist/entities/files/schema-readonly.d.ts +124 -24
  13. package/dist/entities/files/schema.d.ts +82 -17
  14. package/dist/entities/labels/registry.js +23 -34
  15. package/dist/entities/labels/registry.js.map +1 -1
  16. package/dist/entities/labels/schema-readonly.d.ts +26 -10
  17. package/dist/entities/labels/schema-readonly.js +5 -15
  18. package/dist/entities/labels/schema-readonly.js.map +1 -1
  19. package/dist/entities/labels/schema.d.ts +40 -11
  20. package/dist/entities/labels/schema.js +8 -23
  21. package/dist/entities/labels/schema.js.map +1 -1
  22. package/dist/entities/milestones/registry.js +44 -61
  23. package/dist/entities/milestones/registry.js.map +1 -1
  24. package/dist/entities/milestones/schema-readonly.d.ts +105 -30
  25. package/dist/entities/milestones/schema-readonly.js +7 -15
  26. package/dist/entities/milestones/schema-readonly.js.map +1 -1
  27. package/dist/entities/milestones/schema.d.ts +52 -19
  28. package/dist/entities/milestones/schema.js +8 -28
  29. package/dist/entities/milestones/schema.js.map +1 -1
  30. package/dist/entities/mrs/registry.js +20 -20
  31. package/dist/entities/mrs/registry.js.map +1 -1
  32. package/dist/entities/mrs/schema-readonly.d.ts +243 -68
  33. package/dist/entities/mrs/schema-readonly.js +83 -54
  34. package/dist/entities/mrs/schema-readonly.js.map +1 -1
  35. package/dist/entities/mrs/schema.d.ts +885 -142
  36. package/dist/entities/mrs/schema.js +113 -37
  37. package/dist/entities/mrs/schema.js.map +1 -1
  38. package/dist/entities/pipelines/registry.js +12 -12
  39. package/dist/entities/pipelines/registry.js.map +1 -1
  40. package/dist/entities/pipelines/schema-readonly.d.ts +525 -115
  41. package/dist/entities/pipelines/schema.d.ts +104 -30
  42. package/dist/entities/shared.d.ts +787 -110
  43. package/dist/entities/utils.d.ts +2 -2
  44. package/dist/entities/variables/registry.js +23 -33
  45. package/dist/entities/variables/registry.js.map +1 -1
  46. package/dist/entities/variables/schema-readonly.d.ts +30 -7
  47. package/dist/entities/variables/schema-readonly.js +4 -13
  48. package/dist/entities/variables/schema-readonly.js.map +1 -1
  49. package/dist/entities/variables/schema.d.ts +83 -26
  50. package/dist/entities/variables/schema.js +6 -21
  51. package/dist/entities/variables/schema.js.map +1 -1
  52. package/dist/entities/wiki/registry.js +25 -42
  53. package/dist/entities/wiki/registry.js.map +1 -1
  54. package/dist/entities/wiki/schema-readonly.d.ts +37 -8
  55. package/dist/entities/wiki/schema-readonly.js +4 -13
  56. package/dist/entities/wiki/schema-readonly.js.map +1 -1
  57. package/dist/entities/wiki/schema.d.ts +34 -9
  58. package/dist/entities/wiki/schema.js +6 -21
  59. package/dist/entities/wiki/schema.js.map +1 -1
  60. package/dist/entities/workitems/registry.js +94 -13
  61. package/dist/entities/workitems/registry.js.map +1 -1
  62. package/dist/entities/workitems/schema-readonly.d.ts +29 -32
  63. package/dist/entities/workitems/schema-readonly.js +7 -2
  64. package/dist/entities/workitems/schema-readonly.js.map +1 -1
  65. package/dist/entities/workitems/schema.d.ts +45 -21
  66. package/dist/graphql/workItems.d.ts +34 -1
  67. package/dist/graphql/workItems.js +349 -2
  68. package/dist/graphql/workItems.js.map +1 -1
  69. package/dist/handlers.js +44 -0
  70. package/dist/handlers.js.map +1 -1
  71. package/dist/registry-manager.d.ts +1 -0
  72. package/dist/registry-manager.js +54 -0
  73. package/dist/registry-manager.js.map +1 -1
  74. package/dist/services/ConnectionManager.js +3 -3
  75. package/dist/services/ConnectionManager.js.map +1 -1
  76. package/dist/services/SchemaIntrospector.js +3 -3
  77. package/dist/services/SchemaIntrospector.js.map +1 -1
  78. package/dist/services/ToolAvailability.js +30 -1
  79. package/dist/services/ToolAvailability.js.map +1 -1
  80. package/dist/structured-world-gitlab-mcp-4.1.1.tgz +0 -0
  81. package/dist/tsconfig.build.tsbuildinfo +1 -1
  82. package/dist/utils/namespace.d.ts +6 -0
  83. package/dist/utils/namespace.js +52 -0
  84. package/dist/utils/namespace.js.map +1 -0
  85. package/package.json +5 -3
  86. package/dist/structured-world-gitlab-mcp-4.0.0.tgz +0 -0
@@ -3,10 +3,7 @@ export declare const MergeRequestThreadPositionCreateSchema: z.ZodObject<{
3
3
  base_sha: z.ZodOptional<z.ZodString>;
4
4
  start_sha: z.ZodOptional<z.ZodString>;
5
5
  head_sha: z.ZodOptional<z.ZodString>;
6
- position_type: z.ZodOptional<z.ZodEnum<{
7
- text: "text";
8
- image: "image";
9
- }>>;
6
+ position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
10
7
  old_path: z.ZodOptional<z.ZodString>;
11
8
  new_path: z.ZodOptional<z.ZodString>;
12
9
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -14,117 +11,336 @@ export declare const MergeRequestThreadPositionCreateSchema: z.ZodObject<{
14
11
  line_range: z.ZodOptional<z.ZodObject<{
15
12
  start: z.ZodObject<{
16
13
  line_code: z.ZodString;
17
- type: z.ZodOptional<z.ZodEnum<{
18
- new: "new";
19
- old: "old";
20
- }>>;
14
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
21
15
  old_line: z.ZodOptional<z.ZodNumber>;
22
16
  new_line: z.ZodOptional<z.ZodNumber>;
23
- }, z.core.$strip>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ line_code: string;
19
+ type?: "new" | "old" | undefined;
20
+ old_line?: number | undefined;
21
+ new_line?: number | undefined;
22
+ }, {
23
+ line_code: string;
24
+ type?: "new" | "old" | undefined;
25
+ old_line?: number | undefined;
26
+ new_line?: number | undefined;
27
+ }>;
24
28
  end: z.ZodObject<{
25
29
  line_code: z.ZodString;
26
- type: z.ZodOptional<z.ZodEnum<{
27
- new: "new";
28
- old: "old";
29
- }>>;
30
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
30
31
  old_line: z.ZodOptional<z.ZodNumber>;
31
32
  new_line: z.ZodOptional<z.ZodNumber>;
32
- }, z.core.$strip>;
33
- }, z.core.$strip>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ line_code: string;
35
+ type?: "new" | "old" | undefined;
36
+ old_line?: number | undefined;
37
+ new_line?: number | undefined;
38
+ }, {
39
+ line_code: string;
40
+ type?: "new" | "old" | undefined;
41
+ old_line?: number | undefined;
42
+ new_line?: number | undefined;
43
+ }>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ start: {
46
+ line_code: string;
47
+ type?: "new" | "old" | undefined;
48
+ old_line?: number | undefined;
49
+ new_line?: number | undefined;
50
+ };
51
+ end: {
52
+ line_code: string;
53
+ type?: "new" | "old" | undefined;
54
+ old_line?: number | undefined;
55
+ new_line?: number | undefined;
56
+ };
57
+ }, {
58
+ start: {
59
+ line_code: string;
60
+ type?: "new" | "old" | undefined;
61
+ old_line?: number | undefined;
62
+ new_line?: number | undefined;
63
+ };
64
+ end: {
65
+ line_code: string;
66
+ type?: "new" | "old" | undefined;
67
+ old_line?: number | undefined;
68
+ new_line?: number | undefined;
69
+ };
70
+ }>>;
34
71
  width: z.ZodOptional<z.ZodNumber>;
35
72
  height: z.ZodOptional<z.ZodNumber>;
36
73
  x: z.ZodOptional<z.ZodNumber>;
37
74
  y: z.ZodOptional<z.ZodNumber>;
38
- }, z.core.$strip>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ base_sha?: string | undefined;
77
+ start_sha?: string | undefined;
78
+ head_sha?: string | undefined;
79
+ position_type?: "text" | "image" | undefined;
80
+ old_path?: string | undefined;
81
+ new_path?: string | undefined;
82
+ old_line?: number | undefined;
83
+ new_line?: number | undefined;
84
+ line_range?: {
85
+ start: {
86
+ line_code: string;
87
+ type?: "new" | "old" | undefined;
88
+ old_line?: number | undefined;
89
+ new_line?: number | undefined;
90
+ };
91
+ end: {
92
+ line_code: string;
93
+ type?: "new" | "old" | undefined;
94
+ old_line?: number | undefined;
95
+ new_line?: number | undefined;
96
+ };
97
+ } | undefined;
98
+ width?: number | undefined;
99
+ height?: number | undefined;
100
+ x?: number | undefined;
101
+ y?: number | undefined;
102
+ }, {
103
+ base_sha?: string | undefined;
104
+ start_sha?: string | undefined;
105
+ head_sha?: string | undefined;
106
+ position_type?: "text" | "image" | undefined;
107
+ old_path?: string | undefined;
108
+ new_path?: string | undefined;
109
+ old_line?: number | undefined;
110
+ new_line?: number | undefined;
111
+ line_range?: {
112
+ start: {
113
+ line_code: string;
114
+ type?: "new" | "old" | undefined;
115
+ old_line?: number | undefined;
116
+ new_line?: number | undefined;
117
+ };
118
+ end: {
119
+ line_code: string;
120
+ type?: "new" | "old" | undefined;
121
+ old_line?: number | undefined;
122
+ new_line?: number | undefined;
123
+ };
124
+ } | undefined;
125
+ width?: number | undefined;
126
+ height?: number | undefined;
127
+ x?: number | undefined;
128
+ y?: number | undefined;
129
+ }>;
39
130
  export declare const CreateMergeRequestOptionsSchema: z.ZodObject<{
40
131
  source_branch: z.ZodString;
41
132
  target_branch: z.ZodString;
42
133
  title: z.ZodString;
43
134
  assignee_id: z.ZodOptional<z.ZodNumber>;
44
- assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
45
- reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
135
+ assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
136
+ reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
46
137
  description: z.ZodOptional<z.ZodString>;
47
- target_project_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
48
- labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
138
+ target_project_id: z.ZodOptional<z.ZodString>;
139
+ labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
49
140
  milestone_id: z.ZodOptional<z.ZodNumber>;
50
- remove_source_branch: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
51
- allow_collaboration: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
52
- allow_maintainer_to_push: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
53
- squash: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
54
- }, z.core.$strip>;
141
+ remove_source_branch: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
142
+ allow_collaboration: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
143
+ allow_maintainer_to_push: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
144
+ squash: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ title: string;
147
+ source_branch: string;
148
+ target_branch: string;
149
+ labels?: string | string[] | undefined;
150
+ description?: string | undefined;
151
+ assignee_id?: number | undefined;
152
+ assignee_ids?: number[] | undefined;
153
+ reviewer_ids?: number[] | undefined;
154
+ target_project_id?: string | undefined;
155
+ milestone_id?: number | undefined;
156
+ remove_source_branch?: boolean | undefined;
157
+ allow_collaboration?: boolean | undefined;
158
+ allow_maintainer_to_push?: boolean | undefined;
159
+ squash?: boolean | undefined;
160
+ }, {
161
+ title: string;
162
+ source_branch: string;
163
+ target_branch: string;
164
+ labels?: string | string[] | undefined;
165
+ description?: string | undefined;
166
+ assignee_id?: number | undefined;
167
+ assignee_ids?: number[] | undefined;
168
+ reviewer_ids?: number[] | undefined;
169
+ target_project_id?: string | undefined;
170
+ milestone_id?: number | undefined;
171
+ remove_source_branch?: unknown;
172
+ allow_collaboration?: unknown;
173
+ allow_maintainer_to_push?: unknown;
174
+ squash?: unknown;
175
+ }>;
55
176
  export declare const CreateMergeRequestSchema: z.ZodObject<{
56
- project_id: z.ZodCoercedString<unknown>;
177
+ project_id: z.ZodString;
178
+ } & {
57
179
  source_branch: z.ZodString;
58
180
  target_branch: z.ZodString;
59
181
  title: z.ZodString;
60
182
  assignee_id: z.ZodOptional<z.ZodNumber>;
61
- assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
62
- reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
183
+ assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
184
+ reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
63
185
  description: z.ZodOptional<z.ZodString>;
64
- target_project_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
65
- labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
186
+ target_project_id: z.ZodOptional<z.ZodString>;
187
+ labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
66
188
  milestone_id: z.ZodOptional<z.ZodNumber>;
67
- remove_source_branch: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
68
- allow_collaboration: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
69
- allow_maintainer_to_push: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
70
- squash: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
71
- }, z.core.$strip>;
189
+ remove_source_branch: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
190
+ allow_collaboration: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
191
+ allow_maintainer_to_push: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
192
+ squash: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ title: string;
195
+ project_id: string;
196
+ source_branch: string;
197
+ target_branch: string;
198
+ labels?: string | string[] | undefined;
199
+ description?: string | undefined;
200
+ assignee_id?: number | undefined;
201
+ assignee_ids?: number[] | undefined;
202
+ reviewer_ids?: number[] | undefined;
203
+ target_project_id?: string | undefined;
204
+ milestone_id?: number | undefined;
205
+ remove_source_branch?: boolean | undefined;
206
+ allow_collaboration?: boolean | undefined;
207
+ allow_maintainer_to_push?: boolean | undefined;
208
+ squash?: boolean | undefined;
209
+ }, {
210
+ title: string;
211
+ project_id: string;
212
+ source_branch: string;
213
+ target_branch: string;
214
+ labels?: string | string[] | undefined;
215
+ description?: string | undefined;
216
+ assignee_id?: number | undefined;
217
+ assignee_ids?: number[] | undefined;
218
+ reviewer_ids?: number[] | undefined;
219
+ target_project_id?: string | undefined;
220
+ milestone_id?: number | undefined;
221
+ remove_source_branch?: unknown;
222
+ allow_collaboration?: unknown;
223
+ allow_maintainer_to_push?: unknown;
224
+ squash?: unknown;
225
+ }>;
72
226
  export declare const UpdateMergeRequestSchema: z.ZodObject<{
73
- project_id: z.ZodCoercedString<unknown>;
74
- merge_request_iid: z.ZodCoercedString<unknown>;
227
+ project_id: z.ZodString;
228
+ merge_request_iid: z.ZodString;
75
229
  target_branch: z.ZodOptional<z.ZodString>;
76
230
  title: z.ZodOptional<z.ZodString>;
77
231
  assignee_id: z.ZodOptional<z.ZodNumber>;
78
- assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
79
- reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
232
+ assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
233
+ reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
80
234
  description: z.ZodOptional<z.ZodString>;
81
- labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
82
- add_labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
83
- remove_labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
84
- state_event: z.ZodOptional<z.ZodEnum<{
85
- close: "close";
86
- reopen: "reopen";
87
- }>>;
88
- remove_source_branch: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
89
- squash: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
90
- discussion_locked: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
91
- allow_collaboration: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
92
- allow_maintainer_to_push: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
235
+ labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
236
+ add_labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
237
+ remove_labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
238
+ state_event: z.ZodOptional<z.ZodEnum<["close", "reopen"]>>;
239
+ remove_source_branch: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
240
+ squash: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
241
+ discussion_locked: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
242
+ allow_collaboration: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
243
+ allow_maintainer_to_push: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
93
244
  milestone_id: z.ZodOptional<z.ZodNumber>;
94
- }, z.core.$strip>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ project_id: string;
247
+ merge_request_iid: string;
248
+ labels?: string | string[] | undefined;
249
+ title?: string | undefined;
250
+ description?: string | undefined;
251
+ discussion_locked?: boolean | undefined;
252
+ assignee_id?: number | undefined;
253
+ target_branch?: string | undefined;
254
+ assignee_ids?: number[] | undefined;
255
+ reviewer_ids?: number[] | undefined;
256
+ milestone_id?: number | undefined;
257
+ remove_source_branch?: boolean | undefined;
258
+ allow_collaboration?: boolean | undefined;
259
+ allow_maintainer_to_push?: boolean | undefined;
260
+ squash?: boolean | undefined;
261
+ add_labels?: string | string[] | undefined;
262
+ remove_labels?: string | string[] | undefined;
263
+ state_event?: "close" | "reopen" | undefined;
264
+ }, {
265
+ project_id: string;
266
+ merge_request_iid: string;
267
+ labels?: string | string[] | undefined;
268
+ title?: string | undefined;
269
+ description?: string | undefined;
270
+ discussion_locked?: unknown;
271
+ assignee_id?: number | undefined;
272
+ target_branch?: string | undefined;
273
+ assignee_ids?: number[] | undefined;
274
+ reviewer_ids?: number[] | undefined;
275
+ milestone_id?: number | undefined;
276
+ remove_source_branch?: unknown;
277
+ allow_collaboration?: unknown;
278
+ allow_maintainer_to_push?: unknown;
279
+ squash?: unknown;
280
+ add_labels?: string | string[] | undefined;
281
+ remove_labels?: string | string[] | undefined;
282
+ state_event?: "close" | "reopen" | undefined;
283
+ }>;
95
284
  export declare const MergeMergeRequestSchema: z.ZodObject<{
96
- project_id: z.ZodCoercedString<unknown>;
97
- merge_request_iid: z.ZodCoercedString<unknown>;
285
+ project_id: z.ZodString;
286
+ merge_request_iid: z.ZodString;
98
287
  merge_commit_message: z.ZodOptional<z.ZodString>;
99
288
  squash_commit_message: z.ZodOptional<z.ZodString>;
100
- should_remove_source_branch: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
101
- merge_when_pipeline_succeeds: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
289
+ should_remove_source_branch: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
290
+ merge_when_pipeline_succeeds: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
102
291
  sha: z.ZodOptional<z.ZodString>;
103
- squash: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
104
- }, z.core.$strip>;
292
+ squash: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ project_id: string;
295
+ merge_request_iid: string;
296
+ squash?: boolean | undefined;
297
+ merge_commit_message?: string | undefined;
298
+ squash_commit_message?: string | undefined;
299
+ should_remove_source_branch?: boolean | undefined;
300
+ merge_when_pipeline_succeeds?: boolean | undefined;
301
+ sha?: string | undefined;
302
+ }, {
303
+ project_id: string;
304
+ merge_request_iid: string;
305
+ squash?: unknown;
306
+ merge_commit_message?: string | undefined;
307
+ squash_commit_message?: string | undefined;
308
+ should_remove_source_branch?: unknown;
309
+ merge_when_pipeline_succeeds?: unknown;
310
+ sha?: string | undefined;
311
+ }>;
105
312
  export declare const CreateNoteSchema: z.ZodObject<{
106
- project_id: z.ZodCoercedString<unknown>;
107
- noteable_type: z.ZodEnum<{
108
- issue: "issue";
109
- merge_request: "merge_request";
110
- }>;
111
- noteable_id: z.ZodCoercedString<unknown>;
313
+ project_id: z.ZodString;
314
+ noteable_type: z.ZodEnum<["issue", "merge_request"]>;
315
+ noteable_id: z.ZodString;
112
316
  body: z.ZodString;
113
317
  created_at: z.ZodOptional<z.ZodString>;
114
- confidential: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
115
- }, z.core.$strip>;
318
+ confidential: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ body: string;
321
+ project_id: string;
322
+ noteable_type: "issue" | "merge_request";
323
+ noteable_id: string;
324
+ created_at?: string | undefined;
325
+ confidential?: boolean | undefined;
326
+ }, {
327
+ body: string;
328
+ project_id: string;
329
+ noteable_type: "issue" | "merge_request";
330
+ noteable_id: string;
331
+ created_at?: string | undefined;
332
+ confidential?: unknown;
333
+ }>;
116
334
  export declare const CreateMergeRequestThreadSchema: z.ZodObject<{
117
- project_id: z.ZodCoercedString<unknown>;
118
- merge_request_iid: z.ZodCoercedString<unknown>;
335
+ project_id: z.ZodString;
336
+ } & {
337
+ merge_request_iid: z.ZodString;
119
338
  body: z.ZodString;
120
339
  position: z.ZodOptional<z.ZodObject<{
121
340
  base_sha: z.ZodOptional<z.ZodString>;
122
341
  start_sha: z.ZodOptional<z.ZodString>;
123
342
  head_sha: z.ZodOptional<z.ZodString>;
124
- position_type: z.ZodOptional<z.ZodEnum<{
125
- text: "text";
126
- image: "image";
127
- }>>;
343
+ position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
128
344
  old_path: z.ZodOptional<z.ZodString>;
129
345
  new_path: z.ZodOptional<z.ZodString>;
130
346
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -132,55 +348,237 @@ export declare const CreateMergeRequestThreadSchema: z.ZodObject<{
132
348
  line_range: z.ZodOptional<z.ZodObject<{
133
349
  start: z.ZodObject<{
134
350
  line_code: z.ZodString;
135
- type: z.ZodOptional<z.ZodEnum<{
136
- new: "new";
137
- old: "old";
138
- }>>;
351
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
139
352
  old_line: z.ZodOptional<z.ZodNumber>;
140
353
  new_line: z.ZodOptional<z.ZodNumber>;
141
- }, z.core.$strip>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ line_code: string;
356
+ type?: "new" | "old" | undefined;
357
+ old_line?: number | undefined;
358
+ new_line?: number | undefined;
359
+ }, {
360
+ line_code: string;
361
+ type?: "new" | "old" | undefined;
362
+ old_line?: number | undefined;
363
+ new_line?: number | undefined;
364
+ }>;
142
365
  end: z.ZodObject<{
143
366
  line_code: z.ZodString;
144
- type: z.ZodOptional<z.ZodEnum<{
145
- new: "new";
146
- old: "old";
147
- }>>;
367
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
148
368
  old_line: z.ZodOptional<z.ZodNumber>;
149
369
  new_line: z.ZodOptional<z.ZodNumber>;
150
- }, z.core.$strip>;
151
- }, z.core.$strip>>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ line_code: string;
372
+ type?: "new" | "old" | undefined;
373
+ old_line?: number | undefined;
374
+ new_line?: number | undefined;
375
+ }, {
376
+ line_code: string;
377
+ type?: "new" | "old" | undefined;
378
+ old_line?: number | undefined;
379
+ new_line?: number | undefined;
380
+ }>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ start: {
383
+ line_code: string;
384
+ type?: "new" | "old" | undefined;
385
+ old_line?: number | undefined;
386
+ new_line?: number | undefined;
387
+ };
388
+ end: {
389
+ line_code: string;
390
+ type?: "new" | "old" | undefined;
391
+ old_line?: number | undefined;
392
+ new_line?: number | undefined;
393
+ };
394
+ }, {
395
+ start: {
396
+ line_code: string;
397
+ type?: "new" | "old" | undefined;
398
+ old_line?: number | undefined;
399
+ new_line?: number | undefined;
400
+ };
401
+ end: {
402
+ line_code: string;
403
+ type?: "new" | "old" | undefined;
404
+ old_line?: number | undefined;
405
+ new_line?: number | undefined;
406
+ };
407
+ }>>;
152
408
  width: z.ZodOptional<z.ZodNumber>;
153
409
  height: z.ZodOptional<z.ZodNumber>;
154
410
  x: z.ZodOptional<z.ZodNumber>;
155
411
  y: z.ZodOptional<z.ZodNumber>;
156
- }, z.core.$strip>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ base_sha?: string | undefined;
414
+ start_sha?: string | undefined;
415
+ head_sha?: string | undefined;
416
+ position_type?: "text" | "image" | undefined;
417
+ old_path?: string | undefined;
418
+ new_path?: string | undefined;
419
+ old_line?: number | undefined;
420
+ new_line?: number | undefined;
421
+ line_range?: {
422
+ start: {
423
+ line_code: string;
424
+ type?: "new" | "old" | undefined;
425
+ old_line?: number | undefined;
426
+ new_line?: number | undefined;
427
+ };
428
+ end: {
429
+ line_code: string;
430
+ type?: "new" | "old" | undefined;
431
+ old_line?: number | undefined;
432
+ new_line?: number | undefined;
433
+ };
434
+ } | undefined;
435
+ width?: number | undefined;
436
+ height?: number | undefined;
437
+ x?: number | undefined;
438
+ y?: number | undefined;
439
+ }, {
440
+ base_sha?: string | undefined;
441
+ start_sha?: string | undefined;
442
+ head_sha?: string | undefined;
443
+ position_type?: "text" | "image" | undefined;
444
+ old_path?: string | undefined;
445
+ new_path?: string | undefined;
446
+ old_line?: number | undefined;
447
+ new_line?: number | undefined;
448
+ line_range?: {
449
+ start: {
450
+ line_code: string;
451
+ type?: "new" | "old" | undefined;
452
+ old_line?: number | undefined;
453
+ new_line?: number | undefined;
454
+ };
455
+ end: {
456
+ line_code: string;
457
+ type?: "new" | "old" | undefined;
458
+ old_line?: number | undefined;
459
+ new_line?: number | undefined;
460
+ };
461
+ } | undefined;
462
+ width?: number | undefined;
463
+ height?: number | undefined;
464
+ x?: number | undefined;
465
+ y?: number | undefined;
466
+ }>>;
157
467
  commit_id: z.ZodOptional<z.ZodString>;
158
- }, z.core.$strip>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ body: string;
470
+ project_id: string;
471
+ merge_request_iid: string;
472
+ position?: {
473
+ base_sha?: string | undefined;
474
+ start_sha?: string | undefined;
475
+ head_sha?: string | undefined;
476
+ position_type?: "text" | "image" | undefined;
477
+ old_path?: string | undefined;
478
+ new_path?: string | undefined;
479
+ old_line?: number | undefined;
480
+ new_line?: number | undefined;
481
+ line_range?: {
482
+ start: {
483
+ line_code: string;
484
+ type?: "new" | "old" | undefined;
485
+ old_line?: number | undefined;
486
+ new_line?: number | undefined;
487
+ };
488
+ end: {
489
+ line_code: string;
490
+ type?: "new" | "old" | undefined;
491
+ old_line?: number | undefined;
492
+ new_line?: number | undefined;
493
+ };
494
+ } | undefined;
495
+ width?: number | undefined;
496
+ height?: number | undefined;
497
+ x?: number | undefined;
498
+ y?: number | undefined;
499
+ } | undefined;
500
+ commit_id?: string | undefined;
501
+ }, {
502
+ body: string;
503
+ project_id: string;
504
+ merge_request_iid: string;
505
+ position?: {
506
+ base_sha?: string | undefined;
507
+ start_sha?: string | undefined;
508
+ head_sha?: string | undefined;
509
+ position_type?: "text" | "image" | undefined;
510
+ old_path?: string | undefined;
511
+ new_path?: string | undefined;
512
+ old_line?: number | undefined;
513
+ new_line?: number | undefined;
514
+ line_range?: {
515
+ start: {
516
+ line_code: string;
517
+ type?: "new" | "old" | undefined;
518
+ old_line?: number | undefined;
519
+ new_line?: number | undefined;
520
+ };
521
+ end: {
522
+ line_code: string;
523
+ type?: "new" | "old" | undefined;
524
+ old_line?: number | undefined;
525
+ new_line?: number | undefined;
526
+ };
527
+ } | undefined;
528
+ width?: number | undefined;
529
+ height?: number | undefined;
530
+ x?: number | undefined;
531
+ y?: number | undefined;
532
+ } | undefined;
533
+ commit_id?: string | undefined;
534
+ }>;
159
535
  export declare const UpdateMergeRequestNoteSchema: z.ZodObject<{
160
- project_id: z.ZodCoercedString<unknown>;
161
- merge_request_iid: z.ZodCoercedString<unknown>;
162
- note_id: z.ZodCoercedString<unknown>;
536
+ project_id: z.ZodString;
537
+ } & {
538
+ merge_request_iid: z.ZodString;
539
+ note_id: z.ZodString;
163
540
  body: z.ZodString;
164
- }, z.core.$strip>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ body: string;
543
+ project_id: string;
544
+ merge_request_iid: string;
545
+ note_id: string;
546
+ }, {
547
+ body: string;
548
+ project_id: string;
549
+ merge_request_iid: string;
550
+ note_id: string;
551
+ }>;
165
552
  export declare const CreateMergeRequestNoteSchema: z.ZodObject<{
166
- project_id: z.ZodCoercedString<unknown>;
167
- merge_request_iid: z.ZodCoercedString<unknown>;
553
+ project_id: z.ZodString;
554
+ } & {
555
+ merge_request_iid: z.ZodString;
168
556
  discussion_id: z.ZodString;
169
557
  body: z.ZodString;
170
558
  created_at: z.ZodOptional<z.ZodString>;
171
- }, z.core.$strip>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ body: string;
561
+ project_id: string;
562
+ merge_request_iid: string;
563
+ discussion_id: string;
564
+ created_at?: string | undefined;
565
+ }, {
566
+ body: string;
567
+ project_id: string;
568
+ merge_request_iid: string;
569
+ discussion_id: string;
570
+ created_at?: string | undefined;
571
+ }>;
172
572
  export declare const CreateDraftNoteSchema: z.ZodObject<{
173
- project_id: z.ZodCoercedString<unknown>;
174
- merge_request_iid: z.ZodCoercedString<unknown>;
573
+ project_id: z.ZodString;
574
+ } & {
575
+ merge_request_iid: z.ZodString;
175
576
  note: z.ZodString;
176
577
  position: z.ZodOptional<z.ZodObject<{
177
578
  base_sha: z.ZodOptional<z.ZodString>;
178
579
  start_sha: z.ZodOptional<z.ZodString>;
179
580
  head_sha: z.ZodOptional<z.ZodString>;
180
- position_type: z.ZodOptional<z.ZodEnum<{
181
- text: "text";
182
- image: "image";
183
- }>>;
581
+ position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
184
582
  old_path: z.ZodOptional<z.ZodString>;
185
583
  new_path: z.ZodOptional<z.ZodString>;
186
584
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -188,44 +586,204 @@ export declare const CreateDraftNoteSchema: z.ZodObject<{
188
586
  line_range: z.ZodOptional<z.ZodObject<{
189
587
  start: z.ZodObject<{
190
588
  line_code: z.ZodString;
191
- type: z.ZodOptional<z.ZodEnum<{
192
- new: "new";
193
- old: "old";
194
- }>>;
589
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
195
590
  old_line: z.ZodOptional<z.ZodNumber>;
196
591
  new_line: z.ZodOptional<z.ZodNumber>;
197
- }, z.core.$strip>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ line_code: string;
594
+ type?: "new" | "old" | undefined;
595
+ old_line?: number | undefined;
596
+ new_line?: number | undefined;
597
+ }, {
598
+ line_code: string;
599
+ type?: "new" | "old" | undefined;
600
+ old_line?: number | undefined;
601
+ new_line?: number | undefined;
602
+ }>;
198
603
  end: z.ZodObject<{
199
604
  line_code: z.ZodString;
200
- type: z.ZodOptional<z.ZodEnum<{
201
- new: "new";
202
- old: "old";
203
- }>>;
605
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
204
606
  old_line: z.ZodOptional<z.ZodNumber>;
205
607
  new_line: z.ZodOptional<z.ZodNumber>;
206
- }, z.core.$strip>;
207
- }, z.core.$strip>>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ line_code: string;
610
+ type?: "new" | "old" | undefined;
611
+ old_line?: number | undefined;
612
+ new_line?: number | undefined;
613
+ }, {
614
+ line_code: string;
615
+ type?: "new" | "old" | undefined;
616
+ old_line?: number | undefined;
617
+ new_line?: number | undefined;
618
+ }>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ start: {
621
+ line_code: string;
622
+ type?: "new" | "old" | undefined;
623
+ old_line?: number | undefined;
624
+ new_line?: number | undefined;
625
+ };
626
+ end: {
627
+ line_code: string;
628
+ type?: "new" | "old" | undefined;
629
+ old_line?: number | undefined;
630
+ new_line?: number | undefined;
631
+ };
632
+ }, {
633
+ start: {
634
+ line_code: string;
635
+ type?: "new" | "old" | undefined;
636
+ old_line?: number | undefined;
637
+ new_line?: number | undefined;
638
+ };
639
+ end: {
640
+ line_code: string;
641
+ type?: "new" | "old" | undefined;
642
+ old_line?: number | undefined;
643
+ new_line?: number | undefined;
644
+ };
645
+ }>>;
208
646
  width: z.ZodOptional<z.ZodNumber>;
209
647
  height: z.ZodOptional<z.ZodNumber>;
210
648
  x: z.ZodOptional<z.ZodNumber>;
211
649
  y: z.ZodOptional<z.ZodNumber>;
212
- }, z.core.$strip>>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ base_sha?: string | undefined;
652
+ start_sha?: string | undefined;
653
+ head_sha?: string | undefined;
654
+ position_type?: "text" | "image" | undefined;
655
+ old_path?: string | undefined;
656
+ new_path?: string | undefined;
657
+ old_line?: number | undefined;
658
+ new_line?: number | undefined;
659
+ line_range?: {
660
+ start: {
661
+ line_code: string;
662
+ type?: "new" | "old" | undefined;
663
+ old_line?: number | undefined;
664
+ new_line?: number | undefined;
665
+ };
666
+ end: {
667
+ line_code: string;
668
+ type?: "new" | "old" | undefined;
669
+ old_line?: number | undefined;
670
+ new_line?: number | undefined;
671
+ };
672
+ } | undefined;
673
+ width?: number | undefined;
674
+ height?: number | undefined;
675
+ x?: number | undefined;
676
+ y?: number | undefined;
677
+ }, {
678
+ base_sha?: string | undefined;
679
+ start_sha?: string | undefined;
680
+ head_sha?: string | undefined;
681
+ position_type?: "text" | "image" | undefined;
682
+ old_path?: string | undefined;
683
+ new_path?: string | undefined;
684
+ old_line?: number | undefined;
685
+ new_line?: number | undefined;
686
+ line_range?: {
687
+ start: {
688
+ line_code: string;
689
+ type?: "new" | "old" | undefined;
690
+ old_line?: number | undefined;
691
+ new_line?: number | undefined;
692
+ };
693
+ end: {
694
+ line_code: string;
695
+ type?: "new" | "old" | undefined;
696
+ old_line?: number | undefined;
697
+ new_line?: number | undefined;
698
+ };
699
+ } | undefined;
700
+ width?: number | undefined;
701
+ height?: number | undefined;
702
+ x?: number | undefined;
703
+ y?: number | undefined;
704
+ }>>;
213
705
  in_reply_to_discussion_id: z.ZodOptional<z.ZodString>;
214
706
  commit_id: z.ZodOptional<z.ZodString>;
215
- }, z.core.$strip>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ project_id: string;
709
+ note: string;
710
+ merge_request_iid: string;
711
+ position?: {
712
+ base_sha?: string | undefined;
713
+ start_sha?: string | undefined;
714
+ head_sha?: string | undefined;
715
+ position_type?: "text" | "image" | undefined;
716
+ old_path?: string | undefined;
717
+ new_path?: string | undefined;
718
+ old_line?: number | undefined;
719
+ new_line?: number | undefined;
720
+ line_range?: {
721
+ start: {
722
+ line_code: string;
723
+ type?: "new" | "old" | undefined;
724
+ old_line?: number | undefined;
725
+ new_line?: number | undefined;
726
+ };
727
+ end: {
728
+ line_code: string;
729
+ type?: "new" | "old" | undefined;
730
+ old_line?: number | undefined;
731
+ new_line?: number | undefined;
732
+ };
733
+ } | undefined;
734
+ width?: number | undefined;
735
+ height?: number | undefined;
736
+ x?: number | undefined;
737
+ y?: number | undefined;
738
+ } | undefined;
739
+ commit_id?: string | undefined;
740
+ in_reply_to_discussion_id?: string | undefined;
741
+ }, {
742
+ project_id: string;
743
+ note: string;
744
+ merge_request_iid: string;
745
+ position?: {
746
+ base_sha?: string | undefined;
747
+ start_sha?: string | undefined;
748
+ head_sha?: string | undefined;
749
+ position_type?: "text" | "image" | undefined;
750
+ old_path?: string | undefined;
751
+ new_path?: string | undefined;
752
+ old_line?: number | undefined;
753
+ new_line?: number | undefined;
754
+ line_range?: {
755
+ start: {
756
+ line_code: string;
757
+ type?: "new" | "old" | undefined;
758
+ old_line?: number | undefined;
759
+ new_line?: number | undefined;
760
+ };
761
+ end: {
762
+ line_code: string;
763
+ type?: "new" | "old" | undefined;
764
+ old_line?: number | undefined;
765
+ new_line?: number | undefined;
766
+ };
767
+ } | undefined;
768
+ width?: number | undefined;
769
+ height?: number | undefined;
770
+ x?: number | undefined;
771
+ y?: number | undefined;
772
+ } | undefined;
773
+ commit_id?: string | undefined;
774
+ in_reply_to_discussion_id?: string | undefined;
775
+ }>;
216
776
  export declare const UpdateDraftNoteSchema: z.ZodObject<{
217
- project_id: z.ZodCoercedString<unknown>;
218
- merge_request_iid: z.ZodCoercedString<unknown>;
219
- draft_note_id: z.ZodCoercedString<unknown>;
777
+ project_id: z.ZodString;
778
+ } & {
779
+ merge_request_iid: z.ZodString;
780
+ draft_note_id: z.ZodString;
220
781
  note: z.ZodString;
221
782
  position: z.ZodOptional<z.ZodObject<{
222
783
  base_sha: z.ZodOptional<z.ZodString>;
223
784
  start_sha: z.ZodOptional<z.ZodString>;
224
785
  head_sha: z.ZodOptional<z.ZodString>;
225
- position_type: z.ZodOptional<z.ZodEnum<{
226
- text: "text";
227
- image: "image";
228
- }>>;
786
+ position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
229
787
  old_path: z.ZodOptional<z.ZodString>;
230
788
  new_path: z.ZodOptional<z.ZodString>;
231
789
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -233,43 +791,228 @@ export declare const UpdateDraftNoteSchema: z.ZodObject<{
233
791
  line_range: z.ZodOptional<z.ZodObject<{
234
792
  start: z.ZodObject<{
235
793
  line_code: z.ZodString;
236
- type: z.ZodOptional<z.ZodEnum<{
237
- new: "new";
238
- old: "old";
239
- }>>;
794
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
240
795
  old_line: z.ZodOptional<z.ZodNumber>;
241
796
  new_line: z.ZodOptional<z.ZodNumber>;
242
- }, z.core.$strip>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ line_code: string;
799
+ type?: "new" | "old" | undefined;
800
+ old_line?: number | undefined;
801
+ new_line?: number | undefined;
802
+ }, {
803
+ line_code: string;
804
+ type?: "new" | "old" | undefined;
805
+ old_line?: number | undefined;
806
+ new_line?: number | undefined;
807
+ }>;
243
808
  end: z.ZodObject<{
244
809
  line_code: z.ZodString;
245
- type: z.ZodOptional<z.ZodEnum<{
246
- new: "new";
247
- old: "old";
248
- }>>;
810
+ type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
249
811
  old_line: z.ZodOptional<z.ZodNumber>;
250
812
  new_line: z.ZodOptional<z.ZodNumber>;
251
- }, z.core.$strip>;
252
- }, z.core.$strip>>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ line_code: string;
815
+ type?: "new" | "old" | undefined;
816
+ old_line?: number | undefined;
817
+ new_line?: number | undefined;
818
+ }, {
819
+ line_code: string;
820
+ type?: "new" | "old" | undefined;
821
+ old_line?: number | undefined;
822
+ new_line?: number | undefined;
823
+ }>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ start: {
826
+ line_code: string;
827
+ type?: "new" | "old" | undefined;
828
+ old_line?: number | undefined;
829
+ new_line?: number | undefined;
830
+ };
831
+ end: {
832
+ line_code: string;
833
+ type?: "new" | "old" | undefined;
834
+ old_line?: number | undefined;
835
+ new_line?: number | undefined;
836
+ };
837
+ }, {
838
+ start: {
839
+ line_code: string;
840
+ type?: "new" | "old" | undefined;
841
+ old_line?: number | undefined;
842
+ new_line?: number | undefined;
843
+ };
844
+ end: {
845
+ line_code: string;
846
+ type?: "new" | "old" | undefined;
847
+ old_line?: number | undefined;
848
+ new_line?: number | undefined;
849
+ };
850
+ }>>;
253
851
  width: z.ZodOptional<z.ZodNumber>;
254
852
  height: z.ZodOptional<z.ZodNumber>;
255
853
  x: z.ZodOptional<z.ZodNumber>;
256
854
  y: z.ZodOptional<z.ZodNumber>;
257
- }, z.core.$strip>>;
258
- }, z.core.$strip>;
855
+ }, "strip", z.ZodTypeAny, {
856
+ base_sha?: string | undefined;
857
+ start_sha?: string | undefined;
858
+ head_sha?: string | undefined;
859
+ position_type?: "text" | "image" | undefined;
860
+ old_path?: string | undefined;
861
+ new_path?: string | undefined;
862
+ old_line?: number | undefined;
863
+ new_line?: number | undefined;
864
+ line_range?: {
865
+ start: {
866
+ line_code: string;
867
+ type?: "new" | "old" | undefined;
868
+ old_line?: number | undefined;
869
+ new_line?: number | undefined;
870
+ };
871
+ end: {
872
+ line_code: string;
873
+ type?: "new" | "old" | undefined;
874
+ old_line?: number | undefined;
875
+ new_line?: number | undefined;
876
+ };
877
+ } | undefined;
878
+ width?: number | undefined;
879
+ height?: number | undefined;
880
+ x?: number | undefined;
881
+ y?: number | undefined;
882
+ }, {
883
+ base_sha?: string | undefined;
884
+ start_sha?: string | undefined;
885
+ head_sha?: string | undefined;
886
+ position_type?: "text" | "image" | undefined;
887
+ old_path?: string | undefined;
888
+ new_path?: string | undefined;
889
+ old_line?: number | undefined;
890
+ new_line?: number | undefined;
891
+ line_range?: {
892
+ start: {
893
+ line_code: string;
894
+ type?: "new" | "old" | undefined;
895
+ old_line?: number | undefined;
896
+ new_line?: number | undefined;
897
+ };
898
+ end: {
899
+ line_code: string;
900
+ type?: "new" | "old" | undefined;
901
+ old_line?: number | undefined;
902
+ new_line?: number | undefined;
903
+ };
904
+ } | undefined;
905
+ width?: number | undefined;
906
+ height?: number | undefined;
907
+ x?: number | undefined;
908
+ y?: number | undefined;
909
+ }>>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ project_id: string;
912
+ note: string;
913
+ merge_request_iid: string;
914
+ draft_note_id: string;
915
+ position?: {
916
+ base_sha?: string | undefined;
917
+ start_sha?: string | undefined;
918
+ head_sha?: string | undefined;
919
+ position_type?: "text" | "image" | undefined;
920
+ old_path?: string | undefined;
921
+ new_path?: string | undefined;
922
+ old_line?: number | undefined;
923
+ new_line?: number | undefined;
924
+ line_range?: {
925
+ start: {
926
+ line_code: string;
927
+ type?: "new" | "old" | undefined;
928
+ old_line?: number | undefined;
929
+ new_line?: number | undefined;
930
+ };
931
+ end: {
932
+ line_code: string;
933
+ type?: "new" | "old" | undefined;
934
+ old_line?: number | undefined;
935
+ new_line?: number | undefined;
936
+ };
937
+ } | undefined;
938
+ width?: number | undefined;
939
+ height?: number | undefined;
940
+ x?: number | undefined;
941
+ y?: number | undefined;
942
+ } | undefined;
943
+ }, {
944
+ project_id: string;
945
+ note: string;
946
+ merge_request_iid: string;
947
+ draft_note_id: string;
948
+ position?: {
949
+ base_sha?: string | undefined;
950
+ start_sha?: string | undefined;
951
+ head_sha?: string | undefined;
952
+ position_type?: "text" | "image" | undefined;
953
+ old_path?: string | undefined;
954
+ new_path?: string | undefined;
955
+ old_line?: number | undefined;
956
+ new_line?: number | undefined;
957
+ line_range?: {
958
+ start: {
959
+ line_code: string;
960
+ type?: "new" | "old" | undefined;
961
+ old_line?: number | undefined;
962
+ new_line?: number | undefined;
963
+ };
964
+ end: {
965
+ line_code: string;
966
+ type?: "new" | "old" | undefined;
967
+ old_line?: number | undefined;
968
+ new_line?: number | undefined;
969
+ };
970
+ } | undefined;
971
+ width?: number | undefined;
972
+ height?: number | undefined;
973
+ x?: number | undefined;
974
+ y?: number | undefined;
975
+ } | undefined;
976
+ }>;
259
977
  export declare const DeleteDraftNoteSchema: z.ZodObject<{
260
- project_id: z.ZodCoercedString<unknown>;
261
- merge_request_iid: z.ZodCoercedString<unknown>;
262
- draft_note_id: z.ZodCoercedString<unknown>;
263
- }, z.core.$strip>;
978
+ project_id: z.ZodString;
979
+ } & {
980
+ merge_request_iid: z.ZodString;
981
+ draft_note_id: z.ZodString;
982
+ }, "strip", z.ZodTypeAny, {
983
+ project_id: string;
984
+ merge_request_iid: string;
985
+ draft_note_id: string;
986
+ }, {
987
+ project_id: string;
988
+ merge_request_iid: string;
989
+ draft_note_id: string;
990
+ }>;
264
991
  export declare const PublishDraftNoteSchema: z.ZodObject<{
265
- project_id: z.ZodCoercedString<unknown>;
266
- merge_request_iid: z.ZodCoercedString<unknown>;
267
- draft_note_id: z.ZodCoercedString<unknown>;
268
- }, z.core.$strip>;
992
+ project_id: z.ZodString;
993
+ } & {
994
+ merge_request_iid: z.ZodString;
995
+ draft_note_id: z.ZodString;
996
+ }, "strip", z.ZodTypeAny, {
997
+ project_id: string;
998
+ merge_request_iid: string;
999
+ draft_note_id: string;
1000
+ }, {
1001
+ project_id: string;
1002
+ merge_request_iid: string;
1003
+ draft_note_id: string;
1004
+ }>;
269
1005
  export declare const BulkPublishDraftNotesSchema: z.ZodObject<{
270
- project_id: z.ZodCoercedString<unknown>;
271
- merge_request_iid: z.ZodCoercedString<unknown>;
272
- }, z.core.$strip>;
1006
+ project_id: z.ZodString;
1007
+ } & {
1008
+ merge_request_iid: z.ZodString;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ project_id: string;
1011
+ merge_request_iid: string;
1012
+ }, {
1013
+ project_id: string;
1014
+ merge_request_iid: string;
1015
+ }>;
273
1016
  export type CreateMergeRequestOptions = z.infer<typeof CreateMergeRequestSchema>;
274
1017
  export type UpdateMergeRequestOptions = z.infer<typeof UpdateMergeRequestSchema>;
275
1018
  export type MergeMergeRequestOptions = z.infer<typeof MergeMergeRequestSchema>;