harness-mcp-v2 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/build/data/examples/pipeline-v1.d.ts.map +1 -1
  3. package/build/data/examples/pipeline-v1.js +66 -26
  4. package/build/data/examples/pipeline-v1.js.map +1 -1
  5. package/build/data/schemas/index.d.ts +1 -1
  6. package/build/data/schemas/index.d.ts.map +1 -1
  7. package/build/data/schemas/index.js +1 -7
  8. package/build/data/schemas/index.js.map +1 -1
  9. package/build/data/schemas/v0/pipeline.d.ts.map +1 -1
  10. package/build/data/schemas/v0/pipeline.js +3507 -1046
  11. package/build/data/schemas/v0/pipeline.js.map +1 -1
  12. package/build/data/schemas/v0/template.d.ts.map +1 -1
  13. package/build/data/schemas/v0/template.js +4103 -958
  14. package/build/data/schemas/v0/template.js.map +1 -1
  15. package/build/data/schemas/v1/pipeline.d.ts.map +1 -1
  16. package/build/data/schemas/v1/pipeline.js +179 -233
  17. package/build/data/schemas/v1/pipeline.js.map +1 -1
  18. package/build/data/schemas/v1/template.d.ts.map +1 -1
  19. package/build/data/schemas/v1/template.js +210 -694
  20. package/build/data/schemas/v1/template.js.map +1 -1
  21. package/package.json +1 -1
  22. package/build/data/schemas/v1/infra.d.ts +0 -3
  23. package/build/data/schemas/v1/infra.d.ts.map +0 -1
  24. package/build/data/schemas/v1/infra.js +0 -1005
  25. package/build/data/schemas/v1/infra.js.map +0 -1
  26. package/build/data/schemas/v1/service.d.ts +0 -3
  27. package/build/data/schemas/v1/service.d.ts.map +0 -1
  28. package/build/data/schemas/v1/service.js +0 -1386
  29. package/build/data/schemas/v1/service.js.map +0 -1
  30. package/build/data/schemas/v1/trigger.d.ts +0 -3
  31. package/build/data/schemas/v1/trigger.d.ts.map +0 -1
  32. package/build/data/schemas/v1/trigger.js +0 -3361
  33. package/build/data/schemas/v1/trigger.js.map +0 -1
