@structured-world/gitlab-mcp 5.7.0 → 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 (92) 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 +42 -19
  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 +39 -6
  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/package.json +23 -23
  92. package/dist/structured-world-gitlab-mcp-5.7.0.tgz +0 -0
@@ -3,7 +3,10 @@ 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<["text", "image"]>>;
6
+ position_type: z.ZodOptional<z.ZodEnum<{
7
+ text: "text";
8
+ image: "image";
9
+ }>>;
7
10
  old_path: z.ZodOptional<z.ZodString>;
8
11
  new_path: z.ZodOptional<z.ZodString>;
9
12
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -11,336 +14,117 @@ export declare const MergeRequestThreadPositionCreateSchema: z.ZodObject<{
11
14
  line_range: z.ZodOptional<z.ZodObject<{
12
15
  start: z.ZodObject<{
13
16
  line_code: z.ZodString;
14
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
17
+ type: z.ZodOptional<z.ZodEnum<{
18
+ new: "new";
19
+ old: "old";
20
+ }>>;
15
21
  old_line: z.ZodOptional<z.ZodNumber>;
16
22
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>;
23
+ }, z.core.$strip>;
28
24
  end: z.ZodObject<{
29
25
  line_code: z.ZodString;
30
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
26
+ type: z.ZodOptional<z.ZodEnum<{
27
+ new: "new";
28
+ old: "old";
29
+ }>>;
31
30
  old_line: z.ZodOptional<z.ZodNumber>;
32
31
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>>;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>>;
71
34
  width: z.ZodOptional<z.ZodNumber>;
72
35
  height: z.ZodOptional<z.ZodNumber>;
73
36
  x: z.ZodOptional<z.ZodNumber>;
74
37
  y: z.ZodOptional<z.ZodNumber>;
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
- }>;
38
+ }, z.core.$strip>;
130
39
  export declare const CreateMergeRequestOptionsSchema: z.ZodObject<{
131
40
  source_branch: z.ZodString;
132
41
  target_branch: z.ZodString;
133
42
  title: z.ZodString;
134
43
  assignee_id: z.ZodOptional<z.ZodString>;
135
- assignee_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
- reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ assignee_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
46
  description: z.ZodOptional<z.ZodString>;
138
- target_project_id: z.ZodOptional<z.ZodString>;
139
- labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
47
+ target_project_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
48
+ labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
140
49
  milestone_id: z.ZodOptional<z.ZodString>;
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?: string | undefined;
152
- assignee_ids?: string[] | undefined;
153
- reviewer_ids?: string[] | undefined;
154
- target_project_id?: string | undefined;
155
- milestone_id?: string | 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?: string | undefined;
167
- assignee_ids?: string[] | undefined;
168
- reviewer_ids?: string[] | undefined;
169
- target_project_id?: string | undefined;
170
- milestone_id?: string | undefined;
171
- remove_source_branch?: unknown;
172
- allow_collaboration?: unknown;
173
- allow_maintainer_to_push?: unknown;
174
- squash?: unknown;
175
- }>;
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>;
176
55
  export declare const CreateMergeRequestSchema: z.ZodObject<{
177
- project_id: z.ZodString;
178
- } & {
56
+ project_id: z.ZodCoercedString<unknown>;
179
57
  source_branch: z.ZodString;
180
58
  target_branch: z.ZodString;
181
59
  title: z.ZodString;
182
60
  assignee_id: z.ZodOptional<z.ZodString>;
183
- assignee_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
- reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ assignee_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
+ reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
185
63
  description: z.ZodOptional<z.ZodString>;
186
- target_project_id: z.ZodOptional<z.ZodString>;
187
- labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
64
+ target_project_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
65
+ labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
188
66
  milestone_id: z.ZodOptional<z.ZodString>;
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?: string | undefined;
201
- assignee_ids?: string[] | undefined;
202
- reviewer_ids?: string[] | undefined;
203
- target_project_id?: string | undefined;
204
- milestone_id?: string | 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?: string | undefined;
217
- assignee_ids?: string[] | undefined;
218
- reviewer_ids?: string[] | undefined;
219
- target_project_id?: string | undefined;
220
- milestone_id?: string | undefined;
221
- remove_source_branch?: unknown;
222
- allow_collaboration?: unknown;
223
- allow_maintainer_to_push?: unknown;
224
- squash?: unknown;
225
- }>;
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>;
226
72
  export declare const UpdateMergeRequestSchema: z.ZodObject<{
227
- project_id: z.ZodString;
228
- merge_request_iid: z.ZodString;
73
+ project_id: z.ZodCoercedString<unknown>;
74
+ merge_request_iid: z.ZodCoercedString<unknown>;
229
75
  target_branch: z.ZodOptional<z.ZodString>;
230
76
  title: z.ZodOptional<z.ZodString>;
231
77
  assignee_id: z.ZodOptional<z.ZodString>;
232
- assignee_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
- reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ assignee_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
+ reviewer_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
234
80
  description: z.ZodOptional<z.ZodString>;
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.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, 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>>;
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.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, 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>>;
244
93
  milestone_id: z.ZodOptional<z.ZodString>;
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?: string | undefined;
253
- target_branch?: string | undefined;
254
- assignee_ids?: string[] | undefined;
255
- reviewer_ids?: string[] | undefined;
256
- milestone_id?: string | 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?: string | undefined;
272
- target_branch?: string | undefined;
273
- assignee_ids?: string[] | undefined;
274
- reviewer_ids?: string[] | undefined;
275
- milestone_id?: string | 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?: string | undefined;
283
- }>;
94
+ }, z.core.$strip>;
284
95
  export declare const MergeMergeRequestSchema: z.ZodObject<{
285
- project_id: z.ZodString;
286
- merge_request_iid: z.ZodString;
96
+ project_id: z.ZodCoercedString<unknown>;
97
+ merge_request_iid: z.ZodCoercedString<unknown>;
287
98
  merge_commit_message: z.ZodOptional<z.ZodString>;
288
99
  squash_commit_message: z.ZodOptional<z.ZodString>;
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>>;
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>>;
291
102
  sha: z.ZodOptional<z.ZodString>;
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
- }>;
103
+ squash: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
104
+ }, z.core.$strip>;
312
105
  export declare const CreateNoteSchema: z.ZodObject<{
313
- project_id: z.ZodString;
314
- noteable_type: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["issue", "merge_request"]>>;
315
- noteable_id: z.ZodString;
106
+ project_id: z.ZodCoercedString<unknown>;
107
+ noteable_type: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
108
+ issue: "issue";
109
+ merge_request: "merge_request";
110
+ }>>;
111
+ noteable_id: z.ZodCoercedString<unknown>;
316
112
  body: z.ZodString;
