@sk8metal/michi-cli 0.0.2 → 0.0.4

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 (47) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +37 -0
  3. package/dist/scripts/config/config-schema.d.ts +109 -600
  4. package/dist/scripts/config/config-schema.d.ts.map +1 -1
  5. package/dist/scripts/config/config-schema.js.map +1 -1
  6. package/dist/scripts/config-interactive.js +3 -3
  7. package/dist/scripts/confluence-sync.js +3 -3
  8. package/dist/scripts/create-project.js.map +1 -1
  9. package/dist/scripts/jira-sync.js +5 -5
  10. package/dist/scripts/markdown-to-confluence.js +1 -1
  11. package/dist/scripts/markdown-to-confluence.js.map +1 -1
  12. package/dist/scripts/multi-project-estimate.js +1 -1
  13. package/dist/scripts/phase-runner.js.map +1 -1
  14. package/dist/scripts/pre-flight-check.js +1 -1
  15. package/dist/scripts/setup-existing-project.js.map +1 -1
  16. package/dist/scripts/utils/config-loader.js +1 -1
  17. package/dist/scripts/utils/config-loader.js.map +1 -1
  18. package/dist/scripts/utils/config-validator.d.ts.map +1 -1
  19. package/dist/scripts/utils/config-validator.js +46 -46
  20. package/dist/scripts/utils/config-validator.js.map +1 -1
  21. package/dist/scripts/utils/confluence-hierarchy.d.ts.map +1 -1
  22. package/dist/scripts/utils/confluence-hierarchy.js +9 -8
  23. package/dist/scripts/utils/confluence-hierarchy.js.map +1 -1
  24. package/dist/scripts/validate-phase.js.map +1 -1
  25. package/dist/scripts/workflow-orchestrator.js.map +1 -1
  26. package/dist/src/cli.js +0 -0
  27. package/dist/vitest.config.d.ts +3 -0
  28. package/dist/vitest.config.d.ts.map +1 -0
  29. package/dist/vitest.config.js +33 -0
  30. package/dist/vitest.config.js.map +1 -0
  31. package/docs/release.md +365 -0
  32. package/package.json +16 -12
  33. package/scripts/config/config-schema.ts +5 -5
  34. package/scripts/config-interactive.ts +3 -3
  35. package/scripts/confluence-sync.ts +3 -3
  36. package/scripts/create-project.ts +17 -17
  37. package/scripts/jira-sync.ts +5 -5
  38. package/scripts/markdown-to-confluence.ts +1 -1
  39. package/scripts/multi-project-estimate.ts +1 -1
  40. package/scripts/phase-runner.ts +8 -8
  41. package/scripts/pre-flight-check.ts +1 -1
  42. package/scripts/setup-existing-project.ts +9 -9
  43. package/scripts/utils/config-loader.ts +1 -1
  44. package/scripts/utils/config-validator.ts +47 -46
  45. package/scripts/utils/confluence-hierarchy.ts +52 -51
  46. package/scripts/validate-phase.ts +11 -11
  47. package/scripts/workflow-orchestrator.ts +27 -27
@@ -6,16 +6,27 @@ import { z } from 'zod';
6
6
  /**
7
7
  * Confluence階層構造のモード
8
8
  */
9
- export declare const ConfluenceHierarchyModeSchema: z.ZodEnum<["simple", "nested"]>;
9
+ export declare const ConfluenceHierarchyModeSchema: z.ZodEnum<{
10
+ simple: "simple";
11
+ nested: "nested";
12
+ }>;
10
13
  /**
11
14
  * Confluenceページ作成粒度
12
15
  */
13
- export declare const ConfluencePageCreationGranularitySchema: z.ZodEnum<["single", "by-section", "by-hierarchy", "manual"]>;
16
+ export declare const ConfluencePageCreationGranularitySchema: z.ZodEnum<{
17
+ single: "single";
18
+ "by-section": "by-section";
19
+ "by-hierarchy": "by-hierarchy";
20
+ manual: "manual";
21
+ }>;
14
22
  /**
15
23
  * Confluence階層構造設定(by-hierarchyまたはmanualの場合)
16
24
  */
