@meshery/schemas 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +4 -3
  2. package/dist/cloudApi.d.mts +16699 -16442
  3. package/dist/cloudApi.d.ts +16699 -16442
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  7. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  8. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  9. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  10. package/dist/constructs/v1beta1/credential/CredentialSchema.js +4 -4
  11. package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +4 -4
  12. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  13. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  14. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  15. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  16. package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
  17. package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
  18. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
  19. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
  20. package/dist/constructs/v1beta1/model/Model.d.mts +3 -12
  21. package/dist/constructs/v1beta1/model/Model.d.ts +3 -12
  22. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  23. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  24. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  25. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  26. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +108 -7
  27. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +108 -7
  28. package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -2
  29. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -2
  30. package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
  31. package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
  32. package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +1 -1
  33. package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +1 -1
  34. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  35. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  36. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  37. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  38. package/dist/constructs/v1beta1/view/ViewSchema.js +1 -1
  39. package/dist/constructs/v1beta1/view/ViewSchema.mjs +1 -1
  40. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
  41. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
  42. package/dist/constructs/v1beta2/badge/Badge.d.mts +564 -0
  43. package/dist/constructs/v1beta2/badge/Badge.d.ts +564 -0
  44. package/dist/constructs/v1beta2/badge/Badge.js +1 -0
  45. package/dist/constructs/v1beta2/badge/Badge.mjs +0 -0
  46. package/dist/constructs/v1beta2/badge/BadgeSchema.d.mts +7 -0
  47. package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +7 -0
  48. package/dist/constructs/v1beta2/badge/BadgeSchema.js +2 -0
  49. package/dist/constructs/v1beta2/badge/BadgeSchema.mjs +2 -0
  50. package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
  51. package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
  52. package/dist/constructs/v1beta2/credential/Credential.d.mts +536 -0
  53. package/dist/constructs/v1beta2/credential/Credential.d.ts +536 -0
  54. package/dist/constructs/v1beta2/credential/Credential.js +1 -0
  55. package/dist/constructs/v1beta2/credential/Credential.mjs +0 -0
  56. package/dist/constructs/v1beta2/credential/CredentialSchema.d.mts +7 -0
  57. package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +7 -0
  58. package/dist/constructs/v1beta2/credential/CredentialSchema.js +7 -0
  59. package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +7 -0
  60. package/dist/constructs/v1beta2/design/Design.d.mts +108 -7
  61. package/dist/constructs/v1beta2/design/Design.d.ts +108 -7
  62. package/dist/constructs/v1beta2/design/DesignSchema.js +21 -3
  63. package/dist/constructs/v1beta2/design/DesignSchema.mjs +21 -3
  64. package/dist/constructs/v1beta2/event/EventSchema.js +1 -1
  65. package/dist/constructs/v1beta2/event/EventSchema.mjs +1 -1
  66. package/dist/constructs/v1beta2/invitation/InvitationSchema.js +1 -1
  67. package/dist/constructs/v1beta2/invitation/InvitationSchema.mjs +1 -1
  68. package/dist/constructs/v1beta2/key/Key.d.mts +523 -0
  69. package/dist/constructs/v1beta2/key/Key.d.ts +523 -0
  70. package/dist/constructs/v1beta2/key/Key.js +1 -0
  71. package/dist/constructs/v1beta2/key/Key.mjs +0 -0
  72. package/dist/constructs/v1beta2/key/KeySchema.d.mts +7 -0
  73. package/dist/constructs/v1beta2/key/KeySchema.d.ts +7 -0
  74. package/dist/constructs/v1beta2/key/KeySchema.js +2 -0
  75. package/dist/constructs/v1beta2/key/KeySchema.mjs +2 -0
  76. package/dist/constructs/v1beta2/keychain/Keychain.d.mts +651 -0
  77. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +651 -0
  78. package/dist/constructs/v1beta2/keychain/Keychain.js +1 -0
  79. package/dist/constructs/v1beta2/keychain/Keychain.mjs +0 -0
  80. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.mts +7 -0
  81. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +7 -0
  82. package/dist/constructs/v1beta2/keychain/KeychainSchema.js +2 -0
  83. package/dist/constructs/v1beta2/keychain/KeychainSchema.mjs +2 -0
  84. package/dist/constructs/v1beta2/model/Model.d.mts +571 -0
  85. package/dist/constructs/v1beta2/model/Model.d.ts +571 -0
  86. package/dist/constructs/v1beta2/model/Model.js +1 -0
  87. package/dist/constructs/v1beta2/model/Model.mjs +0 -0
  88. package/dist/constructs/v1beta2/model/ModelSchema.d.mts +7 -0
  89. package/dist/constructs/v1beta2/model/ModelSchema.d.ts +7 -0
  90. package/dist/constructs/v1beta2/model/ModelSchema.js +6 -0
  91. package/dist/constructs/v1beta2/model/ModelSchema.mjs +6 -0
  92. package/dist/constructs/v1beta2/organization/Organization.d.mts +1986 -0
  93. package/dist/constructs/v1beta2/organization/Organization.d.ts +1986 -0
  94. package/dist/constructs/v1beta2/organization/Organization.js +1 -0
  95. package/dist/constructs/v1beta2/organization/Organization.mjs +0 -0
  96. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.mts +7 -0
  97. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +7 -0
  98. package/dist/constructs/v1beta2/organization/OrganizationSchema.js +2 -0
  99. package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +2 -0
  100. package/dist/constructs/v1beta2/plan/PlanSchema.js +1 -1
  101. package/dist/constructs/v1beta2/plan/PlanSchema.mjs +1 -1
  102. package/dist/constructs/v1beta2/role/Role.d.mts +751 -0
  103. package/dist/constructs/v1beta2/role/Role.d.ts +751 -0
  104. package/dist/constructs/v1beta2/role/Role.js +1 -0
  105. package/dist/constructs/v1beta2/role/Role.mjs +0 -0
  106. package/dist/constructs/v1beta2/role/RoleSchema.d.mts +7 -0
  107. package/dist/constructs/v1beta2/role/RoleSchema.d.ts +7 -0
  108. package/dist/constructs/v1beta2/role/RoleSchema.js +2 -0
  109. package/dist/constructs/v1beta2/role/RoleSchema.mjs +2 -0
  110. package/dist/constructs/v1beta2/schedule/Schedule.d.mts +380 -0
  111. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +380 -0
  112. package/dist/constructs/v1beta2/schedule/Schedule.js +1 -0
  113. package/dist/constructs/v1beta2/schedule/Schedule.mjs +0 -0
  114. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.mts +7 -0
  115. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +7 -0
  116. package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +13 -0
  117. package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +13 -0
  118. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.js +1 -1
  119. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.mjs +1 -1
  120. package/dist/constructs/v1beta2/team/Team.d.mts +939 -0
  121. package/dist/constructs/v1beta2/team/Team.d.ts +939 -0
  122. package/dist/constructs/v1beta2/team/Team.js +1 -0
  123. package/dist/constructs/v1beta2/team/Team.mjs +0 -0
  124. package/dist/constructs/v1beta2/team/TeamSchema.d.mts +7 -0
  125. package/dist/constructs/v1beta2/team/TeamSchema.d.ts +7 -0
  126. package/dist/constructs/v1beta2/team/TeamSchema.js +2 -0
  127. package/dist/constructs/v1beta2/team/TeamSchema.mjs +2 -0
  128. package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
  129. package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
  130. package/dist/constructs/v1beta2/user/User.d.mts +1831 -0
  131. package/dist/constructs/v1beta2/user/User.d.ts +1831 -0
  132. package/dist/constructs/v1beta2/user/User.js +1 -0
  133. package/dist/constructs/v1beta2/user/User.mjs +0 -0
  134. package/dist/constructs/v1beta2/user/UserSchema.d.mts +7 -0
  135. package/dist/constructs/v1beta2/user/UserSchema.d.ts +7 -0
  136. package/dist/constructs/v1beta2/user/UserSchema.js +2 -0
  137. package/dist/constructs/v1beta2/user/UserSchema.mjs +2 -0
  138. package/dist/constructs/v1beta2/view/View.d.mts +810 -0
  139. package/dist/constructs/v1beta2/view/View.d.ts +810 -0
  140. package/dist/constructs/v1beta2/view/View.js +1 -0
  141. package/dist/constructs/v1beta2/view/View.mjs +0 -0
  142. package/dist/constructs/v1beta2/view/ViewSchema.d.mts +7 -0
  143. package/dist/constructs/v1beta2/view/ViewSchema.d.ts +7 -0
  144. package/dist/constructs/v1beta2/view/ViewSchema.js +13 -0
  145. package/dist/constructs/v1beta2/view/ViewSchema.mjs +13 -0
  146. package/dist/constructs/v1beta3/component/Component.d.mts +796 -0
  147. package/dist/constructs/v1beta3/component/Component.d.ts +796 -0
  148. package/dist/constructs/v1beta3/component/Component.js +1 -0
  149. package/dist/constructs/v1beta3/component/Component.mjs +0 -0
  150. package/dist/constructs/v1beta3/component/ComponentSchema.d.mts +7 -0
  151. package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +7 -0
  152. package/dist/constructs/v1beta3/component/ComponentSchema.js +10 -0
  153. package/dist/constructs/v1beta3/component/ComponentSchema.mjs +10 -0
  154. package/dist/constructs/v1beta3/connection/Connection.d.mts +1348 -0
  155. package/dist/constructs/v1beta3/connection/Connection.d.ts +1348 -0
  156. package/dist/constructs/v1beta3/connection/Connection.js +1 -0
  157. package/dist/constructs/v1beta3/connection/Connection.mjs +0 -0
  158. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.mts +7 -0
  159. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +7 -0
  160. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +2 -0
  161. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +2 -0
  162. package/dist/constructs/v1beta3/design/Design.d.mts +17552 -0
  163. package/dist/constructs/v1beta3/design/Design.d.ts +17552 -0
  164. package/dist/constructs/v1beta3/design/Design.js +1 -0
  165. package/dist/constructs/v1beta3/design/Design.mjs +0 -0
  166. package/dist/constructs/v1beta3/design/DesignSchema.d.mts +7 -0
  167. package/dist/constructs/v1beta3/design/DesignSchema.d.ts +7 -0
  168. package/dist/constructs/v1beta3/design/DesignSchema.js +506 -0
  169. package/dist/constructs/v1beta3/design/DesignSchema.mjs +506 -0
  170. package/dist/constructs/v1beta3/environment/Environment.d.mts +800 -0
  171. package/dist/constructs/v1beta3/environment/Environment.d.ts +800 -0
  172. package/dist/constructs/v1beta3/environment/Environment.js +1 -0
  173. package/dist/constructs/v1beta3/environment/Environment.mjs +0 -0
  174. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.mts +7 -0
  175. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +7 -0
  176. package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +2 -0
  177. package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +2 -0
  178. package/dist/constructs/v1beta3/event/Event.d.mts +733 -0
  179. package/dist/constructs/v1beta3/event/Event.d.ts +733 -0
  180. package/dist/constructs/v1beta3/event/Event.js +1 -0
  181. package/dist/constructs/v1beta3/event/Event.mjs +0 -0
  182. package/dist/constructs/v1beta3/event/EventSchema.d.mts +7 -0
  183. package/dist/constructs/v1beta3/event/EventSchema.d.ts +7 -0
  184. package/dist/constructs/v1beta3/event/EventSchema.js +2 -0
  185. package/dist/constructs/v1beta3/event/EventSchema.mjs +2 -0
  186. package/dist/constructs/v1beta3/invitation/Invitation.d.mts +1079 -0
  187. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1079 -0
  188. package/dist/constructs/v1beta3/invitation/Invitation.js +1 -0
  189. package/dist/constructs/v1beta3/invitation/Invitation.mjs +0 -0
  190. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.mts +7 -0
  191. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +7 -0
  192. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +2 -0
  193. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +2 -0
  194. package/dist/constructs/v1beta3/plan/Plan.d.mts +198 -0
  195. package/dist/constructs/v1beta3/plan/Plan.d.ts +198 -0
  196. package/dist/constructs/v1beta3/plan/Plan.js +1 -0
  197. package/dist/constructs/v1beta3/plan/Plan.mjs +0 -0
  198. package/dist/constructs/v1beta3/plan/PlanSchema.d.mts +7 -0
  199. package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +7 -0
  200. package/dist/constructs/v1beta3/plan/PlanSchema.js +2 -0
  201. package/dist/constructs/v1beta3/plan/PlanSchema.mjs +2 -0
  202. package/dist/constructs/v1beta3/relationship/Relationship.d.mts +1884 -0
  203. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1884 -0
  204. package/dist/constructs/v1beta3/relationship/Relationship.js +1 -0
  205. package/dist/constructs/v1beta3/relationship/Relationship.mjs +0 -0
  206. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.mts +7 -0
  207. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +7 -0
  208. package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +155 -0
  209. package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +155 -0
  210. package/dist/constructs/v1beta3/subscription/Subscription.d.mts +876 -0
  211. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +876 -0
  212. package/dist/constructs/v1beta3/subscription/Subscription.js +1 -0
  213. package/dist/constructs/v1beta3/subscription/Subscription.mjs +0 -0
  214. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.mts +7 -0
  215. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +7 -0
  216. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +2 -0
  217. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +2 -0
  218. package/dist/constructs/v1beta3/token/Token.d.mts +543 -0
  219. package/dist/constructs/v1beta3/token/Token.d.ts +543 -0
  220. package/dist/constructs/v1beta3/token/Token.js +1 -0
  221. package/dist/constructs/v1beta3/token/Token.mjs +0 -0
  222. package/dist/constructs/v1beta3/token/TokenSchema.d.mts +7 -0
  223. package/dist/constructs/v1beta3/token/TokenSchema.d.ts +7 -0
  224. package/dist/constructs/v1beta3/token/TokenSchema.js +2 -0
  225. package/dist/constructs/v1beta3/token/TokenSchema.mjs +2 -0
  226. package/dist/constructs/v1beta3/workspace/Workspace.d.mts +4808 -0
  227. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4808 -0
  228. package/dist/constructs/v1beta3/workspace/Workspace.js +1 -0
  229. package/dist/constructs/v1beta3/workspace/Workspace.mjs +0 -0
  230. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.mts +7 -0
  231. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +7 -0
  232. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +98 -0
  233. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +98 -0
  234. package/dist/index.d.mts +10 -8
  235. package/dist/index.d.ts +10 -8
  236. package/dist/index.js +38 -10
  237. package/dist/index.mjs +38 -10
  238. package/dist/mesheryApi.d.mts +6405 -6244
  239. package/dist/mesheryApi.d.ts +6405 -6244
  240. package/dist/mesheryApi.js +1 -1
  241. package/dist/mesheryApi.mjs +1 -1
  242. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- var e={openapi:"3.0.0",info:{title:"Organization",description:"OpenAPI schema for organization 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"}},tags:[{name:"Organizations",description:"Operations related to organization management"}],paths:{"/api/identity/orgs":{get:{tags:["Organizations"],security:[{jwt:[]}],summary:"Read organizations",description:"Returns organizations for the current user.",operationId:"getOrgs",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"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:"all",in:"query",description:"Get all possible entries",schema:{type:"boolean"}}],responses:{200:{description:"Organizations response",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationspage."}}}}}},204:{description:"No content"},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:["Organizations"],security:[{jwt:[]}],summary:"Create an organization",description:"Creates a new organization.",operationId:"createOrg",requestBody:{description:"Body for creating or updating an organization",required:true,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}},responses:{201:{description:"Single-organization page response",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}}}}},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"}}}}}}},"/api/identity/orgs/by-domain":{get:{tags:["Organizations"],summary:"Get organization by domain",operationId:"getOrgByDomain",parameters:[{name:"domain",in:"query",required:true,schema:{type:"string"}}],responses:{200:{description:"Successful response",content:{"application/json":{schema:{type:"object",required:["id","name","country","region","description","owner","metadata","created_at","updated_at"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-oapi-codegen-extra-tags":{db:"name"},description:"Name of the organization.",minLength:1,maxLength:255},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"},description:"The country of the organization.",maxLength:500},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"},description:"The region of the organization.",maxLength:500},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"},description:"Description of the organization.",maxLength:5e3},owner:{"x-oapi-codegen-extra-tags":{db:"owner"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-go-type":"OrgMetadata","x-oapi-codegen-extra-tags":{db:"metadata"},type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},created_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at"}},updated_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deleted_at:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"deleted_at"}},domain:{type:"string",nullable:true,"x-oapi-codegen-extra-tags":{db:"domain"},description:"The domain of the organization.",maxLength:500}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Organization not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}":{get:{tags:["Organizations"],security:[{jwt:[]}],summary:"Read an organization",description:"Returns the organization in the single-item page wrapper currently emitted by meshery-cloud.",operationId:"getOrg",parameters:[{name:"orgId",in:"path",required:true,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}}],responses:{200:{description:"Single-organization page response",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}}}}},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:["Organizations"],security:[{jwt:[]}],summary:"Delete an organization",description:"Deletes the organization.",operationId:"deleteOrg",parameters:[{name:"orgId",in:"path",required:true,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}}],responses:{204:{description:"Organization deleted"},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:["Organizations"],security:[{jwt:[]}],summary:"Update an organization",description:"Updates the organization.",operationId:"handleUpdateOrg",parameters:[{name:"orgId",in:"path",required:true,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}}],requestBody:{description:"Body for creating or updating an organization",required:true,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}},responses:{200:{description:"Single-organization page response for the updated organization",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}}}}},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}/preferences":{get:{tags:["Organizations"],security:[{jwt:[]}],summary:"Get organization preferences",description:"Returns preferences for the specified organization.",operationId:"getOrgPreferences",parameters:[{name:"orgId",in:"path",required:true,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}}],responses:{200:{description:"Organization metadata, including preferences",content:{"application/json":{schema:{type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}},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}":{post:{tags:["Organizations"],security:[{jwt:[]}],summary:"Add team to organization or soft delete team",description:"Adds a team to an organization. If request body contains action=delete, tombstones a team by setting its deleted_at timestamp. The team's organization mapping remains intact.",operationId:"addTeamToOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"teamId",in:"path",required:true,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}}],requestBody:{required:false,content:{"application/json":{schema:{type:"object",description:"Optional action payload for POST on /api/identity/orgs/{orgId}/teams/{teamId}.",properties:{action:{type:"string",description:"Internal action to perform on the team resource.",enum:["delete"]}}}}}},responses:{201:{description:"Team added to organization or team tombstoned",content:{"application/json":{schema:{oneOf:[{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teamsOrganizationsMapping:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams organizations mapping of the teamsorganizationsmappingpage."}}},{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teams:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{type:"object",additionalProperties:{type:"string"},"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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams of the teamspage."}}}]}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/remove":{post:{tags:["Organizations"],security:[{jwt:[]}],summary:"Remove team from organization",description:"Removes (unassigns) a team from an organization.",operationId:"removeTeamFromOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"teamId",in:"path",required:true,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}}],responses:{200:{description:"Team removed from organization",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teamsOrganizationsMapping:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams organizations mapping of the teamsorganizationsmappingpage."}}}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/users/{userId}":{post:{tags:["Organizations"],security:[{jwt:[]}],summary:"Add user to organization",operationId:"addUserToOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"userId",in:"path",required:true,schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true}}],responses:{201:{description:"User added to organization",content:{"application/json":{schema:{type:"object",additionalProperties:true}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Unauthorized"},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error"}}},delete:{tags:["Organizations"],security:[{jwt:[]}],summary:"Remove user from organization",operationId:"deleteUserFromOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"userId",in:"path",required:true,schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true}}],responses:{204:{description:"User removed from organization"},401:{description:"Unauthorized"},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error"}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},responses:{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:{orgId:{name:"orgId",in:"path",required:true,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}},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"}},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"}},all:{name:"all",in:"query",description:"Get all possible entries",schema:{type:"boolean"}},teamId:{name:"teamId",in:"path",required:true,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}}},requestBodies:{organizationPayload:{description:"Body for creating or updating an organization",required:true,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}}},schemas:{UUID:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},NullableTime:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true},Time:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},Text:{type:"string","x-go-type-skip-optional-pointer":true},MapObject:{type:"object",additionalProperties:{type:"string"},"x-go-type-skip-optional-pointer":true},OrgTeamActionPayload:{type:"object",description:"Optional action payload for POST on /api/identity/orgs/{orgId}/teams/{teamId}.",properties:{action:{type:"string",description:"Internal action to perform on the team resource.",enum:["delete"]}}},Location:{type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},Logo:{type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},Theme:{type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},DashboardPrefs:{type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true},Preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}},OrgMetadata:{type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},Organization:{type:"object",required:["id","name","country","region","description","owner","metadata","created_at","updated_at"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-oapi-codegen-extra-tags":{db:"name"},description:"Name of the organization.",minLength:1,maxLength:255},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"},description:"The country of the organization.",maxLength:500},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"},description:"The region of the organization.",maxLength:500},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"},description:"Description of the organization.",maxLength:5e3},owner:{"x-oapi-codegen-extra-tags":{db:"owner"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-go-type":"OrgMetadata","x-oapi-codegen-extra-tags":{db:"metadata"},type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},created_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at"}},updated_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deleted_at:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"deleted_at"}},domain:{type:"string",nullable:true,"x-oapi-codegen-extra-tags":{db:"domain"},description:"The domain of the organization.",maxLength:500}}},AvailableOrganization:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},OrganizationsPage:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationspage."}}},OrganizationPage:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}},OrganizationPayload:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},AvailableTeam:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{type:"object",additionalProperties:{type:"string"},"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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},TeamsPage:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teams:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{type:"object",additionalProperties:{type:"string"},"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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams of the teamspage."}}},TeamsOrganizationsMapping:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},TeamsOrganizationsMappingPage:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teamsOrganizationsMapping:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams organizations mapping of the teamsorganizationsmappingpage."}}}}}},t=e;