317
113
  created_at: z.ZodOptional<z.ZodString>;
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: string;
330
- noteable_id: string;
331
- created_at?: string | undefined;
332
- confidential?: unknown;
333
- }>;
114
+ confidential: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
115
+ }, z.core.$strip>;
334
116
  export declare const CreateMergeRequestThreadSchema: z.ZodObject<{
335
- project_id: z.ZodString;
336
- } & {
337
- merge_request_iid: z.ZodString;
117
+ project_id: z.ZodCoercedString<unknown>;
118
+ merge_request_iid: z.ZodCoercedString<unknown>;
338
119
  body: z.ZodString;
339
120
  position: z.ZodOptional<z.ZodObject<{
340
121
  base_sha: z.ZodOptional<z.ZodString>;
341
122
  start_sha: z.ZodOptional<z.ZodString>;
342
123
  head_sha: z.ZodOptional<z.ZodString>;
343
- position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
124
+ position_type: z.ZodOptional<z.ZodEnum<{
125
+ text: "text";
126
+ image: "image";
127
+ }>>;
344
128
  old_path: z.ZodOptional<z.ZodString>;
345
129
  new_path: z.ZodOptional<z.ZodString>;
346
130
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -348,237 +132,55 @@ export declare const CreateMergeRequestThreadSchema: z.ZodObject<{
348
132
  line_range: z.ZodOptional<z.ZodObject<{
349
133
  start: z.ZodObject<{
350
134
  line_code: z.ZodString;
351
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
135
+ type: z.ZodOptional<z.ZodEnum<{
136
+ new: "new";
137
+ old: "old";
138
+ }>>;
352
139
  old_line: z.ZodOptional<z.ZodNumber>;
353
140
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>;
141
+ }, z.core.$strip>;
365
142
  end: z.ZodObject<{
366
143
  line_code: z.ZodString;
367
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
144
+ type: z.ZodOptional<z.ZodEnum<{
145
+ new: "new";
146
+ old: "old";
147
+ }>>;
368
148
  old_line: z.ZodOptional<z.ZodNumber>;
369
149
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>>;
150
+ }, z.core.$strip>;
151
+ }, z.core.$strip>>;
408
152
  width: z.ZodOptional<z.ZodNumber>;
409
153
  height: z.ZodOptional<z.ZodNumber>;
410
154
  x: z.ZodOptional<z.ZodNumber>;
411
155
  y: z.ZodOptional<z.ZodNumber>;
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
- }>>;
156
+ }, z.core.$strip>>;
467
157
  commit_id: z.ZodOptional<z.ZodString>;
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
- }>;
158
+ }, z.core.$strip>;
535
159
  export declare const UpdateMergeRequestNoteSchema: z.ZodObject<{
536
- project_id: z.ZodString;
537
- } & {
538
- merge_request_iid: z.ZodString;
539
- note_id: z.ZodString;
160
+ project_id: z.ZodCoercedString<unknown>;
161
+ merge_request_iid: z.ZodCoercedString<unknown>;
162
+ note_id: z.ZodCoercedString<unknown>;
540
163
  body: z.ZodString;
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
- }>;
164
+ }, z.core.$strip>;
552
165
  export declare const CreateMergeRequestNoteSchema: z.ZodObject<{
553
- project_id: z.ZodString;
554
- } & {
555
- merge_request_iid: z.ZodString;
166
+ project_id: z.ZodCoercedString<unknown>;
167
+ merge_request_iid: z.ZodCoercedString<unknown>;
556
168
  discussion_id: z.ZodString;
557
169
  body: z.ZodString;
558
170
  created_at: z.ZodOptional<z.ZodString>;
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
- }>;
171
+ }, z.core.$strip>;
572
172
  export declare const CreateDraftNoteSchema: z.ZodObject<{
573
- project_id: z.ZodString;
574
- } & {
575
- merge_request_iid: z.ZodString;
173
+ project_id: z.ZodCoercedString<unknown>;
174
+ merge_request_iid: z.ZodCoercedString<unknown>;
576
175
  note: z.ZodString;
577
176
  position: z.ZodOptional<z.ZodObject<{
578
177
  base_sha: z.ZodOptional<z.ZodString>;
579
178
  start_sha: z.ZodOptional<z.ZodString>;
580
179
  head_sha: z.ZodOptional<z.ZodString>;
581
- position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
180
+ position_type: z.ZodOptional<z.ZodEnum<{
181
+ text: "text";
182
+ image: "image";
183
+ }>>;
582
184
  old_path: z.ZodOptional<z.ZodString>;
583
185
  new_path: z.ZodOptional<z.ZodString>;
584
186
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -586,204 +188,44 @@ export declare const CreateDraftNoteSchema: z.ZodObject<{
586
188
  line_range: z.ZodOptional<z.ZodObject<{
587
189
  start: z.ZodObject<{
588
190
  line_code: z.ZodString;
589
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
191
+ type: z.ZodOptional<z.ZodEnum<{
192
+ new: "new";
193
+ old: "old";
194
+ }>>;
590
195
  old_line: z.ZodOptional<z.ZodNumber>;
591
196
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>;
197
+ }, z.core.$strip>;
603
198
  end: z.ZodObject<{
604
199
  line_code: z.ZodString;
605
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
200
+ type: z.ZodOptional<z.ZodEnum<{
201
+ new: "new";
202
+ old: "old";
203
+ }>>;
606
204
  old_line: z.ZodOptional<z.ZodNumber>;
607
205
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>>;
206
+ }, z.core.$strip>;
207
+ }, z.core.$strip>>;
646
208
  width: z.ZodOptional<z.ZodNumber>;
647
209
  height: z.ZodOptional<z.ZodNumber>;
648
210
  x: z.ZodOptional<z.ZodNumber>;
649
211
  y: z.ZodOptional<z.ZodNumber>;
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
- }>>;
212
+ }, z.core.$strip>>;
705
213
  in_reply_to_discussion_id: z.ZodOptional<z.ZodString>;
706
214
  commit_id: z.ZodOptional<z.ZodString>;
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
- }>;
215
+ }, z.core.$strip>;
776
216
  export declare const UpdateDraftNoteSchema: z.ZodObject<{
777
- project_id: z.ZodString;
778
- } & {
779
- merge_request_iid: z.ZodString;
780
- draft_note_id: z.ZodString;
217
+ project_id: z.ZodCoercedString<unknown>;
218
+ merge_request_iid: z.ZodCoercedString<unknown>;
219
+ draft_note_id: z.ZodCoercedString<unknown>;
781
220
  note: z.ZodString;
782
221
  position: z.ZodOptional<z.ZodObject<{
783
222
  base_sha: z.ZodOptional<z.ZodString>;
784
223
  start_sha: z.ZodOptional<z.ZodString>;
785
224
  head_sha: z.ZodOptional<z.ZodString>;
786
- position_type: z.ZodOptional<z.ZodEnum<["text", "image"]>>;
225
+ position_type: z.ZodOptional<z.ZodEnum<{
226
+ text: "text";
227
+ image: "image";
228
+ }>>;
787
229
  old_path: z.ZodOptional<z.ZodString>;
788
230
  new_path: z.ZodOptional<z.ZodString>;
789
231
  old_line: z.ZodOptional<z.ZodNumber>;
@@ -791,228 +233,43 @@ export declare const UpdateDraftNoteSchema: z.ZodObject<{
791
233
  line_range: z.ZodOptional<z.ZodObject<{
792
234
  start: z.ZodObject<{
793
235
  line_code: z.ZodString;
794
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
236
+ type: z.ZodOptional<z.ZodEnum<{
237
+ new: "new";
238
+ old: "old";
239
+ }>>;
795
240
  old_line: z.ZodOptional<z.ZodNumber>;
796
241
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>;
242
+ }, z.core.$strip>;
808
243
  end: z.ZodObject<{
809
244
  line_code: z.ZodString;
810
- type: z.ZodOptional<z.ZodEnum<["new", "old"]>>;
245
+ type: z.ZodOptional<z.ZodEnum<{
246
+ new: "new";
247
+ old: "old";
248
+ }>>;
811
249
  old_line: z.ZodOptional<z.ZodNumber>;
812
250
  new_line: z.ZodOptional<z.ZodNumber>;
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
- }>>;
251
+ }, z.core.$strip>;
252
+ }, z.core.$strip>>;
851
253
  width: z.ZodOptional<z.ZodNumber>;
852
254
  height: z.ZodOptional<z.ZodNumber>;
853
255
  x: z.ZodOptional<z.ZodNumber>;
854
256
  y: z.ZodOptional<z.ZodNumber>;
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
- }>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
977
259
  export declare const DeleteDraftNoteSchema: z.ZodObject<{
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
- }>;
260
+ project_id: z.ZodCoercedString<unknown>;
261
+ merge_request_iid: z.ZodCoercedString<unknown>;
262
+ draft_note_id: z.ZodCoercedString<unknown>;
263
+ }, z.core.$strip>;
991
264
  export declare const PublishDraftNoteSchema: z.ZodObject<{
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
- }>;
265
+ project_id: z.ZodCoercedString<unknown>;
266
+ merge_request_iid: z.ZodCoercedString<unknown>;
267
+ draft_note_id: z.ZodCoercedString<unknown>;
268
+ }, z.core.$strip>;
1005
269
  export declare const BulkPublishDraftNotesSchema: z.ZodObject<{
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
- }>;
270
+ project_id: z.ZodCoercedString<unknown>;
271
+ merge_request_iid: z.ZodCoercedString<unknown>;
272
+ }, z.core.$strip>;
1016
273
  export type CreateMergeRequestOptions = z.infer<typeof CreateMergeRequestSchema>;
1017
274
  export type UpdateMergeRequestOptions = z.infer<typeof UpdateMergeRequestSchema>;
1018
275
  export type MergeMergeRequestOptions = z.infer<typeof MergeMergeRequestSchema>;