@meshery/schemas 1.0.9 → 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 (236) hide show
  1. package/README.md +4 -3
  2. package/dist/cloudApi.d.mts +16689 -16426
  3. package/dist/cloudApi.d.ts +16689 -16426
  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/ModelSchema.js +1 -1
  21. package/dist/constructs/v1beta1/model/ModelSchema.mjs +1 -1
  22. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  23. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  24. package/dist/constructs/v1beta1/pattern/PatternSchema.js +1 -1
  25. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +1 -1
  26. package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
  27. package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
  28. package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +1 -1
  29. package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +1 -1
  30. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  31. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  32. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  33. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  34. package/dist/constructs/v1beta1/view/ViewSchema.js +1 -1
  35. package/dist/constructs/v1beta1/view/ViewSchema.mjs +1 -1
  36. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
  37. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
  38. package/dist/constructs/v1beta2/badge/Badge.d.mts +564 -0
  39. package/dist/constructs/v1beta2/badge/Badge.d.ts +564 -0
  40. package/dist/constructs/v1beta2/badge/Badge.js +1 -0
  41. package/dist/constructs/v1beta2/badge/Badge.mjs +0 -0
  42. package/dist/constructs/v1beta2/badge/BadgeSchema.d.mts +7 -0
  43. package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +7 -0
  44. package/dist/constructs/v1beta2/badge/BadgeSchema.js +2 -0
  45. package/dist/constructs/v1beta2/badge/BadgeSchema.mjs +2 -0
  46. package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
  47. package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
  48. package/dist/constructs/v1beta2/credential/Credential.d.mts +536 -0
  49. package/dist/constructs/v1beta2/credential/Credential.d.ts +536 -0
  50. package/dist/constructs/v1beta2/credential/Credential.js +1 -0
  51. package/dist/constructs/v1beta2/credential/Credential.mjs +0 -0
  52. package/dist/constructs/v1beta2/credential/CredentialSchema.d.mts +7 -0
  53. package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +7 -0
  54. package/dist/constructs/v1beta2/credential/CredentialSchema.js +7 -0
  55. package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +7 -0
  56. package/dist/constructs/v1beta2/design/DesignSchema.js +10 -2
  57. package/dist/constructs/v1beta2/design/DesignSchema.mjs +10 -2
  58. package/dist/constructs/v1beta2/event/EventSchema.js +1 -1
  59. package/dist/constructs/v1beta2/event/EventSchema.mjs +1 -1
  60. package/dist/constructs/v1beta2/invitation/InvitationSchema.js +1 -1
  61. package/dist/constructs/v1beta2/invitation/InvitationSchema.mjs +1 -1
  62. package/dist/constructs/v1beta2/key/Key.d.mts +523 -0
  63. package/dist/constructs/v1beta2/key/Key.d.ts +523 -0
  64. package/dist/constructs/v1beta2/key/Key.js +1 -0
  65. package/dist/constructs/v1beta2/key/Key.mjs +0 -0
  66. package/dist/constructs/v1beta2/key/KeySchema.d.mts +7 -0
  67. package/dist/constructs/v1beta2/key/KeySchema.d.ts +7 -0
  68. package/dist/constructs/v1beta2/key/KeySchema.js +2 -0
  69. package/dist/constructs/v1beta2/key/KeySchema.mjs +2 -0
  70. package/dist/constructs/v1beta2/keychain/Keychain.d.mts +651 -0
  71. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +651 -0
  72. package/dist/constructs/v1beta2/keychain/Keychain.js +1 -0
  73. package/dist/constructs/v1beta2/keychain/Keychain.mjs +0 -0
  74. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.mts +7 -0
  75. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +7 -0
  76. package/dist/constructs/v1beta2/keychain/KeychainSchema.js +2 -0
  77. package/dist/constructs/v1beta2/keychain/KeychainSchema.mjs +2 -0
  78. package/dist/constructs/v1beta2/model/Model.d.mts +571 -0
  79. package/dist/constructs/v1beta2/model/Model.d.ts +571 -0
  80. package/dist/constructs/v1beta2/model/Model.js +1 -0
  81. package/dist/constructs/v1beta2/model/Model.mjs +0 -0
  82. package/dist/constructs/v1beta2/model/ModelSchema.d.mts +7 -0
  83. package/dist/constructs/v1beta2/model/ModelSchema.d.ts +7 -0
  84. package/dist/constructs/v1beta2/model/ModelSchema.js +6 -0
  85. package/dist/constructs/v1beta2/model/ModelSchema.mjs +6 -0
  86. package/dist/constructs/v1beta2/organization/Organization.d.mts +1986 -0
  87. package/dist/constructs/v1beta2/organization/Organization.d.ts +1986 -0
  88. package/dist/constructs/v1beta2/organization/Organization.js +1 -0
  89. package/dist/constructs/v1beta2/organization/Organization.mjs +0 -0
  90. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.mts +7 -0
  91. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +7 -0
  92. package/dist/constructs/v1beta2/organization/OrganizationSchema.js +2 -0
  93. package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +2 -0
  94. package/dist/constructs/v1beta2/plan/PlanSchema.js +1 -1
  95. package/dist/constructs/v1beta2/plan/PlanSchema.mjs +1 -1
  96. package/dist/constructs/v1beta2/role/Role.d.mts +751 -0
  97. package/dist/constructs/v1beta2/role/Role.d.ts +751 -0
  98. package/dist/constructs/v1beta2/role/Role.js +1 -0
  99. package/dist/constructs/v1beta2/role/Role.mjs +0 -0
  100. package/dist/constructs/v1beta2/role/RoleSchema.d.mts +7 -0
  101. package/dist/constructs/v1beta2/role/RoleSchema.d.ts +7 -0
  102. package/dist/constructs/v1beta2/role/RoleSchema.js +2 -0
  103. package/dist/constructs/v1beta2/role/RoleSchema.mjs +2 -0
  104. package/dist/constructs/v1beta2/schedule/Schedule.d.mts +380 -0
  105. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +380 -0
  106. package/dist/constructs/v1beta2/schedule/Schedule.js +1 -0
  107. package/dist/constructs/v1beta2/schedule/Schedule.mjs +0 -0
  108. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.mts +7 -0
  109. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +7 -0
  110. package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +13 -0
  111. package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +13 -0
  112. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.js +1 -1
  113. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.mjs +1 -1
  114. package/dist/constructs/v1beta2/team/Team.d.mts +939 -0
  115. package/dist/constructs/v1beta2/team/Team.d.ts +939 -0
  116. package/dist/constructs/v1beta2/team/Team.js +1 -0
  117. package/dist/constructs/v1beta2/team/Team.mjs +0 -0
  118. package/dist/constructs/v1beta2/team/TeamSchema.d.mts +7 -0
  119. package/dist/constructs/v1beta2/team/TeamSchema.d.ts +7 -0
  120. package/dist/constructs/v1beta2/team/TeamSchema.js +2 -0
  121. package/dist/constructs/v1beta2/team/TeamSchema.mjs +2 -0
  122. package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
  123. package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
  124. package/dist/constructs/v1beta2/user/User.d.mts +1831 -0
  125. package/dist/constructs/v1beta2/user/User.d.ts +1831 -0
  126. package/dist/constructs/v1beta2/user/User.js +1 -0
  127. package/dist/constructs/v1beta2/user/User.mjs +0 -0
  128. package/dist/constructs/v1beta2/user/UserSchema.d.mts +7 -0
  129. package/dist/constructs/v1beta2/user/UserSchema.d.ts +7 -0
  130. package/dist/constructs/v1beta2/user/UserSchema.js +2 -0
  131. package/dist/constructs/v1beta2/user/UserSchema.mjs +2 -0
  132. package/dist/constructs/v1beta2/view/View.d.mts +810 -0
  133. package/dist/constructs/v1beta2/view/View.d.ts +810 -0
  134. package/dist/constructs/v1beta2/view/View.js +1 -0
  135. package/dist/constructs/v1beta2/view/View.mjs +0 -0
  136. package/dist/constructs/v1beta2/view/ViewSchema.d.mts +7 -0
  137. package/dist/constructs/v1beta2/view/ViewSchema.d.ts +7 -0
  138. package/dist/constructs/v1beta2/view/ViewSchema.js +13 -0
  139. package/dist/constructs/v1beta2/view/ViewSchema.mjs +13 -0
  140. package/dist/constructs/v1beta3/component/Component.d.mts +796 -0
  141. package/dist/constructs/v1beta3/component/Component.d.ts +796 -0
  142. package/dist/constructs/v1beta3/component/Component.js +1 -0
  143. package/dist/constructs/v1beta3/component/Component.mjs +0 -0
  144. package/dist/constructs/v1beta3/component/ComponentSchema.d.mts +7 -0
  145. package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +7 -0
  146. package/dist/constructs/v1beta3/component/ComponentSchema.js +10 -0
  147. package/dist/constructs/v1beta3/component/ComponentSchema.mjs +10 -0
  148. package/dist/constructs/v1beta3/connection/Connection.d.mts +1348 -0
  149. package/dist/constructs/v1beta3/connection/Connection.d.ts +1348 -0
  150. package/dist/constructs/v1beta3/connection/Connection.js +1 -0
  151. package/dist/constructs/v1beta3/connection/Connection.mjs +0 -0
  152. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.mts +7 -0
  153. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +7 -0
  154. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +2 -0
  155. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +2 -0
  156. package/dist/constructs/v1beta3/design/Design.d.mts +17552 -0
  157. package/dist/constructs/v1beta3/design/Design.d.ts +17552 -0
  158. package/dist/constructs/v1beta3/design/Design.js +1 -0
  159. package/dist/constructs/v1beta3/design/Design.mjs +0 -0
  160. package/dist/constructs/v1beta3/design/DesignSchema.d.mts +7 -0
  161. package/dist/constructs/v1beta3/design/DesignSchema.d.ts +7 -0
  162. package/dist/constructs/v1beta3/design/DesignSchema.js +506 -0
  163. package/dist/constructs/v1beta3/design/DesignSchema.mjs +506 -0
  164. package/dist/constructs/v1beta3/environment/Environment.d.mts +800 -0
  165. package/dist/constructs/v1beta3/environment/Environment.d.ts +800 -0
  166. package/dist/constructs/v1beta3/environment/Environment.js +1 -0
  167. package/dist/constructs/v1beta3/environment/Environment.mjs +0 -0
  168. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.mts +7 -0
  169. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +7 -0
  170. package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +2 -0
  171. package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +2 -0
  172. package/dist/constructs/v1beta3/event/Event.d.mts +733 -0
  173. package/dist/constructs/v1beta3/event/Event.d.ts +733 -0
  174. package/dist/constructs/v1beta3/event/Event.js +1 -0
  175. package/dist/constructs/v1beta3/event/Event.mjs +0 -0
  176. package/dist/constructs/v1beta3/event/EventSchema.d.mts +7 -0
  177. package/dist/constructs/v1beta3/event/EventSchema.d.ts +7 -0
  178. package/dist/constructs/v1beta3/event/EventSchema.js +2 -0
  179. package/dist/constructs/v1beta3/event/EventSchema.mjs +2 -0
  180. package/dist/constructs/v1beta3/invitation/Invitation.d.mts +1079 -0
  181. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1079 -0
  182. package/dist/constructs/v1beta3/invitation/Invitation.js +1 -0
  183. package/dist/constructs/v1beta3/invitation/Invitation.mjs +0 -0
  184. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.mts +7 -0
  185. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +7 -0
  186. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +2 -0
  187. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +2 -0
  188. package/dist/constructs/v1beta3/plan/Plan.d.mts +198 -0
  189. package/dist/constructs/v1beta3/plan/Plan.d.ts +198 -0
  190. package/dist/constructs/v1beta3/plan/Plan.js +1 -0
  191. package/dist/constructs/v1beta3/plan/Plan.mjs +0 -0
  192. package/dist/constructs/v1beta3/plan/PlanSchema.d.mts +7 -0
  193. package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +7 -0
  194. package/dist/constructs/v1beta3/plan/PlanSchema.js +2 -0
  195. package/dist/constructs/v1beta3/plan/PlanSchema.mjs +2 -0
  196. package/dist/constructs/v1beta3/relationship/Relationship.d.mts +1884 -0
  197. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1884 -0
  198. package/dist/constructs/v1beta3/relationship/Relationship.js +1 -0
  199. package/dist/constructs/v1beta3/relationship/Relationship.mjs +0 -0
  200. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.mts +7 -0
  201. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +7 -0
  202. package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +155 -0
  203. package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +155 -0
  204. package/dist/constructs/v1beta3/subscription/Subscription.d.mts +876 -0
  205. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +876 -0
  206. package/dist/constructs/v1beta3/subscription/Subscription.js +1 -0
  207. package/dist/constructs/v1beta3/subscription/Subscription.mjs +0 -0
  208. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.mts +7 -0
  209. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +7 -0
  210. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +2 -0
  211. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +2 -0
  212. package/dist/constructs/v1beta3/token/Token.d.mts +543 -0
  213. package/dist/constructs/v1beta3/token/Token.d.ts +543 -0
  214. package/dist/constructs/v1beta3/token/Token.js +1 -0
  215. package/dist/constructs/v1beta3/token/Token.mjs +0 -0
  216. package/dist/constructs/v1beta3/token/TokenSchema.d.mts +7 -0
  217. package/dist/constructs/v1beta3/token/TokenSchema.d.ts +7 -0
  218. package/dist/constructs/v1beta3/token/TokenSchema.js +2 -0
  219. package/dist/constructs/v1beta3/token/TokenSchema.mjs +2 -0
  220. package/dist/constructs/v1beta3/workspace/Workspace.d.mts +4808 -0
  221. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4808 -0
  222. package/dist/constructs/v1beta3/workspace/Workspace.js +1 -0
  223. package/dist/constructs/v1beta3/workspace/Workspace.mjs +0 -0
  224. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.mts +7 -0
  225. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +7 -0
  226. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +98 -0
  227. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +98 -0
  228. package/dist/index.d.mts +10 -8
  229. package/dist/index.d.ts +10 -8
  230. package/dist/index.js +16 -8
  231. package/dist/index.mjs +16 -8
  232. package/dist/mesheryApi.d.mts +5552 -5394
  233. package/dist/mesheryApi.d.ts +5552 -5394
  234. package/dist/mesheryApi.js +1 -1
  235. package/dist/mesheryApi.mjs +1 -1
  236. package/package.json +1 -1