1
+ var e={openapi:"3.0.0",info:{title:"Organization",description:"OpenAPI schema for organization management in Meshery Cloud.","x-deprecated":true,"x-superseded-by":"v1beta2",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"}},tags:[{name:"Organizations",description:"Operations related to organization management"}],paths:{"/api/identity/orgs":{get:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Read organizations",description:"Returns organizations for the current user.",operationId:"getOrgs",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"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:"all",in:"query",description:"Get all possible entries",schema:{type:"boolean"}}],responses:{200:{description:"Organizations response",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationspage."}}}}}},204:{description:"No content"},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:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Create an organization",description:"Creates a new organization.",operationId:"createOrg",requestBody:{description:"Body for creating or updating an organization",required:true,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}},responses:{201:{description:"Single-organization page response",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}}}}},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"}}}}}}},"/api/identity/orgs/by-domain":{get:{"x-internal":["cloud","meshery"],tags:["Organizations"],summary:"Get organization by domain",operationId:"getOrgByDomain",parameters:[{name:"domain",in:"query",required:true,schema:{type:"string"}}],responses:{200:{description:"Successful response",content:{"application/json":{schema:{type:"object",required:["id","name","country","region","description","owner","metadata","created_at","updated_at"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-oapi-codegen-extra-tags":{db:"name"},description:"Name of the organization.",minLength:1,maxLength:255},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"},description:"The country of the organization.",maxLength:500},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"},description:"The region of the organization.",maxLength:500},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"},description:"Description of the organization.",maxLength:5e3},owner:{"x-oapi-codegen-extra-tags":{db:"owner"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-go-type":"OrgMetadata","x-oapi-codegen-extra-tags":{db:"metadata"},type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},created_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at"}},updated_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deleted_at:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"deleted_at"}},domain:{type:"string",nullable:true,"x-oapi-codegen-extra-tags":{db:"domain"},description:"The domain of the organization.",maxLength:500}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Organization not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}":{get:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Read an organization",description:"Returns the organization in the single-item page wrapper currently emitted by meshery-cloud.",operationId:"getOrg",parameters:[{name:"orgId",in:"path",required:true,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}}],responses:{200:{description:"Single-organization page response",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}}}}},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:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Delete an organization",description:"Deletes the organization.",operationId:"deleteOrg",parameters:[{name:"orgId",in:"path",required:true,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}}],responses:{204:{description:"Organization deleted"},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:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Update an organization",description:"Updates the organization.",operationId:"handleUpdateOrg",parameters:[{name:"orgId",in:"path",required:true,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}}],requestBody:{description:"Body for creating or updating an organization",required:true,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}},responses:{200:{description:"Single-organization page response for the updated organization",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}}}}},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}/preferences":{get:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Get organization preferences",description:"Returns preferences for the specified organization.",operationId:"getOrgPreferences",parameters:[{name:"orgId",in:"path",required:true,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}}],responses:{200:{description:"Organization metadata, including preferences",content:{"application/json":{schema:{type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}},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}":{post:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Add team to organization or soft delete team",description:"Adds a team to an organization. If request body contains action=delete, tombstones a team by setting its deleted_at timestamp. The team's organization mapping remains intact.",operationId:"addTeamToOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"teamId",in:"path",required:true,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}}],requestBody:{required:false,content:{"application/json":{schema:{type:"object",description:"Optional action payload for POST on /api/identity/orgs/{orgId}/teams/{teamId}.",properties:{action:{type:"string",description:"Internal action to perform on the team resource.",enum:["delete"]}}}}}},responses:{201:{description:"Team added to organization or team tombstoned",content:{"application/json":{schema:{oneOf:[{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teamsOrganizationsMapping:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams organizations mapping of the teamsorganizationsmappingpage."}}},{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teams:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{type:"object",additionalProperties:{type:"string"},"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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams of the teamspage."}}}]}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/remove":{post:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Remove team from organization",description:"Removes (unassigns) a team from an organization.",operationId:"removeTeamFromOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"teamId",in:"path",required:true,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}}],responses:{200:{description:"Team removed from organization",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teamsOrganizationsMapping:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams organizations mapping of the teamsorganizationsmappingpage."}}}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/users/{userId}":{post:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Add user to organization",operationId:"addUserToOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"userId",in:"path",required:true,schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true}}],responses:{201:{description:"User added to organization",content:{"application/json":{schema:{type:"object",additionalProperties:true}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Unauthorized"},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error"}}},delete:{"x-internal":["cloud","meshery"],tags:["Organizations"],security:[{jwt:[]}],summary:"Remove user from organization",operationId:"deleteUserFromOrg",parameters:[{name:"orgId",in:"path",required:true,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}},{name:"userId",in:"path",required:true,schema:{type:"string",description:"user's email or username","x-go-type-skip-optional-pointer":true}}],responses:{204:{description:"User removed from organization"},401:{description:"Unauthorized"},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error"}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},responses:{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:{orgId:{name:"orgId",in:"path",required:true,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}},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"}},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"}},all:{name:"all",in:"query",description:"Get all possible entries",schema:{type:"boolean"}},teamId:{name:"teamId",in:"path",required:true,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}}},requestBodies:{organizationPayload:{description:"Body for creating or updating an organization",required:true,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}}}}}},schemas:{UUID:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},NullableTime:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true},Time:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},Text:{type:"string","x-go-type-skip-optional-pointer":true},MapObject:{type:"object",additionalProperties:{type:"string"},"x-go-type-skip-optional-pointer":true},OrgTeamActionPayload:{type:"object",description:"Optional action payload for POST on /api/identity/orgs/{orgId}/teams/{teamId}.",properties:{action:{type:"string",description:"Internal action to perform on the team resource.",enum:["delete"]}}},Location:{type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},Logo:{type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},Theme:{type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},DashboardPrefs:{type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true},Preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}},OrgMetadata:{type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},Organization:{type:"object",required:["id","name","country","region","description","owner","metadata","created_at","updated_at"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-oapi-codegen-extra-tags":{db:"name"},description:"Name of the organization.",minLength:1,maxLength:255},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"},description:"The country of the organization.",maxLength:500},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"},description:"The region of the organization.",maxLength:500},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"},description:"Description of the organization.",maxLength:5e3},owner:{"x-oapi-codegen-extra-tags":{db:"owner"},type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{"x-go-type":"OrgMetadata","x-oapi-codegen-extra-tags":{db:"metadata"},type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},created_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at"}},updated_at:{type:"string",format:"date-time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deleted_at:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"deleted_at"}},domain:{type:"string",nullable:true,"x-oapi-codegen-extra-tags":{db:"domain"},description:"The domain of the organization.",maxLength:500}}},AvailableOrganization:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},OrganizationsPage:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationspage."}}},OrganizationPage:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},organizations:{type:"array",maxItems:1,items:{type:"object",properties:{id:{"x-go-name":"ID",type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{"x-go-type":"OrgMetadata",type:"object",required:["preferences"],properties:{preferences:{"x-go-type":"Preferences",type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties: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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The organizations of the organizationpage."}}},OrganizationPayload:{type:"object",properties:{name:{type:"string","x-go-type-skip-optional-pointer":true},country:{type:"string","x-go-type-skip-optional-pointer":true},region:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},notifyOrgUpdate:{type:"boolean",description:"The notify org update of the organization."},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string",description:"Theme ID.",maxLength:500,format:"uuid"},logo:{"x-go-type":"Logo",type:"object",required:["desktopView","mobileView","darkDesktopView","darkMobileView"],properties:{desktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},mobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkDesktopView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}},darkMobileView:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string",description:"The svg of the location.",maxLength:500},location:{type:"string",description:"The location of the location.",maxLength:500}}}}},vars:{type:"object",additionalProperties:true,description:"The vars of the theme."}}},dashboard:{"x-go-type":"DashboardPrefs",type:"object",description:"Preferences specific to dashboard behavior",additionalProperties:true}}}}},AvailableTeam:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{type:"object",additionalProperties:{type:"string"},"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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},TeamsPage:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teams:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},name:{type:"string","x-go-type-skip-optional-pointer":true},description:{type:"string","x-go-type-skip-optional-pointer":true},owner:{type:"string","x-go-type-skip-optional-pointer":true},metadata:{type:"object",additionalProperties:{type:"string"},"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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams of the teamspage."}}},TeamsOrganizationsMapping:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},TeamsOrganizationsMappingPage:{type:"object",properties:{page:{type:"integer",description:"Current page number of the result set.",minimum:0},page_size:{type:"integer",description:"Number of items per page.",minimum:1},total_count:{type:"integer",description:"Total number of items available.",minimum:0},teamsOrganizationsMapping:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"id",json:"id"},"x-go-type-name":"GeneralId","x-go-type-skip-optional-pointer":true},orgId:{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},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},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:{type:"string",format:"date-time","x-go-type":"sql.NullTime","x-go-type-import":{path:"database/sql"},"x-go-type-skip-optional-pointer":true}}},description:"The teams organizations mapping of the teamsorganizationsmappingpage."}}}}}},t=e;
2
2
  export{t as default};
