@meshery/schemas 0.8.135 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/dist/cloudApi.d.mts +16943 -8042
  3. package/dist/cloudApi.d.ts +16943 -8042
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/badge/Badge.d.mts +201 -0
  7. package/dist/constructs/v1beta1/badge/Badge.d.ts +201 -0
  8. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  9. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  10. package/dist/constructs/v1beta1/environment/Environment.d.mts +366 -0
  11. package/dist/constructs/v1beta1/environment/Environment.d.ts +366 -0
  12. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  13. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  14. package/dist/constructs/v1beta1/event/Event.d.mts +175 -0
  15. package/dist/constructs/v1beta1/event/Event.d.ts +175 -0
  16. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  17. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  18. package/dist/constructs/v1beta1/invitation/Invitation.d.mts +166 -0
  19. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +166 -0
  20. package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
  21. package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
  22. package/dist/constructs/v1beta1/model/Model.d.mts +38 -0
  23. package/dist/constructs/v1beta1/model/Model.d.ts +38 -0
  24. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  25. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  26. package/dist/constructs/v1beta1/organization/Organization.d.mts +48 -0
  27. package/dist/constructs/v1beta1/organization/Organization.d.ts +48 -0
  28. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  29. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  30. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +6114 -2637
  31. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +6114 -2637
  32. package/dist/constructs/v1beta1/pattern/PatternSchema.js +99 -3
  33. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +99 -3
  34. package/dist/constructs/v1beta1/team/Team.d.mts +68 -9
  35. package/dist/constructs/v1beta1/team/Team.d.ts +68 -9
  36. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  37. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  38. package/dist/constructs/v1beta1/user/User.d.mts +395 -0
  39. package/dist/constructs/v1beta1/user/User.d.ts +395 -0
  40. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  41. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  42. package/dist/index.js +102 -6
  43. package/dist/index.mjs +102 -6
  44. package/dist/mesheryApi.d.mts +4575 -1598
  45. package/dist/mesheryApi.d.ts +4575 -1598
  46. package/dist/mesheryApi.js +1 -1
  47. package/dist/mesheryApi.mjs +1 -1
  48. package/package.json +1 -1
@@ -9,6 +9,14 @@ interface paths {
9
9
  /** Creates a new environment */
10
10
  post: operations["createEnvironment"];
11
11
  };
12
+ "/api/environments/{environmentId}": {
13
+ get: operations["getEnvironmentById"];
14
+ put: operations["updateEnvironment"];
15
+ delete: operations["deleteEnvironment"];
16
+ };
17
+ "/api/environments/{environmentId}/connections": {
18
+ get: operations["getEnvironmentConnections"];
19
+ };
12
20
  }
13
21
  interface components {
14
22
  schemas: {
@@ -166,6 +174,14 @@ interface components {
166
174
  deleted_at?: string | null;
167
175
  }[];
168
176
  };
177
+ environmentConnectionsPage: {
178
+ page?: number;
179
+ page_size?: number;
180
+ total_count?: number;
181
+ connections?: {
182
+ [key: string]: unknown;
183
+ }[];
184
+ };
169
185
  };
170
186
  responses: {
171
187
  /** ok */
@@ -410,6 +426,356 @@ interface operations {
410
426
  };
411
427
  };
412
428
  };