17
25
  export declare const ConfluenceHierarchyStructureSchema: z.ZodObject<{
18
- mode: z.ZodOptional<z.ZodEnum<["simple", "nested"]>>;
26
+ mode: z.ZodOptional<z.ZodEnum<{
27
+ simple: "simple";
28
+ nested: "nested";
29
+ }>>;
19
30
  parentPageTitle: z.ZodOptional<z.ZodString>;
20
31
  createDocTypeParents: z.ZodOptional<z.ZodBoolean>;
21
32
  structure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -24,108 +35,36 @@ export declare const ConfluenceHierarchyStructureSchema: z.ZodObject<{
24
35
  children: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
36
  section: z.ZodString;
26
37
  title: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- title: string;
29
- section: string;
30
- }, {
31
- title: string;
32
- section: string;
33
- }>, "many">>;
38
+ }, z.core.$strip>>>;
34
39
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
40
  title: z.ZodString;
36
- sections: z.ZodArray<z.ZodString, "many">;
37
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
- }, "strip", z.ZodTypeAny, {
39
- title: string;
40
- sections: string[];
41
- labels?: string[] | undefined;
42
- }, {
43
- title: string;
44
- sections: string[];
45
- labels?: string[] | undefined;
46
- }>, "many">>;
47
- }, "strip", z.ZodTypeAny, {
48
- parent?: string | undefined;
49
- title?: string | undefined;
50
- children?: {
51
- title: string;
52
- section: string;
53
- }[] | undefined;
54
- pages?: {
55
- title: string;
56
- sections: string[];
57
- labels?: string[] | undefined;
58
- }[] | undefined;
59
- }, {
60
- parent?: string | undefined;
61
- title?: string | undefined;
62
- children?: {
63
- title: string;
64
- section: string;
65
- }[] | undefined;
66
- pages?: {
67
- title: string;
68
- sections: string[];
69
- labels?: string[] | undefined;
70
- }[] | undefined;
71
- }>>>;
72
- }, "strip", z.ZodTypeAny, {
73
- mode?: "simple" | "nested" | undefined;
74
- parentPageTitle?: string | undefined;
75
- createDocTypeParents?: boolean | undefined;
76
- structure?: Record<string, {
77
- parent?: string | undefined;
78
- title?: string | undefined;
79
- children?: {
80
- title: string;
81
- section: string;
82
- }[] | undefined;
83
- pages?: {
84
- title: string;
85
- sections: string[];
86
- labels?: string[] | undefined;
87
- }[] | undefined;
88
- }> | undefined;
89
- }, {
90
- mode?: "simple" | "nested" | undefined;
91
- parentPageTitle?: string | undefined;
92
- createDocTypeParents?: boolean | undefined;
93
- structure?: Record<string, {
94
- parent?: string | undefined;
95
- title?: string | undefined;
96
- children?: {
97
- title: string;
98
- section: string;
99
- }[] | undefined;
100
- pages?: {
101
- title: string;
102
- sections: string[];
103
- labels?: string[] | undefined;
104
- }[] | undefined;
105
- }> | undefined;
106
- }>;
41
+ sections: z.ZodArray<z.ZodString>;
42
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ }, z.core.$strip>>>;
44
+ }, z.core.$strip>>>;
45
+ }, z.core.$strip>;
107
46
  /**
108
47
  * Confluence設定スキーマ
109
48
  */
