@meshery/schemas 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +4 -3
  2. package/dist/cloudApi.d.mts +16699 -16442
  3. package/dist/cloudApi.d.ts +16699 -16442
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  7. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  8. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  9. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  10. package/dist/constructs/v1beta1/credential/CredentialSchema.js +4 -4
  11. package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +4 -4
  12. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  13. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  14. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  15. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  16. package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
  17. package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
  18. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
  19. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
  20. package/dist/constructs/v1beta1/model/Model.d.mts +3 -12
  21. package/dist/constructs/v1beta1/model/Model.d.ts +3 -12
  22. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  23. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  24. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  25. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  26. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +108 -7
  27. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +108 -7
  28. package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -2
  29. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -2
  30. package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
  31. package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
  32. package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +1 -1
  33. package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +1 -1
  34. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  35. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  36. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  37. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  38. package/dist/constructs/v1beta1/view/ViewSchema.js +1 -1
  39. package/dist/constructs/v1beta1/view/ViewSchema.mjs +1 -1
  40. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
  41. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
  42. package/dist/constructs/v1beta2/badge/Badge.d.mts +564 -0
  43. package/dist/constructs/v1beta2/badge/Badge.d.ts +564 -0
  44. package/dist/constructs/v1beta2/badge/Badge.js +1 -0
  45. package/dist/constructs/v1beta2/badge/Badge.mjs +0 -0
  46. package/dist/constructs/v1beta2/badge/BadgeSchema.d.mts +7 -0
  47. package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +7 -0
  48. package/dist/constructs/v1beta2/badge/BadgeSchema.js +2 -0
  49. package/dist/constructs/v1beta2/badge/BadgeSchema.mjs +2 -0
  50. package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
  51. package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
  52. package/dist/constructs/v1beta2/credential/Credential.d.mts +536 -0
  53. package/dist/constructs/v1beta2/credential/Credential.d.ts +536 -0
  54. package/dist/constructs/v1beta2/credential/Credential.js +1 -0
  55. package/dist/constructs/v1beta2/credential/Credential.mjs +0 -0
  56. package/dist/constructs/v1beta2/credential/CredentialSchema.d.mts +7 -0
  57. package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +7 -0
  58. package/dist/constructs/v1beta2/credential/CredentialSchema.js +7 -0
  59. package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +7 -0
  60. package/dist/constructs/v1beta2/design/Design.d.mts +108 -7
  61. package/dist/constructs/v1beta2/design/Design.d.ts +108 -7
  62. package/dist/constructs/v1beta2/design/DesignSchema.js +21 -3
  63. package/dist/constructs/v1beta2/design/DesignSchema.mjs +21 -3
  64. package/dist/constructs/v1beta2/event/EventSchema.js +1 -1
  65. package/dist/constructs/v1beta2/event/EventSchema.mjs +1 -1
  66. package/dist/constructs/v1beta2/invitation/InvitationSchema.js +1 -1
  67. package/dist/constructs/v1beta2/invitation/InvitationSchema.mjs +1 -1
  68. package/dist/constructs/v1beta2/key/Key.d.mts +523 -0
  69. package/dist/constructs/v1beta2/key/Key.d.ts +523 -0
  70. package/dist/constructs/v1beta2/key/Key.js +1 -0
  71. package/dist/constructs/v1beta2/key/Key.mjs +0 -0
  72. package/dist/constructs/v1beta2/key/KeySchema.d.mts +7 -0
  73. package/dist/constructs/v1beta2/key/KeySchema.d.ts +7 -0
  74. package/dist/constructs/v1beta2/key/KeySchema.js +2 -0
  75. package/dist/constructs/v1beta2/key/KeySchema.mjs +2 -0
  76. package/dist/constructs/v1beta2/keychain/Keychain.d.mts +651 -0
  77. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +651 -0
  78. package/dist/constructs/v1beta2/keychain/Keychain.js +1 -0
  79. package/dist/constructs/v1beta2/keychain/Keychain.mjs +0 -0
  80. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.mts +7 -0
  81. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +7 -0
  82. package/dist/constructs/v1beta2/keychain/KeychainSchema.js +2 -0
  83. package/dist/constructs/v1beta2/keychain/KeychainSchema.mjs +2 -0
  84. package/dist/constructs/v1beta2/model/Model.d.mts +571 -0
  85. package/dist/constructs/v1beta2/model/Model.d.ts +571 -0
  86. package/dist/constructs/v1beta2/model/Model.js +1 -0
  87. package/dist/constructs/v1beta2/model/Model.mjs +0 -0
  88. package/dist/constructs/v1beta2/model/ModelSchema.d.mts +7 -0
  89. package/dist/constructs/v1beta2/model/ModelSchema.d.ts +7 -0
  90. package/dist/constructs/v1beta2/model/ModelSchema.js +6 -0
  91. package/dist/constructs/v1beta2/model/ModelSchema.mjs +6 -0
  92. package/dist/constructs/v1beta2/organization/Organization.d.mts +1986 -0
  93. package/dist/constructs/v1beta2/organization/Organization.d.ts +1986 -0
  94. package/dist/constructs/v1beta2/organization/Organization.js +1 -0
  95. package/dist/constructs/v1beta2/organization/Organization.mjs +0 -0
  96. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.mts +7 -0
  97. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +7 -0
  98. package/dist/constructs/v1beta2/organization/OrganizationSchema.js +2 -0
  99. package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +2 -0
  100. package/dist/constructs/v1beta2/plan/PlanSchema.js +1 -1
  101. package/dist/constructs/v1beta2/plan/PlanSchema.mjs +1 -1
  102. package/dist/constructs/v1beta2/role/Role.d.mts +751 -0
  103. package/dist/constructs/v1beta2/role/Role.d.ts +751 -0
  104. package/dist/constructs/v1beta2/role/Role.js +1 -0
  105. package/dist/constructs/v1beta2/role/Role.mjs +0 -0
  106. package/dist/constructs/v1beta2/role/RoleSchema.d.mts +7 -0
  107. package/dist/constructs/v1beta2/role/RoleSchema.d.ts +7 -0
  108. package/dist/constructs/v1beta2/role/RoleSchema.js +2 -0
  109. package/dist/constructs/v1beta2/role/RoleSchema.mjs +2 -0
  110. package/dist/constructs/v1beta2/schedule/Schedule.d.mts +380 -0
  111. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +380 -0
  112. package/dist/constructs/v1beta2/schedule/Schedule.js +1 -0
  113. package/dist/constructs/v1beta2/schedule/Schedule.mjs +0 -0
  114. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.mts +7 -0
  115. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +7 -0
  116. package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +13 -0
  117. package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +13 -0
  118. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.js +1 -1
  119. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.mjs +1 -1
  120. package/dist/constructs/v1beta2/team/Team.d.mts +939 -0
  121. package/dist/constructs/v1beta2/team/Team.d.ts +939 -0
  122. package/dist/constructs/v1beta2/team/Team.js +1 -0
  123. package/dist/constructs/v1beta2/team/Team.mjs +0 -0
  124. package/dist/constructs/v1beta2/team/TeamSchema.d.mts +7 -0
  125. package/dist/constructs/v1beta2/team/TeamSchema.d.ts +7 -0
  126. package/dist/constructs/v1beta2/team/TeamSchema.js +2 -0
  127. package/dist/constructs/v1beta2/team/TeamSchema.mjs +2 -0
  128. package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
  129. package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
  130. package/dist/constructs/v1beta2/user/User.d.mts +1831 -0
  131. package/dist/constructs/v1beta2/user/User.d.ts +1831 -0
  132. package/dist/constructs/v1beta2/user/User.js +1 -0
  133. package/dist/constructs/v1beta2/user/User.mjs +0 -0
  134. package/dist/constructs/v1beta2/user/UserSchema.d.mts +7 -0
  135. package/dist/constructs/v1beta2/user/UserSchema.d.ts +7 -0
  136. package/dist/constructs/v1beta2/user/UserSchema.js +2 -0
  137. package/dist/constructs/v1beta2/user/UserSchema.mjs +2 -0
  138. package/dist/constructs/v1beta2/view/View.d.mts +810 -0
  139. package/dist/constructs/v1beta2/view/View.d.ts +810 -0
  140. package/dist/constructs/v1beta2/view/View.js +1 -0
  141. package/dist/constructs/v1beta2/view/View.mjs +0 -0
  142. package/dist/constructs/v1beta2/view/ViewSchema.d.mts +7 -0
  143. package/dist/constructs/v1beta2/view/ViewSchema.d.ts +7 -0
  144. package/dist/constructs/v1beta2/view/ViewSchema.js +13 -0
  145. package/dist/constructs/v1beta2/view/ViewSchema.mjs +13 -0
  146. package/dist/constructs/v1beta3/component/Component.d.mts +796 -0
  147. package/dist/constructs/v1beta3/component/Component.d.ts +796 -0
  148. package/dist/constructs/v1beta3/component/Component.js +1 -0
  149. package/dist/constructs/v1beta3/component/Component.mjs +0 -0
  150. package/dist/constructs/v1beta3/component/ComponentSchema.d.mts +7 -0
  151. package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +7 -0
  152. package/dist/constructs/v1beta3/component/ComponentSchema.js +10 -0
  153. package/dist/constructs/v1beta3/component/ComponentSchema.mjs +10 -0
  154. package/dist/constructs/v1beta3/connection/Connection.d.mts +1348 -0
  155. package/dist/constructs/v1beta3/connection/Connection.d.ts +1348 -0
  156. package/dist/constructs/v1beta3/connection/Connection.js +1 -0
  157. package/dist/constructs/v1beta3/connection/Connection.mjs +0 -0
  158. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.mts +7 -0
  159. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +7 -0
  160. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +2 -0
  161. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +2 -0
  162. package/dist/constructs/v1beta3/design/Design.d.mts +17552 -0
  163. package/dist/constructs/v1beta3/design/Design.d.ts +17552 -0
  164. package/dist/constructs/v1beta3/design/Design.js +1 -0
  165. package/dist/constructs/v1beta3/design/Design.mjs +0 -0
  166. package/dist/constructs/v1beta3/design/DesignSchema.d.mts +7 -0
  167. package/dist/constructs/v1beta3/design/DesignSchema.d.ts +7 -0
  168. package/dist/constructs/v1beta3/design/DesignSchema.js +506 -0
  169. package/dist/constructs/v1beta3/design/DesignSchema.mjs +506 -0
  170. package/dist/constructs/v1beta3/environment/Environment.d.mts +800 -0
  171. package/dist/constructs/v1beta3/environment/Environment.d.ts +800 -0
  172. package/dist/constructs/v1beta3/environment/Environment.js +1 -0
  173. package/dist/constructs/v1beta3/environment/Environment.mjs +0 -0
  174. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.mts +7 -0
  175. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +7 -0
  176. package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +2 -0
  177. package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +2 -0
  178. package/dist/constructs/v1beta3/event/Event.d.mts +733 -0
  179. package/dist/constructs/v1beta3/event/Event.d.ts +733 -0
  180. package/dist/constructs/v1beta3/event/Event.js +1 -0
  181. package/dist/constructs/v1beta3/event/Event.mjs +0 -0
  182. package/dist/constructs/v1beta3/event/EventSchema.d.mts +7 -0
  183. package/dist/constructs/v1beta3/event/EventSchema.d.ts +7 -0
  184. package/dist/constructs/v1beta3/event/EventSchema.js +2 -0
  185. package/dist/constructs/v1beta3/event/EventSchema.mjs +2 -0
  186. package/dist/constructs/v1beta3/invitation/Invitation.d.mts +1079 -0
  187. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1079 -0
  188. package/dist/constructs/v1beta3/invitation/Invitation.js +1 -0
  189. package/dist/constructs/v1beta3/invitation/Invitation.mjs +0 -0
  190. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.mts +7 -0
  191. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +7 -0
  192. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +2 -0
  193. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +2 -0
  194. package/dist/constructs/v1beta3/plan/Plan.d.mts +198 -0
  195. package/dist/constructs/v1beta3/plan/Plan.d.ts +198 -0
  196. package/dist/constructs/v1beta3/plan/Plan.js +1 -0
  197. package/dist/constructs/v1beta3/plan/Plan.mjs +0 -0
  198. package/dist/constructs/v1beta3/plan/PlanSchema.d.mts +7 -0
  199. package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +7 -0
  200. package/dist/constructs/v1beta3/plan/PlanSchema.js +2 -0
  201. package/dist/constructs/v1beta3/plan/PlanSchema.mjs +2 -0
  202. package/dist/constructs/v1beta3/relationship/Relationship.d.mts +1884 -0
  203. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1884 -0
  204. package/dist/constructs/v1beta3/relationship/Relationship.js +1 -0
  205. package/dist/constructs/v1beta3/relationship/Relationship.mjs +0 -0
  206. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.mts +7 -0
  207. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +7 -0
  208. package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +155 -0
  209. package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +155 -0
  210. package/dist/constructs/v1beta3/subscription/Subscription.d.mts +876 -0
  211. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +876 -0
  212. package/dist/constructs/v1beta3/subscription/Subscription.js +1 -0
  213. package/dist/constructs/v1beta3/subscription/Subscription.mjs +0 -0
  214. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.mts +7 -0
  215. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +7 -0
  216. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +2 -0
  217. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +2 -0
  218. package/dist/constructs/v1beta3/token/Token.d.mts +543 -0
  219. package/dist/constructs/v1beta3/token/Token.d.ts +543 -0
  220. package/dist/constructs/v1beta3/token/Token.js +1 -0
  221. package/dist/constructs/v1beta3/token/Token.mjs +0 -0
  222. package/dist/constructs/v1beta3/token/TokenSchema.d.mts +7 -0
  223. package/dist/constructs/v1beta3/token/TokenSchema.d.ts +7 -0
  224. package/dist/constructs/v1beta3/token/TokenSchema.js +2 -0
  225. package/dist/constructs/v1beta3/token/TokenSchema.mjs +2 -0
  226. package/dist/constructs/v1beta3/workspace/Workspace.d.mts +4808 -0
  227. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4808 -0
  228. package/dist/constructs/v1beta3/workspace/Workspace.js +1 -0
  229. package/dist/constructs/v1beta3/workspace/Workspace.mjs +0 -0
  230. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.mts +7 -0
  231. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +7 -0
  232. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +98 -0
  233. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +98 -0
  234. package/dist/index.d.mts +10 -8
  235. package/dist/index.d.ts +10 -8
  236. package/dist/index.js +38 -10
  237. package/dist/index.mjs +38 -10
  238. package/dist/mesheryApi.d.mts +6405 -6244
  239. package/dist/mesheryApi.d.ts +6405 -6244
  240. package/dist/mesheryApi.js +1 -1
  241. package/dist/mesheryApi.mjs +1 -1
  242. package/package.json +1 -1