429
+ getEnvironmentById: {
430
+ parameters: {
431
+ path: {
432
+ /** Environment ID */
433
+ environmentId: string;
434
+ };
435
+ query: {
436
+ /** User's organization ID */
437
+ orgID: string;
438
+ };
439
+ };
440
+ responses: {
441
+ /** Environment page */
442
+ 200: {
443
+ content: {
444
+ "application/json": {
445
+ page?: number;
446
+ page_size?: number;
447
+ total_count?: number;
448
+ environments?: {
449
+ /**
450
+ * Format: uuid
451
+ * @description ID
452
+ */
453
+ id: string;
454
+ /**
455
+ * @description Specifies the version of the schema to which the environment conforms.
456
+ * @default environments.meshery.io/v1beta1
457
+ * @example [
458
+ * "v1",
459
+ * "v1alpha1",
460
+ * "v2beta3",
461
+ * "v1.custom-suffix",
462
+ * "models.meshery.io/v1beta1",
463
+ * "capability.meshery.io/v1alpha1"
464
+ * ]
465
+ */
466
+ schemaVersion: string;
467
+ /** @description Environment name */
468
+ name: string;
469
+ /** @description Environment description */
470
+ description: string;
471
+ /**
472
+ * Format: uuid
473
+ * @description Environment organization ID
474
+ */
475
+ organization_id: string;
476
+ /**
477
+ * Format: uuid
478
+ * @description Environment owner
479
+ */
480
+ owner?: string;
481
+ /**
482
+ * Format: date-time
483
+ * @description Timestamp when the resource was created.
484
+ */
485
+ created_at?: string;
486
+ /** @description Additional metadata associated with the environment. */
487
+ metadata?: {
488
+ [key: string]: unknown;
489
+ };
490
+ /**
491
+ * Format: date-time
492
+ * @description Timestamp when the resource was updated.
493
+ */
494
+ updated_at?: string;
495
+ /**
496
+ * Format: date-time
497
+ * @description Timestamp when the environment was soft deleted. Null while the environment remains active.
498
+ */
499
+ deleted_at?: string | null;
500
+ }[];
501
+ };
502
+ };
503
+ };
504
+ /** Invalid request body or request param */
505
+ 400: {
506
+ content: {
507
+ "text/plain": string;
508
+ };
509
+ };
510
+ /** Expired JWT token used or insufficient privilege */
511
+ 401: {
512
+ content: {
513
+ "text/plain": string;
514
+ };
515
+ };
516
+ /** Expired JWT token used or insufficient privilege */
517
+ 404: {
518
+ content: {
519
+ "text/plain": string;
520
+ };
521
+ };
522
+ /** Internal server error */
523
+ 500: {
524
+ content: {
525
+ "text/plain": string;
526
+ };
527
+ };
528
+ };
529
+ };
530
+ updateEnvironment: {
531
+ parameters: {
532
+ path: {
533
+ /** Environment ID */
534
+ environmentId: string;
535
+ };
536
+ };
537
+ responses: {
538
+ /** Environment page */
539
+ 200: {
540
+ content: {
541
+ "application/json": {
542
+ page?: number;
543
+ page_size?: number;
544
+ total_count?: number;
545
+ environments?: {
546
+ /**
547
+ * Format: uuid
548
+ * @description ID
549
+ */
550
+ id: string;
551
+ /**
552
+ * @description Specifies the version of the schema to which the environment conforms.
553
+ * @default environments.meshery.io/v1beta1
554
+ * @example [
555
+ * "v1",
556
+ * "v1alpha1",
557
+ * "v2beta3",
558
+ * "v1.custom-suffix",
559
+ * "models.meshery.io/v1beta1",
560
+ * "capability.meshery.io/v1alpha1"
561
+ * ]
562
+ */
563
+ schemaVersion: string;
564
+ /** @description Environment name */
565
+ name: string;
566
+ /** @description Environment description */
567
+ description: string;
568
+ /**
569
+ * Format: uuid
570
+ * @description Environment organization ID
571
+ */
572
+ organization_id: string;
573
+ /**
574
+ * Format: uuid
575
+ * @description Environment owner
576
+ */
577
+ owner?: string;
578
+ /**
579
+ * Format: date-time
580
+ * @description Timestamp when the resource was created.
581
+ */
582
+ created_at?: string;
583
+ /** @description Additional metadata associated with the environment. */
584
+ metadata?: {
585
+ [key: string]: unknown;
586
+ };
587
+ /**
588
+ * Format: date-time
589
+ * @description Timestamp when the resource was updated.
590
+ */
591
+ updated_at?: string;
592
+ /**
593
+ * Format: date-time
594
+ * @description Timestamp when the environment was soft deleted. Null while the environment remains active.
595
+ */
596
+ deleted_at?: string | null;
597
+ }[];
598
+ };
599
+ };
600
+ };
601
+ /** Invalid request body or request param */
602
+ 400: {
603
+ content: {
604
+ "text/plain": string;
605
+ };
606
+ };
607
+ /** Expired JWT token used or insufficient privilege */
608
+ 401: {
609
+ content: {
610
+ "text/plain": string;
611
+ };
612
+ };
613
+ /** Internal server error */
614
+ 500: {
615
+ content: {
616
+ "text/plain": string;
617
+ };
618
+ };
619
+ };
620
+ /** Body for creating environment */
621
+ requestBody: {
622
+ content: {
623
+ "application/json": {
624
+ /** @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. */
625
+ name: string;
626
+ /** @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). */
627
+ description?: string;
628
+ /** @description Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation. */
629
+ OrganizationID?: string;
630
+ } & {
631
+ organizationID: unknown;
632
+ };
633
+ };
634
+ };
635
+ };
636
+ deleteEnvironment: {
637
+ parameters: {
638
+ path: {
639
+ /** Environment ID */
640
+ environmentId: string;
641
+ };
642
+ };
643
+ responses: {
644
+ /** Environment page */
645
+ 200: {
646
+ content: {
647
+ "application/json": {
648
+ page?: number;
649
+ page_size?: number;
650
+ total_count?: number;
651
+ environments?: {
652
+ /**
653
+ * Format: uuid
654
+ * @description ID
655
+ */
656
+ id: string;
657
+ /**
658
+ * @description Specifies the version of the schema to which the environment conforms.
659
+ * @default environments.meshery.io/v1beta1
660
+ * @example [
661
+ * "v1",
662
+ * "v1alpha1",
663
+ * "v2beta3",
664
+ * "v1.custom-suffix",
665
+ * "models.meshery.io/v1beta1",
666
+ * "capability.meshery.io/v1alpha1"
667
+ * ]
668
+ */
669
+ schemaVersion: string;
670
+ /** @description Environment name */
671
+ name: string;
672
+ /** @description Environment description */
673
+ description: string;
674
+ /**
675
+ * Format: uuid
676
+ * @description Environment organization ID
677
+ */
678
+ organization_id: string;
679
+ /**
680
+ * Format: uuid
681
+ * @description Environment owner
682
+ */
683
+ owner?: string;
684
+ /**
685
+ * Format: date-time
686
+ * @description Timestamp when the resource was created.
687
+ */
688
+ created_at?: string;
689
+ /** @description Additional metadata associated with the environment. */
690
+ metadata?: {
691
+ [key: string]: unknown;
692
+ };
693
+ /**
694
+ * Format: date-time
695
+ * @description Timestamp when the resource was updated.
696
+ */
697
+ updated_at?: string;
698
+ /**
699
+ * Format: date-time
700
+ * @description Timestamp when the environment was soft deleted. Null while the environment remains active.
701
+ */
702
+ deleted_at?: string | null;
703
+ }[];
704
+ };
705
+ };
706
+ };
707
+ /** Invalid request body or request param */
708
+ 400: {
709
+ content: {
710
+ "text/plain": string;
711
+ };
712
+ };
713
+ /** Expired JWT token used or insufficient privilege */
714
+ 401: {
715
+ content: {
716
+ "text/plain": string;
717
+ };
718
+ };
719
+ /** Internal server error */
720
+ 500: {
721
+ content: {
722
+ "text/plain": string;
723
+ };
724
+ };
725
+ };
726
+ };
727
+ getEnvironmentConnections: {
728
+ parameters: {
729
+ path: {
730
+ /** Environment ID */
731
+ environmentId: string;
732
+ };
733
+ query: {
734
+ /** Get responses that match search param value */
735
+ search?: string;
736
+ /** Get ordered responses */
737
+ order?: string;
738
+ /** Get responses by page */
739
+ page?: string;
740
+ /** Get responses by pagesize */
741
+ pagesize?: string;
742
+ filter?: string;
743
+ };
744
+ };
745
+ responses: {
746
+ /** Environment connections */
747
+ 200: {
748
+ content: {
749
+ "application/json": {
750
+ page?: number;
751
+ page_size?: number;
752
+ total_count?: number;
753
+ connections?: {
754
+ [key: string]: unknown;
755
+ }[];
756
+ };
757
+ };
758
+ };
759
+ /** Invalid request body or request param */
760
+ 400: {
761
+ content: {
762
+ "text/plain": string;
763
+ };
764
+ };
765
+ /** Expired JWT token used or insufficient privilege */
766
+ 401: {
767
+ content: {
768
+ "text/plain": string;
769
+ };
770
+ };
771
+ /** Internal server error */
772
+ 500: {
773
+ content: {
774
+ "text/plain": string;
775
+ };
776
+ };
777
+ };
778
+ };
413
779
  }
414
780
  interface external {
415
781
  }