@meshery/schemas 0.8.126 → 0.8.128

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 (133) 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 +643 -631
  4. package/dist/cloudApi.d.ts +643 -631
  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 +14 -4
  10. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +14 -4
  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 +14 -5
  16. package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +14 -5
  17. package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
  18. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
  19. package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.mts +12 -2
  20. package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +12 -2
  21. package/dist/constructs/v1alpha2/catalog/CatalogSchema.js +1 -1
  22. package/dist/constructs/v1alpha2/catalog/CatalogSchema.mjs +1 -1
  23. package/dist/constructs/v1alpha3/relationship/Relationship.d.mts +6 -2
  24. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +6 -2
  25. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.mts +16 -6
  26. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +16 -6
  27. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +1 -1
  28. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +1 -1
  29. package/dist/constructs/v1beta1/academy/AcademySchema.d.mts +11 -1
  30. package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +11 -1
  31. package/dist/constructs/v1beta1/academy/AcademySchema.js +1 -1
  32. package/dist/constructs/v1beta1/academy/AcademySchema.mjs +1 -1
  33. package/dist/constructs/v1beta1/badge/BadgeSchema.d.mts +11 -2
  34. package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +11 -2
  35. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  36. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  37. package/dist/constructs/v1beta1/category/CategorySchema.d.mts +12 -2
  38. package/dist/constructs/v1beta1/category/CategorySchema.d.ts +12 -2
  39. package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
  40. package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
  41. package/dist/constructs/v1beta1/component/Component.d.mts +28 -5
  42. package/dist/constructs/v1beta1/component/Component.d.ts +28 -5
  43. package/dist/constructs/v1beta1/component/ComponentSchema.d.mts +46 -21
  44. package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +46 -21
  45. package/dist/constructs/v1beta1/component/ComponentSchema.js +2 -2
  46. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +2 -2
  47. package/dist/constructs/v1beta1/connection/Connection.d.mts +96 -6
  48. package/dist/constructs/v1beta1/connection/Connection.d.ts +96 -6
  49. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.mts +166 -76
  50. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +166 -76
  51. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  52. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  53. package/dist/constructs/v1beta1/environment/Environment.d.mts +52 -0
  54. package/dist/constructs/v1beta1/environment/Environment.d.ts +52 -0
  55. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.mts +107 -47
  56. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +107 -47
  57. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  58. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  59. package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +148 -32
  60. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +148 -32
  61. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.mts +172 -103
  62. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +172 -103
  63. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +12 -12
  64. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +12 -12
  65. package/dist/constructs/v1beta1/event/EventSchema.d.mts +12 -2
  66. package/dist/constructs/v1beta1/event/EventSchema.d.ts +12 -2
  67. package/dist/constructs/v1beta1/event/EventSchema.js +2 -1
  68. package/dist/constructs/v1beta1/event/EventSchema.mjs +2 -1
  69. package/dist/constructs/v1beta1/feature/FeatureSchema.d.mts +11 -2
  70. package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +11 -2
  71. package/dist/constructs/v1beta1/feature/FeatureSchema.js +2 -1
  72. package/dist/constructs/v1beta1/feature/FeatureSchema.mjs +2 -1
  73. package/dist/constructs/v1beta1/invitation/InvitationSchema.d.mts +11 -2
  74. package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +11 -2
  75. package/dist/constructs/v1beta1/invitation/InvitationSchema.js +2 -1
  76. package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +2 -1
  77. package/dist/constructs/v1beta1/key/KeySchema.d.mts +12 -2
  78. package/dist/constructs/v1beta1/key/KeySchema.d.ts +12 -2
  79. package/dist/constructs/v1beta1/key/KeySchema.js +2 -1
  80. package/dist/constructs/v1beta1/key/KeySchema.mjs +2 -1
  81. package/dist/constructs/v1beta1/keychain/KeychainSchema.d.mts +12 -2
  82. package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +12 -2
  83. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +2 -1
  84. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +2 -1
  85. package/dist/constructs/v1beta1/model/Model.d.mts +22 -3
  86. package/dist/constructs/v1beta1/model/Model.d.ts +22 -3
  87. package/dist/constructs/v1beta1/model/ModelSchema.d.mts +42 -17
  88. package/dist/constructs/v1beta1/model/ModelSchema.d.ts +42 -17
  89. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  90. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  91. package/dist/constructs/v1beta1/organization/OrganizationSchema.d.mts +11 -1
  92. package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +11 -1
  93. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +2 -1
  94. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +2 -1
  95. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +148 -32
  96. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +148 -32
  97. package/dist/constructs/v1beta1/pattern/PatternSchema.d.mts +172 -102
  98. package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +172 -102
  99. package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -12
  100. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -12
  101. package/dist/constructs/v1beta1/plan/PlanSchema.d.mts +12 -2
  102. package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +12 -2
  103. package/dist/constructs/v1beta1/plan/PlanSchema.js +2 -1
  104. package/dist/constructs/v1beta1/plan/PlanSchema.mjs +2 -1
  105. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.mts +11 -1
  106. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +11 -1
  107. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.js +1 -1
  108. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.mjs +1 -1
  109. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.mts +11 -2
  110. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +11 -2
  111. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.js +1 -1
  112. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.mjs +1 -1
  113. package/dist/constructs/v1beta1/team/TeamSchema.d.mts +9 -3
  114. package/dist/constructs/v1beta1/team/TeamSchema.d.ts +9 -3
  115. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  116. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  117. package/dist/constructs/v1beta1/user/UserSchema.d.mts +12 -2
  118. package/dist/constructs/v1beta1/user/UserSchema.d.ts +12 -2
  119. package/dist/constructs/v1beta1/user/UserSchema.js +2 -1
  120. package/dist/constructs/v1beta1/user/UserSchema.mjs +2 -1
  121. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.mts +9 -3
  122. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +9 -3
  123. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +1 -1
  124. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +1 -1
  125. package/dist/index.d.mts +1 -1
  126. package/dist/index.d.ts +1 -1
  127. package/dist/index.js +17 -17
  128. package/dist/index.mjs +17 -17
  129. package/dist/mesheryApi.d.mts +1996 -170
  130. package/dist/mesheryApi.d.ts +1996 -170
  131. package/dist/mesheryApi.js +1 -1
  132. package/dist/mesheryApi.mjs +1 -1
  133. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- var e={openapi:"3.0.0",info:{title:"team",description:"Documentation for Meshery Cloud REST APIs for Teams",contact:{email:"maintainers@meshery.io"},version:"v1beta1"},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:"teams",description:"A Team is a group of one or more users. Teams are used for assigning permissions in organizations and workspaces. Learn more at https://docs.meshery.io/concepts/logical/teams"}],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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{teamId:{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},orgId:{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","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"}}},securitySchemes:{jwt:{type:"http",scheme:"Bearer",bearerFormat:"JWT"}},schemas:{team:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},teamPayload:{type:"object",description:"Payload for creating a new team",required:["name"],properties:{name:{description:"Team name. Provide a meaningful name that represents this team.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"A detailed description of the team's purpose and responsibilities.",type:"string","x-go-type-skip-optional-pointer":true}}},teamUpdatePayload:{type:"object",description:"Payload for updating an existing team",properties:{name:{description:"Updated team name",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"Updated team description",type:"string","x-go-type-skip-optional-pointer":true}}},teamPage:{type:"object",description:"Paginated list of teams",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},teams:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Team",$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},teamsUsersMapping:{type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}},teamsUsersMappingPage:{type:"object",description:"Paginated list of team-user mappings",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},teams_users_mapping:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"TeamsUsersMapping",type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}}},requestBodies:{teamPayload:{description:"Body for creating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating a new team",required:["name"],properties:{name:{description:"Team name. Provide a meaningful name that represents this team.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"A detailed description of the team's purpose and responsibilities.",type:"string","x-go-type-skip-optional-pointer":true}}}}}},teamUpdatePayload:{description:"Body for updating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for updating an existing team",properties:{name:{description:"Updated team name",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"Updated team description",type:"string","x-go-type-skip-optional-pointer":true}}}}}}}},paths:{"/api/identity/orgs/{orgId}/teams":{get:{tags:["teams"],operationId:"GetTeams",summary:"Get all teams for an organization",description:"Gets all teams within an organization",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{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"}}],responses:{200:{description:"Teams",content:{"application/json":{schema:{type:"object",description:"Paginated list of teams",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},teams:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Team",$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}}}},post:{tags:["teams"],operationId:"CreateTeam",summary:"Create a team",description:"Creates a new team within an organization",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true}],requestBody:{description:"Body for creating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating a new team",required:["name"],properties:{name:{description:"Team name. Provide a meaningful name that represents this team.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"A detailed description of the team's purpose and responsibilities.",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{201:{description:"Created team",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}":{get:{tags:["teams"],operationId:"GetTeamByID",summary:"Get a team by ID",description:"Gets a team by its ID",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true}],responses:{200:{description:"Team",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},put:{tags:["teams"],operationId:"UpdateTeam",summary:"Update a team",description:"Updates a team's information",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true}],requestBody:{description:"Body for updating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for updating an existing team",properties:{name:{description:"Updated team name",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"Updated team description",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Updated team",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{tags:["teams"],operationId:"DeleteTeam",summary:"Delete a team",description:"Deletes a team by its ID",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true}],responses:{204:{description:"Team deleted successfully"},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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/users":{get:{tags:["teams"],operationId:"GetTeamUsers",summary:"Get all users in a team",description:"Gets all users that belong to a team",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},{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"}}],responses:{200:{description:"Team users mapping",content:{"application/json":{schema:{type:"object",description:"Paginated list of team-user mappings",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},teams_users_mapping:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"TeamsUsersMapping",type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}}}}},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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/users/{userId}":{post:{tags:["teams"],operationId:"AddUserToTeam",summary:"Add a user to a team",description:"Assigns a user to a team",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},{name:"userId",in:"path",description:"User ID",schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true},required:true}],responses:{200:{description:"User added to team",content:{"application/json":{schema:{type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}},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"}}}}}},delete:{tags:["teams"],operationId:"RemoveUserFromTeam",summary:"Remove a user from a team",description:"Unassigns a user from a team",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},{name:"userId",in:"path",description:"User ID",schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true},required:true}],responses:{200:{description:"User removed from team",content:{"application/json":{schema:{type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}},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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}}},t=e;