110
49
  export declare const ConfluenceConfigSchema: z.ZodObject<{
111
- pageCreationGranularity: z.ZodDefault<z.ZodEnum<["single", "by-section", "by-hierarchy", "manual"]>>;
50
+ pageCreationGranularity: z.ZodDefault<z.ZodEnum<{
51
+ single: "single";
52
+ "by-section": "by-section";
53
+ "by-hierarchy": "by-hierarchy";
54
+ manual: "manual";
55
+ }>>;
112
56
  pageTitleFormat: z.ZodDefault<z.ZodString>;
113
- autoLabels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
57
+ autoLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
114
58
  spaces: z.ZodOptional<z.ZodObject<{
115
59
  requirements: z.ZodOptional<z.ZodString>;
116
60
  design: z.ZodOptional<z.ZodString>;
117
61
  tasks: z.ZodOptional<z.ZodString>;
118
- }, "strip", z.ZodTypeAny, {
119
- requirements?: string | undefined;
120
- design?: string | undefined;
121
- tasks?: string | undefined;
122
- }, {
123
- requirements?: string | undefined;
124
- design?: string | undefined;
125
- tasks?: string | undefined;
126
- }>>;
62
+ }, z.core.$strip>>;
127
63
  hierarchy: z.ZodOptional<z.ZodObject<{
128
- mode: z.ZodOptional<z.ZodEnum<["simple", "nested"]>>;
64
+ mode: z.ZodOptional<z.ZodEnum<{
65
+ simple: "simple";
66
+ nested: "nested";
67
+ }>>;
129
68
  parentPageTitle: z.ZodOptional<z.ZodString>;
130
69
  createDocTypeParents: z.ZodOptional<z.ZodBoolean>;
131
70
  structure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -134,250 +73,88 @@ export declare const ConfluenceConfigSchema: z.ZodObject<{
134
73
  children: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
74
  section: z.ZodString;
136
75
  title: z.ZodString;
137
- }, "strip", z.ZodTypeAny, {
138
- title: string;
139
- section: string;
140
- }, {
141
- title: string;
142
- section: string;
143
- }>, "many">>;
76
+ }, z.core.$strip>>>;
144
77
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
78
  title: z.ZodString;
146
- sections: z.ZodArray<z.ZodString, "many">;
147
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
148
- }, "strip", z.ZodTypeAny, {
149
- title: string;
150
- sections: string[];
151
- labels?: string[] | undefined;
152
- }, {
153
- title: string;
154
- sections: string[];
155
- labels?: string[] | undefined;
156
- }>, "many">>;
157
- }, "strip", z.ZodTypeAny, {
158
- parent?: string | undefined;
159
- title?: string | undefined;
160
- children?: {
161
- title: string;
162
- section: string;
163
- }[] | undefined;
164
- pages?: {
165
- title: string;
166
- sections: string[];
167
- labels?: string[] | undefined;
168
- }[] | undefined;
169
- }, {
170
- parent?: string | undefined;
171
- title?: string | undefined;
172
- children?: {
173
- title: string;
174
- section: string;
175
- }[] | undefined;
176
- pages?: {
177
- title: string;
178
- sections: string[];
179
- labels?: string[] | undefined;
180
- }[] | undefined;
181
- }>>>;
182
- }, "strip", z.ZodTypeAny, {
183
- mode?: "simple" | "nested" | undefined;
184
- parentPageTitle?: string | undefined;
185
- createDocTypeParents?: boolean | undefined;
186
- structure?: Record<string, {
187
- parent?: string | undefined;
188
- title?: string | undefined;
189
- children?: {
190
- title: string;
191
- section: string;
192
- }[] | undefined;
193
- pages?: {
194
- title: string;
195
- sections: string[];
196
- labels?: string[] | undefined;
197
- }[] | undefined;
198
- }> | undefined;
199
- }, {
200
- mode?: "simple" | "nested" | undefined;
201
- parentPageTitle?: string | undefined;
202
- createDocTypeParents?: boolean | undefined;
203
- structure?: Record<string, {
204
- parent?: string | undefined;
205
- title?: string | undefined;
206
- children?: {
207
- title: string;
208
- section: string;
209
- }[] | undefined;
210
- pages?: {
211
- title: string;
212
- sections: string[];
213
- labels?: string[] | undefined;
214
- }[] | undefined;
215
- }> | undefined;
216
- }>>;
217
- }, "strip", z.ZodTypeAny, {
218
- pageCreationGranularity: "single" | "by-section" | "by-hierarchy" | "manual";
219
- pageTitleFormat: string;
220
- autoLabels: string[];
221
- spaces?: {
222
- requirements?: string | undefined;
223
- design?: string | undefined;
224
- tasks?: string | undefined;
225
- } | undefined;
226
- hierarchy?: {
227
- mode?: "simple" | "nested" | undefined;
228
- parentPageTitle?: string | undefined;
229
- createDocTypeParents?: boolean | undefined;
230
- structure?: Record<string, {
231
- parent?: string | undefined;
232
- title?: string | undefined;
233
- children?: {
234
- title: string;
235
- section: string;
236
- }[] | undefined;
237
- pages?: {
238
- title: string;
239
- sections: string[];
240
- labels?: string[] | undefined;
241
- }[] | undefined;
242
- }> | undefined;
243
- } | undefined;
244
- }, {
245
- pageCreationGranularity?: "single" | "by-section" | "by-hierarchy" | "manual" | undefined;
246
- pageTitleFormat?: string | undefined;
247
- autoLabels?: string[] | undefined;
248
- spaces?: {
249
- requirements?: string | undefined;
250
- design?: string | undefined;
251
- tasks?: string | undefined;
252
- } | undefined;
253
- hierarchy?: {
254
- mode?: "simple" | "nested" | undefined;
255
- parentPageTitle?: string | undefined;
256
- createDocTypeParents?: boolean | undefined;
257
- structure?: Record<string, {
258
- parent?: string | undefined;
259
- title?: string | undefined;
260
- children?: {
261
- title: string;
262
- section: string;
263
- }[] | undefined;
264
- pages?: {
265
- title: string;
266
- sections: string[];
267
- labels?: string[] | undefined;
268
- }[] | undefined;
269
- }> | undefined;
270
- } | undefined;
271
- }>;
79
+ sections: z.ZodArray<z.ZodString>;
80
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
81
+ }, z.core.$strip>>>;
82
+ }, z.core.$strip>>>;
83
+ }, z.core.$strip>>;
84
+ }, z.core.$strip>;
272
85
  /**
273
86
  * JIRA Story作成粒度
274
87
  */