@@ -1,1386 +0,0 @@
1
- // Auto-generated from https://raw.githubusercontent.com/harness/harness-schema/main/v1/service.json
2
- // @ts-nocheck
3
- const schema = {
4
- "title": "service_v1",
5
- "type": "object",
6
- "required": [
7
- "spec",
8
- "version",
9
- "kind"
10
- ],
11
- "properties": {
12
- "version": {
13
- "description": "Version defines the schema version.",
14
- "type": "number",
15
- "enum": [
16
- 1
17
- ]
18
- },
19
- "kind": {
20
- "description": "defines the kind of yaml (pipeline/template/service)",
21
- "type": "string",
22
- "enum": [
23
- "service"
24
- ]
25
- },
26
- "spec": {
27
- "type": "object",
28
- "description": "inputs to be used in the linked template",
29
- "$ref": "#/definitions/service_v1/ServiceSpec"
30
- },
31
- "desc": {
32
- "description": "This is the description for Service Entity"
33
- }
34
- },
35
- "$schema": "http://json-schema.org/draft-07/schema#",
36
- "definitions": {
37
- "pipeline": {
38
- "common": {
39
- "StringInput": {
40
- "title": "StringInput",
41
- "allOf": [
42
- {
43
- "$ref": "#/definitions/pipeline/common/Input"
44
- },
45
- {
46
- "type": "object",
47
- "required": [
48
- "type"
49
- ],
50
- "properties": {
51
- "default": {
52
- "type": "string"
53
- },
54
- "type": {
55
- "type": "string",
56
- "enum": [
57
- "string"
58
- ]
59
- },
60
- "value": {
61
- "type": "string"
62
- },
63
- "validator": {
64
- "type": "object",
65
- "oneOf": [
66
- {
67
- "allOf": [
68
- {
69
- "properties": {
70
- "allowed": {
71
- "description": "defines allowed values for an input",
72
- "type": "array",
73
- "items": {
74
- "type": "string"
75
- }
76
- }
77
- }
78
- }
79
- ],
80
- "required": [
81
- "allowed"
82
- ]
83
- },
84
- {
85
- "allOf": [
86
- {
87
- "properties": {
88
- "regex": {
89
- "description": "defines regex pattern for an input value",
90
- "type": "string"
91
- }
92
- }
93
- }
94
- ],
95
- "required": [
96
- "regex"
97
- ]
98
- }
99
- ]
100
- }
101
- }
102
- }
103
- ],
104
- "$schema": "http://json-schema.org/draft-07/schema#"
105
- },
106
- "Input": {
107
- "title": "Input",
108
- "type": "object",
109
- "discriminator": "type",
110
- "description": "Input defines an input parameter.",
111
- "properties": {
112
- "type": {
113
- "description": "Type defines the input type.",
114
- "type": "string",
115
- "enum": [
116
- "string",
117
- "number",
118
- "boolean",
119
- "array",
120
- "object",
121
- "secret",
122
- "step",
123
- "duration",
124
- "choice",
125
- "environment"
126
- ]
127
- },
128
- "description": {
129
- "type": "string",
130
- "description": "Description defines the input description."
131
- },
132
- "default": {
133
- "description": "Default defines the default value."
134
- },
135
- "required": {
136
- "type": "boolean",
137
- "description": "Required indicates the input is required."
138
- },
139
- "items": {
140
- "type": "array",
141
- "description": "Items defines an array type."
142
- },
143
- "enum": {
144
- "type": "array",
145
- "description": "Enum defines a list of accepted input values."
146
- },
147
- "pattern": {
148
- "type": "string",
149
- "description": "Pattern defines a regular expression input constraint."
150
- },
151
- "component": {
152
- "type": "string",
153
- "description": "Component defines the form element for rendering the input.",
154
- "enum": [
155
- "dropdown",
156
- "text",
157
- "number",
158
- "date",
159
- "datetime"
160
- ]
161
- },
162
- "autofocus": {
163
- "type": "boolean",
164
- "description": "Autofocus configures the form element autofocus attribute."
165
- },
166
- "placeholder": {
167
- "type": "string",
168
- "description": "Placeholder configures the form element placeholder attribute."
169
- },
170
- "tooltip": {
171
- "type": "string",
172
- "description": "Tooltip configures the form element alt attribute."
173
- },
174
- "options": {
175
- "type": "array",
176
- "description": "Options defines a list of accepted input values (alias for enum, GitHub compatibility)."
177
- },
178
- "mask": {
179
- "type": "boolean",
180
- "description": "Mask indicates the input should be masked (deprecated).",
181
- "deprecated": true
182
- }
183
- },
184
- "$schema": "http://json-schema.org/draft-07/schema#"
185
- },
186
- "NumberInput": {
187
- "title": "NumberInput",
188
- "allOf": [
189
- {
190
- "$ref": "#/definitions/pipeline/common/Input"
191
- },
192
- {
193
- "type": "object",
194
- "required": [
195
- "type"
196
- ],
197
- "properties": {
198
- "default": {
199
- "type": "number",
200
- "format": "double"
201
- },
202
- "type": {
203
- "type": "string",
204
- "enum": [
205
- "number"
206
- ]
207
- },
208
- "value": {
209
- "oneOf": [
210
- {
211
- "type": "number",
212
- "format": "double"
213
- },
214
- {
215
- "type": "string",
216
- "pattern": "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
217
- }
218
- ]
219
- },
220
- "validator": {
221
- "type": "object",
222
- "oneOf": [
223
- {
224
- "allOf": [
225
- {
226
- "properties": {
227
- "allowed": {
228
- "description": "defines allowed values for an input",
229
- "type": "array",
230
- "items": {
231
- "oneOf": [
232
- {
233
- "type": "number",
234
- "format": "double"
235
- },
236
- {
237
- "type": "string",
238
- "pattern": "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
239
- }
240
- ]
241
- }
242
- }
243
- }
244
- }
245
- ],
246
- "required": [
247
- "allowed"
248
- ]
249
- },
250
- {
251
- "allOf": [
252
- {
253
- "properties": {
254
- "regex": {
255
- "description": "defines regex pattern for an input value",
256
- "type": "string"
257
- }
258
- }
259
- }
260
- ],
261
- "required": [
262
- "regex"
263
- ]
264
- }
265
- ]
266
- }
267
- }
268
- }
269
- ],
270
- "$schema": "http://json-schema.org/draft-07/schema#"
271
- },
272
- "ArrayInput": {
273
- "title": "ArrayInput",
274
- "allOf": [
275
- {
276
- "$ref": "#/definitions/pipeline/common/Input"
277
- },
278
- {
279
- "type": "object",
280
- "required": [
281
- "type"
282
- ],
283
- "properties": {
284
- "default": {
285
- "type": "array"
286
- },
287
- "type": {
288
- "type": "string",
289
- "enum": [
290
- "array"
291
- ]
292
- },
293
- "value": {
294
- "type": "array"
295
- },
296
- "validator": {
297
- "type": "object",
298
- "oneOf": [
299
- {
300
- "allOf": [
301
- {
302
- "properties": {
303
- "allowed": {
304
- "description": "defines allowed values for an input",
305
- "type": "array",
306
- "items": {
307
- "type": "array"
308
- }
309
- }
310
- }
311
- }
312
- ],
313
- "required": [
314
- "allowed"
315
- ]
316
- },
317
- {
318
- "allOf": [
319
- {
320
- "properties": {
321
- "regex": {
322
- "description": "defines regex pattern for an input value",
323
- "type": "string"
324
- }
325
- }
326
- }
327
- ],
328
- "required": [
329
- "regex"
330
- ]
331
- }
332
- ]
333
- }
334
- }
335
- }
336
- ],
337
- "$schema": "http://json-schema.org/draft-07/schema#"
338
- },
339
- "BooleanInput": {
340
- "title": "BooleanInput",
341
- "allOf": [
342
- {
343
- "$ref": "#/definitions/pipeline/common/Input"
344
- },
345
- {
346
- "type": "object",
347
- "required": [
348
- "type"
349
- ],
350
- "properties": {
351
- "default": {
352
- "type": "boolean"
353
- },
354
- "type": {
355
- "type": "string",
356
- "enum": [
357
- "boolean"
358
- ]
359
- },
360
- "value": {
361
- "type": "boolean"
362
- }
363
- }
364
- }
365
- ],
366
- "$schema": "http://json-schema.org/draft-07/schema#"
367
- },
368
- "ObjectInput": {
369
- "title": "ObjectInput",
370
- "allOf": [
371
- {
372
- "$ref": "#/definitions/pipeline/common/Input"
373
- },
374
- {
375
- "type": "object",
376
- "required": [
377
- "type"
378
- ],
379
- "properties": {
380
- "default": {
381
- "type": "object"
382
- },
383
- "type": {
384
- "type": "string",
385
- "enum": [
386
- "object"
387
- ]
388
- },
389
- "value": {
390
- "type": "object"
391
- },
392
- "validator": {
393
- "type": "object",
394
- "oneOf": [
395
- {
396
- "allOf": [
397
- {
398
- "properties": {
399
- "allowed": {
400
- "description": "defines allowed values for an input",
401
- "type": "array",
402
- "items": {
403
- "type": "object"
404
- }
405
- }
406
- }
407
- }
408
- ],
409
- "required": [
410
- "allowed"
411
- ]
412
- },
413
- {
414
- "allOf": [
415
- {
416
- "properties": {
417
- "regex": {
418
- "description": "defines regex pattern for an input value",
419
- "type": "string"
420
- }
421
- }
422
- }
423
- ],
424
- "required": [
425
- "regex"
426
- ]
427
- }
428
- ]
429
- }
430
- }
431
- }
432
- ],
433
- "$schema": "http://json-schema.org/draft-07/schema#"
434
- },
435
- "SecretInput": {
436
- "title": "SecretInput",
437
- "allOf": [
438
- {
439
- "$ref": "#/definitions/pipeline/common/Input"
440
- },
441
- {
442
- "type": "object",
443
- "required": [
444
- "type"
445
- ],
446
- "properties": {
447
- "default": {
448
- "type": "string"
449
- },
450
- "type": {
451
- "type": "string",
452
- "enum": [
453
- "secret"
454
- ]
455
- },
456
- "value": {
457
- "type": "string"
458
- }
459
- }
460
- }
461
- ],
462
- "$schema": "http://json-schema.org/draft-07/schema#"
463
- },
464
- "StringNGVariableV1": {
465
- "title": "StringNGVariableV1",
466
- "description": "String variable definition.",
467
- "allOf": [
468
- {
469
- "$ref": "#/definitions/pipeline/common/Variable"
470
- },
471
- {
472
- "type": "object",
473
- "required": [
474
- "type"
475
- ],
476
- "properties": {
477
- "type": {
478
- "description": "Variable type.",
479
- "type": "string",
480
- "enum": [
481
- "string"
482
- ]
483
- },
484
- "value": {
485
- "description": "Variable value. Supports expressions.",
486
- "type": "string"
487
- },
488
- "default": {
489
- "description": "Default value for the variable.",
490
- "type": "string"
491
- },
492
- "enum": {
493
- "description": "Defines a list of accepted input values.",
494
- "type": "array",
495
- "items": {
496
- "type": "string"
497
- }
498
- },
499
- "options": {
500
- "description": "Defines a list of accepted input values. Alias for enum (GitHub compatibility).",
501
- "type": "array",
502
- "items": {
503
- "type": "string"
504
- }
505
- }
506
- }
507
- }
508
- ],
509
- "$schema": "http://json-schema.org/draft-07/schema#"
510
- },
511
- "Variable": {
512
- "title": "Variable",
513
- "type": "object",
514
- "discriminator": "type",
515
- "description": "Variable defines a variable object",
516
- "properties": {
517
- "type": {
518
- "description": "Type defines the variable type.",
519
- "type": "string",
520
- "enum": [
521
- "string",
522
- "number",
523
- "boolean",
524
- "array",
525
- "object",
526
- "secret",
527
- "step",
528
- "stage",
529
- "connector"
530
- ]
531
- },
532
- "desc": {
533
- "type": "string",
534
- "description": "Desc defines the variable description."
535
- },
536
- "required": {
537
- "type": "boolean",
538
- "description": "Required indicates the variable is required."
539
- },
540
- "execution_input": {
541
- "description": "A boolean that defines whether the value is an execution input.",
542
- "type": "boolean",
543
- "default": false
544
- },
545
- "items": {
546
- "description": "Defines the item type for array variables.",
547
- "type": "array"
548
- },
549
- "options": {
550
- "description": "Defines a list of accepted input values. Alias for enum (GitHub compatibility).",
551
- "type": "array"
552
- },
553
- "enum": {
554
- "description": "Defines a list of accepted input values.",
555
- "type": "array"
556
- },
557
- "pattern": {
558
- "description": "Regex pattern for variable value validation.",
559
- "type": "string"
560
- },
561
- "mask": {
562
- "description": "Indicates the input should be masked.",
563
- "type": "boolean",
564
- "deprecated": true
565
- },
566
- "ui": {
567
- "description": "UI configuration for variable rendering in forms.",
568
- "$ref": "#/definitions/pipeline/common/VariableUI"
569
- }
570
- }
571
- },
572
- "VariableUI": {
573
- "title": "VariableUI",
574
- "description": "UI configuration for variable rendering in forms.",
575
- "type": "object",
576
- "properties": {
577
- "component": {
578
- "description": "Form element type for rendering the variable input.",
579
- "type": "string",
580
- "enum": [
581
- "dropdown",
582
- "text",
583
- "number",
584
- "date",
585
- "datetime",
586
- "textarea",
587
- "checkbox",
588
- "radio"
589
- ]
590
- },
591
- "placeholder": {
592
- "description": "Placeholder text for the form element.",
593
- "type": "string"
594
- },
595
- "tooltip": {
596
- "description": "Tooltip/help text for the form element.",
597
- "type": "string"
598
- },
599
- "autofocus": {
600
- "description": "Whether the form element should be auto-focused.",
601
- "type": "boolean",
602
- "default": false
603
- },
604
- "hidden": {
605
- "description": "Whether the variable should be hidden in the UI.",
606
- "type": "boolean",
607
- "default": false
608
- },
609
- "readonly": {
610
- "description": "Whether the variable should be read-only in the UI.",
611
- "type": "boolean",
612
- "default": false
613
- },
614
- "label": {
615
- "description": "Display label for the variable in the UI.",
616
- "type": "string"
617
- }
618
- },
619
- "$schema": "http://json-schema.org/draft-07/schema#"
620
- },
621
- "NumberVariable": {
622
- "title": "NumberVariable",
623
- "description": "Number variable definition.",
624
- "allOf": [
625
- {
626
- "$ref": "#/definitions/pipeline/common/Variable"
627
- },
628
- {
629
- "type": "object",
630
- "required": [
631
- "type"
632
- ],
633
- "properties": {
634
- "type": {
635
- "description": "Variable type.",
636
- "type": "string",
637
- "enum": [
638
- "number"
639
- ]
640
- },
641
- "value": {
642
- "description": "Variable value. Supports expressions.",
643
- "oneOf": [
644
- {
645
- "type": "number",
646
- "format": "double"
647
- },
648
- {
649
- "type": "string",
650
- "pattern": "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
651
- }
652
- ],
653
- "metadata": {
654
- "inputProperties": {
655
- "dependsOn": [
656
- "type"
657
- ]
658
- }
659
- }
660
- },
661
- "default": {
662
- "description": "Default value for the variable.",
663
- "type": "number",
664
- "format": "double"
665
- },
666
- "enum": {
667
- "description": "Defines a list of accepted input values.",
668
- "type": "array",
669
- "items": {
670
- "oneOf": [
671
- {
672
- "type": "number",
673
- "format": "double"
674
- },
675
- {
676
- "type": "string",
677
- "pattern": "((^[+-]?[0-9]*\\.?[0-9]+$)|(<\\+.+>.*))"
678
- }
679
- ]
680
- }
681
- }
682
- }
683
- }
684
- ],
685
- "$schema": "http://json-schema.org/draft-07/schema#"
686
- },
687
- "ArrayVariable": {
688
- "title": "ArrayVariable",
689
- "description": "Array variable definition.",
690
- "allOf": [
691
- {
692
- "$ref": "#/definitions/pipeline/common/Variable"
693
- },
694
- {
695
- "type": "object",
696
- "required": [
697
- "type"
698
- ],
699
- "properties": {
700
- "type": {
701
- "description": "Variable type.",
702
- "type": "string",
703
- "enum": [
704
- "array"
705
- ]
706
- },
707
- "value": {
708
- "description": "Variable value.",
709
- "type": "array"
710
- },
711
- "default": {
712
- "description": "Default value for the variable.",
713
- "type": "array"
714
- },
715
- "enum": {
716
- "description": "Defines a list of accepted input values.",
717
- "type": "array",
718
- "items": {
719
- "type": "array"
720
- }
721
- }
722
- }
723
- }
724
- ],
725
- "$schema": "http://json-schema.org/draft-07/schema#"
726
- },
727
- "BooleanVariable": {
728
- "title": "BooleanVariable",
729
- "description": "Boolean variable definition.",
730
- "allOf": [
731
- {
732
- "$ref": "#/definitions/pipeline/common/Variable"
733
- },
734
- {
735
- "type": "object",
736
- "required": [
737
- "type"
738
- ],
739
- "properties": {
740
- "type": {
741
- "description": "Variable type.",
742
- "type": "string",
743
- "enum": [
744
- "boolean"
745
- ]
746
- },
747
- "value": {
748
- "description": "Variable value.",
749
- "type": "boolean"
750
- },
751
- "default": {
752
- "description": "Default value for the variable.",
753
- "type": "boolean"
754
- },
755
- "enum": {
756
- "description": "Defines a list of accepted input values.",
757
- "type": "array",
758
- "items": {
759
- "type": "boolean"
760
- }
761
- }
762
- }
763
- }
764
- ],
765
- "$schema": "http://json-schema.org/draft-07/schema#"
766
- },
767
- "ObjectVariable": {
768
- "title": "ObjectVariable",
769
- "description": "Object variable definition.",
770
- "allOf": [
771
- {
772
- "$ref": "#/definitions/pipeline/common/Variable"
773
- },
774
- {
775
- "type": "object",
776
- "required": [
777
- "type"
778
- ],
779
- "properties": {
780
- "type": {
781
- "description": "Variable type.",
782
- "type": "string",
783
- "enum": [
784
- "object"
785
- ]
786
- },
787
- "value": {
788
- "description": "Variable value.",
789
- "type": "object"
790
- },
791
- "default": {
792
- "description": "Default value for the variable.",
793
- "type": "object"
794
- },
795
- "enum": {
796
- "description": "Defines a list of accepted input values.",
797
- "type": "array",
798
- "items": {
799
- "type": "object"
800
- }
801
- }
802
- }
803
- }
804
- ],
805
- "$schema": "http://json-schema.org/draft-07/schema#"
806
- },
807
- "SecretVariable": {
808
- "title": "SecretVariable",
809
- "description": "Secret variable definition.",
810
- "allOf": [
811
- {
812
- "$ref": "#/definitions/pipeline/common/Variable"
813
- },
814
- {
815
- "type": "object",
816
- "required": [
817
- "type"
818
- ],
819
- "properties": {
820
- "type": {
821
- "description": "Variable type.",
822
- "type": "string",
823
- "enum": [
824
- "secret"
825
- ]
826
- },
827
- "value": {
828
- "description": "Variable value (secret reference).",
829
- "type": "string",
830
- "metadata": {
831
- "inputProperties": {
832
- "dependsOn": [
833
- "type"
834
- ]
835
- }
836
- }
837
- },
838
- "default": {
839
- "description": "Default value for the variable.",
840
- "type": "string"
841
- },
842
- "enum": {
843
- "description": "Defines a list of accepted input values.",
844
- "type": "array",
845
- "items": {
846
- "type": "string"
847
- }
848
- }
849
- }
850
- }
851
- ],
852
- "$schema": "http://json-schema.org/draft-07/schema#"
853
- }
854
- }
855
- },
856
- "service_v1": {
857
- "ServiceSpec": {
858
- "title": "ServiceSpec",
859
- "type": "object",
860
- "required": [
861
- "spec",
862
- "type"
863
- ],
864
- "properties": {
865
- "type": {
866
- "type": "string",
867
- "enum": [
868
- "kubernetes"
869
- ]
870
- },
871
- "inputs": {
872
- "type": "object",
873
- "description": "Inputs defines the service input parameters.",
874
- "additionalProperties": {
875
- "oneOf": [
876
- {
877
- "$ref": "#/definitions/pipeline/common/StringInput"
878
- },
879
- {
880
- "$ref": "#/definitions/pipeline/common/NumberInput"
881
- },
882
- {
883
- "$ref": "#/definitions/pipeline/common/ArrayInput"
884
- },
885
- {
886
- "$ref": "#/definitions/pipeline/common/BooleanInput"
887
- },
888
- {
889
- "$ref": "#/definitions/pipeline/common/ObjectInput"
890
- },
891
- {
892
- "$ref": "#/definitions/pipeline/common/SecretInput"
893
- }
894
- ]
895
- },
896
- "propertyNames": {
897
- "pattern": "^[a-zA-Z_][0-9a-zA-Z_\\.$-]{0,127}$"
898
- }
899
- }
900
- },
901
- "allOf": [
902
- {
903
- "if": {
904
- "properties": {
905
- "type": {
906
- "const": "kubernetes"
907
- }
908
- }
909
- },
910
- "then": {
911
- "properties": {
912
- "spec": {
913
- "$ref": "#/definitions/service_v1/KubernetesServiceSpec"
914
- }
915
- }
916
- }
917
- }
918
- ],
919
- "$schema": "http://json-schema.org/draft-07/schema#"
920
- },
921
- "KubernetesServiceSpec": {
922
- "title": "KubernetesServiceSpec",
923
- "allOf": [
924
- {
925
- "$ref": "#/definitions/service_v1/BasicServiceSpec"
926
- }
927
- ],
928
- "$schema": "http://json-schema.org/draft-07/schema#"
929
- },
930
- "BasicServiceSpec": {
931
- "title": "BasicServiceSpec",
932
- "type": "object",
933
- "discriminator": "type",
934
- "properties": {
935
- "manifests": {
936
- "$ref": "#/definitions/service_v1/ManifestsWrapper"
937
- },
938
- "artifacts": {
939
- "$ref": "#/definitions/service_v1/ArtifactWrapper"
940
- },
941
- "config_files": {
942
- "type": "array",
943
- "items": {
944
- "$ref": "#/definitions/service_v1/ConfigFile"
945
- }
946
- },
947
- "variables": {
948
- "type": "object",
949
- "description": "Variables defines for service",
950
- "additionalProperties": {
951
- "oneOf": [
952
- {
953
- "$ref": "#/definitions/pipeline/common/StringNGVariableV1"
954
- },
955
- {
956
- "$ref": "#/definitions/pipeline/common/NumberVariable"
957
- },
958
- {
959
- "$ref": "#/definitions/pipeline/common/ArrayVariable"
960
- },
961
- {
962
- "$ref": "#/definitions/pipeline/common/BooleanVariable"
963
- },
964
- {
965
- "$ref": "#/definitions/pipeline/common/ObjectVariable"
966
- },
967
- {
968
- "$ref": "#/definitions/pipeline/common/SecretVariable"
969
- }
970
- ]
971
- }
972
- }
973
- },
974
- "$schema": "http://json-schema.org/draft-07/schema#"
975
- },
976
- "ManifestsWrapper": {
977
- "title": "ManifestsWrapper",
978
- "type": "object",
979
- "required": [
980
- "sources"
981
- ],
982
- "properties": {
983
- "primary": {
984
- "type": "string"
985
- },
986
- "sources": {
987
- "type": "array",
988
- "$ref": "#/definitions/service_v1/ManifestConfig"
989
- }
990
- },
991
- "$schema": "http://json-schema.org/draft-07/schema#"
992
- },
993
- "ManifestConfig": {
994
- "title": "ManifestConfig",
995
- "type": "object",
996
- "required": [
997
- "id",
998
- "spec",
999
- "type"
1000
- ],
1001
- "properties": {
1002
- "id": {
1003
- "type": "string"
1004
- },
1005
- "type": {
1006
- "type": "string",
1007
- "enum": [
1008
- "k8s",
1009
- "values"
1010
- ]
1011
- }
1012
- },
1013
- "allOf": [
1014
- {
1015
- "if": {
1016
- "properties": {
1017
- "type": {
1018
- "const": "k8s"
1019
- }
1020
- }
1021
- },
1022
- "then": {
1023
- "properties": {
1024
- "spec": {
1025
- "$ref": "#/definitions/service_v1/K8sManifest"
1026
- }
1027
- }
1028
- }
1029
- },
1030
- {
1031
- "if": {
1032
- "properties": {
1033
- "type": {
1034
- "const": "values"
1035
- }
1036
- }
1037
- },
1038
- "then": {
1039
- "properties": {
1040
- "spec": {
1041
- "$ref": "#/definitions/service_v1/ValuesManifest"
1042
- }
1043
- }
1044
- }
1045
- }
1046
- ],
1047
- "$schema": "http://json-schema.org/draft-07/schema#"
1048
- },
1049
- "K8sManifest": {
1050
- "title": "K8sManifest",
1051
- "allOf": [
1052
- {
1053
- "$ref": "#/definitions/service_v1/BasicManifestConfig"
1054
- },
1055
- {
1056
- "type": "object",
1057
- "required": [
1058
- "spec",
1059
- "type"
1060
- ],
1061
- "properties": {
1062
- "type": {
1063
- "type": "string",
1064
- "enum": [
1065
- "github"
1066
- ]
1067
- },
1068
- "values": {
1069
- "oneOf": [
1070
- {
1071
- "type": "array",
1072
- "items": {
1073
- "type": "string"
1074
- }
1075
- },
1076
- {
1077
- "type": "string",
1078
- "pattern": "(<\\+.+>.*)",
1079
- "minLength": 1
1080
- }
1081
- ]
1082
- },
1083
- "skip_versioning": {
1084
- "oneOf": [
1085
- {
1086
- "type": "string"
1087
- },
1088
- {
1089
- "type": "boolean"
1090
- }
1091
- ]
1092
- },
1093
- "declarative_rollback": {
1094
- "oneOf": [
1095
- {
1096
- "type": "string"
1097
- },
1098
- {
1099
- "type": "boolean"
1100
- }
1101
- ]
1102
- },
1103
- "spec": {
1104
- "type": "object",
1105
- "allOf": [
1106
- {
1107
- "if": {
1108
- "properties": {
1109
- "type": {
1110
- "const": "github"
1111
- }
1112
- }
1113
- },
1114
- "then": {
1115
- "properties": {
1116
- "spec": {
1117
- "$ref": "#/definitions/service_v1/stores/GithubStoreConfig"
1118
- }
1119
- }
1120
- }
1121
- }
1122
- ]
1123
- }
1124
- }
1125
- }
1126
- ],
1127
- "$schema": "http://json-schema.org/draft-07/schema#"
1128
- },
1129
- "BasicManifestConfig": {
1130
- "title": "BasicManifestConfig",
1131
- "type": "object",
1132
- "discriminator": "type",
1133
- "$schema": "http://json-schema.org/draft-07/schema#"
1134
- },
1135
- "stores": {
1136
- "GithubStoreConfig": {
1137
- "title": "GithubStoreConfig",
1138
- "allOf": [
1139
- {
1140
- "$ref": "#/definitions/service_v1/stores/BasicStoreConfig"
1141
- },
1142
- {
1143
- "type": "object",
1144
- "required": [
1145
- "connector",
1146
- "location"
1147
- ],
1148
- "properties": {
1149
- "location": {
1150
- "type": "string",
1151
- "description": "this is reference to files for given connector in following format refs/heads/main:/charts"
1152
- },
1153
- "connector": {
1154
- "type": "string"
1155
- },
1156
- "repo": {
1157
- "type": "string"
1158
- }
1159
- }
1160
- }
1161
- ],
1162
- "$schema": "http://json-schema.org/draft-07/schema#"
1163
- },
1164
- "BasicStoreConfig": {
1165
- "title": "BasicStoreConfig",
1166
- "type": "object",
1167
- "discriminator": "type",
1168
- "$schema": "http://json-schema.org/draft-07/schema#"
1169
- },
1170
- "DockerHubArtifactConfig": {
1171
- "title": "DockerHubArtifactConfig",
1172
- "allOf": [
1173
- {
1174
- "$ref": "#/definitions/service_v1/stores/BasicArtifactStoreConfig"
1175
- },
1176
- {
1177
- "type": "object",
1178
- "required": [
1179
- "connector",
1180
- "location"
1181
- ],
1182
- "properties": {
1183
- "connector": {
1184
- "type": "string"
1185
- },
1186
- "location": {
1187
- "type": "string",
1188
- "description": "this is reference to artifact image in following format /library/nginx:alpine"
1189
- }
1190
- }
1191
- }
1192
- ],
1193
- "$schema": "http://json-schema.org/draft-07/schema#"
1194
- },
1195
- "BasicArtifactStoreConfig": {
1196
- "title": "BasicArtifactStoreConfig",
1197
- "discriminator": "type",
1198
- "$schema": "http://json-schema.org/draft-07/schema#"
1199
- },
1200
- "HarnessStore": {
1201
- "title": "HarnessStore",
1202
- "allOf": [
1203
- {
1204
- "$ref": "#/definitions/service_v1/stores/BasicArtifactStoreConfig"
1205
- },
1206
- {
1207
- "type": "object",
1208
- "properties": {
1209
- "files": {
1210
- "oneOf": [
1211
- {
1212
- "type": "array",
1213
- "items": {
1214
- "type": "string"
1215
- }
1216
- },
1217
- {
1218
- "type": "string",
1219
- "pattern": "(<\\+.+>.*)",
1220
- "minLength": 1
1221
- }
1222
- ],
1223
- "description": "this is list of path to file"
1224
- }
1225
- }
1226
- }
1227
- ],
1228
- "$schema": "http://json-schema.org/draft-07/schema#",
1229
- "properties": {
1230
- "description": {
1231
- "desc": "This is the description for HarnessStore"
1232
- }
1233
- }
1234
- }
1235
- },
1236
- "ValuesManifest": {
1237
- "title": "ValuesManifest",
1238
- "allOf": [
1239
- {
1240
- "$ref": "#/definitions/service_v1/BasicManifestConfig"
1241
- },
1242
- {
1243
- "type": "object",
1244
- "required": [
1245
- "spec",
1246
- "type"
1247
- ],
1248
- "properties": {
1249
- "type": {
1250
- "type": "string",
1251
- "enum": [
1252
- "github"
1253
- ]
1254
- },
1255
- "spec": {
1256
- "type": "object",
1257
- "allOf": [
1258
- {
1259
- "if": {
1260
- "properties": {
1261
- "type": {
1262
- "const": "github"
1263
- }
1264
- }
1265
- },
1266
- "then": {
1267
- "properties": {
1268
- "spec": {
1269
- "$ref": "#/definitions/service_v1/stores/GithubStoreConfig"
1270
- }
1271
- }
1272
- }
1273
- }
1274
- ]
1275
- }
1276
- }
1277
- }
1278
- ],
1279
- "$schema": "http://json-schema.org/draft-07/schema#"
1280
- },
1281
- "ArtifactWrapper": {
1282
- "title": "ArtifactWrapper",
1283
- "type": "object",
1284
- "required": [
1285
- "primary",
1286
- "sources"
1287
- ],
1288
- "properties": {
1289
- "primary": {
1290
- "type": "string"
1291
- },
1292
- "sources": {
1293
- "type": "array",
1294
- "items": {
1295
- "$ref": "#/definitions/service_v1/ArtifactConfig"
1296
- }
1297
- }
1298
- },
1299
- "$schema": "http://json-schema.org/draft-07/schema#"
1300
- },
1301
- "ArtifactConfig": {
1302
- "title": "ArtifactConfig",
1303
- "type": "object",
1304
- "required": [
1305
- "id",
1306
- "type",
1307
- "spec"
1308
- ],
1309
- "properties": {
1310
- "id": {
1311
- "type": "string"
1312
- },
1313
- "type": {
1314
- "type": "string",
1315
- "enum": [
1316
- "docker"
1317
- ]
1318
- },
1319
- "sidecar": {
1320
- "type": "boolean"
1321
- }
1322
- },
1323
- "allOf": [
1324
- {
1325
- "if": {
1326
- "properties": {
1327
- "type": {
1328
- "const": "docker"
1329
- }
1330
- }
1331
- },
1332
- "then": {
1333
- "properties": {
1334
- "spec": {
1335
- "$ref": "#/definitions/service_v1/stores/DockerHubArtifactConfig"
1336
- }
1337
- }
1338
- }
1339
- }
1340
- ],
1341
- "$schema": "http://json-schema.org/draft-07/schema#"
1342
- },
1343
- "ConfigFile": {
1344
- "title": "ConfigFile",
1345
- "type": "object",
1346
- "required": [
1347
- "id",
1348
- "type",
1349
- "spec"
1350
- ],
1351
- "properties": {
1352
- "id": {
1353
- "type": "string"
1354
- },
1355
- "type": {
1356
- "type": "string",
1357
- "enum": [
1358
- "harness"
1359
- ]
1360
- }
1361
- },
1362
- "allOf": [
1363
- {
1364
- "if": {
1365
- "properties": {
1366
- "type": {
1367
- "const": "harness"
1368
- }
1369
- }
1370
- },
1371
- "then": {
1372
- "properties": {
1373
- "spec": {
1374
- "$ref": "#/definitions/service_v1/stores/HarnessStore"
1375
- }
1376
- }
1377
- }
1378
- }
1379
- ],
1380
- "$schema": "http://json-schema.org/draft-07/schema#"
1381
- }
1382
- }
1383
- }
1384
- };
1385
- export default schema;
1386
- //# sourceMappingURL=service.js.map