1
+ var e={openapi:"3.0.0",info:{title:"Team",description:"OpenAPI schema for team management in Meshery Cloud.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},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:"teams",description:"A Team is a group of one or more users. Teams are used for assigning permissions in organizations and workspaces. Learn more at https://docs.meshery.io/concepts/logical/teams"}],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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{teamId:{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},orgId:{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","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"}}},securitySchemes:{jwt:{type:"http",scheme:"Bearer",bearerFormat:"JWT"}},schemas:{team:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},teamPayload:{type:"object",description:"Payload for creating a new team",required:["name"],properties:{name:{description:"Team name. Provide a meaningful name that represents this team.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"A detailed description of the team's purpose and responsibilities.",type:"string","x-go-type-skip-optional-pointer":true}}},teamUpdatePayload:{type:"object",description:"Payload for updating an existing team",properties:{name:{description:"Updated team name",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"Updated team description",type:"string","x-go-type-skip-optional-pointer":true}}},teamPage:{type:"object",description:"Paginated list of teams",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},teams:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Team",$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},teamsUsersMapping:{type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}},teamsUsersMappingPage:{type:"object",description:"Paginated list of team-user mappings",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},teams_users_mapping:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"TeamsUsersMapping",type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}}},requestBodies:{teamPayload:{description:"Body for creating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating a new team",required:["name"],properties:{name:{description:"Team name. Provide a meaningful name that represents this team.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"A detailed description of the team's purpose and responsibilities.",type:"string","x-go-type-skip-optional-pointer":true}}}}}},teamUpdatePayload:{description:"Body for updating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for updating an existing team",properties:{name:{description:"Updated team name",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"Updated team description",type:"string","x-go-type-skip-optional-pointer":true}}}}}}}},paths:{"/api/identity/orgs/{orgId}/teams":{get:{tags:["teams"],operationId:"GetTeams",summary:"Get all teams for an organization",description:"Gets all teams within an organization",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{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"}}],responses:{200:{description:"Teams",content:{"application/json":{schema:{type:"object",description:"Paginated list of teams",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},teams:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"Team",$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}}}},post:{tags:["teams"],operationId:"CreateTeam",summary:"Create a team",description:"Creates a new team within an organization",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true}],requestBody:{description:"Body for creating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating a new team",required:["name"],properties:{name:{description:"Team name. Provide a meaningful name that represents this team.",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"A detailed description of the team's purpose and responsibilities.",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{201:{description:"Created team",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}":{get:{tags:["teams"],operationId:"GetTeamByID",summary:"Get a team by ID",description:"Gets a team by its ID",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true}],responses:{200:{description:"Team",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},put:{tags:["teams"],operationId:"UpdateTeam",summary:"Update a team",description:"Updates a team's information",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true}],requestBody:{description:"Body for updating a team",required:true,content:{"application/json":{schema:{type:"object",description:"Payload for updating an existing team",properties:{name:{description:"Updated team name",type:"string","x-go-type-skip-optional-pointer":true},description:{description:"Updated team description",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Updated team",content:{"application/json":{schema:{$id:"https://schemas.meshery.io/team.yaml",$schema:"http://json-schema.org/draft-07/schema#",description:"A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams",additionalProperties:false,type:"object",required:["id","name"],properties:{id:{description:"Team 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:"Team name"},description:{"x-oapi-codegen-extra-tags":{db:"description",yaml:"description"},"x-order":3,type:"string",description:"Team description"},owner:{"x-oapi-codegen-extra-tags":{db:"owner",yaml:"owner"},"x-order":4,description:"User ID of the owner of the team",type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-oapi-codegen-extra-tags":{db:"metadata",yaml:"metadata"},"x-order":5,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,type:"object",description:"Additional metadata for the team"},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},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-order":7,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":8,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"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{tags:["teams"],operationId:"DeleteTeam",summary:"Delete a team",description:"Deletes a team by its ID",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true}],responses:{204:{description:"Team deleted successfully"},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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/users":{get:{tags:["teams"],operationId:"GetTeamUsers",summary:"Get all users in a team",description:"Gets all users that belong to a team",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},{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"}}],responses:{200:{description:"Team users mapping",content:{"application/json":{schema:{type:"object",description:"Paginated list of team-user mappings",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},teams_users_mapping:{type:"array","x-go-type-skip-optional-pointer":true,items:{"x-go-type":"TeamsUsersMapping",type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}}}}},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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/users/{userId}":{post:{tags:["teams"],operationId:"AddUserToTeam",summary:"Add a user to a team",description:"Assigns a user to a team",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},{name:"userId",in:"path",description:"User ID",schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true},required:true}],responses:{200:{description:"User added to team",content:{"application/json":{schema:{type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}},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"}}}}}},delete:{tags:["teams"],operationId:"RemoveUserFromTeam",summary:"Remove a user from a team",description:"Unassigns a user from a team",parameters:[{name:"orgId",in:"path",description:"Organization ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"org_id",json:"org_id"},"x-go-type-name":"OrganizationId","x-go-type-skip-optional-pointer":true},required:true},{name:"teamId",in:"path",description:"Team ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},required:true},{name:"userId",in:"path",description:"User ID",schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true},required:true}],responses:{200:{description:"User removed from team",content:{"application/json":{schema:{type:"object",description:"Mapping between teams and users",properties:{id:{"x-go-name":"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},team_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:"team_id",json:"team_id"},"x-go-type-name":"TeamId","x-go-type-skip-optional-pointer":true},user_id:{type:"string",description:"user's email or username","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}}}}}},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"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}}},t=e;
2
2
  export{t as default};
@@ -5,8 +5,18 @@
5
5
  declare const UserSchema: {
6
6
  readonly openapi: "3.0.3";
7
7
  readonly info: {
8
- readonly title: "User Schema";
9
- readonly version: "1.0.0";
8
+ readonly title: "User";
9
+ readonly description: "OpenAPI schema for user management in Meshery Cloud.";
10
+ readonly version: "v1beta1";
11
+ readonly contact: {
12
+ readonly name: "Meshery Maintainers";
13
+ readonly email: "maintainers@meshery.io";
14
+ readonly url: "https://meshery.io";
15
+ };
16
+ readonly license: {
17
+ readonly name: "Apache 2.0";
18
+ readonly url: "https://www.apache.org/licenses/LICENSE-2.0.html";
19
+ };
10
20
  };
11
21
  readonly paths: {};
12
22
  readonly components: {
@@ -5,8 +5,18 @@
5
5
  declare const UserSchema: {
6
6
  readonly openapi: "3.0.3";
7
7
  readonly info: {
8
- readonly title: "User Schema";
9
- readonly version: "1.0.0";
8
+ readonly title: "User";
9
+ readonly description: "OpenAPI schema for user management in Meshery Cloud.";
10
+ readonly version: "v1beta1";
11
+ readonly contact: {
12
+ readonly name: "Meshery Maintainers";
13
+ readonly email: "maintainers@meshery.io";
14
+ readonly url: "https://meshery.io";
15
+ };
16
+ readonly license: {
17
+ readonly name: "Apache 2.0";
18
+ readonly url: "https://www.apache.org/licenses/LICENSE-2.0.html";
19
+ };
10
20
  };
11
21
  readonly paths: {};
12
22
  readonly components: {
@@ -1 +1,2 @@
1
- 'use strict';var e={openapi:"3.0.3",info:{title:"User Schema",version:"1.0.0"},paths:{},components:{schemas:{User:{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},GetUserResponse:{description:"Response schema for getting user information, includes user data with roles, teams, and organizations",allOf:[{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},{type:"object",properties:{role_names:{type:"array",items:{type:"string",enum:["admin","meshmap","curator","team admin","workspace admin","workspace manager","organization admin","user"]},description:"List of global roles assigned to the user",example:[["admin","meshmap"],["user"]],"x-oapi-codegen-extra-tags":{db:"role_names",json:"role_names",yaml:"role_names"}},teams:{type:"object",description:"Teams the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"teams",json:"teams",yaml:"teams"},properties:{teams_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"teams_with_roles",json:"teams_with_roles",yaml:"teams_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}},organizations:{type:"object",description:"Organizations the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"organizations",json:"organizations",yaml:"organizations"},properties:{organizations_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"organizations_with_roles",json:"organizations_with_roles",yaml:"organizations_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}}}}]},Preference:{type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},Adapter:{type:"object",description:"Placeholder for Adapter struct definition."},Grafana:{type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},SelectedGrafanaConfig:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}},GrafanaBoard:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},Panel:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},Prometheus:{type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},LoadTestPreferences:{type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},Social:{description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]}}}},t=e;module.exports=t;
1
+ 'use strict';var e={openapi:"3.0.3",info:{title:"User",description:"OpenAPI schema for user management in Meshery Cloud.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},paths:{},components:{schemas:{User:{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},GetUserResponse:{description:"Response schema for getting user information, includes user data with roles, teams, and organizations",allOf:[{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},{type:"object",properties:{role_names:{type:"array",items:{type:"string",enum:["admin","meshmap","curator","team admin","workspace admin","workspace manager","organization admin","user"]},description:"List of global roles assigned to the user",example:[["admin","meshmap"],["user"]],"x-oapi-codegen-extra-tags":{db:"role_names",json:"role_names",yaml:"role_names"}},teams:{type:"object",description:"Teams the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"teams",json:"teams",yaml:"teams"},properties:{teams_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"teams_with_roles",json:"teams_with_roles",yaml:"teams_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}},organizations:{type:"object",description:"Organizations the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"organizations",json:"organizations",yaml:"organizations"},properties:{organizations_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"organizations_with_roles",json:"organizations_with_roles",yaml:"organizations_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}}}}]},Preference:{type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},Adapter:{type:"object",description:"Placeholder for Adapter struct definition."},Grafana:{type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},SelectedGrafanaConfig:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}},GrafanaBoard:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},Panel:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},Prometheus:{type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},LoadTestPreferences:{type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},Social:{description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]}}}},t=e;
2
+ module.exports=t;
@@ -1 +1,2 @@
1
- var e={openapi:"3.0.3",info:{title:"User Schema",version:"1.0.0"},paths:{},components:{schemas:{User:{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},GetUserResponse:{description:"Response schema for getting user information, includes user data with roles, teams, and organizations",allOf:[{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},{type:"object",properties:{role_names:{type:"array",items:{type:"string",enum:["admin","meshmap","curator","team admin","workspace admin","workspace manager","organization admin","user"]},description:"List of global roles assigned to the user",example:[["admin","meshmap"],["user"]],"x-oapi-codegen-extra-tags":{db:"role_names",json:"role_names",yaml:"role_names"}},teams:{type:"object",description:"Teams the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"teams",json:"teams",yaml:"teams"},properties:{teams_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"teams_with_roles",json:"teams_with_roles",yaml:"teams_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}},organizations:{type:"object",description:"Organizations the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"organizations",json:"organizations",yaml:"organizations"},properties:{organizations_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"organizations_with_roles",json:"organizations_with_roles",yaml:"organizations_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}}}}]},Preference:{type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},Adapter:{type:"object",description:"Placeholder for Adapter struct definition."},Grafana:{type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},SelectedGrafanaConfig:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}},GrafanaBoard:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},Panel:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},Prometheus:{type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},LoadTestPreferences:{type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},Social:{description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]}}}},t=e;export{t as default};
1
+ var e={openapi:"3.0.3",info:{title:"User",description:"OpenAPI schema for user management in Meshery Cloud.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},paths:{},components:{schemas:{User:{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},GetUserResponse:{description:"Response schema for getting user information, includes user data with roles, teams, and organizations",allOf:[{type:"object",description:"Represents a user in Layer5 Cloud (Meshery)",required:["id","user_id","provider","email","first_name","last_name","status","created_at","updated_at","last_login_time","deleted_at"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id",yaml:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},user_id:{type:"string",maxLength:200,description:"User identifier (username or external ID)","x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id",yaml:"user_id"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Layer5 Cloud, Twitter, Facebook, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider",yaml:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email",yaml:"email"}},first_name:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"first_name",yaml:"first_name"}},last_name:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"last_name",yaml:"last_name"}},avatar_url:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatar_url",yaml:"avatar_url"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status",yaml:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio",yaml:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"country",json:"country",yaml:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-oapi-codegen-extra-tags":{db:"region",json:"region",yaml:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences",yaml:"preferences"},type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},accepted_terms_at:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"accepted_terms_at",yaml:"accepted_terms_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},first_login_time:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"first_login_time",yaml:"first_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},last_login_time:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"last_login_time",yaml:"last_login_time"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"created_at",yaml:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updated_at",yaml:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials",yaml:"socials"}},deleted_at:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deleted_at",yaml:"deleted_at"}}},additionalProperties:false},{type:"object",properties:{role_names:{type:"array",items:{type:"string",enum:["admin","meshmap","curator","team admin","workspace admin","workspace manager","organization admin","user"]},description:"List of global roles assigned to the user",example:[["admin","meshmap"],["user"]],"x-oapi-codegen-extra-tags":{db:"role_names",json:"role_names",yaml:"role_names"}},teams:{type:"object",description:"Teams the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"teams",json:"teams",yaml:"teams"},properties:{teams_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"teams_with_roles",json:"teams_with_roles",yaml:"teams_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}},organizations:{type:"object",description:"Organizations the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"organizations",json:"organizations",yaml:"organizations"},properties:{organizations_with_roles:{type:"array",items:{type:"object"},"x-oapi-codegen-extra-tags":{db:"organizations_with_roles",json:"organizations_with_roles",yaml:"organizations_with_roles"}},total_count:{type:"integer","x-oapi-codegen-extra-tags":{db:"total_count",json:"total_count",yaml:"total_count"}}}}}}]},Preference:{type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationID","selectedWorkspaceForOrganizations","usersExtensionPreferences","RemoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."}},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},anonymousUsageStats:{type:"boolean"},anonymousPerfResults:{type:"boolean"},updated_at:{type:"string",format:"date-time"},dashboardPreferences:{type:"object",additionalProperties:true},selectedOrganizationID:{type:"string"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"}},usersExtensionPreferences:{type:"object",additionalProperties:true},remoteProviderPreferences:{type:"object",additionalProperties:true}}},Adapter:{type:"object",description:"Placeholder for Adapter struct definition."},Grafana:{type:"object",properties:{grafanaURL:{type:"string"},grafanaAPIKey:{type:"string"},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},SelectedGrafanaConfig:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}},GrafanaBoard:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},Panel:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},Prometheus:{type:"object",properties:{prometheusURL:{type:"string"},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"}},templateVars:{type:"array",items:{type:"string"}}}}}}},LoadTestPreferences:{type:"object",properties:{c:{type:"integer",description:"Concurrent requests"},qps:{type:"integer",description:"Queries per second"},t:{type:"string",description:"Duration"},gen:{type:"string",description:"Load generator"}}},Social:{description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50},link:{type:"string",format:"uri"}},required:["site","link"]}}}},t=e;
2
+ export{t as default};
@@ -5,12 +5,18 @@
5
5
  declare const WorkspaceSchema: {
6
6
  readonly openapi: "3.0.0";
7
7
  readonly info: {
8
- readonly title: "workspace";
9
- readonly description: "Documentation for meshery Cloud REST APIs";
8
+ readonly title: "Workspace";
9
+ readonly description: "OpenAPI schema for workspace management in Meshery Cloud.";
10
+ readonly version: "v1beta1";
10
11
  readonly contact: {
12
+ readonly name: "Meshery Maintainers";
11
13
  readonly email: "maintainers@meshery.io";
14
+ readonly url: "https://meshery.io";
15
+ };
16
+ readonly license: {
17
+ readonly name: "Apache 2.0";
18
+ readonly url: "https://www.apache.org/licenses/LICENSE-2.0.html";
12
19
  };
13
- readonly version: "v0.6.394";
14
20
  };
15
21
  readonly servers: readonly [{
16
22
  readonly url: "https://cloud.meshery.io";
@@ -5,12 +5,18 @@
5
5
  declare const WorkspaceSchema: {
6
6
  readonly openapi: "3.0.0";
7
7
  readonly info: {
8
- readonly title: "workspace";
9
- readonly description: "Documentation for meshery Cloud REST APIs";
8
+ readonly title: "Workspace";
9
+ readonly description: "OpenAPI schema for workspace management in Meshery Cloud.";
10
+ readonly version: "v1beta1";
10
11
  readonly contact: {
12
+ readonly name: "Meshery Maintainers";
11
13
  readonly email: "maintainers@meshery.io";
14
+ readonly url: "https://meshery.io";
15
+ };
16
+ readonly license: {
17
+ readonly name: "Apache 2.0";
18
+ readonly url: "https://www.apache.org/licenses/LICENSE-2.0.html";
12
19
  };
13
- readonly version: "v0.6.394";
14
20
  };
15
21
  readonly servers: readonly [{
16
22
  readonly url: "https://cloud.meshery.io";