275
- export declare const JiraStoryCreationGranularitySchema: z.ZodEnum<["all", "by-phase", "selected-phases"]>;
88
+ export declare const JiraStoryCreationGranularitySchema: z.ZodEnum<{
89
+ all: "all";
90
+ "by-phase": "by-phase";
91
+ "selected-phases": "selected-phases";
92
+ }>;
276
93
  /**
277
94
  * JIRA Story Points設定
278
95
  */
279
- export declare const JiraStoryPointsSchema: z.ZodEnum<["auto", "manual", "disabled"]>;
96
+ export declare const JiraStoryPointsSchema: z.ZodEnum<{
97
+ manual: "manual";
98
+ auto: "auto";
99
+ disabled: "disabled";
100
+ }>;
280
101
  /**
281
102
  * JIRA設定スキーマ
282
103
  */
283
104
  export declare const JiraConfigSchema: z.ZodObject<{
284
- storyCreationGranularity: z.ZodDefault<z.ZodEnum<["all", "by-phase", "selected-phases"]>>;
105
+ storyCreationGranularity: z.ZodDefault<z.ZodEnum<{
106
+ all: "all";
107
+ "by-phase": "by-phase";
108
+ "selected-phases": "selected-phases";
109
+ }>>;
285
110
  createEpic: z.ZodDefault<z.ZodBoolean>;
286
- storyPoints: z.ZodDefault<z.ZodEnum<["auto", "manual", "disabled"]>>;
287
- autoLabels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
111
+ storyPoints: z.ZodDefault<z.ZodEnum<{
112
+ manual: "manual";
113
+ auto: "auto";
114
+ disabled: "disabled";
115
+ }>>;
116
+ autoLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
288
117
  issueTypes: z.ZodOptional<z.ZodObject<{
289
118
  epic: z.ZodDefault<z.ZodString>;
290
119
  story: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
291
120
  subtask: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
292
- }, "strip", z.ZodTypeAny, {
293
- epic: string;
294
- story: string | null;
295
- subtask: string | null;
296
- }, {
297
- epic?: string | undefined;
298
- story?: string | null | undefined;
299
- subtask?: string | null | undefined;
300
- }>>;
301
- selectedPhases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
302
- }, "strip", z.ZodTypeAny, {
303
- autoLabels: string[];
304
- storyCreationGranularity: "all" | "by-phase" | "selected-phases";
305
- createEpic: boolean;
306
- storyPoints: "manual" | "auto" | "disabled";
307
- issueTypes?: {
308
- epic: string;
309
- story: string | null;
310
- subtask: string | null;
311
- } | undefined;
312
- selectedPhases?: string[] | undefined;
313
- }, {
314
- autoLabels?: string[] | undefined;
315
- storyCreationGranularity?: "all" | "by-phase" | "selected-phases" | undefined;
316
- createEpic?: boolean | undefined;
317
- storyPoints?: "manual" | "auto" | "disabled" | undefined;
318
- issueTypes?: {
319
- epic?: string | undefined;
320
- story?: string | null | undefined;
321
- subtask?: string | null | undefined;
322
- } | undefined;
323
- selectedPhases?: string[] | undefined;
324
- }>;
121
+ }, z.core.$strip>>;
122
+ selectedPhases: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ }, z.core.$strip>;
325
124
  /**
326
125
  * ワークフロー設定スキーマ
327
126
  */