@@ -0,0 +1,751 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ interface paths {
6
+ "/api/identity/roles": {
7
+ /** Assigns a role to a user identified by email. */
8
+ post: operations["addRoleHolder"];
9
+ };
10
+ "/api/identity/roles/{roleId}": {
11
+ /** Removes a role assignment by ID. */
12
+ delete: operations["deleteRole"];
13
+ };
14
+ "/api/identity/orgs/{orgId}/roles": {
15
+ /** Returns all roles defined for the specified organization. */
16
+ get: operations["getAllRoles"];
17
+ /** Updates role assignments for multiple users in the organization. */
18
+ put: operations["bulkEditRoleHolder"];
19
+ /** Creates or updates a role for the specified organization. */
20
+ post: operations["upsertRole"];
21
+ };
22
+ "/api/identity/orgs/{orgId}/roles/{roleId}/keychains": {
23
+ /** Returns all keychains assigned to the specified role. */
24
+ get: operations["getRoleKeychains"];
25
+ };
26
+ "/api/identity/orgs/{orgId}/roles/{roleId}/keychains/{keychainId}": {
27
+ /** Associates a keychain with the specified role. */
28
+ post: operations["assignKeychainToRole"];
29
+ /** Removes the association between a keychain and a role. */
30
+ delete: operations["unassignKeychainFromRole"];
31
+ };
32
+ }
33
+ interface components {
34
+ schemas: {
35
+ /** @description Role definition for Layer5 Cloud (Meshery). */
36
+ Role: {
37
+ /**
38
+ * Format: uuid
39
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
40
+ */
41
+ id?: string;
42
+ /** @description Unique name of the role. */
43
+ roleName: string;
44
+ /** @description Human-readable description of the role. */
45
+ description: string;
46
+ /**
47
+ * Format: date-time
48
+ * @description Timestamp when the role was created.
49
+ */
50
+ createdAt?: string;
51
+ /**
52
+ * Format: date-time
53
+ * @description Timestamp when the role was last updated.
54
+ */
55
+ updatedAt?: string;
56
+ /**
57
+ * Format: date-time
58
+ * @description Timestamp when the role was soft-deleted, if applicable.
59
+ */
60
+ deletedAt?: string;
61
+ };
62
+ /** @description Payload for upserting a role. Includes only client-settable fields. */
63
+ RolePayload: {
64
+ /**
65
+ * Format: uuid
66
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
67
+ */
68
+ id?: string;
69
+ /** @description Unique name of the role. */
70
+ roleName: string;
71
+ /** @description Human-readable description of the role. */
72
+ description: string;
73
+ };
74
+ /** @description A paginated list of roles. */
75
+ RolesPage: {
76
+ /** @description Current page number (zero-based). */
77
+ page: number;
78
+ /** @description Number of roles per page. */
79
+ pageSize: number;
80
+ /** @description Total number of roles across all pages. */
81
+ totalCount: number;
82
+ /** @description The roles of the rolespage. */
83
+ roles: {
84
+ /**
85
+ * Format: uuid
86
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
87
+ */
88
+ id?: string;
89
+ /** @description Unique name of the role. */
90
+ roleName: string;
91
+ /** @description Human-readable description of the role. */
92
+ description: string;
93
+ /**
94
+ * Format: date-time
95
+ * @description Timestamp when the role was created.
96
+ */
97
+ createdAt?: string;
98
+ /**
99
+ * Format: date-time
100
+ * @description Timestamp when the role was last updated.
101
+ */
102
+ updatedAt?: string;
103
+ /**
104
+ * Format: date-time
105
+ * @description Timestamp when the role was soft-deleted, if applicable.
106
+ */
107
+ deletedAt?: string;
108
+ }[];
109
+ };
110
+ /** @description Mapping between a role and a keychain. */
111
+ RolesKeychainsMapping: {
112
+ /**
113
+ * Format: uuid
114
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
115
+ */
116
+ id: string;
117
+ /**
118
+ * Format: uuid
119
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
120
+ */
121
+ keychainId: string;
122
+ /**
123
+ * Format: uuid
124
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
125
+ */
126
+ roleId: string;
127
+ /**
128
+ * Format: date-time
129
+ * @description Timestamp when the mapping was created.
130
+ */
131
+ createdAt: string;
132
+ /**
133
+ * Format: date-time
134
+ * @description Timestamp when the mapping was last updated.
135
+ */
136
+ updatedAt: string;
137
+ /**
138
+ * Format: date-time
139
+ * @description Timestamp when the mapping was soft-deleted, if applicable.
140
+ */
141
+ deletedAt?: string;
142
+ };
143
+ /** @description Request body for assigning a role to a user. */
144
+ RoleHolderRequest: {
145
+ /**
146
+ * Format: email
147
+ * @description Email of the user to assign roles to.
148
+ */
149
+ email: string;
150
+ /** @description List of role names to assign. */
151
+ roleNames: string[];
152
+ };
153
+ /** @description Request to update role assignments for a user. */
154
+ UserRoleUpdateRequest: {
155
+ /**
156
+ * Format: uuid
157
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
158
+ */
159
+ id?: string;
160
+ /**
161
+ * Format: uuid
162
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
163
+ */
164
+ userId?: string;
165
+ /** @description The username of the user. */
166
+ username?: string;
167
+ /**
168
+ * Format: email
169
+ * @description Email address of the user.
170
+ */
171
+ email?: string;
172
+ /** @description First name of the user. */
173
+ firstName?: string;
174
+ /** @description Last name of the user. */
175
+ lastName?: string;
176
+ /** @description Current status of the user. */
177
+ status?: string;
178
+ /** @description Role names currently or newly assigned to the user. */
179
+ roleNames?: string[];
180
+ /**
181
+ * Format: date-time
182
+ * @description Timestamp when the user was created.
183
+ */
184
+ createdAt?: string;
185
+ /**
186
+ * Format: date-time
187
+ * @description Timestamp when the user was last updated.
188
+ */
189
+ updatedAt?: string;
190
+ /**
191
+ * Format: date-time
192
+ * @description Timestamp when the user was soft-deleted, if applicable.
193
+ */
194
+ deletedAt?: string;
195
+ };
196
+ /** @description User notification preferences. */
197
+ Preference: {
198
+ /** @description Whether to send a welcome email to new users. */
199
+ welcomeEmail: boolean;
200
+ /** @description Whether to notify the user of role changes. */
201
+ notifyRoleChange: boolean;
202
+ };
203
+ };
204
+ responses: {
205
+ /** Invalid request body or request param */
206
+ 400: {
207
+ content: {
208
+ "text/plain": string;
209
+ };
210
+ };
211
+ /** Expired JWT token used or insufficient privilege */
212
+ 401: {
213
+ content: {
214
+ "text/plain": string;
215
+ };
216
+ };
217
+ /** Result not found */
218
+ 404: {
219
+ content: {
220
+ "text/plain": string;
221
+ };
222
+ };
223
+ /** Internal server error */
224
+ 500: {
225
+ content: {
226
+ "text/plain": string;
227
+ };
228
+ };
229
+ };
230
+ parameters: {
231
+ /** @description Organization ID */
232
+ orgId: string;
233
+ /** @description Role ID */
234
+ roleId: string;
235
+ /** @description Keychain ID */
236
+ keychainId: string;
237
+ /** @description Get responses by page */
238
+ page: string;
239
+ /** @description Get responses by page size */
240
+ pageSize: string;
241
+ /** @description Get responses that match search param value */
242
+ search: string;
243
+ /** @description Get ordered responses */
244
+ order: string;
245
+ /** @description Get all possible entries */
246
+ all: boolean;
247
+ /** @description Role grouping selector such as provider, organization, or team. */
248
+ selector: string;
249
+ /** @description Team ID used when selector is team. */
250
+ teamIdQuery: string;
251
+ };
252
+ }
253
+ interface operations {
254
+ /** Assigns a role to a user identified by email. */
255
+ addRoleHolder: {
256
+ responses: {
257
+ /** Role holder added */
258
+ 201: unknown;
259
+ /** Invalid request body or request param */
260
+ 400: {
261
+ content: {
262
+ "text/plain": string;
263
+ };
264
+ };
265
+ /** Expired JWT token used or insufficient privilege */
266
+ 401: {
267
+ content: {
268
+ "text/plain": string;
269
+ };
270
+ };
271
+ /** Internal server error */
272
+ 500: {
273
+ content: {
274
+ "text/plain": string;
275
+ };
276
+ };
277
+ };
278
+ requestBody: {
279
+ content: {
280
+ "application/json": {
281
+ /**
282
+ * Format: email
283
+ * @description Email of the user to assign roles to.
284
+ */
285
+ email: string;
286
+ /** @description List of role names to assign. */
287
+ roleNames: string[];
288
+ };
289
+ };
290
+ };
291
+ };
292
+ /** Removes a role assignment by ID. */
293
+ deleteRole: {
294
+ parameters: {
295
+ path: {
296
+ /** Role ID */
297
+ roleId: string;
298
+ };
299
+ };
300
+ responses: {
301
+ /** Role deleted */
302
+ 204: never;
303
+ /** Invalid request body or request param */
304
+ 400: {
305
+ content: {
306
+ "text/plain": string;
307
+ };
308
+ };
309
+ /** Expired JWT token used or insufficient privilege */
310
+ 401: {
311
+ content: {
312
+ "text/plain": string;
313
+ };
314
+ };
315
+ /** Result not found */
316
+ 404: {
317
+ content: {
318
+ "text/plain": string;
319
+ };
320
+ };
321
+ /** Internal server error */
322
+ 500: {
323
+ content: {
324
+ "text/plain": string;
325
+ };
326
+ };
327
+ };
328
+ };
329
+ /** Returns all roles defined for the specified organization. */
330
+ getAllRoles: {
331
+ parameters: {
332
+ path: {
333
+ /** Organization ID */
334
+ orgId: string;
335
+ };
336
+ query: {
337
+ /** Get responses by page */
338
+ page?: string;
339
+ /** Get responses by page size */
340
+ pageSize?: string;
341
+ /** Get responses that match search param value */
342
+ search?: string;
343
+ /** Get ordered responses */
344
+ order?: string;
345
+ /** Get all possible entries */
346
+ all?: boolean;
347
+ /** Role grouping selector such as provider, organization, or team. */
348
+ selector?: string;
349
+ /** Team ID used when selector is team. */
350
+ teamId?: string;
351
+ };
352
+ };
353
+ responses: {
354
+ /** Roles response */
355
+ 200: {
356
+ content: {
357
+ "application/json": {
358
+ /** @description Current page number (zero-based). */
359
+ page: number;
360
+ /** @description Number of roles per page. */
361
+ pageSize: number;
362
+ /** @description Total number of roles across all pages. */
363
+ totalCount: number;
364
+ /** @description The roles of the rolespage. */
365
+ roles: {
366
+ /**
367
+ * Format: uuid
368
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
369
+ */
370
+ id?: string;
371
+ /** @description Unique name of the role. */
372
+ roleName: string;
373
+ /** @description Human-readable description of the role. */
374
+ description: string;
375
+ /**
376
+ * Format: date-time
377
+ * @description Timestamp when the role was created.
378
+ */
379
+ createdAt?: string;
380
+ /**
381
+ * Format: date-time
382
+ * @description Timestamp when the role was last updated.
383
+ */
384
+ updatedAt?: string;
385
+ /**
386
+ * Format: date-time
387
+ * @description Timestamp when the role was soft-deleted, if applicable.
388
+ */
389
+ deletedAt?: string;
390
+ }[];
391
+ };
392
+ };
393
+ };
394
+ /** Expired JWT token used or insufficient privilege */
395
+ 401: {
396
+ content: {
397
+ "text/plain": string;
398
+ };
399
+ };
400
+ /** Result not found */
401
+ 404: {
402
+ content: {
403
+ "text/plain": string;
404
+ };
405
+ };
406
+ /** Internal server error */
407
+ 500: {
408
+ content: {
409
+ "text/plain": string;
410
+ };
411
+ };
412
+ };
413
+ };
414
+ /** Updates role assignments for multiple users in the organization. */
415
+ bulkEditRoleHolder: {
416
+ parameters: {
417
+ path: {
418
+ /** Organization ID */
419
+ orgId: string;
420
+ };
421
+ };
422
+ responses: {
423
+ /** Role holders updated */
424
+ 200: unknown;
425
+ /** Invalid request body or request param */
426
+ 400: {
427
+ content: {
428
+ "text/plain": string;
429
+ };
430
+ };
431
+ /** Expired JWT token used or insufficient privilege */
432
+ 401: {
433
+ content: {
434
+ "text/plain": string;
435
+ };
436
+ };
437
+ /** Result not found */
438
+ 404: {
439
+ content: {
440
+ "text/plain": string;
441
+ };
442
+ };
443
+ /** Internal server error */
444
+ 500: {
445
+ content: {
446
+ "text/plain": string;
447
+ };
448
+ };
449
+ };
450
+ requestBody: {
451
+ content: {
452
+ "application/json": {
453
+ /**
454
+ * Format: uuid
455
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
456
+ */
457
+ id?: string;
458
+ /**
459
+ * Format: uuid
460
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
461
+ */
462
+ userId?: string;
463
+ /** @description The username of the user. */
464
+ username?: string;
465
+ /**
466
+ * Format: email
467
+ * @description Email address of the user.
468
+ */
469
+ email?: string;
470
+ /** @description First name of the user. */
471
+ firstName?: string;
472
+ /** @description Last name of the user. */
473
+ lastName?: string;
474
+ /** @description Current status of the user. */
475
+ status?: string;
476
+ /** @description Role names currently or newly assigned to the user. */
477
+ roleNames?: string[];
478
+ /**
479
+ * Format: date-time
480
+ * @description Timestamp when the user was created.
481
+ */
482
+ createdAt?: string;
483
+ /**
484
+ * Format: date-time
485
+ * @description Timestamp when the user was last updated.
486
+ */
487
+ updatedAt?: string;
488
+ /**
489
+ * Format: date-time
490
+ * @description Timestamp when the user was soft-deleted, if applicable.
491
+ */
492
+ deletedAt?: string;
493
+ }[];
494
+ };
495
+ };
496
+ };
497
+ /** Creates or updates a role for the specified organization. */
498
+ upsertRole: {
499
+ parameters: {
500
+ path: {
501
+ /** Organization ID */
502
+ orgId: string;
503
+ };
504
+ };
505
+ responses: {
506
+ /** Role upserted */
507
+ 200: {
508
+ content: {
509
+ "application/json": {
510
+ /**
511
+ * Format: uuid
512
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
513
+ */
514
+ id?: string;
515
+ /** @description Unique name of the role. */
516
+ roleName: string;
517
+ /** @description Human-readable description of the role. */
518
+ description: string;
519
+ /**
520
+ * Format: date-time
521
+ * @description Timestamp when the role was created.
522
+ */
523
+ createdAt?: string;
524
+ /**
525
+ * Format: date-time
526
+ * @description Timestamp when the role was last updated.
527
+ */
528
+ updatedAt?: string;
529
+ /**
530
+ * Format: date-time
531
+ * @description Timestamp when the role was soft-deleted, if applicable.
532
+ */
533
+ deletedAt?: string;
534
+ };
535
+ };
536
+ };
537
+ /** Invalid request body or request param */
538
+ 400: {
539
+ content: {
540
+ "text/plain": string;
541
+ };
542
+ };
543
+ /** Expired JWT token used or insufficient privilege */
544
+ 401: {
545
+ content: {
546
+ "text/plain": string;
547
+ };
548
+ };
549
+ /** Result not found */
550
+ 404: {
551
+ content: {
552
+ "text/plain": string;
553
+ };
554
+ };
555
+ /** Internal server error */
556
+ 500: {
557
+ content: {
558
+ "text/plain": string;
559
+ };
560
+ };
561
+ };
562
+ requestBody: {
563
+ content: {
564
+ "application/json": {
565
+ /**
566
+ * Format: uuid
567
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
568
+ */
569
+ id?: string;
570
+ /** @description Unique name of the role. */
571
+ roleName: string;
572
+ /** @description Human-readable description of the role. */
573
+ description: string;
574
+ };
575
+ };
576
+ };
577
+ };
578
+ /** Returns all keychains assigned to the specified role. */
579
+ getRoleKeychains: {
580
+ parameters: {
581
+ path: {
582
+ /** Organization ID */
583
+ orgId: string;
584
+ /** Role ID */
585
+ roleId: string;
586
+ };
587
+ query: {
588
+ /** Get responses by page */
589
+ page?: string;
590
+ /** Get responses by page size */
591
+ pageSize?: string;
592
+ /** Get responses that match search param value */
593
+ search?: string;
594
+ /** Get ordered responses */
595
+ order?: string;
596
+ };
597
+ };
598
+ responses: {
599
+ /** Keychains response */
600
+ 200: {
601
+ content: {
602
+ "application/json": {
603
+ page: number;
604
+ page_size: number;
605
+ total_count: number;
606
+ /** @description The keychains of the keychainpage. */
607
+ keychains: {
608
+ /**
609
+ * Format: uuid
610
+ * @description Unique identifier for the keychain.
611
+ */
612
+ id: string;
613
+ /** @description Name of the keychain. */
614
+ name: string;
615
+ /**
616
+ * Format: uuid
617
+ * @description Owner of the keychain.
618
+ */
619
+ owner: string;
620
+ /**
621
+ * Format: date-time
622
+ * @description Timestamp when the resource was created.
623
+ */
624
+ created_at: string;
625
+ /**
626
+ * Format: date-time
627
+ * @description Timestamp when the resource was updated.
628
+ */
629
+ updated_at: string;
630
+ /**
631
+ * Format: date-time
632
+ * @description SQL null Timestamp to handle null values of time.
633
+ */
634
+ deleted_at?: string;
635
+ }[];
636
+ };
637
+ };
638
+ };
639
+ /** Invalid request body or request param */
640
+ 400: {
641
+ content: {
642
+ "text/plain": string;
643
+ };
644
+ };
645
+ /** Expired JWT token used or insufficient privilege */
646
+ 401: {
647
+ content: {
648
+ "text/plain": string;
649
+ };
650
+ };
651
+ /** Result not found */
652
+ 404: {
653
+ content: {
654
+ "text/plain": string;
655
+ };
656
+ };
657
+ /** Internal server error */
658
+ 500: {
659
+ content: {
660
+ "text/plain": string;
661
+ };
662
+ };
663
+ };
664
+ };
665
+ /** Associates a keychain with the specified role. */
666
+ assignKeychainToRole: {
667
+ parameters: {
668
+ path: {
669
+ /** Organization ID */
670
+ orgId: string;
671
+ /** Role ID */
672
+ roleId: string;
673
+ /** Keychain ID */
674
+ keychainId: string;
675
+ };
676
+ };
677
+ responses: {
678
+ /** Keychain assigned to role */
679
+ 200: unknown;
680
+ /** Invalid request body or request param */
681
+ 400: {
682
+ content: {
683
+ "text/plain": string;
684
+ };
685
+ };
686
+ /** Expired JWT token used or insufficient privilege */
687
+ 401: {
688
+ content: {
689
+ "text/plain": string;
690
+ };
691
+ };
692
+ /** Result not found */
693
+ 404: {
694
+ content: {
695
+ "text/plain": string;
696
+ };
697
+ };
698
+ /** Internal server error */
699
+ 500: {
700
+ content: {
701
+ "text/plain": string;
702
+ };
703
+ };
704
+ };
705
+ };
706
+ /** Removes the association between a keychain and a role. */
707
+ unassignKeychainFromRole: {
708
+ parameters: {
709
+ path: {
710
+ /** Organization ID */
711
+ orgId: string;
712
+ /** Role ID */
713
+ roleId: string;
714
+ /** Keychain ID */
715
+ keychainId: string;
716
+ };
717
+ };
718
+ responses: {
719
+ /** Keychain unassigned from role */
720
+ 204: never;
721
+ /** Invalid request body or request param */
722
+ 400: {
723
+ content: {
724
+ "text/plain": string;
725
+ };
726
+ };
727
+ /** Expired JWT token used or insufficient privilege */
728
+ 401: {
729
+ content: {
730
+ "text/plain": string;
731
+ };
732
+ };
733
+ /** Result not found */
734
+ 404: {
735
+ content: {
736
+ "text/plain": string;
737
+ };
738
+ };
739
+ /** Internal server error */
740
+ 500: {
741
+ content: {
742
+ "text/plain": string;
743
+ };
744
+ };
745
+ };
746
+ };
747
+ }
748
+ interface external {
749
+ }
750
+
751
+ export type { components, external, operations, paths };