@meshery/schemas 0.8.126 → 0.8.127

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 (69) hide show
  1. package/dist/{Core-Wy_3jcVT.d.mts → Core-vaTzd8cz.d.mts} +4 -2
  2. package/dist/{Core-Wy_3jcVT.d.ts → Core-vaTzd8cz.d.ts} +4 -2
  3. package/dist/cloudApi.d.mts +12 -0
  4. package/dist/cloudApi.d.ts +12 -0
  5. package/dist/cloudApi.js +1 -1
  6. package/dist/cloudApi.mjs +1 -1
  7. package/dist/constructs/v1alpha1/capability/Capability.d.mts +3 -1
  8. package/dist/constructs/v1alpha1/capability/Capability.d.ts +3 -1
  9. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.mts +2 -2
  10. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +2 -2
  11. package/dist/constructs/v1alpha1/capability/CapabilitySchema.js +1 -1
  12. package/dist/constructs/v1alpha1/capability/CapabilitySchema.mjs +1 -1
  13. package/dist/constructs/v1alpha1/core/Core.d.mts +1 -1
  14. package/dist/constructs/v1alpha1/core/Core.d.ts +1 -1
  15. package/dist/constructs/v1alpha1/core/CoreSchema.d.mts +3 -3
  16. package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +3 -3
  17. package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
  18. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
  19. package/dist/constructs/v1alpha3/relationship/Relationship.d.mts +6 -2
  20. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +6 -2
  21. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.mts +4 -4
  22. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +4 -4
  23. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +1 -1
  24. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +1 -1
  25. package/dist/constructs/v1beta1/component/Component.d.mts +28 -5
  26. package/dist/constructs/v1beta1/component/Component.d.ts +28 -5
  27. package/dist/constructs/v1beta1/component/ComponentSchema.d.mts +34 -19
  28. package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +34 -19
  29. package/dist/constructs/v1beta1/component/ComponentSchema.js +2 -2
  30. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +2 -2
  31. package/dist/constructs/v1beta1/connection/Connection.d.mts +96 -6
  32. package/dist/constructs/v1beta1/connection/Connection.d.ts +96 -6
  33. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.mts +156 -66
  34. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +156 -66
  35. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  36. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  37. package/dist/constructs/v1beta1/environment/Environment.d.mts +52 -0
  38. package/dist/constructs/v1beta1/environment/Environment.d.ts +52 -0
  39. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.mts +96 -36
  40. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +96 -36
  41. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  42. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  43. package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +148 -32
  44. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +148 -32
  45. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.mts +160 -100
  46. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +160 -100
  47. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +12 -12
  48. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +12 -12
  49. package/dist/constructs/v1beta1/model/Model.d.mts +22 -3
  50. package/dist/constructs/v1beta1/model/Model.d.ts +22 -3
  51. package/dist/constructs/v1beta1/model/ModelSchema.d.mts +30 -15
  52. package/dist/constructs/v1beta1/model/ModelSchema.d.ts +30 -15
  53. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  54. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  55. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +148 -32
  56. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +148 -32
  57. package/dist/constructs/v1beta1/pattern/PatternSchema.d.mts +160 -100
  58. package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +160 -100
  59. package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -12
  60. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -12
  61. package/dist/index.d.mts +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.js +16 -16
  64. package/dist/index.mjs +16 -16
  65. package/dist/mesheryApi.d.mts +8 -0
  66. package/dist/mesheryApi.d.ts +8 -0
  67. package/dist/mesheryApi.js +1 -1
  68. package/dist/mesheryApi.mjs +1 -1
  69. package/package.json +1 -1
