@meshery/schemas 0.8.135 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/dist/cloudApi.d.mts +16943 -8042
  3. package/dist/cloudApi.d.ts +16943 -8042
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/badge/Badge.d.mts +201 -0
  7. package/dist/constructs/v1beta1/badge/Badge.d.ts +201 -0
  8. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  9. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  10. package/dist/constructs/v1beta1/environment/Environment.d.mts +366 -0
  11. package/dist/constructs/v1beta1/environment/Environment.d.ts +366 -0
  12. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  13. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  14. package/dist/constructs/v1beta1/event/Event.d.mts +175 -0
  15. package/dist/constructs/v1beta1/event/Event.d.ts +175 -0
  16. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  17. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  18. package/dist/constructs/v1beta1/invitation/Invitation.d.mts +166 -0
  19. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +166 -0
  20. package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
  21. package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
  22. package/dist/constructs/v1beta1/model/Model.d.mts +38 -0
  23. package/dist/constructs/v1beta1/model/Model.d.ts +38 -0
  24. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  25. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  26. package/dist/constructs/v1beta1/organization/Organization.d.mts +48 -0
  27. package/dist/constructs/v1beta1/organization/Organization.d.ts +48 -0
  28. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  29. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  30. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +6114 -2637
  31. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +6114 -2637
  32. package/dist/constructs/v1beta1/pattern/PatternSchema.js +99 -3
  33. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +99 -3
  34. package/dist/constructs/v1beta1/team/Team.d.mts +68 -9
  35. package/dist/constructs/v1beta1/team/Team.d.ts +68 -9
  36. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  37. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  38. package/dist/constructs/v1beta1/user/User.d.mts +395 -0
  39. package/dist/constructs/v1beta1/user/User.d.ts +395 -0
  40. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  41. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  42. package/dist/index.js +102 -6
  43. package/dist/index.mjs +102 -6
  44. package/dist/mesheryApi.d.mts +4575 -1598
  45. package/dist/mesheryApi.d.ts +4575 -1598
  46. package/dist/mesheryApi.js +1 -1
  47. package/dist/mesheryApi.mjs +1 -1
  48. package/package.json +1 -1
@@ -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"}},paths:{"/api/identity/orgs":{get:{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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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:{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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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:{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"}},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"}},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"}},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}}}}}}},404:{description:"Organization not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}":{get:{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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{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:{200:{description:"Single-organization page response for the deleted organization",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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:{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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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/{orgId}/preferences":{get:{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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}":{post:{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:{200:{description:"Team added to organization or team tombstoned",content:{"application/json":{schema:{oneOf:[{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},teams_organizations_mapping:{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},org_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:"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}}}}}},{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},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}}}}}}]}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/remove":{post:{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"},page_size:{type:"integer"},total_count:{type:"integer"},teams_organizations_mapping:{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},org_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:"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}}}}}}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},location:{type:"string"}}},Logo:{type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},Theme:{type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"}},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"}},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}}}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}},OrganizationPage:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}},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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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}}}}}},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},org_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:"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"},page_size:{type:"integer"},total_count:{type:"integer"},teams_organizations_mapping:{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},org_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:"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}}}}}}}}},t=e;
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"}},paths:{"/api/identity/orgs":{get:{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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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:{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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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:{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"}},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"}},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"}},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}}}}}}},404:{description:"Organization not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}":{get:{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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{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:{200:{description:"Single-organization page response for the deleted organization",content:{"application/json":{schema:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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:{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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}}}}},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/{orgId}/preferences":{get:{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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/teams/{teamId}":{post:{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:{200:{description:"Team added to organization or team tombstoned",content:{"application/json":{schema:{oneOf:[{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},teams_organizations_mapping:{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},org_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:"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}}}}}},{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},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}}}}}}]}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/teams/{teamId}/remove":{post:{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"},page_size:{type:"integer"},total_count:{type:"integer"},teams_organizations_mapping:{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},org_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:"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}}}}}}}}},400:{description:"Bad request"},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Internal server error"}}}},"/api/identity/orgs/{orgId}/users/{userId}":{post:{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:{200:{description:"User added to organization",content:{"application/json":{schema:{type:"object",additionalProperties:true}}}},401:{description:"Unauthorized"},500:{description:"Internal server error"}}},delete:{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:{200:{description:"User removed from organization",content:{"application/json":{schema:{type:"object",additionalProperties:true}}}},401:{description:"Unauthorized"},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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},location:{type:"string"}}},Logo:{type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},Theme:{type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}},country:{type:"string","x-oapi-codegen-extra-tags":{db:"country"}},region:{type:"string","x-oapi-codegen-extra-tags":{db:"region"}},description:{type:"string","x-oapi-codegen-extra-tags":{db:"description"}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"}}}},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}},OrganizationPage:{type:"object",description:"Single-organization wrapper used by current meshery-cloud organization handlers.",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},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"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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}}}}}},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},notify_org_update:{type:"boolean"},preferences:{type:"object",required:["theme","dashboard"],properties:{theme:{"x-go-type":"Theme",type:"object",required:["id","logo"],properties:{id:{type:"string"},logo:{"x-go-type":"Logo",type:"object",required:["desktop_view","mobile_view","dark_desktop_view","dark_mobile_view"],properties:{desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_desktop_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}},dark_mobile_view:{"x-go-type":"Location",type:"object",required:["svg","location"],properties:{svg:{type:"string"},location:{type:"string"}}}}},vars:{type:"object",additionalProperties:true}}},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"},page_size:{type:"integer"},total_count:{type:"integer"},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}}}}}},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},org_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:"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"},page_size:{type:"integer"},total_count:{type:"integer"},teams_organizations_mapping:{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},org_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:"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}}}}}}}}},t=e;
2
2
  export{t as default};