@meshery/schemas 1.2.15 → 1.2.16

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