@@ -36,7 +36,18 @@ interface paths {
36
36
  get: operations["getDesignPatternFile"];
37
37
  };
38
38
  "/api/content/patterns/upload/{id}": {
39
- /** Uploads or replaces the source content for a design. */
39
+ /**
40
+ * Replaces the raw source content blob stored alongside a design.
41
+ * The server (meshery-cloud's UpsertPatternSourceContent handler)
42
+ * reads the entire request body as opaque bytes via io.ReadAll and
43
+ * persists them without interpretation, so the content-type is
44
+ * whatever the uploader sent — `application/octet-stream` is the
45
+ * canonical choice. The previous declaration reused
46
+ * MesheryPatternImportRequestBody under multipart/form-data, which
47
+ * the handler never parses; it remained wired up solely to share
48
+ * a schema ref with /api/pattern/import. See meshery/schemas#771
49
+ * for the drift analysis.
50
+ */
40
51
  post: operations["upsertPatternSourceContent"];
41
52
  };
42
53
  "/api/pattern/import": {
@@ -5696,11 +5707,66 @@ interface components {
5696
5707
  url?: string;
5697
5708
  name?: string;
5698
5709
  };
5710
+ /** @description Body for POST /api/pattern/import. Consumed by the server as application/json. Exactly one of two variants must be supplied: a File Import carrying base64-encoded bytes plus a file name, or a URL Import naming a remote location the server will fetch. Sending both variants at once, or neither, is rejected with 400. */
5711
+ MesheryPatternImportRequestBody: {
5712
+ /**
5713
+ * Format: byte
5714
+ * @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
5715
+ */
5716
+ file: string;
5717
+ /** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
5718
+ file_name: string;
5719
+ /**
5720
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
5721
+ * @default Untitled Design
5722
+ */
5723
+ name?: string;
5724
+ } | {
5725
+ /**
5726
+ * Format: uri
5727
+ * @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
5728
+ */
5729
+ url: string;
5730
+ /**
5731
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
5732
+ * @default Untitled Design
5733
+ */
5734
+ name?: string;
5735
+ };
5699
5736
  /**
5700
- * @description Choose the method you prefer to upload your design file. Select 'File Upload' if you have the file on your local system, or 'URL Import' if you have the file hosted online.
5701
- * @enum {object}
5737
+ * File Import
5738
+ * @description Upload a design file from the local system. Both `file` and `file_name` are required; the server uses the file name to identify the file type (Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design).
5702
5739
  */
5703
- MesheryPatternImportRequestBody: "file" | "url";
5740
+ MesheryPatternImportFilePayload: {
5741
+ /**
5742
+ * Format: byte
5743
+ * @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
5744
+ */
5745
+ file: string;
5746
+ /** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
5747
+ file_name: string;
5748
+ /**
5749
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
5750
+ * @default Untitled Design
5751
+ */
5752
+ name?: string;
5753
+ };
5754
+ /**
5755
+ * URL Import
5756
+ * @description Import a design by URL. The server will fetch the resource and derive the file type from the response.
5757
+ */
5758
+ MesheryPatternImportURLPayload: {
5759
+ /**
5760
+ * Format: uri
5761
+ * @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
5762
+ */
5763
+ url: string;
5764
+ /**
5765
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
5766
+ * @default Untitled Design
5767
+ */
5768
+ name?: string;
5769
+ };
5704
5770
  /** @description Design-level preferences */
5705
5771
  DesignPreferences: {
5706
5772
  /** @description Map of available layers, where keys are layer names. */
@@ -14649,7 +14715,18 @@ interface operations {
14649
14715
  };
14650
14716
  };
14651
14717
  };
