@meshery/schemas 0.8.133 → 0.8.134
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.
- package/README.md +119 -0
- package/dist/cloudApi.d.mts +5011 -2369
- package/dist/cloudApi.d.ts +5011 -2369
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/badge/Badge.d.mts +37 -18
- package/dist/constructs/v1beta1/badge/Badge.d.ts +37 -18
- package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
- package/dist/constructs/v1beta1/category/Category.d.mts +1 -0
- package/dist/constructs/v1beta1/category/Category.d.ts +1 -0
- package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
- package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
- package/dist/constructs/v1beta1/component/Component.d.mts +12 -4
- package/dist/constructs/v1beta1/component/Component.d.ts +12 -4
- package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/connection/Connection.d.mts +84 -42
- package/dist/constructs/v1beta1/connection/Connection.d.ts +84 -42
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/environment/Environment.d.mts +65 -22
- package/dist/constructs/v1beta1/environment/Environment.d.ts +65 -22
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +48 -16
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +48 -16
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +8 -8
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +8 -8
- package/dist/constructs/v1beta1/event/Event.d.mts +5 -3
- package/dist/constructs/v1beta1/event/Event.d.ts +5 -3
- package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta1/invitation/Invitation.d.mts +56 -54
- package/dist/constructs/v1beta1/invitation/Invitation.d.ts +56 -54
- package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/key/Key.d.mts +3 -3
- package/dist/constructs/v1beta1/key/Key.d.ts +3 -3
- package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
- package/dist/constructs/v1beta1/keychain/Keychain.d.mts +12 -36
- package/dist/constructs/v1beta1/keychain/Keychain.d.ts +12 -36
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
- package/dist/constructs/v1beta1/model/Model.d.mts +14 -6
- package/dist/constructs/v1beta1/model/Model.d.ts +14 -6
- package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
- package/dist/constructs/v1beta1/organization/Organization.d.mts +884 -9
- package/dist/constructs/v1beta1/organization/Organization.d.ts +884 -9
- package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +113 -39
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +113 -39
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +18 -18
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +18 -18
- package/dist/constructs/v1beta1/role/Role.d.mts +17 -17
- package/dist/constructs/v1beta1/role/Role.d.ts +17 -17
- package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
- package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/Team.d.mts +16 -16
- package/dist/constructs/v1beta1/team/Team.d.ts +16 -16
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/user/User.d.mts +1238 -169
- package/dist/constructs/v1beta1/user/User.d.ts +1238 -169
- package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta1/workspace/Workspace.d.mts +35 -12
- package/dist/constructs/v1beta1/workspace/Workspace.d.ts +35 -12
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +4 -4
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +4 -4
- package/dist/index.js +25 -25
- package/dist/index.mjs +25 -25
- package/dist/mesheryApi.d.mts +4226 -1565
- package/dist/mesheryApi.d.ts +4226 -1565
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';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/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:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"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},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}/teams/{teamId}":{post:{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"}}},delete:{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:{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}},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}}},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:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"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},domain:{type:"string",nullable:true,"x-oapi-codegen-extra-tags":{db:"domain"}}}},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
|
+
'use strict';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;
|
|
2
2
|
module.exports=t;
|
|
@@ -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/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:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"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},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}/teams/{teamId}":{post:{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"}}},delete:{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:{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}},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}}},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:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"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},domain:{type:"string",nullable:true,"x-oapi-codegen-extra-tags":{db:"domain"}}}},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"}}}}},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};
|