@meshery/schemas 0.8.133 → 0.8.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +119 -0
  2. package/dist/{Core-BiYtFM4v.d.mts → Core-B0SJO-By.d.mts} +4 -1
  3. package/dist/{Core-BiYtFM4v.d.ts → Core-B0SJO-By.d.ts} +4 -1
  4. package/dist/cloudApi.d.mts +5011 -2369
  5. package/dist/cloudApi.d.ts +5011 -2369
  6. package/dist/cloudApi.js +1 -1
  7. package/dist/cloudApi.mjs +1 -1
  8. package/dist/constructs/v1alpha1/core/Core.d.mts +1 -1
  9. package/dist/constructs/v1alpha1/core/Core.d.ts +1 -1
  10. package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
  11. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
  12. package/dist/constructs/v1beta1/badge/Badge.d.mts +37 -18
  13. package/dist/constructs/v1beta1/badge/Badge.d.ts +37 -18
  14. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  15. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  16. package/dist/constructs/v1beta1/category/Category.d.mts +1 -0
  17. package/dist/constructs/v1beta1/category/Category.d.ts +1 -0
  18. package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
  19. package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
  20. package/dist/constructs/v1beta1/component/Component.d.mts +19 -5
  21. package/dist/constructs/v1beta1/component/Component.d.ts +19 -5
  22. package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
  23. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
  24. package/dist/constructs/v1beta1/connection/Connection.d.mts +126 -48
  25. package/dist/constructs/v1beta1/connection/Connection.d.ts +126 -48
  26. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  27. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  28. package/dist/constructs/v1beta1/credential/Credential.d.mts +32 -8
  29. package/dist/constructs/v1beta1/credential/Credential.d.ts +32 -8
  30. package/dist/constructs/v1beta1/credential/CredentialSchema.js +8 -8
  31. package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +8 -8
  32. package/dist/constructs/v1beta1/environment/Environment.d.mts +81 -23
  33. package/dist/constructs/v1beta1/environment/Environment.d.ts +81 -23
  34. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  35. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  36. package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +76 -20
  37. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +76 -20
  38. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +8 -8
  39. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +8 -8
  40. package/dist/constructs/v1beta1/event/Event.d.mts +5 -3
  41. package/dist/constructs/v1beta1/event/Event.d.ts +5 -3
  42. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  43. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  44. package/dist/constructs/v1beta1/invitation/Invitation.d.mts +56 -54
  45. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +56 -54
  46. package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
  47. package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
  48. package/dist/constructs/v1beta1/key/Key.d.mts +27 -9
  49. package/dist/constructs/v1beta1/key/Key.d.ts +27 -9
  50. package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
  51. package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
  52. package/dist/constructs/v1beta1/keychain/Keychain.d.mts +40 -43
  53. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +40 -43
  54. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
  55. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
  56. package/dist/constructs/v1beta1/model/Model.d.mts +21 -7
  57. package/dist/constructs/v1beta1/model/Model.d.ts +21 -7
  58. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  59. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  60. package/dist/constructs/v1beta1/organization/Organization.d.mts +884 -9
  61. package/dist/constructs/v1beta1/organization/Organization.d.ts +884 -9
  62. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  63. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  64. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +176 -48
  65. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +176 -48
  66. package/dist/constructs/v1beta1/pattern/PatternSchema.js +18 -18
  67. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +18 -18
  68. package/dist/constructs/v1beta1/role/Role.d.mts +53 -26
  69. package/dist/constructs/v1beta1/role/Role.d.ts +53 -26
  70. package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
  71. package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
  72. package/dist/constructs/v1beta1/team/Team.d.mts +60 -27
  73. package/dist/constructs/v1beta1/team/Team.d.ts +60 -27
  74. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  75. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  76. package/dist/constructs/v1beta1/user/User.d.mts +1238 -169
  77. package/dist/constructs/v1beta1/user/User.d.ts +1238 -169
  78. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  79. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  80. package/dist/constructs/v1beta1/workspace/Workspace.d.mts +56 -15
  81. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +56 -15
  82. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +4 -4
  83. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +4 -4
  84. package/dist/index.d.mts +1 -1
  85. package/dist/index.d.ts +1 -1
  86. package/dist/index.js +25 -25
  87. package/dist/index.mjs +25 -25
  88. package/dist/mesheryApi.d.mts +4226 -1565
  89. package/dist/mesheryApi.d.ts +4226 -1565
  90. package/dist/mesheryApi.js +1 -1
  91. package/dist/mesheryApi.mjs +1 -1
  92. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- var e={openapi:"3.0.0",info:{title:"role",description:"Documentation for Meshery Cloud REST APIs for Roles",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"},version:"v1beta1"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"roles",description:"Operations related to roles and role assignments"}],paths:{"/api/identity/roles":{post:{"x-internal":["cloud"],tags:["roles"],summary:"Add role holder",operationId:"addRoleHolder",description:"Assigns a role to a user identified by email.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Request body for assigning a role to a user.",required:["email","role_names"],properties:{email:{type:"string",format:"email",description:"Email of the user to assign roles to.","x-order":1},role_names:{type:"array",items:{type:"string"},description:"List of role names to assign.","x-order":2}}}}}},responses:{200:{description:"Role holder added successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/roles/{id}":{delete:{"x-internal":["cloud"],tags:["roles"],summary:"Delete role",operationId:"deleteRole",description:"Removes a role assignment by ID.",parameters:[{name:"id",in:"path",description:"Role ID",required:true,schema:{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"}}}],responses:{204:{description:"Role deleted successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgID}/roles":{get:{"x-internal":["cloud"],tags:["roles"],summary:"Get organization roles",operationId:"getAllRoles",description:"Returns all roles defined for the specified organization.",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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:"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"}},{name:"selector",in:"query",description:"Role grouping selector such as provider, organization, or team.",schema:{type:"string"}},{name:"teamID",in:"query",description:"Team ID used when selector is team.",schema:{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"}}}],responses:{200:{description:"Roles fetched successfully",content:{"application/json":{schema:{type:"object",description:"A paginated list of roles.",required:["page","page_size","total_count","roles"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of roles per page.","x-order":2},total_count:{type:"integer",description:"Total number of roles across all pages.","x-order":3},roles:{type:"array",items:{"x-go-type":"Role",type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["roles"],summary:"Upsert organization role",operationId:"upsertRole",description:"Creates or updates a role for the specified organization.",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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"}}}],requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Role upserted successfully",content:{"application/json":{schema:{type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},put:{"x-internal":["cloud"],tags:["roles"],summary:"Bulk edit role holders",operationId:"bulkEditRoleHolder",description:"Updates role assignments for multiple users in the organization.",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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"}}}],requestBody:{required:true,content:{"application/json":{schema:{type:"array",items:{type:"object",description:"Request to update role assignments for a user.",properties:{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"},"x-order":1},user_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"},"x-order":2},username:{type:"string","x-order":3},email:{type:"string",format:"email","x-order":4},first_name:{type:"string","x-order":5},last_name:{type:"string","x-order":6},status:{type:"string","x-order":7},role_names:{type:"array",items:{type:"string"},"x-order":8},created_at:{"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-order":11,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}}},responses:{200:{description:"Role holders updated successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgID}/roles/{roleID}/keychains":{get:{"x-internal":["cloud"],tags:["roles"],summary:"Get keychains for role",operationId:"getRoleKeychains",description:"Returns all keychains assigned to the specified role.",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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:"roleID",in:"path",description:"Role ID",required:true,schema:{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:"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"}}],responses:{200:{description:"Keychains fetched successfully",content:{"application/json":{schema:{type:"object",required:["page","page_size","total_count","keychains"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keychains:{type:"array",items:{type:"object",description:"Represents a collection of keys.",required:["id","name","owner","created_at","updated_at"],properties:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},name:{type:"string",description:"Name of the keychain.","x-oapi-codegen-extra-tags":{db:"name"},"x-order":2},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"},"x-oapi-codegen-extra-tags":{db:"owner"},"x-order":3},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":6,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},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}/roles/{roleID}/keychains/{keychainID}":{post:{"x-internal":["cloud"],tags:["roles"],summary:"Assign keychain to role",operationId:"assignKeychainToRole",description:"Associates a keychain with the specified role.",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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:"roleID",in:"path",description:"Role ID",required:true,schema:{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:"keychainID",in:"path",description:"Keychain ID",required:true,schema:{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"}}}],responses:{200:{description:"Keychain assigned to role successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["roles"],summary:"Unassign keychain from role",operationId:"unassignKeychainFromRole",description:"Removes the association between a keychain and a role.",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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:"roleID",in:"path",description:"Role ID",required:true,schema:{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:"keychainID",in:"path",description:"Keychain ID",required:true,schema:{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"}}}],responses:{204:{description:"Keychain unassigned from role successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},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:{id:{name:"id",in:"path",description:"Role ID",required:true,schema:{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"}}},orgID:{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{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"}}},roleID:{name:"roleID",in:"path",description:"Role ID",required:true,schema:{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"}}},keychainID:{name:"keychainID",in:"path",description:"Keychain ID",required:true,schema:{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"}}},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"}},selector:{name:"selector",in:"query",description:"Role grouping selector such as provider, organization, or team.",schema:{type:"string"}},teamID:{name:"teamID",in:"query",description:"Team ID used when selector is team.",schema:{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"}}}},schemas:{Role:{type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},RolesPage:{type:"object",description:"A paginated list of roles.",required:["page","page_size","total_count","roles"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of roles per page.","x-order":2},total_count:{type:"integer",description:"Total number of roles across all pages.","x-order":3},roles:{type:"array",items:{"x-go-type":"Role",type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}},RolesKeychainsMapping:{type:"object",description:"Mapping between a role and a keychain.",required:["id","keychain_id","role_id","created_at","updated_at"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},keychain_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"},"x-order":2,"x-oapi-codegen-extra-tags":{db:"keychain_id"}},role_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"},"x-order":3,"x-oapi-codegen-extra-tags":{db:"role_id"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},RoleHolderRequest:{type:"object",description:"Request body for assigning a role to a user.",required:["email","role_names"],properties:{email:{type:"string",format:"email",description:"Email of the user to assign roles to.","x-order":1},role_names:{type:"array",items:{type:"string"},description:"List of role names to assign.","x-order":2}}},UserRoleUpdateRequest:{type:"object",description:"Request to update role assignments for a user.",properties:{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"},"x-order":1},user_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"},"x-order":2},username:{type:"string","x-order":3},email:{type:"string",format:"email","x-order":4},first_name:{type:"string","x-order":5},last_name:{type:"string","x-order":6},status:{type:"string","x-order":7},role_names:{type:"array",items:{type:"string"},"x-order":8},created_at:{"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-order":11,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},Preference:{type:"object",description:"User notification preferences.",required:["welcome_email","notify_role_change"],properties:{welcome_email:{type:"boolean",description:"Whether to send a welcome email to new users.","x-order":1},notify_role_change:{type:"boolean",description:"Whether to notify the user of role changes.","x-order":2}}}}}},t=e;
1
+ var e={openapi:"3.0.0",info:{title:"role",description:"Documentation for Meshery Cloud REST APIs for Roles",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"},version:"v1beta1"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"roles",description:"Operations related to roles and role assignments"}],paths:{"/api/identity/roles":{post:{"x-internal":["cloud"],tags:["roles"],summary:"Add role holder",operationId:"addRoleHolder",description:"Assigns a role to a user identified by email.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Request body for assigning a role to a user.",required:["email","role_names"],properties:{email:{type:"string",format:"email",description:"Email of the user to assign roles to.","x-order":1},role_names:{type:"array",items:{type:"string"},description:"List of role names to assign.","x-order":2}}}}}},responses:{200:{description:"Role holder added successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/roles/{id}":{delete:{"x-internal":["cloud"],tags:["roles"],summary:"Delete role",operationId:"deleteRole",description:"Removes a role assignment by ID.",parameters:[{name:"id",in:"path",description:"Role ID",required:true,schema:{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"}}}],responses:{204:{description:"Role deleted successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/roles":{get:{"x-internal":["cloud"],tags:["roles"],summary:"Get organization roles",operationId:"getAllRoles",description:"Returns all roles defined for the specified organization.",parameters:[{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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:"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"}},{name:"selector",in:"query",description:"Role grouping selector such as provider, organization, or team.",schema:{type:"string"}},{name:"teamID",in:"query",description:"Team ID used when selector is team.",schema:{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"}}}],responses:{200:{description:"Roles fetched successfully",content:{"application/json":{schema:{type:"object",description:"A paginated list of roles.",required:["page","page_size","total_count","roles"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of roles per page.","x-order":2},total_count:{type:"integer",description:"Total number of roles across all pages.","x-order":3},roles:{type:"array",items:{"x-go-type":"Role",type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["roles"],summary:"Upsert organization role",operationId:"upsertRole",description:"Creates or updates a role for the specified organization.",parameters:[{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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"}}}],requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Role upserted successfully",content:{"application/json":{schema:{type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},put:{"x-internal":["cloud"],tags:["roles"],summary:"Bulk edit role holders",operationId:"bulkEditRoleHolder",description:"Updates role assignments for multiple users in the organization.",parameters:[{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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"}}}],requestBody:{required:true,content:{"application/json":{schema:{type:"array",items:{type:"object",description:"Request to update role assignments for a user.",properties:{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"},"x-order":1},user_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"},"x-order":2},username:{type:"string","x-order":3},email:{type:"string",format:"email","x-order":4},first_name:{type:"string","x-order":5},last_name:{type:"string","x-order":6},status:{type:"string","x-order":7},role_names:{type:"array",items:{type:"string"},"x-order":8},created_at:{"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-order":11,description:"SQL null Timestamp to handle null values of time.","x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}}}}}},responses:{200:{description:"Role holders updated successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/orgs/{orgId}/roles/{roleId}/keychains":{get:{"x-internal":["cloud"],tags:["roles"],summary:"Get keychains for role",operationId:"getRoleKeychains",description:"Returns all keychains assigned to the specified role.",parameters:[{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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:"roleId",in:"path",description:"Role ID",required:true,schema:{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:"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"}}],responses:{200:{description:"Keychains fetched successfully",content:{"application/json":{schema:{type:"object",required:["page","page_size","total_count","keychains"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keychains:{type:"array",items:{type:"object",additionalProperties:false,description:"Represents a collection of keys.",required:["id","name","owner","created_at","updated_at"],properties:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},name:{type:"string",description:"Name of the keychain.","x-oapi-codegen-extra-tags":{db:"name"},"x-order":2},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"},"x-oapi-codegen-extra-tags":{db:"owner"},"x-order":3},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":6,description:"SQL null Timestamp to handle null values of time.","x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},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}/roles/{roleId}/keychains/{keychainId}":{post:{"x-internal":["cloud"],tags:["roles"],summary:"Assign keychain to role",operationId:"assignKeychainToRole",description:"Associates a keychain with the specified role.",parameters:[{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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:"roleId",in:"path",description:"Role ID",required:true,schema:{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:"keychainId",in:"path",description:"Keychain ID",required:true,schema:{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"}}}],responses:{200:{description:"Keychain assigned to role successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["roles"],summary:"Unassign keychain from role",operationId:"unassignKeychainFromRole",description:"Removes the association between a keychain and a role.",parameters:[{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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:"roleId",in:"path",description:"Role ID",required:true,schema:{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:"keychainId",in:"path",description:"Keychain ID",required:true,schema:{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"}}}],responses:{204:{description:"Keychain unassigned from role successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},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:{id:{name:"id",in:"path",description:"Role ID",required:true,schema:{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"}}},orgId:{name:"orgId",in:"path",description:"Organization ID",required:true,schema:{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"}}},roleId:{name:"roleId",in:"path",description:"Role ID",required:true,schema:{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"}}},keychainId:{name:"keychainId",in:"path",description:"Keychain ID",required:true,schema:{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"}}},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"}},selector:{name:"selector",in:"query",description:"Role grouping selector such as provider, organization, or team.",schema:{type:"string"}},teamID:{name:"teamID",in:"query",description:"Team ID used when selector is team.",schema:{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"}}}},schemas:{Role:{type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},RolesPage:{type:"object",description:"A paginated list of roles.",required:["page","page_size","total_count","roles"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of roles per page.","x-order":2},total_count:{type:"integer",description:"Total number of roles across all pages.","x-order":3},roles:{type:"array",items:{"x-go-type":"Role",type:"object",description:"Role definition for Layer5 Cloud (Meshery).",required:["role_name","description"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},role_name:{type:"string",description:"Unique name of the role.","x-order":2,"x-oapi-codegen-extra-tags":{db:"role_name"}},description:{type:"string",description:"Human-readable description of the role.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the role was soft-deleted.","x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4}}},RolesKeychainsMapping:{type:"object",description:"Mapping between a role and a keychain.",required:["id","keychain_id","role_id","created_at","updated_at"],properties:{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"},"x-order":1,"x-oapi-codegen-extra-tags":{db:"id"}},keychain_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"},"x-order":2,"x-oapi-codegen-extra-tags":{db:"keychain_id"}},role_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"},"x-order":3,"x-oapi-codegen-extra-tags":{db:"role_id"}},created_at:{"x-order":4,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":5,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-order":6,"x-oapi-codegen-extra-tags":{db:"deleted_at"},description:"SQL null Timestamp to handle null values of time.","x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},RoleHolderRequest:{type:"object",description:"Request body for assigning a role to a user.",required:["email","role_names"],properties:{email:{type:"string",format:"email",description:"Email of the user to assign roles to.","x-order":1},role_names:{type:"array",items:{type:"string"},description:"List of role names to assign.","x-order":2}}},UserRoleUpdateRequest:{type:"object",description:"Request to update role assignments for a user.",properties:{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"},"x-order":1},user_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"},"x-order":2},username:{type:"string","x-order":3},email:{type:"string",format:"email","x-order":4},first_name:{type:"string","x-order":5},last_name:{type:"string","x-order":6},status:{type:"string","x-order":7},role_names:{type:"array",items:{type:"string"},"x-order":8},created_at:{"x-order":9,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-order":10,type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deleted_at:{"x-order":11,description:"SQL null Timestamp to handle null values of time.","x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},Preference:{type:"object",description:"User notification preferences.",required:["welcome_email","notify_role_change"],properties:{welcome_email:{type:"boolean",description:"Whether to send a welcome email to new users.","x-order":1},notify_role_change:{type:"boolean",description:"Whether to notify the user of role changes.","x-order":2}}}}}},t=e;
2
2
  export{t as default};
@@ -5,27 +5,27 @@
5
5
  interface paths {
6
6
  "/api/identity/orgs/{orgId}/teams": {
7
7
  /** Gets all teams within an organization */
8
- get: operations["GetTeams"];
8
+ get: operations["getTeams"];
9
9
  /** Creates a new team within an organization */
10
- post: operations["CreateTeam"];
10
+ post: operations["createTeam"];
11
11
  };
12
12
  "/api/identity/orgs/{orgId}/teams/{teamId}": {
13
13
  /** Gets a team by its ID */
14
- get: operations["GetTeamByID"];
14
+ get: operations["getTeamById"];
15
15
  /** Updates a team's information */
16
- put: operations["UpdateTeam"];
16
+ put: operations["updateTeam"];
17
17
  /** Deletes a team by its ID */
18
- delete: operations["DeleteTeam"];
18
+ delete: operations["deleteTeam"];
19
19
  };
20
20
  "/api/identity/orgs/{orgId}/teams/{teamId}/users": {
21
21
  /** Gets all users that belong to a team */
22
- get: operations["GetTeamUsers"];
22
+ get: operations["getTeamUsers"];
23
23
  };
24
24
  "/api/identity/orgs/{orgId}/teams/{teamId}/users/{userId}": {
25
25
  /** Assigns a user to a team */
26
- post: operations["AddUserToTeam"];
26
+ post: operations["addUserToTeam"];
27
27
  /** Unassigns a user from a team */
28
- delete: operations["RemoveUserFromTeam"];
28
+ delete: operations["removeUserFromTeam"];
29
29
  };
30
30
  }
31
31
  interface components {
@@ -54,7 +54,10 @@ interface components {
54
54
  created_at?: string;
55
55
  /** Format: date-time */
56
56
  updated_at?: string;
57
- /** @description SQL null Timestamp to handle null values of time. */
57
+ /**
58
+ * Format: date-time
59
+ * @description SQL null Timestamp to handle null values of time.
60
+ */
58
61
  deleted_at?: string;
59
62
  };
60
63
  /** @description Payload for creating a new team */
@@ -99,7 +102,10 @@ interface components {
99
102
  created_at?: string;
100
103
  /** Format: date-time */
101
104
  updated_at?: string;
102
- /** @description SQL null Timestamp to handle null values of time. */
105
+ /**
106
+ * Format: date-time
107
+ * @description SQL null Timestamp to handle null values of time.
108
+ */
103
109
  deleted_at?: string;
104
110
  }[];
105
111
  };
@@ -121,7 +127,10 @@ interface components {
121
127
  * @description Timestamp when the resource was updated.
122
128
  */
123
129
  updated_at?: string;
124
- /** @description SQL null Timestamp to handle null values of time. */
130
+ /**
131
+ * Format: date-time
132
+ * @description SQL null Timestamp to handle null values of time.
133
+ */
125
134
  deleted_at?: string;
126
135
  };
127
136
  /** @description Paginated list of team-user mappings */
@@ -146,7 +155,10 @@ interface components {
146
155
  * @description Timestamp when the resource was updated.
147
156
  */
148
157
  updated_at?: string;
149
- /** @description SQL null Timestamp to handle null values of time. */
158
+ /**
159
+ * Format: date-time
160
+ * @description SQL null Timestamp to handle null values of time.
161
+ */
150
162
  deleted_at?: string;
151
163
  }[];
152
164
  };
@@ -224,7 +236,7 @@ interface components {
224
236
  }
225
237
  interface operations {
226
238
  /** Gets all teams within an organization */
227
- GetTeams: {
239
+ getTeams: {
228
240
  parameters: {
229
241
  path: {
230
242
  /** Organization ID */
@@ -272,7 +284,10 @@ interface operations {
272
284
  created_at?: string;
273
285
  /** Format: date-time */
274
286
  updated_at?: string;
275
- /** @description SQL null Timestamp to handle null values of time. */
287
+ /**
288
+ * Format: date-time
289
+ * @description SQL null Timestamp to handle null values of time.
290
+ */
276
291
  deleted_at?: string;
277
292
  }[];
278
293
  };
@@ -293,7 +308,7 @@ interface operations {
293
308
  };
294
309
  };
295
310
  /** Creates a new team within an organization */
296
- CreateTeam: {
311
+ createTeam: {
297
312
  parameters: {
298
313
  path: {
299
314
  /** Organization ID */
@@ -327,7 +342,10 @@ interface operations {
327
342
  created_at?: string;
328
343
  /** Format: date-time */
329
344
  updated_at?: string;
330
- /** @description SQL null Timestamp to handle null values of time. */
345
+ /**
346
+ * Format: date-time
347
+ * @description SQL null Timestamp to handle null values of time.
348
+ */
331
349
  deleted_at?: string;
332
350
  };
333
351
  };
@@ -358,7 +376,7 @@ interface operations {
358
376
  };
359
377
  };
360
378
  /** Gets a team by its ID */
361
- GetTeamByID: {
379
+ getTeamById: {
362
380
  parameters: {
363
381
  path: {
364
382
  /** Organization ID */
@@ -394,7 +412,10 @@ interface operations {
394
412
  created_at?: string;
395
413
  /** Format: date-time */
396
414
  updated_at?: string;
397
- /** @description SQL null Timestamp to handle null values of time. */
415
+ /**
416
+ * Format: date-time
417
+ * @description SQL null Timestamp to handle null values of time.
418
+ */
398
419
  deleted_at?: string;
399
420
  };
400
421
  };
@@ -426,7 +447,7 @@ interface operations {
426
447
  };
427
448
  };
428
449
  /** Updates a team's information */
429
- UpdateTeam: {
450
+ updateTeam: {
430
451
  parameters: {
431
452
  path: {
432
453
  /** Organization ID */
@@ -462,7 +483,10 @@ interface operations {
462
483
  created_at?: string;
463
484
  /** Format: date-time */
464
485
  updated_at?: string;
465
- /** @description SQL null Timestamp to handle null values of time. */
486
+ /**
487
+ * Format: date-time
488
+ * @description SQL null Timestamp to handle null values of time.
489
+ */
466
490
  deleted_at?: string;
467
491
  };
468
492
  };
@@ -505,7 +529,7 @@ interface operations {
505
529
  };
506
530
  };
507
531
  /** Deletes a team by its ID */
508
- DeleteTeam: {
532
+ deleteTeam: {
509
533
  parameters: {
510
534
  path: {
511
535
  /** Organization ID */
@@ -544,7 +568,7 @@ interface operations {
544
568
  };
545
569
  };
546
570
  /** Gets all users that belong to a team */
547
- GetTeamUsers: {
571
+ getTeamUsers: {
548
572
  parameters: {
549
573
  path: {
550
574
  /** Organization ID */
@@ -588,7 +612,10 @@ interface operations {
588
612
  * @description Timestamp when the resource was updated.
589
613
  */
590
614
  updated_at?: string;
591
- /** @description SQL null Timestamp to handle null values of time. */
615
+ /**
616
+ * Format: date-time
617
+ * @description SQL null Timestamp to handle null values of time.
618
+ */
592
619
  deleted_at?: string;
593
620
  }[];
594
621
  };
@@ -621,7 +648,7 @@ interface operations {
621
648
  };
622
649
  };
623
650
  /** Assigns a user to a team */
624
- AddUserToTeam: {
651
+ addUserToTeam: {
625
652
  parameters: {
626
653
  path: {
627
654
  /** Organization ID */
@@ -653,7 +680,10 @@ interface operations {
653
680
  * @description Timestamp when the resource was updated.
654
681
  */
655
682
  updated_at?: string;
656
- /** @description SQL null Timestamp to handle null values of time. */
683
+ /**
684
+ * Format: date-time
685
+ * @description SQL null Timestamp to handle null values of time.
686
+ */
657
687
  deleted_at?: string;
658
688
  };
659
689
  };
@@ -679,7 +709,7 @@ interface operations {
679
709
  };
680
710
  };
681
711
  /** Unassigns a user from a team */
682
- RemoveUserFromTeam: {
712
+ removeUserFromTeam: {
683
713
  parameters: {
684
714
  path: {
685
715
  /** Organization ID */
@@ -711,7 +741,10 @@ interface operations {
711
741
  * @description Timestamp when the resource was updated.
712
742
  */
713
743
  updated_at?: string;
714
- /** @description SQL null Timestamp to handle null values of time. */
744
+ /**
745
+ * Format: date-time
746
+ * @description SQL null Timestamp to handle null values of time.
747
+ */
715
748
  deleted_at?: string;
716
749
  };
717
750
  };
@@ -5,27 +5,27 @@
5
5
  interface paths {
6
6
  "/api/identity/orgs/{orgId}/teams": {
7
7
  /** Gets all teams within an organization */
8
- get: operations["GetTeams"];
8
+ get: operations["getTeams"];
9
9
  /** Creates a new team within an organization */
10
- post: operations["CreateTeam"];
10
+ post: operations["createTeam"];
11
11
  };
12
12
  "/api/identity/orgs/{orgId}/teams/{teamId}": {
13
13
  /** Gets a team by its ID */
14
- get: operations["GetTeamByID"];
14
+ get: operations["getTeamById"];
15
15
  /** Updates a team's information */
16
- put: operations["UpdateTeam"];
16
+ put: operations["updateTeam"];
17
17
  /** Deletes a team by its ID */
18
- delete: operations["DeleteTeam"];
18
+ delete: operations["deleteTeam"];
19
19
  };
20
20
  "/api/identity/orgs/{orgId}/teams/{teamId}/users": {
21
21
  /** Gets all users that belong to a team */
22
- get: operations["GetTeamUsers"];
22
+ get: operations["getTeamUsers"];
23
23
  };
24
24
  "/api/identity/orgs/{orgId}/teams/{teamId}/users/{userId}": {
25
25
  /** Assigns a user to a team */
26
- post: operations["AddUserToTeam"];
26
+ post: operations["addUserToTeam"];
27
27
  /** Unassigns a user from a team */
28
- delete: operations["RemoveUserFromTeam"];
28
+ delete: operations["removeUserFromTeam"];
29
29
  };
30
30
  }
31
31
  interface components {
@@ -54,7 +54,10 @@ interface components {
54
54
  created_at?: string;
55
55
  /** Format: date-time */
56
56
  updated_at?: string;
57
- /** @description SQL null Timestamp to handle null values of time. */
57
+ /**
58
+ * Format: date-time
59
+ * @description SQL null Timestamp to handle null values of time.
60
+ */
58
61
  deleted_at?: string;
59
62
  };
60
63
  /** @description Payload for creating a new team */
@@ -99,7 +102,10 @@ interface components {
99
102
  created_at?: string;
100
103
  /** Format: date-time */
101
104
  updated_at?: string;
102
- /** @description SQL null Timestamp to handle null values of time. */
105
+ /**
106
+ * Format: date-time
107
+ * @description SQL null Timestamp to handle null values of time.
108
+ */
103
109
  deleted_at?: string;
104
110
  }[];
105
111
  };
@@ -121,7 +127,10 @@ interface components {
121
127
  * @description Timestamp when the resource was updated.
122
128
  */
123
129
  updated_at?: string;
124
- /** @description SQL null Timestamp to handle null values of time. */
130
+ /**
131
+ * Format: date-time
132
+ * @description SQL null Timestamp to handle null values of time.
133
+ */
125
134
  deleted_at?: string;
126
135
  };
127
136
  /** @description Paginated list of team-user mappings */
@@ -146,7 +155,10 @@ interface components {
146
155
  * @description Timestamp when the resource was updated.
147
156
  */
148
157
  updated_at?: string;
149
- /** @description SQL null Timestamp to handle null values of time. */
158
+ /**
159
+ * Format: date-time
160
+ * @description SQL null Timestamp to handle null values of time.
161
+ */
150
162
  deleted_at?: string;
151
163
  }[];
152
164
  };
@@ -224,7 +236,7 @@ interface components {
224
236
  }
225
237
  interface operations {
226
238
  /** Gets all teams within an organization */
227
- GetTeams: {
239
+ getTeams: {
228
240
  parameters: {
229
241
  path: {
230
242
  /** Organization ID */
@@ -272,7 +284,10 @@ interface operations {
272
284
  created_at?: string;
273
285
  /** Format: date-time */
274
286
  updated_at?: string;
275
- /** @description SQL null Timestamp to handle null values of time. */
287
+ /**
288
+ * Format: date-time
289
+ * @description SQL null Timestamp to handle null values of time.
290
+ */
276
291
  deleted_at?: string;
277
292
  }[];
278
293
  };
@@ -293,7 +308,7 @@ interface operations {
293
308
  };
294
309
  };
295
310
  /** Creates a new team within an organization */
296
- CreateTeam: {
311
+ createTeam: {
297
312
  parameters: {
298
313
  path: {
299
314
  /** Organization ID */
@@ -327,7 +342,10 @@ interface operations {
327
342
  created_at?: string;
328
343
  /** Format: date-time */
329
344
  updated_at?: string;
330
- /** @description SQL null Timestamp to handle null values of time. */
345
+ /**
346
+ * Format: date-time
347
+ * @description SQL null Timestamp to handle null values of time.
348
+ */
331
349
  deleted_at?: string;
332
350
  };
333
351
  };
@@ -358,7 +376,7 @@ interface operations {
358
376
  };
359
377
  };
360
378
  /** Gets a team by its ID */
361
- GetTeamByID: {
379
+ getTeamById: {
362
380
  parameters: {
363
381
  path: {
364
382
  /** Organization ID */
@@ -394,7 +412,10 @@ interface operations {
394
412
  created_at?: string;
395
413
  /** Format: date-time */
396
414
  updated_at?: string;
397
- /** @description SQL null Timestamp to handle null values of time. */
415
+ /**
416
+ * Format: date-time
417
+ * @description SQL null Timestamp to handle null values of time.
418
+ */
398
419
  deleted_at?: string;
399
420
  };
400
421
  };
@@ -426,7 +447,7 @@ interface operations {
426
447
  };
427
448
  };
428
449
  /** Updates a team's information */
429
- UpdateTeam: {
450
+ updateTeam: {
430
451
  parameters: {
431
452
  path: {
432
453
  /** Organization ID */
@@ -462,7 +483,10 @@ interface operations {
462
483
  created_at?: string;
463
484
  /** Format: date-time */
464
485
  updated_at?: string;
465
- /** @description SQL null Timestamp to handle null values of time. */
486
+ /**
487
+ * Format: date-time
488
+ * @description SQL null Timestamp to handle null values of time.
489
+ */
466
490
  deleted_at?: string;
467
491
  };
468
492
  };
@@ -505,7 +529,7 @@ interface operations {
505
529
  };
506
530
  };
507
531
  /** Deletes a team by its ID */
508
- DeleteTeam: {
532
+ deleteTeam: {
509
533
  parameters: {
510
534
  path: {
511
535
  /** Organization ID */
@@ -544,7 +568,7 @@ interface operations {
544
568
  };
545
569
  };
546
570
  /** Gets all users that belong to a team */
547
- GetTeamUsers: {
571
+ getTeamUsers: {
548
572
  parameters: {
549
573
  path: {
550
574
  /** Organization ID */
@@ -588,7 +612,10 @@ interface operations {
588
612
  * @description Timestamp when the resource was updated.
589
613
  */
590
614
  updated_at?: string;
591
- /** @description SQL null Timestamp to handle null values of time. */
615
+ /**
616
+ * Format: date-time
617
+ * @description SQL null Timestamp to handle null values of time.
618
+ */
592
619
  deleted_at?: string;
593
620
  }[];
594
621
  };
@@ -621,7 +648,7 @@ interface operations {
621
648
  };
622
649
  };
623
650
  /** Assigns a user to a team */
624
- AddUserToTeam: {
651
+ addUserToTeam: {
625
652
  parameters: {
626
653
  path: {
627
654
  /** Organization ID */
@@ -653,7 +680,10 @@ interface operations {
653
680
  * @description Timestamp when the resource was updated.
654
681
  */
655
682
  updated_at?: string;
656
- /** @description SQL null Timestamp to handle null values of time. */
683
+ /**
684
+ * Format: date-time
685
+ * @description SQL null Timestamp to handle null values of time.
686
+ */
657
687
  deleted_at?: string;
658
688
  };
659
689
  };
@@ -679,7 +709,7 @@ interface operations {
679
709
  };
680
710
  };
681
711
  /** Unassigns a user from a team */
682
- RemoveUserFromTeam: {
712
+ removeUserFromTeam: {
683
713
  parameters: {
684
714
  path: {
685
715
  /** Organization ID */
@@ -711,7 +741,10 @@ interface operations {
711
741
  * @description Timestamp when the resource was updated.
712
742
  */
713
743
  updated_at?: string;
714
- /** @description SQL null Timestamp to handle null values of time. */
744
+ /**
745
+ * Format: date-time
746
+ * @description SQL null Timestamp to handle null values of time.
747
+ */
715
748
  deleted_at?: string;
716
749
  };
717
750
  };