14652
- /** Uploads or replaces the source content for a design. */
14718
+ /**
14719
+ * Replaces the raw source content blob stored alongside a design.
14720
+ * The server (meshery-cloud's UpsertPatternSourceContent handler)
14721
+ * reads the entire request body as opaque bytes via io.ReadAll and
14722
+ * persists them without interpretation, so the content-type is
14723
+ * whatever the uploader sent — `application/octet-stream` is the
14724
+ * canonical choice. The previous declaration reused
14725
+ * MesheryPatternImportRequestBody under multipart/form-data, which
14726
+ * the handler never parses; it remained wired up solely to share
14727
+ * a schema ref with /api/pattern/import. See meshery/schemas#771
14728
+ * for the drift analysis.
14729
+ */
14653
14730
  upsertPatternSourceContent: {
14654
14731
  parameters: {
14655
14732
  path: {
@@ -14687,7 +14764,7 @@ interface operations {
14687
14764
  };
14688
14765
  requestBody: {
14689
14766
  content: {
14690
- "multipart/form-data": "file" | "url";
14767
+ "application/octet-stream": string;
14691
14768
  };
14692
14769
  };
14693
14770
  };
@@ -14714,7 +14791,31 @@ interface operations {
14714
14791
  };
14715
14792
  requestBody: {
14716
14793
  content: {
14717
- "multipart/form-data": "file" | "url";
14794
+ "application/json": {
14795
+ /**
14796
+ * Format: byte
14797
+ * @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
14798
+ */
14799
+ file: string;
14800
+ /** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
14801
+ file_name: string;
14802
+ /**
14803
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
14804
+ * @default Untitled Design
14805
+ */
14806
+ name?: string;
14807
+ } | {
14808
+ /**
14809
+ * Format: uri
14810
+ * @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
14811
+ */
14812
+ url: string;
14813
+ /**
14814
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
14815
+ * @default Untitled Design
14816
+ */
14817
+ name?: string;
14818
+ };
14718
14819
  };
14719
14820
  };
14720
14821
  };