@@ -0,0 +1,810 @@
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/content/views": {
7
+ /** Returns a paginated list of views accessible to the user. */
8
+ get: operations["getViews"];
9
+ /** Creates a new view with the given filters and metadata. */
10
+ post: operations["createView"];
11
+ };
12
+ "/api/content/view/share": {
13
+ /**
14
+ * Shares a view with a list of email addresses. When `share` is true, the
15
+ * view's visibility is flipped to public and an invitation email is sent
16
+ * to each recipient. When `share` is false, visibility is reverted to
17
+ * private. Only the owner of the view (or a provider admin) may change
18
+ * its sharing mode.
19
+ */
20
+ post: operations["shareView"];
21
+ };
22
+ "/api/content/views/{viewId}": {
23
+ /** Returns a single view by its unique identifier. */
24
+ get: operations["getViewById"];
25
+ /** Updates an existing view with new filters, metadata, or visibility. */
26
+ put: operations["updateView"];
27
+ /** Soft-deletes a view by its unique identifier. */
28
+ delete: operations["deleteView"];
29
+ };
30
+ }
31
+ interface components {
32
+ schemas: {
33
+ /**
34
+ * MesheryView
35
+ * @description A saved view with filters and metadata that defines a customized perspective of Meshery resources. Learn more at https://docs.meshery.io/concepts/logical/views
36
+ * @example {
37
+ * "id": "00000000-0000-0000-0000-000000000000",
38
+ * "name": "My Kubernetes View",
39
+ * "visibility": "private",
40
+ * "filters": {},
41
+ * "metadata": {},
42
+ * "userId": "00000000-0000-0000-0000-000000000000",
43
+ * "createdAt": "0001-01-01T00:00:00Z",
44
+ * "updatedAt": "0001-01-01T00:00:00Z",
45
+ * "deletedAt": null
46
+ * }
47
+ */
48
+ MesheryView: {
49
+ /**
50
+ * Format: uuid
51
+ * @description Unique identifier for the view.
52
+ */
53
+ id: string;
54
+ /** @description Display name of the view. */
55
+ name: string;
56
+ /** @description Visibility level of the view. */
57
+ visibility: string;
58
+ /** @description Filter configuration that defines which resources this view displays. */
59
+ filters?: {
60
+ [key: string]: unknown;
61
+ };
62
+ /** @description Additional metadata associated with the view. */
63
+ metadata?: {
64
+ [key: string]: unknown;
65
+ };
66
+ /**
67
+ * Format: uuid
68
+ * @description ID of the user who created the view.
69
+ */
70
+ userId: string;
71
+ /**
72
+ * Format: date-time
73
+ * @description Timestamp when the view was created.
74
+ */
75
+ createdAt: string;
76
+ /**
77
+ * Format: date-time
78
+ * @description Timestamp when the view was last updated.
79
+ */
80
+ updatedAt: string;
81
+ /**
82
+ * Format: date-time
83
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
84
+ */
85
+ deletedAt?: string | null;
86
+ };
87
+ /** @description A view enriched with the workspace and organization it belongs to. */
88
+ MesheryViewWithLocation: {
89
+ /** Format: uuid */
90
+ id?: string;
91
+ /** @description Display name of the view. */
92
+ name?: string;
93
+ /** @description Visibility level of the view. */
94
+ visibility?: string;
95
+ /** @description Filter configuration for this view. */
96
+ filters?: {
97
+ [key: string]: unknown;
98
+ };
99
+ /** @description Metadata associated with the view. */
100
+ metadata?: {
101
+ [key: string]: unknown;
102
+ };
103
+ /**
104
+ * Format: uuid
105
+ * @description ID of the user who created the view.
106
+ */
107
+ userId?: string;
108
+ /** @description Name of the workspace this view belongs to. */
109
+ workspaceName?: string;
110
+ /**
111
+ * Format: uuid
112
+ * @description ID of the workspace this view belongs to.
113
+ */
114
+ workspaceId: string;
115
+ /**
116
+ * Format: uuid
117
+ * @description ID of the organization this view belongs to.
118
+ */
119
+ organizationId: string;
120
+ /** @description Name of the organization this view belongs to. */
121
+ organizationName?: string;
122
+ /**
123
+ * Format: date-time
124
+ * @description Timestamp when the view was created.
125
+ */
126
+ createdAt?: string;
127
+ /**
128
+ * Format: date-time
129
+ * @description Timestamp when the view was last updated.
130
+ */
131
+ updatedAt?: string;
132
+ /**
133
+ * Format: date-time
134
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
135
+ */
136
+ deletedAt?: string | null;
137
+ };
138
+ /** @description Payload for creating or updating a view. */
139
+ ViewPayload: {
140
+ /** @description Display name of the view. */
141
+ name: string;
142
+ /** @description Filter configuration for this view. */
143
+ filters?: {
144
+ [key: string]: unknown;
145
+ };
146
+ /** @description Visibility level of the view. */
147
+ visibility?: string;
148
+ /** @description Metadata associated with the view. */
149
+ metadata?: {
150
+ [key: string]: unknown;
151
+ };
152
+ };
153
+ /**
154
+ * @description Payload for sharing a view with one or more recipients by email. The
155
+ * wire format matches the canonical design share payload
156
+ * (`design.ContentSharePayload` in `v1beta2/design`), restricted to the
157
+ * `view` content type since that is all this endpoint accepts.
158
+ */
159
+ ContentSharePayload: {
160
+ /**
161
+ * Format: uuid
162
+ * @description Identifier of the view being shared.
163
+ */
164
+ contentId: string;
165
+ /**
166
+ * @description The kind of content being shared. Only `view` is accepted on this
167
+ * endpoint.
168
+ *
169
+ * @enum {string}
170
+ */
171
+ contentType: "view";
172
+ /** @description Email addresses of the recipients to share this view with. */
173
+ emails: string[];
174
+ /**
175
+ * @description When true, flip the view's visibility to public and send invitation
176
+ * emails to the recipients. When false, revert visibility to private.
177
+ */
178
+ share: boolean;
179
+ };
180
+ /** @description Paginated list of views with location enrichment. */
181
+ MesheryViewPage: {
182
+ /** @description Zero-based page index returned in this response. */
183
+ page?: number;
184
+ /** @description Maximum number of items returned on each page. */
185
+ pageSize?: number;
186
+ /** @description Total number of items across all pages. */
187
+ totalCount?: number;
188
+ /** @description Views in this page, enriched with workspace and organization context. */
189
+ views?: {
190
+ /** Format: uuid */
191
+ id?: string;
192
+ /** @description Display name of the view. */
193
+ name?: string;
194
+ /** @description Visibility level of the view. */
195
+ visibility?: string;
196
+ /** @description Filter configuration for this view. */
197
+ filters?: {
198
+ [key: string]: unknown;
199
+ };
200
+ /** @description Metadata associated with the view. */
201
+ metadata?: {
202
+ [key: string]: unknown;
203
+ };
204
+ /**
205
+ * Format: uuid
206
+ * @description ID of the user who created the view.
207
+ */
208
+ userId?: string;
209
+ /** @description Name of the workspace this view belongs to. */
210
+ workspaceName?: string;
211
+ /**
212
+ * Format: uuid
213
+ * @description ID of the workspace this view belongs to.
214
+ */
215
+ workspaceId: string;
216
+ /**
217
+ * Format: uuid
218
+ * @description ID of the organization this view belongs to.
219
+ */
220
+ organizationId: string;
221
+ /** @description Name of the organization this view belongs to. */
222
+ organizationName?: string;
223
+ /**
224
+ * Format: date-time
225
+ * @description Timestamp when the view was created.
226
+ */
227
+ createdAt?: string;
228
+ /**
229
+ * Format: date-time
230
+ * @description Timestamp when the view was last updated.
231
+ */
232
+ updatedAt?: string;
233
+ /**
234
+ * Format: date-time
235
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
236
+ */
237
+ deletedAt?: string | null;
238
+ }[];
239
+ };
240
+ };
241
+ responses: {
242
+ /** ok */
243
+ 200: {
244
+ content: {
245
+ "text/plain": string;
246
+ };
247
+ };
248
+ /** Invalid request body or request param */
249
+ 400: {
250
+ content: {
251
+ "text/plain": string;
252
+ };
253
+ };
254
+ /** Expired JWT token used or insufficient privilege */
255
+ 401: {
256
+ content: {
257
+ "text/plain": string;
258
+ };
259
+ };
260
+ /** Result not found */
261
+ 404: {
262
+ content: {
263
+ "text/plain": string;
264
+ };
265
+ };
266
+ /** Internal server error */
267
+ 500: {
268
+ content: {
269
+ "text/plain": string;
270
+ };
271
+ };
272
+ };
273
+ parameters: {
274
+ /** @description View ID */
275
+ viewId: string;
276
+ /** @description Get responses that match search param value */
277
+ search: string;
278
+ /** @description Get ordered responses */
279
+ order: string;
280
+ /** @description Get responses by page */
281
+ page: string;
282
+ /** @description Get responses by pagesize */
283
+ pagesize: string;
284
+ /** @description Organization ID to scope the request. */
285
+ orgIdQuery: string;
286
+ /** @description UUID of the user whose views to retrieve. */
287
+ userIdQuery: string;
288
+ };
289
+ requestBodies: {
290
+ /** Body for creating or updating a view */
291
+ viewPayload: {
292
+ content: {
293
+ "application/json": {
294
+ /** @description Display name of the view. */
295
+ name: string;
296
+ /** @description Filter configuration for this view. */
297
+ filters?: {
298
+ [key: string]: unknown;
299
+ };
300
+ /** @description Visibility level of the view. */
301
+ visibility?: string;
302
+ /** @description Metadata associated with the view. */
303
+ metadata?: {
304
+ [key: string]: unknown;
305
+ };
306
+ };
307
+ };
308
+ };
309
+ /** Body for sharing a view with recipients by email. */
310
+ contentSharePayload: {
311
+ content: {
312
+ "application/json": {
313
+ /**
314
+ * Format: uuid
315
+ * @description Identifier of the view being shared.
316
+ */
317
+ contentId: string;
318
+ /**
319
+ * @description The kind of content being shared. Only `view` is accepted on this
320
+ * endpoint.
321
+ *
322
+ * @enum {string}
323
+ */
324
+ contentType: "view";
325
+ /** @description Email addresses of the recipients to share this view with. */
326
+ emails: string[];
327
+ /**
328
+ * @description When true, flip the view's visibility to public and send invitation
329
+ * emails to the recipients. When false, revert visibility to private.
330
+ */
331
+ share: boolean;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ }
337
+ interface operations {
338
+ /** Returns a paginated list of views accessible to the user. */
339
+ getViews: {
340
+ parameters: {
341
+ query: {
342
+ /** Get responses that match search param value */
343
+ search?: string;
344
+ /** Get ordered responses */
345
+ order?: string;
346
+ /** Get responses by page */
347
+ page?: string;
348
+ /** Get responses by pagesize */
349
+ pagesize?: string;
350
+ /** JSON-encoded filter string for assignment and soft-delete filters. */
351
+ filter?: string;
352
+ /** When true, include views shared with the user. */
353
+ shared?: boolean;
354
+ /** Filter by visibility level (public, private). */
355
+ visibility?: string;
356
+ /** Organization ID to scope the request. */
357
+ orgId?: string;
358
+ /** UUID of the user whose views to retrieve. */
359
+ userId?: string;
360
+ };
361
+ };
362
+ responses: {
363
+ /** Views page */
364
+ 200: {
365
+ content: {
366
+ "application/json": {
367
+ /** @description Zero-based page index returned in this response. */
368
+ page?: number;
369
+ /** @description Maximum number of items returned on each page. */
370
+ pageSize?: number;
371
+ /** @description Total number of items across all pages. */
372
+ totalCount?: number;
373
+ /** @description Views in this page, enriched with workspace and organization context. */
374
+ views?: {
375
+ /** Format: uuid */
376
+ id?: string;
377
+ /** @description Display name of the view. */
378
+ name?: string;
379
+ /** @description Visibility level of the view. */
380
+ visibility?: string;
381
+ /** @description Filter configuration for this view. */
382
+ filters?: {
383
+ [key: string]: unknown;
384
+ };
385
+ /** @description Metadata associated with the view. */
386
+ metadata?: {
387
+ [key: string]: unknown;
388
+ };
389
+ /**
390
+ * Format: uuid
391
+ * @description ID of the user who created the view.
392
+ */
393
+ userId?: string;
394
+ /** @description Name of the workspace this view belongs to. */
395
+ workspaceName?: string;
396
+ /**
397
+ * Format: uuid
398
+ * @description ID of the workspace this view belongs to.
399
+ */
400
+ workspaceId: string;
401
+ /**
402
+ * Format: uuid
403
+ * @description ID of the organization this view belongs to.
404
+ */
405
+ organizationId: string;
406
+ /** @description Name of the organization this view belongs to. */
407
+ organizationName?: string;
408
+ /**
409
+ * Format: date-time
410
+ * @description Timestamp when the view was created.
411
+ */
412
+ createdAt?: string;
413
+ /**
414
+ * Format: date-time
415
+ * @description Timestamp when the view was last updated.
416
+ */
417
+ updatedAt?: string;
418
+ /**
419
+ * Format: date-time
420
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
421
+ */
422
+ deletedAt?: string | null;
423
+ }[];
424
+ };
425
+ };
426
+ };
427
+ /** Expired JWT token used or insufficient privilege */
428
+ 401: {
429
+ content: {
430
+ "text/plain": string;
431
+ };
432
+ };
433
+ /** Internal server error */
434
+ 500: {
435
+ content: {
436
+ "text/plain": string;
437
+ };
438
+ };
439
+ };
440
+ };
441
+ /** Creates a new view with the given filters and metadata. */
442
+ createView: {
443
+ responses: {
444
+ /** Created view */
445
+ 201: {
446
+ content: {
447
+ "application/json": {
448
+ /**
449
+ * Format: uuid
450
+ * @description Unique identifier for the view.
451
+ */
452
+ id: string;
453
+ /** @description Display name of the view. */
454
+ name: string;
455
+ /** @description Visibility level of the view. */
456
+ visibility: string;
457
+ /** @description Filter configuration that defines which resources this view displays. */
458
+ filters?: {
459
+ [key: string]: unknown;
460
+ };
461
+ /** @description Additional metadata associated with the view. */
462
+ metadata?: {
463
+ [key: string]: unknown;
464
+ };
465
+ /**
466
+ * Format: uuid
467
+ * @description ID of the user who created the view.
468
+ */
469
+ userId: string;
470
+ /**
471
+ * Format: date-time
472
+ * @description Timestamp when the view was created.
473
+ */
474
+ createdAt: string;
475
+ /**
476
+ * Format: date-time
477
+ * @description Timestamp when the view was last updated.
478
+ */
479
+ updatedAt: string;
480
+ /**
481
+ * Format: date-time
482
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
483
+ */
484
+ deletedAt?: string | null;
485
+ };
486
+ };
487
+ };
488
+ /** Invalid request body or request param */
489
+ 400: {
490
+ content: {
491
+ "text/plain": string;
492
+ };
493
+ };
494
+ /** Expired JWT token used or insufficient privilege */
495
+ 401: {
496
+ content: {
497
+ "text/plain": string;
498
+ };
499
+ };
500
+ /** Internal server error */
501
+ 500: {
502
+ content: {
503
+ "text/plain": string;
504
+ };
505
+ };
506
+ };
507
+ /** Body for creating or updating a view */
508
+ requestBody: {
509
+ content: {
510
+ "application/json": {
511
+ /** @description Display name of the view. */
512
+ name: string;
513
+ /** @description Filter configuration for this view. */
514
+ filters?: {
515
+ [key: string]: unknown;
516
+ };
517
+ /** @description Visibility level of the view. */
518
+ visibility?: string;
519
+ /** @description Metadata associated with the view. */
520
+ metadata?: {
521
+ [key: string]: unknown;
522
+ };
523
+ };
524
+ };
525
+ };
526
+ };
527
+ /**
528
+ * Shares a view with a list of email addresses. When `share` is true, the
529
+ * view's visibility is flipped to public and an invitation email is sent
530
+ * to each recipient. When `share` is false, visibility is reverted to
531
+ * private. Only the owner of the view (or a provider admin) may change
532
+ * its sharing mode.
533
+ */
534
+ shareView: {
535
+ responses: {
536
+ /** View shared. */
537
+ 200: unknown;
538
+ /** Invalid request body or request param */
539
+ 400: {
540
+ content: {
541
+ "text/plain": string;
542
+ };
543
+ };
544
+ /** Expired JWT token used or insufficient privilege */
545
+ 401: {
546
+ content: {
547
+ "text/plain": string;
548
+ };
549
+ };
550
+ /** Caller is not the owner of the view. */
551
+ 403: unknown;
552
+ /** Result not found */
553
+ 404: {
554
+ content: {
555
+ "text/plain": string;
556
+ };
557
+ };
558
+ /** Internal server error */
559
+ 500: {
560
+ content: {
561
+ "text/plain": string;
562
+ };
563
+ };
564
+ };
565
+ /** Body for sharing a view with recipients by email. */
566
+ requestBody: {
567
+ content: {
568
+ "application/json": {
569
+ /**
570
+ * Format: uuid
571
+ * @description Identifier of the view being shared.
572
+ */
573
+ contentId: string;
574
+ /**
575
+ * @description The kind of content being shared. Only `view` is accepted on this
576
+ * endpoint.
577
+ *
578
+ * @enum {string}
579
+ */
580
+ contentType: "view";
581
+ /** @description Email addresses of the recipients to share this view with. */
582
+ emails: string[];
583
+ /**
584
+ * @description When true, flip the view's visibility to public and send invitation
585
+ * emails to the recipients. When false, revert visibility to private.
586
+ */
587
+ share: boolean;
588
+ };
589
+ };
590
+ };
591
+ };
592
+ /** Returns a single view by its unique identifier. */
593
+ getViewById: {
594
+ parameters: {
595
+ path: {
596
+ /** View ID */
597
+ viewId: string;
598
+ };
599
+ };
600
+ responses: {
601
+ /** View */
602
+ 200: {
603
+ content: {
604
+ "application/json": {
605
+ /**
606
+ * Format: uuid
607
+ * @description Unique identifier for the view.
608
+ */
609
+ id: string;
610
+ /** @description Display name of the view. */
611
+ name: string;
612
+ /** @description Visibility level of the view. */
613
+ visibility: string;
614
+ /** @description Filter configuration that defines which resources this view displays. */
615
+ filters?: {
616
+ [key: string]: unknown;
617
+ };
618
+ /** @description Additional metadata associated with the view. */
619
+ metadata?: {
620
+ [key: string]: unknown;
621
+ };
622
+ /**
623
+ * Format: uuid
624
+ * @description ID of the user who created the view.
625
+ */
626
+ userId: string;
627
+ /**
628
+ * Format: date-time
629
+ * @description Timestamp when the view was created.
630
+ */
631
+ createdAt: string;
632
+ /**
633
+ * Format: date-time
634
+ * @description Timestamp when the view was last updated.
635
+ */
636
+ updatedAt: string;
637
+ /**
638
+ * Format: date-time
639
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
640
+ */
641
+ deletedAt?: string | null;
642
+ };
643
+ };
644
+ };
645
+ /** Invalid request body or request param */
646
+ 400: {
647
+ content: {
648
+ "text/plain": string;
649
+ };
650
+ };
651
+ /** Expired JWT token used or insufficient privilege */
652
+ 401: {
653
+ content: {
654
+ "text/plain": string;
655
+ };
656
+ };
657
+ /** Result not found */
658
+ 404: {
659
+ content: {
660
+ "text/plain": string;
661
+ };
662
+ };
663
+ /** Internal server error */
664
+ 500: {
665
+ content: {
666
+ "text/plain": string;
667
+ };
668
+ };
669
+ };
670
+ };
671
+ /** Updates an existing view with new filters, metadata, or visibility. */
672
+ updateView: {
673
+ parameters: {
674
+ path: {
675
+ /** View ID */
676
+ viewId: string;
677
+ };
678
+ };
679
+ responses: {
680
+ /** Updated view */
681
+ 200: {
682
+ content: {
683
+ "application/json": {
684
+ /**
685
+ * Format: uuid
686
+ * @description Unique identifier for the view.
687
+ */
688
+ id: string;
689
+ /** @description Display name of the view. */
690
+ name: string;
691
+ /** @description Visibility level of the view. */
692
+ visibility: string;
693
+ /** @description Filter configuration that defines which resources this view displays. */
694
+ filters?: {
695
+ [key: string]: unknown;
696
+ };
697
+ /** @description Additional metadata associated with the view. */
698
+ metadata?: {
699
+ [key: string]: unknown;
700
+ };
701
+ /**
702
+ * Format: uuid
703
+ * @description ID of the user who created the view.
704
+ */
705
+ userId: string;
706
+ /**
707
+ * Format: date-time
708
+ * @description Timestamp when the view was created.
709
+ */
710
+ createdAt: string;
711
+ /**
712
+ * Format: date-time
713
+ * @description Timestamp when the view was last updated.
714
+ */
715
+ updatedAt: string;
716
+ /**
717
+ * Format: date-time
718
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
719
+ */
720
+ deletedAt?: string | null;
721
+ };
722
+ };
723
+ };
724
+ /** Invalid request body or request param */
725
+ 400: {
726
+ content: {
727
+ "text/plain": string;
728
+ };
729
+ };
730
+ /** Expired JWT token used or insufficient privilege */
731
+ 401: {
732
+ content: {
733
+ "text/plain": string;
734
+ };
735
+ };
736
+ /** Result not found */
737
+ 404: {
738
+ content: {
739
+ "text/plain": string;
740
+ };
741
+ };
742
+ /** Internal server error */
743
+ 500: {
744
+ content: {
745
+ "text/plain": string;
746
+ };
747
+ };
748
+ };
749
+ /** Body for creating or updating a view */
750
+ requestBody: {
751
+ content: {
752
+ "application/json": {
753
+ /** @description Display name of the view. */
754
+ name: string;
755
+ /** @description Filter configuration for this view. */
756
+ filters?: {
757
+ [key: string]: unknown;
758
+ };
759
+ /** @description Visibility level of the view. */
760
+ visibility?: string;
761
+ /** @description Metadata associated with the view. */
762
+ metadata?: {
763
+ [key: string]: unknown;
764
+ };
765
+ };
766
+ };
767
+ };
768
+ };
769
+ /** Soft-deletes a view by its unique identifier. */
770
+ deleteView: {
771
+ parameters: {
772
+ path: {
773
+ /** View ID */
774
+ viewId: string;
775
+ };
776
+ };
777
+ responses: {
778
+ /** View deleted */
779
+ 204: never;
780
+ /** Invalid request body or request param */
781
+ 400: {
782
+ content: {
783
+ "text/plain": string;
784
+ };
785
+ };
786
+ /** Expired JWT token used or insufficient privilege */
787
+ 401: {
788
+ content: {
789
+ "text/plain": string;
790
+ };
791
+ };
792
+ /** Result not found */
793
+ 404: {
794
+ content: {
795
+ "text/plain": string;
796
+ };
797
+ };
798
+ /** Internal server error */
799
+ 500: {
800
+ content: {
801
+ "text/plain": string;
802
+ };
803
+ };
804
+ };
805
+ };
806
+ }
807
+ interface external {
808
+ }
809
+
810
+ export type { components, external, operations, paths };