328
127
  export declare const WorkflowConfigSchema: z.ZodObject<{
329
- enabledPhases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
128
+ enabledPhases: z.ZodDefault<z.ZodArray<z.ZodString>>;
330
129
  approvalGates: z.ZodOptional<z.ZodObject<{
331
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
332
- design: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
333
- release: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
- }, "strip", z.ZodTypeAny, {
335
- requirements?: string[] | undefined;
336
- design?: string[] | undefined;
337
- release?: string[] | undefined;
338
- }, {
339
- requirements?: string[] | undefined;
340
- design?: string[] | undefined;
341
- release?: string[] | undefined;
342
- }>>;
343
- }, "strip", z.ZodTypeAny, {
344
- enabledPhases: string[];
345
- approvalGates?: {
346
- requirements?: string[] | undefined;
347
- design?: string[] | undefined;
348
- release?: string[] | undefined;
349
- } | undefined;
350
- }, {
351
- enabledPhases?: string[] | undefined;
352
- approvalGates?: {
353
- requirements?: string[] | undefined;
354
- design?: string[] | undefined;
355
- release?: string[] | undefined;
356
- } | undefined;
357
- }>;
130
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
+ design: z.ZodOptional<z.ZodArray<z.ZodString>>;
132
+ release: z.ZodOptional<z.ZodArray<z.ZodString>>;
133
+ }, z.core.$strip>>;
134
+ }, z.core.$strip>;
358
135
  /**
359
136
  * 全体設定スキーマ
360
137
  */