@@ -144,7 +144,7 @@ declare const EnvironmentSchema: {
144
144
  readonly description: "Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments";
145
145
  readonly additionalProperties: false;
146
146
  readonly type: "object";
147
- readonly required: readonly ["id", "name", "description", "organization_id"];
147
+ readonly required: readonly ["id", "schemaVersion", "name", "description", "organization_id"];
148
148
  readonly properties: {
149
149
  readonly id: {
150
150
  readonly description: "ID";
@@ -161,12 +161,27 @@ declare const EnvironmentSchema: {
161
161
  readonly path: "github.com/gofrs/uuid";
162
162
  };
163
163
  };
164
+ readonly schemaVersion: {
165
+ readonly description: "Specifies the version of the schema to which the environment conforms.";
166
+ readonly "x-order": 2;
167
+ readonly "x-oapi-codegen-extra-tags": {
168
+ readonly yaml: "schemaVersion";
169
+ readonly db: "-";
170
+ readonly gorm: "-";
171
+ };
172
+ readonly default: "environments.meshery.io/v1beta1";
173
+ readonly type: "string";
174
+ readonly minLength: 2;
175
+ readonly maxLength: 100;
176
+ readonly pattern: "^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$";
177
+ readonly example: readonly ["v1", "v1alpha1", "v2beta3", "v1.custom-suffix", "models.meshery.io/v1beta1", "capability.meshery.io/v1alpha1"];
178
+ };
164
179
  readonly name: {
165
180
  readonly "x-oapi-codegen-extra-tags": {
166
181
  readonly db: "name";
167
182
  readonly yaml: "name";
168
183
  };
169
- readonly "x-order": 2;
184
+ readonly "x-order": 3;
170
185
  readonly type: "string";
171
186
  readonly description: "Environment name";
172
187
  };
@@ -175,7 +190,7 @@ declare const EnvironmentSchema: {
175
190
  readonly db: "description";
176
191
  readonly yaml: "description";
177
192
  };
178
- readonly "x-order": 3;
193
+ readonly "x-order": 4;
179
194
  readonly type: "string";
180
195
  readonly description: "Environment description";
181
196
  };
@@ -185,7 +200,7 @@ declare const EnvironmentSchema: {
185
200
  readonly db: "organization_id";
186
201
  readonly yaml: "organization_id";
187
202
  };
188
- readonly "x-order": 4;
203
+ readonly "x-order": 5;
189
204
  readonly description: "Environment organization ID";
190
205
  readonly type: "string";
191
206
  readonly format: "uuid";
@@ -199,7 +214,7 @@ declare const EnvironmentSchema: {
199
214
  readonly db: "owner";
200
215
  readonly yaml: "owner";
201
216
  };
202
- readonly "x-order": 5;
217
+ readonly "x-order": 6;
203
218
  readonly description: "Environment owner";
204
219
  readonly type: "string";
205
220
  readonly format: "uuid";
@@ -213,7 +228,7 @@ declare const EnvironmentSchema: {
213
228
  readonly db: "created_at";
214
229
  readonly yaml: "created_at";
215
230
  };
216
- readonly "x-order": 6;
231
+ readonly "x-order": 7;
217
232
  readonly type: "string";
218
233
  readonly format: "date-time";
219
234
  readonly "x-go-type-skip-optional-pointer": true;
@@ -223,7 +238,7 @@ declare const EnvironmentSchema: {
223
238
  readonly db: "metadata";
224
239
  readonly yaml: "metadata";
225
240
  };
226
- readonly "x-order": 7;
241
+ readonly "x-order": 8;
227
242
  readonly "x-go-type": "core.Map";
228
243
  readonly "x-go-type-skip-optional-pointer": true;
229
244
  readonly type: "object";
@@ -233,7 +248,7 @@ declare const EnvironmentSchema: {
233
248
  readonly db: "updated_at";
234
249
  readonly yaml: "updated_at";
235
250
  };
236
- readonly "x-order": 8;
251
+ readonly "x-order": 9;
237
252
  readonly type: "string";
238
253
  readonly format: "date-time";
239
254
  readonly "x-go-type-skip-optional-pointer": true;
@@ -245,7 +260,7 @@ declare const EnvironmentSchema: {
245
260
  };
246
261
  readonly "x-go-type": "core.NullTime";
247
262
  readonly "x-go-import": "database/sql";
248
- readonly "x-order": 9;
263
+ readonly "x-order": 10;
249
264
  readonly type: "string";
250
265
  readonly format: "date-time";
251
266
  readonly "x-go-type-skip-optional-pointer": true;
@@ -360,7 +375,7 @@ declare const EnvironmentSchema: {
360
375
  readonly description: "Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments";
361
376
  readonly additionalProperties: false;
362
377
  readonly type: "object";
363
- readonly required: readonly ["id", "name", "description", "organization_id"];
378
+ readonly required: readonly ["id", "schemaVersion", "name", "description", "organization_id"];
364
379
  readonly properties: {
365
380
  readonly id: {
366
381
  readonly description: "ID";
@@ -377,12 +392,27 @@ declare const EnvironmentSchema: {
377
392
  readonly path: "github.com/gofrs/uuid";
378
393
  };
379
394
  };
395
+ readonly schemaVersion: {
396
+ readonly description: "Specifies the version of the schema to which the environment conforms.";
397
+ readonly "x-order": 2;
398
+ readonly "x-oapi-codegen-extra-tags": {
399
+ readonly yaml: "schemaVersion";
400
+ readonly db: "-";
401
+ readonly gorm: "-";
402
+ };
403
+ readonly default: "environments.meshery.io/v1beta1";
404
+ readonly type: "string";
405
+ readonly minLength: 2;
406
+ readonly maxLength: 100;
407
+ readonly pattern: "^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$";
408
+ readonly example: readonly ["v1", "v1alpha1", "v2beta3", "v1.custom-suffix", "models.meshery.io/v1beta1", "capability.meshery.io/v1alpha1"];
409
+ };
380
410
  readonly name: {
381
411
  readonly "x-oapi-codegen-extra-tags": {
382
412
  readonly db: "name";
383
413
  readonly yaml: "name";
384
414
  };
385
- readonly "x-order": 2;
415
+ readonly "x-order": 3;
386
416
  readonly type: "string";
387
417
  readonly description: "Environment name";
388
418
  };
@@ -391,7 +421,7 @@ declare const EnvironmentSchema: {
391
421
  readonly db: "description";
392
422
  readonly yaml: "description";
393
423
  };
394
- readonly "x-order": 3;
424
+ readonly "x-order": 4;
395
425
  readonly type: "string";
396
426
  readonly description: "Environment description";
397
427
  };
@@ -401,7 +431,7 @@ declare const EnvironmentSchema: {
401
431
  readonly db: "organization_id";
402
432
  readonly yaml: "organization_id";
403
433
  };
404
- readonly "x-order": 4;
434
+ readonly "x-order": 5;
405
435
  readonly description: "Environment organization ID";
406
436
  readonly type: "string";
407
437
  readonly format: "uuid";
@@ -415,7 +445,7 @@ declare const EnvironmentSchema: {
415
445
  readonly db: "owner";
416
446
  readonly yaml: "owner";
417
447
  };
418
- readonly "x-order": 5;
448
+ readonly "x-order": 6;
419
449
  readonly description: "Environment owner";
420
450
  readonly type: "string";
421
451
  readonly format: "uuid";
@@ -429,7 +459,7 @@ declare const EnvironmentSchema: {
429
459
  readonly db: "created_at";
430
460
  readonly yaml: "created_at";
431
461
  };
432
- readonly "x-order": 6;
462
+ readonly "x-order": 7;
433
463
  readonly type: "string";
434
464
  readonly format: "date-time";
435
465
  readonly "x-go-type-skip-optional-pointer": true;
@@ -439,7 +469,7 @@ declare const EnvironmentSchema: {
439
469
  readonly db: "metadata";
440
470
  readonly yaml: "metadata";
441
471
  };
442
- readonly "x-order": 7;
472
+ readonly "x-order": 8;
443
473
  readonly "x-go-type": "core.Map";
444
474
  readonly "x-go-type-skip-optional-pointer": true;
445
475
  readonly type: "object";
@@ -449,7 +479,7 @@ declare const EnvironmentSchema: {
449
479
  readonly db: "updated_at";
450
480
  readonly yaml: "updated_at";
451
481
  };
452
- readonly "x-order": 8;
482
+ readonly "x-order": 9;
453
483
  readonly type: "string";
454
484
  readonly format: "date-time";
455
485
  readonly "x-go-type-skip-optional-pointer": true;
@@ -461,7 +491,7 @@ declare const EnvironmentSchema: {
461
491
  };
462
492
  readonly "x-go-type": "core.NullTime";
463
493
  readonly "x-go-import": "database/sql";
464
- readonly "x-order": 9;
494
+ readonly "x-order": 10;
465
495
  readonly type: "string";
466
496
  readonly format: "date-time";
467
497
  readonly "x-go-type-skip-optional-pointer": true;
@@ -557,7 +587,7 @@ declare const EnvironmentSchema: {
557
587
  readonly description: "Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments";
558
588
  readonly additionalProperties: false;
559
589
  readonly type: "object";
560
- readonly required: readonly ["id", "name", "description", "organization_id"];
590
+ readonly required: readonly ["id", "schemaVersion", "name", "description", "organization_id"];
561
591
  readonly properties: {
562
592
  readonly id: {
563
593
  readonly description: "ID";
@@ -574,12 +604,27 @@ declare const EnvironmentSchema: {
574
604
  readonly path: "github.com/gofrs/uuid";
575
605
  };
576
606
  };
607
+ readonly schemaVersion: {
608
+ readonly description: "Specifies the version of the schema to which the environment conforms.";
609
+ readonly "x-order": 2;
610
+ readonly "x-oapi-codegen-extra-tags": {
611
+ readonly yaml: "schemaVersion";
612
+ readonly db: "-";
613
+ readonly gorm: "-";
614
+ };
615
+ readonly default: "environments.meshery.io/v1beta1";
616
+ readonly type: "string";
617
+ readonly minLength: 2;
618
+ readonly maxLength: 100;
619
+ readonly pattern: "^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$";
620
+ readonly example: readonly ["v1", "v1alpha1", "v2beta3", "v1.custom-suffix", "models.meshery.io/v1beta1", "capability.meshery.io/v1alpha1"];
621
+ };
577
622
  readonly name: {
578
623
  readonly "x-oapi-codegen-extra-tags": {
579
624
  readonly db: "name";
580
625
  readonly yaml: "name";
581
626
  };
582
- readonly "x-order": 2;
627
+ readonly "x-order": 3;
583
628
  readonly type: "string";
584
629
  readonly description: "Environment name";
585
630
  };
@@ -588,7 +633,7 @@ declare const EnvironmentSchema: {
588
633
  readonly db: "description";
589
634
  readonly yaml: "description";
590
635
  };
591
- readonly "x-order": 3;
636
+ readonly "x-order": 4;
592
637
  readonly type: "string";
593
638
  readonly description: "Environment description";
594
639
  };
@@ -598,7 +643,7 @@ declare const EnvironmentSchema: {
598
643
  readonly db: "organization_id";
599
644
  readonly yaml: "organization_id";
600
645
  };
601
- readonly "x-order": 4;
646
+ readonly "x-order": 5;
602
647
  readonly description: "Environment organization ID";
603
648
  readonly type: "string";
604
649
  readonly format: "uuid";
@@ -612,7 +657,7 @@ declare const EnvironmentSchema: {
612
657
  readonly db: "owner";
613
658
  readonly yaml: "owner";
614
659
  };
615
- readonly "x-order": 5;
660
+ readonly "x-order": 6;
616
661
  readonly description: "Environment owner";
617
662
  readonly type: "string";
618
663
  readonly format: "uuid";
@@ -626,7 +671,7 @@ declare const EnvironmentSchema: {
626
671
  readonly db: "created_at";
627
672
  readonly yaml: "created_at";
628
673
  };
629
- readonly "x-order": 6;
674
+ readonly "x-order": 7;
630
675
  readonly type: "string";
631
676
  readonly format: "date-time";
632
677
  readonly "x-go-type-skip-optional-pointer": true;
@@ -636,7 +681,7 @@ declare const EnvironmentSchema: {
636
681
  readonly db: "metadata";
637
682
  readonly yaml: "metadata";
638
683
  };
639
- readonly "x-order": 7;
684
+ readonly "x-order": 8;
640
685
  readonly "x-go-type": "core.Map";
641
686
  readonly "x-go-type-skip-optional-pointer": true;
642
687
  readonly type: "object";
@@ -646,7 +691,7 @@ declare const EnvironmentSchema: {
646
691
  readonly db: "updated_at";
647
692
  readonly yaml: "updated_at";
648
693
  };
649
- readonly "x-order": 8;
694
+ readonly "x-order": 9;
650
695
  readonly type: "string";
651
696
  readonly format: "date-time";
652
697
  readonly "x-go-type-skip-optional-pointer": true;
@@ -658,7 +703,7 @@ declare const EnvironmentSchema: {
658
703
  };
659
704
  readonly "x-go-type": "core.NullTime";
660
705
  readonly "x-go-import": "database/sql";
661
- readonly "x-order": 9;
706
+ readonly "x-order": 10;
662
707
  readonly type: "string";
663
708
  readonly format: "date-time";
664
709
  readonly "x-go-type-skip-optional-pointer": true;
@@ -761,7 +806,7 @@ declare const EnvironmentSchema: {
761
806
  readonly description: "Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments";
762
807
  readonly additionalProperties: false;
763
808
  readonly type: "object";
764
- readonly required: readonly ["id", "name", "description", "organization_id"];
809
+ readonly required: readonly ["id", "schemaVersion", "name", "description", "organization_id"];
765
810
  readonly properties: {
766
811
  readonly id: {
767
812
  readonly description: "ID";
@@ -778,12 +823,27 @@ declare const EnvironmentSchema: {
778
823
  readonly path: "github.com/gofrs/uuid";
779
824
  };
780
825
  };
826
+ readonly schemaVersion: {
827
+ readonly description: "Specifies the version of the schema to which the environment conforms.";
828
+ readonly "x-order": 2;
829
+ readonly "x-oapi-codegen-extra-tags": {
830
+ readonly yaml: "schemaVersion";
831
+ readonly db: "-";
832
+ readonly gorm: "-";
833
+ };
834
+ readonly default: "environments.meshery.io/v1beta1";
835
+ readonly type: "string";
836
+ readonly minLength: 2;
837
+ readonly maxLength: 100;
838
+ readonly pattern: "^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$";
839
+ readonly example: readonly ["v1", "v1alpha1", "v2beta3", "v1.custom-suffix", "models.meshery.io/v1beta1", "capability.meshery.io/v1alpha1"];
840
+ };
781
841
  readonly name: {
782
842
  readonly "x-oapi-codegen-extra-tags": {
783
843
  readonly db: "name";
784
844
  readonly yaml: "name";
785
845
  };
786
- readonly "x-order": 2;
846
+ readonly "x-order": 3;
787
847
  readonly type: "string";
788
848
  readonly description: "Environment name";
789
849
  };
@@ -792,7 +852,7 @@ declare const EnvironmentSchema: {
792
852
  readonly db: "description";
793
853
  readonly yaml: "description";
794
854
  };
795
- readonly "x-order": 3;
855
+ readonly "x-order": 4;
796
856
  readonly type: "string";
797
857
  readonly description: "Environment description";
798
858
  };
@@ -802,7 +862,7 @@ declare const EnvironmentSchema: {
802
862
  readonly db: "organization_id";
803
863
  readonly yaml: "organization_id";
804
864
  };
805
- readonly "x-order": 4;
865
+ readonly "x-order": 5;
806
866
  readonly description: "Environment organization ID";
807
867
  readonly type: "string";
808
868
  readonly format: "uuid";
@@ -816,7 +876,7 @@ declare const EnvironmentSchema: {
816
876
  readonly db: "owner";
817
877
  readonly yaml: "owner";
818
878
  };
819
- readonly "x-order": 5;
879
+ readonly "x-order": 6;
820
880
  readonly description: "Environment owner";
821
881
  readonly type: "string";
822
882
  readonly format: "uuid";
@@ -830,7 +890,7 @@ declare const EnvironmentSchema: {
830
890
  readonly db: "created_at";
831
891
  readonly yaml: "created_at";
832
892
  };
833
- readonly "x-order": 6;
893
+ readonly "x-order": 7;
834
894
  readonly type: "string";
835
895
  readonly format: "date-time";
836
896
  readonly "x-go-type-skip-optional-pointer": true;
@@ -840,7 +900,7 @@ declare const EnvironmentSchema: {
840
900
  readonly db: "metadata";
841
901
  readonly yaml: "metadata";
842
902
  };
843
- readonly "x-order": 7;
903
+ readonly "x-order": 8;
844
904
  readonly "x-go-type": "core.Map";
845
905
  readonly "x-go-type-skip-optional-pointer": true;
846
906
  readonly type: "object";
@@ -850,7 +910,7 @@ declare const EnvironmentSchema: {
850
910
  readonly db: "updated_at";
851
911
  readonly yaml: "updated_at";
852
912
  };
853
- readonly "x-order": 8;
913
+ readonly "x-order": 9;
854
914
  readonly type: "string";
855
915
  readonly format: "date-time";
856
916
  readonly "x-go-type-skip-optional-pointer": true;
@@ -862,7 +922,7 @@ declare const EnvironmentSchema: {
862
922
  };
863
923
  readonly "x-go-type": "core.NullTime";
864
924
  readonly "x-go-import": "database/sql";
865
- readonly "x-order": 9;
925
+ readonly "x-order": 10;
866
926
  readonly type: "string";
867
927
  readonly format: "date-time";
868
928
  readonly "x-go-type-skip-optional-pointer": true;
@@ -1,2 +1,2 @@
1
- 'use strict';var e={openapi:"3.0.0",info:{title:"environment",description:"Documentation for meshery Cloud REST APIs",contact:{email:"maintainers@meshery.io"},version:"v0.6.394"},servers:[{url:"https://cloud.meshery.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.meshery.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL (controlled via PORT environment variable)"}],security:[{jwt:[]}],tags:[{name:"environments",description:"APIs for environments"}],components:{responses:{200:{description:"ok",content:{"text/plain":{schema:{type:"string"}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{environmentId:{name:"environmentId",in:"path",description:"Environment ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-type-skip-optional-pointer":true},required:true},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},orgIDQuery:{name:"orgID",in:"query",description:"User's organization ID",schema:{type:"string"},required:true}},securitySchemes:{jwt:{type:"http",scheme:"Bearer",bearerFormat:"JWT"}},schemas:{environment:{$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":2,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":4,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":5,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":6,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":7,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},environmentConnectionMapping:{properties:{ID:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},environment_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"environment_id",json:"environment_id"},"x-go-type-skip-optional-pointer":true},connection_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"connection_id",json:"connection_id"},"x-go-type-skip-optional-pointer":true},created_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},environmentPayload:{properties:{name:{description:"An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any Time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).",type:"string","x-go-type-skip-optional-pointer":true},OrganizationID:{type:"string",description:"Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.","x-go-type-skip-optional-pointer":true,"x-go-name":"OrgId","x-oapi-codegen-extra-tags":{json:"organization_id"}}},required:["name","organizationID"]},environmentPage:{properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},environments:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Environment",$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":2,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":4,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":5,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":6,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":7,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}}},requestBodies:{environmentPayload:{description:"Body for creating environment",required:true,content:{"application/json":{schema:{properties:{name:{description:"An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any Time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).",type:"string","x-go-type-skip-optional-pointer":true},OrganizationID:{type:"string",description:"Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.","x-go-type-skip-optional-pointer":true,"x-go-name":"OrgId","x-oapi-codegen-extra-tags":{json:"organization_id"}}},required:["name","organizationID"]}}}}}},paths:{"/api/environments":{post:{tags:["environments"],operationId:"CreateEnvironment",summary:"Create an environment",description:"Creates a new environment",requestBody:{description:"Body for creating environment",required:true,content:{"application/json":{schema:{properties:{name:{description:"An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any Time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).",type:"string","x-go-type-skip-optional-pointer":true},OrganizationID:{type:"string",description:"Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.","x-go-type-skip-optional-pointer":true,"x-go-name":"OrgId","x-oapi-codegen-extra-tags":{json:"organization_id"}}},required:["name","organizationID"]}}}},responses:{201:{description:"Created environment",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":2,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":4,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":5,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":6,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":7,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},get:{tags:["environments"],operationId:"GetEnvironments",summary:"Get all environments",description:"Gets all environments",parameters:[{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"orgID",in:"query",description:"User's organization ID",schema:{type:"string"},required:true}],responses:{200:{description:"Environments",content:{"application/json":{schema:{properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},environments:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Environment",$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":2,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":4,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":5,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":6,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":7,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}}},t=e;
1
+ 'use strict';var e={openapi:"3.0.0",info:{title:"environment",description:"Documentation for meshery Cloud REST APIs",contact:{email:"maintainers@meshery.io"},version:"v0.6.394"},servers:[{url:"https://cloud.meshery.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.meshery.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL (controlled via PORT environment variable)"}],security:[{jwt:[]}],tags:[{name:"environments",description:"APIs for environments"}],components:{responses:{200:{description:"ok",content:{"text/plain":{schema:{type:"string"}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{environmentId:{name:"environmentId",in:"path",description:"Environment ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-type-skip-optional-pointer":true},required:true},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},orgIDQuery:{name:"orgID",in:"query",description:"User's organization ID",schema:{type:"string"},required:true}},securitySchemes:{jwt:{type:"http",scheme:"Bearer",bearerFormat:"JWT"}},schemas:{environment:{$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","schemaVersion","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},schemaVersion:{description:"Specifies the version of the schema to which the environment conforms.","x-order":2,"x-oapi-codegen-extra-tags":{yaml:"schemaVersion",db:"-",gorm:"-"},default:"environments.meshery.io/v1beta1",type:"string",minLength:2,maxLength:100,pattern:"^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$",example:["v1","v1alpha1","v2beta3","v1.custom-suffix","models.meshery.io/v1beta1","capability.meshery.io/v1alpha1"]},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":3,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":4,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":5,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":6,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":8,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},environmentConnectionMapping:{properties:{ID:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},environment_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"environment_id",json:"environment_id"},"x-go-type-skip-optional-pointer":true},connection_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"connection_id",json:"connection_id"},"x-go-type-skip-optional-pointer":true},created_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},environmentPayload:{properties:{name:{description:"An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any Time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).",type:"string","x-go-type-skip-optional-pointer":true},OrganizationID:{type:"string",description:"Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.","x-go-type-skip-optional-pointer":true,"x-go-name":"OrgId","x-oapi-codegen-extra-tags":{json:"organization_id"}}},required:["name","organizationID"]},environmentPage:{properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},environments:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Environment",$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","schemaVersion","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},schemaVersion:{description:"Specifies the version of the schema to which the environment conforms.","x-order":2,"x-oapi-codegen-extra-tags":{yaml:"schemaVersion",db:"-",gorm:"-"},default:"environments.meshery.io/v1beta1",type:"string",minLength:2,maxLength:100,pattern:"^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$",example:["v1","v1alpha1","v2beta3","v1.custom-suffix","models.meshery.io/v1beta1","capability.meshery.io/v1alpha1"]},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":3,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":4,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":5,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":6,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":8,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}}},requestBodies:{environmentPayload:{description:"Body for creating environment",required:true,content:{"application/json":{schema:{properties:{name:{description:"An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any Time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).",type:"string","x-go-type-skip-optional-pointer":true},OrganizationID:{type:"string",description:"Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.","x-go-type-skip-optional-pointer":true,"x-go-name":"OrgId","x-oapi-codegen-extra-tags":{json:"organization_id"}}},required:["name","organizationID"]}}}}}},paths:{"/api/environments":{post:{tags:["environments"],operationId:"CreateEnvironment",summary:"Create an environment",description:"Creates a new environment",requestBody:{description:"Body for creating environment",required:true,content:{"application/json":{schema:{properties:{name:{description:"An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any Time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).",type:"string","x-go-type-skip-optional-pointer":true},OrganizationID:{type:"string",description:"Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.","x-go-type-skip-optional-pointer":true,"x-go-name":"OrgId","x-oapi-codegen-extra-tags":{json:"organization_id"}}},required:["name","organizationID"]}}}},responses:{201:{description:"Created environment",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","schemaVersion","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},schemaVersion:{description:"Specifies the version of the schema to which the environment conforms.","x-order":2,"x-oapi-codegen-extra-tags":{yaml:"schemaVersion",db:"-",gorm:"-"},default:"environments.meshery.io/v1beta1",type:"string",minLength:2,maxLength:100,pattern:"^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$",example:["v1","v1alpha1","v2beta3","v1.custom-suffix","models.meshery.io/v1beta1","capability.meshery.io/v1alpha1"]},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":3,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":4,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":5,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":6,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":8,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},get:{tags:["environments"],operationId:"GetEnvironments",summary:"Get all environments",description:"Gets all environments",parameters:[{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"orgID",in:"query",description:"User's organization ID",schema:{type:"string"},required:true}],responses:{200:{description:"Environments",content:{"application/json":{schema:{properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},environments:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Environment",$id:"https://schemas.meshery.io/environment.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments",additionalProperties:false,type:"object",required:["id","schemaVersion","name","description","organization_id"],properties:{id:{description:"ID","x-order":1,"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},schemaVersion:{description:"Specifies the version of the schema to which the environment conforms.","x-order":2,"x-oapi-codegen-extra-tags":{yaml:"schemaVersion",db:"-",gorm:"-"},default:"environments.meshery.io/v1beta1",type:"string",minLength:2,maxLength:100,pattern:"^([a-z][a-z0-9.-]*\\/)?v(alpha|beta|[0-9]+)([.-][a-z0-9]+)*$",example:["v1","v1alpha1","v2beta3","v1.custom-suffix","models.meshery.io/v1beta1","capability.meshery.io/v1alpha1"]},name:{"x-oapi-codegen-extra-tags":{db:"name",yaml:"name"},"x-order":3,type:"string",description:"Environment name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":4,type:"string",description:"Environment description"},organization_id:{"x-go-name":"OrganizationID","x-oapi-codegen-extra-tags":{db:"organization_id",yaml:"organization_id"},"x-order":5,description:"Environment organization ID",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":6,description:"Environment owner",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-order":7,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":8,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object"},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at",yaml:"deleted_at"},"x-go-type":"core.NullTime","x-go-import":"database/sql","x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}}},t=e;
2
2
  module.exports=t;