361
138
  export declare const AppConfigSchema: z.ZodObject<{
362
139
  confluence: z.ZodOptional<z.ZodObject<{
363
- pageCreationGranularity: z.ZodDefault<z.ZodEnum<["single", "by-section", "by-hierarchy", "manual"]>>;
140
+ pageCreationGranularity: z.ZodDefault<z.ZodEnum<{
141
+ single: "single";
142
+ "by-section": "by-section";
143
+ "by-hierarchy": "by-hierarchy";
144
+ manual: "manual";
145
+ }>>;
364
146
  pageTitleFormat: z.ZodDefault<z.ZodString>;
365
- autoLabels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
147
+ autoLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
366
148
  spaces: z.ZodOptional<z.ZodObject<{
367
149
  requirements: z.ZodOptional<z.ZodString>;
368
150
  design: z.ZodOptional<z.ZodString>;
369
151
  tasks: z.ZodOptional<z.ZodString>;
370
- }, "strip", z.ZodTypeAny, {
371
- requirements?: string | undefined;
372
- design?: string | undefined;
373
- tasks?: string | undefined;
374
- }, {
375
- requirements?: string | undefined;
376
- design?: string | undefined;
377
- tasks?: string | undefined;
378
- }>>;
152
+ }, z.core.$strip>>;
379
153
  hierarchy: z.ZodOptional<z.ZodObject<{
380
- mode: z.ZodOptional<z.ZodEnum<["simple", "nested"]>>;
154
+ mode: z.ZodOptional<z.ZodEnum<{
155
+ simple: "simple";
156
+ nested: "nested";
157
+ }>>;
381
158
  parentPageTitle: z.ZodOptional<z.ZodString>;
382
159
  createDocTypeParents: z.ZodOptional<z.ZodBoolean>;
383
160
  structure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -386,312 +163,44 @@ export declare const AppConfigSchema: z.ZodObject<{
386
163
  children: z.ZodOptional<z.ZodArray<z.ZodObject<{
387
164
  section: z.ZodString;
388
165
  title: z.ZodString;
389
- }, "strip", z.ZodTypeAny, {
390
- title: string;
391
- section: string;
392
- }, {
393
- title: string;
394
- section: string;
395
- }>, "many">>;
166
+ }, z.core.$strip>>>;
396
167
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
397
168
  title: z.ZodString;
398
- sections: z.ZodArray<z.ZodString, "many">;
399
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
400
- }, "strip", z.ZodTypeAny, {
401
- title: string;
402
- sections: string[];
403
- labels?: string[] | undefined;
404
- }, {
405
- title: string;
406
- sections: string[];
407
- labels?: string[] | undefined;
408
- }>, "many">>;
409
- }, "strip", z.ZodTypeAny, {
410
- parent?: string | undefined;
411
- title?: string | undefined;
412
- children?: {
413
- title: string;
414
- section: string;
415
- }[] | undefined;
416
- pages?: {
417
- title: string;
418
- sections: string[];
419
- labels?: string[] | undefined;
420
- }[] | undefined;
421
- }, {
422
- parent?: string | undefined;
423
- title?: string | undefined;
424
- children?: {
425
- title: string;
426
- section: string;
427
- }[] | undefined;
428
- pages?: {
429
- title: string;
430
- sections: string[];
431
- labels?: string[] | undefined;
432
- }[] | undefined;
433
- }>>>;
434
- }, "strip", z.ZodTypeAny, {
435
- mode?: "simple" | "nested" | undefined;
436
- parentPageTitle?: string | undefined;
437
- createDocTypeParents?: boolean | undefined;
438
- structure?: Record<string, {
439
- parent?: string | undefined;
440
- title?: string | undefined;
441
- children?: {
442
- title: string;
443
- section: string;
444
- }[] | undefined;
445
- pages?: {
446
- title: string;
447
- sections: string[];
448
- labels?: string[] | undefined;
449
- }[] | undefined;
450
- }> | undefined;
451
- }, {
452
- mode?: "simple" | "nested" | undefined;
453
- parentPageTitle?: string | undefined;
454
- createDocTypeParents?: boolean | undefined;
455
- structure?: Record<string, {
456
- parent?: string | undefined;
457
- title?: string | undefined;
458
- children?: {
459
- title: string;
460
- section: string;
461
- }[] | undefined;
462
- pages?: {
463
- title: string;
464
- sections: string[];
465
- labels?: string[] | undefined;
466
- }[] | undefined;
467
- }> | undefined;
468
- }>>;
469
- }, "strip", z.ZodTypeAny, {
470
- pageCreationGranularity: "single" | "by-section" | "by-hierarchy" | "manual";
471
- pageTitleFormat: string;
472
- autoLabels: string[];
473
- spaces?: {
474
- requirements?: string | undefined;
475
- design?: string | undefined;
476
- tasks?: string | undefined;
477
- } | undefined;
478
- hierarchy?: {
479
- mode?: "simple" | "nested" | undefined;
480
- parentPageTitle?: string | undefined;
481
- createDocTypeParents?: boolean | undefined;
482
- structure?: Record<string, {
483
- parent?: string | undefined;
484
- title?: string | undefined;
485
- children?: {
486
- title: string;
487
- section: string;
488
- }[] | undefined;
489
- pages?: {
490
- title: string;
491
- sections: string[];
492
- labels?: string[] | undefined;
493
- }[] | undefined;
494
- }> | undefined;
495
- } | undefined;
496
- }, {
497
- pageCreationGranularity?: "single" | "by-section" | "by-hierarchy" | "manual" | undefined;
498
- pageTitleFormat?: string | undefined;
499
- autoLabels?: string[] | undefined;
500
- spaces?: {
501
- requirements?: string | undefined;
502
- design?: string | undefined;
503
- tasks?: string | undefined;
504
- } | undefined;
505
- hierarchy?: {
506
- mode?: "simple" | "nested" | undefined;
507
- parentPageTitle?: string | undefined;
508
- createDocTypeParents?: boolean | undefined;
509
- structure?: Record<string, {
510
- parent?: string | undefined;
511
- title?: string | undefined;
512
- children?: {
513
- title: string;
514
- section: string;
515
- }[] | undefined;
516
- pages?: {
517
- title: string;
518
- sections: string[];
519
- labels?: string[] | undefined;
520
- }[] | undefined;
521
- }> | undefined;
522
- } | undefined;
523
- }>>;
169
+ sections: z.ZodArray<z.ZodString>;
170
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
171
+ }, z.core.$strip>>>;
172
+ }, z.core.$strip>>>;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$strip>>;
524
175
  jira: z.ZodOptional<z.ZodObject<{
525
- storyCreationGranularity: z.ZodDefault<z.ZodEnum<["all", "by-phase", "selected-phases"]>>;
176
+ storyCreationGranularity: z.ZodDefault<z.ZodEnum<{
177
+ all: "all";
178
+ "by-phase": "by-phase";
179
+ "selected-phases": "selected-phases";
180
+ }>>;
526
181
  createEpic: z.ZodDefault<z.ZodBoolean>;
527
- storyPoints: z.ZodDefault<z.ZodEnum<["auto", "manual", "disabled"]>>;
528
- autoLabels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
182
+ storyPoints: z.ZodDefault<z.ZodEnum<{
183
+ manual: "manual";
184
+ auto: "auto";
185
+ disabled: "disabled";
186
+ }>>;
187
+ autoLabels: z.ZodDefault<z.ZodArray<z.ZodString>>;
529
188
  issueTypes: z.ZodOptional<z.ZodObject<{
530
189
  epic: z.ZodDefault<z.ZodString>;
531
190
  story: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
532
191
  subtask: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
533
- }, "strip", z.ZodTypeAny, {
534
- epic: string;
535
- story: string | null;
536
- subtask: string | null;
537
- }, {
538
- epic?: string | undefined;
539
- story?: string | null | undefined;
540
- subtask?: string | null | undefined;
541
- }>>;
542
- selectedPhases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
543
- }, "strip", z.ZodTypeAny, {
544
- autoLabels: string[];
545
- storyCreationGranularity: "all" | "by-phase" | "selected-phases";
546
- createEpic: boolean;
547
- storyPoints: "manual" | "auto" | "disabled";
548
- issueTypes?: {
549
- epic: string;
550
- story: string | null;
551
- subtask: string | null;
552
- } | undefined;
553
- selectedPhases?: string[] | undefined;
554
- }, {
555
- autoLabels?: string[] | undefined;
556
- storyCreationGranularity?: "all" | "by-phase" | "selected-phases" | undefined;
557
- createEpic?: boolean | undefined;
558
- storyPoints?: "manual" | "auto" | "disabled" | undefined;
559
- issueTypes?: {
560
- epic?: string | undefined;
561
- story?: string | null | undefined;
562
- subtask?: string | null | undefined;
563
- } | undefined;
564
- selectedPhases?: string[] | undefined;
565
- }>>;
192
+ }, z.core.$strip>>;
193
+ selectedPhases: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ }, z.core.$strip>>;
566
195
  workflow: z.ZodOptional<z.ZodObject<{
567
- enabledPhases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
196
+ enabledPhases: z.ZodDefault<z.ZodArray<z.ZodString>>;
568
197
  approvalGates: z.ZodOptional<z.ZodObject<{
569
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
570
- design: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
571
- release: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
572
- }, "strip", z.ZodTypeAny, {
573
- requirements?: string[] | undefined;
574
- design?: string[] | undefined;
575
- release?: string[] | undefined;
576
- }, {
577
- requirements?: string[] | undefined;
578
- design?: string[] | undefined;
579
- release?: string[] | undefined;
580
- }>>;
581
- }, "strip", z.ZodTypeAny, {
582
- enabledPhases: string[];
583
- approvalGates?: {
584
- requirements?: string[] | undefined;
585
- design?: string[] | undefined;
586
- release?: string[] | undefined;
587
- } | undefined;
588
- }, {
589
- enabledPhases?: string[] | undefined;
590
- approvalGates?: {
591
- requirements?: string[] | undefined;
592
- design?: string[] | undefined;
593
- release?: string[] | undefined;
594
- } | undefined;
595
- }>>;
596
- }, "strip", z.ZodTypeAny, {
597
- confluence?: {
598
- pageCreationGranularity: "single" | "by-section" | "by-hierarchy" | "manual";
599
- pageTitleFormat: string;
600
- autoLabels: string[];
601
- spaces?: {
602
- requirements?: string | undefined;
603
- design?: string | undefined;
604
- tasks?: string | undefined;
605
- } | undefined;
606
- hierarchy?: {
607
- mode?: "simple" | "nested" | undefined;
608
- parentPageTitle?: string | undefined;
609
- createDocTypeParents?: boolean | undefined;
610
- structure?: Record<string, {
611
- parent?: string | undefined;
612
- title?: string | undefined;
613
- children?: {
614
- title: string;
615
- section: string;
616
- }[] | undefined;
617
- pages?: {
618
- title: string;
619
- sections: string[];
620
- labels?: string[] | undefined;
621
- }[] | undefined;
622
- }> | undefined;
623
- } | undefined;
624
- } | undefined;
625
- jira?: {
626
- autoLabels: string[];
627
- storyCreationGranularity: "all" | "by-phase" | "selected-phases";
628
- createEpic: boolean;
629
- storyPoints: "manual" | "auto" | "disabled";
630
- issueTypes?: {
631
- epic: string;
632
- story: string | null;
633
- subtask: string | null;
634
- } | undefined;
635
- selectedPhases?: string[] | undefined;
636
- } | undefined;
637
- workflow?: {
638
- enabledPhases: string[];
639
- approvalGates?: {
640
- requirements?: string[] | undefined;
641
- design?: string[] | undefined;
642
- release?: string[] | undefined;
643
- } | undefined;
644
- } | undefined;
645
- }, {
646
- confluence?: {
647
- pageCreationGranularity?: "single" | "by-section" | "by-hierarchy" | "manual" | undefined;
648
- pageTitleFormat?: string | undefined;
649
- autoLabels?: string[] | undefined;
650
- spaces?: {
651
- requirements?: string | undefined;
652
- design?: string | undefined;
653
- tasks?: string | undefined;
654
- } | undefined;
655
- hierarchy?: {
656
- mode?: "simple" | "nested" | undefined;
657
- parentPageTitle?: string | undefined;
658
- createDocTypeParents?: boolean | undefined;
659
- structure?: Record<string, {
660
- parent?: string | undefined;
661
- title?: string | undefined;
662
- children?: {
663
- title: string;
664
- section: string;
665
- }[] | undefined;
666
- pages?: {
667
- title: string;
668
- sections: string[];
669
- labels?: string[] | undefined;
670
- }[] | undefined;
671
- }> | undefined;
672
- } | undefined;
673
- } | undefined;
674
- jira?: {
675
- autoLabels?: string[] | undefined;
676
- storyCreationGranularity?: "all" | "by-phase" | "selected-phases" | undefined;
677
- createEpic?: boolean | undefined;
678
- storyPoints?: "manual" | "auto" | "disabled" | undefined;
679
- issueTypes?: {
680
- epic?: string | undefined;
681
- story?: string | null | undefined;
682
- subtask?: string | null | undefined;
683
- } | undefined;
684
- selectedPhases?: string[] | undefined;
685
- } | undefined;
686
- workflow?: {
687
- enabledPhases?: string[] | undefined;
688
- approvalGates?: {
689
- requirements?: string[] | undefined;
690
- design?: string[] | undefined;
691
- release?: string[] | undefined;
692
- } | undefined;
693
- } | undefined;
694
- }>;
198
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
199
+ design: z.ZodOptional<z.ZodArray<z.ZodString>>;
200
+ release: z.ZodOptional<z.ZodArray<z.ZodString>>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>>;
203
+ }, z.core.$strip>;
695
204
  /**
696
205
  * 設定の型定義
697
206
  */