@meshery/schemas 1.2.22 → 1.2.23

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 (88) hide show
  1. package/dist/cloudApi.d.mts +1719 -1518
  2. package/dist/cloudApi.d.ts +1719 -1518
  3. package/dist/cloudApi.js +1 -1
  4. package/dist/cloudApi.mjs +1 -1
  5. package/dist/constructs/v1alpha1/capability/Capability.d.ts +111 -106
  6. package/dist/constructs/v1alpha1/core/Core.d.ts +734 -822
  7. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +40 -45
  8. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1716 -1829
  9. package/dist/constructs/v1beta1/academy/Academy.d.ts +6648 -6029
  10. package/dist/constructs/v1beta1/badge/Badge.d.ts +600 -439
  11. package/dist/constructs/v1beta1/capability/Capability.d.ts +111 -106
  12. package/dist/constructs/v1beta1/catalog/Catalog.d.ts +40 -45
  13. package/dist/constructs/v1beta1/category/Category.d.ts +26 -38
  14. package/dist/constructs/v1beta1/component/Component.d.ts +729 -833
  15. package/dist/constructs/v1beta1/connection/Connection.d.ts +1357 -1170
  16. package/dist/constructs/v1beta1/core/Core.d.ts +734 -822
  17. package/dist/constructs/v1beta1/credential/Credential.d.ts +593 -458
  18. package/dist/constructs/v1beta1/environment/Environment.d.ts +835 -666
  19. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +5508 -6030
  20. package/dist/constructs/v1beta1/event/Event.d.ts +898 -527
  21. package/dist/constructs/v1beta1/feature/Feature.d.ts +287 -249
  22. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +1244 -877
  23. package/dist/constructs/v1beta1/key/Key.d.ts +589 -444
  24. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +796 -575
  25. package/dist/constructs/v1beta1/model/Model.d.ts +572 -598
  26. package/dist/constructs/v1beta1/organization/Organization.d.ts +1829 -1410
  27. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +17093 -17910
  28. package/dist/constructs/v1beta1/plan/Plan.d.ts +159 -115
  29. package/dist/constructs/v1beta1/role/Role.d.ts +933 -688
  30. package/dist/constructs/v1beta1/schedule/Schedule.d.ts +425 -315
  31. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +18 -61
  32. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +839 -674
  33. package/dist/constructs/v1beta1/support/Support.d.ts +115 -74
  34. package/dist/constructs/v1beta1/system/System.d.ts +434 -0
  35. package/dist/constructs/v1beta1/system/System.js +1 -0
  36. package/dist/constructs/v1beta1/system/System.mjs +0 -0
  37. package/dist/constructs/v1beta1/system/SystemSchema.d.ts +2 -0
  38. package/dist/constructs/v1beta1/system/SystemSchema.js +2 -0
  39. package/dist/constructs/v1beta1/system/SystemSchema.mjs +2 -0
  40. package/dist/constructs/v1beta1/team/Team.d.ts +1028 -762
  41. package/dist/constructs/v1beta1/token/Token.d.ts +612 -475
  42. package/dist/constructs/v1beta1/user/User.d.ts +1723 -1554
  43. package/dist/constructs/v1beta1/view/View.d.ts +833 -664
  44. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4900 -4695
  45. package/dist/constructs/v1beta2/academy/Academy.d.ts +7840 -7222
  46. package/dist/constructs/v1beta2/badge/Badge.d.ts +610 -453
  47. package/dist/constructs/v1beta2/catalog/Catalog.d.ts +40 -45
  48. package/dist/constructs/v1beta2/component/Component.d.ts +747 -851
  49. package/dist/constructs/v1beta2/connection/Connection.d.ts +1376 -1189
  50. package/dist/constructs/v1beta2/core/Core.d.ts +768 -856
  51. package/dist/constructs/v1beta2/credential/Credential.d.ts +572 -437
  52. package/dist/constructs/v1beta2/design/Design.d.ts +17682 -18467
  53. package/dist/constructs/v1beta2/event/Event.d.ts +946 -575
  54. package/dist/constructs/v1beta2/invitation/Invitation.d.ts +1268 -901
  55. package/dist/constructs/v1beta2/key/Key.d.ts +599 -454
  56. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +806 -585
  57. package/dist/constructs/v1beta2/model/Model.d.ts +610 -636
  58. package/dist/constructs/v1beta2/organization/Organization.d.ts +2135 -1724
  59. package/dist/constructs/v1beta2/plan/Plan.d.ts +169 -128
  60. package/dist/constructs/v1beta2/relationship/Relationship.d.ts +1842 -2011
  61. package/dist/constructs/v1beta2/role/Role.d.ts +940 -695
  62. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +466 -356
  63. package/dist/constructs/v1beta2/subscription/Subscription.d.ts +866 -701
  64. package/dist/constructs/v1beta2/team/Team.d.ts +1118 -852
  65. package/dist/constructs/v1beta2/token/Token.d.ts +616 -479
  66. package/dist/constructs/v1beta2/user/User.d.ts +1723 -1554
  67. package/dist/constructs/v1beta2/view/View.d.ts +838 -669
  68. package/dist/constructs/v1beta3/academy/Academy.d.ts +7836 -7218
  69. package/dist/constructs/v1beta3/component/Component.d.ts +753 -857
  70. package/dist/constructs/v1beta3/connection/Connection.d.ts +1447 -1260
  71. package/dist/constructs/v1beta3/design/Design.d.ts +5727 -5305
  72. package/dist/constructs/v1beta3/environment/Environment.d.ts +858 -689
  73. package/dist/constructs/v1beta3/event/Event.d.ts +1041 -666
  74. package/dist/constructs/v1beta3/filter/Filter.d.ts +1437 -1299
  75. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1277 -910
  76. package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +850 -690
  77. package/dist/constructs/v1beta3/plan/Plan.d.ts +197 -156
  78. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1842 -2011
  79. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +969 -804
  80. package/dist/constructs/v1beta3/token/Token.d.ts +616 -479
  81. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +5030 -4822
  82. package/dist/index.d.mts +5480 -5022
  83. package/dist/index.d.ts +5480 -5022
  84. package/dist/mesheryApi.d.mts +1314 -522
  85. package/dist/mesheryApi.d.ts +1314 -522
  86. package/dist/mesheryApi.js +1 -1
  87. package/dist/mesheryApi.mjs +1 -1
  88. package/package.json +1 -2
@@ -4,426 +4,102 @@
4
4
  */
5
5
 
6
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 };
7
+ "/api/content/views": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
190
14
  /**
191
- * Format: uuid
192
- * @description ID of the user who created the view.
15
+ * Get views
16
+ * @description Returns a paginated list of views accessible to the user.
193
17
  */
194
- userId?: string;
195
- /** @description Name of the workspace this view belongs to. */
196
- workspaceName?: string;
18
+ get: operations["getViews"];
19
+ put?: never;
197
20
  /**
198
- * Format: uuid
199
- * @description ID of the workspace this view belongs to.
21
+ * Create a view
22
+ * @description Creates a new view with the given filters and metadata.
200
23
  */
201
- workspaceId: string;
24
+ post: operations["createView"];
25
+ delete?: never;
26
+ options?: never;
27
+ head?: never;
28
+ patch?: never;
29
+ trace?: never;
30
+ };
31
+ "/api/content/view/share": {
32
+ parameters: {
33
+ query?: never;
34
+ header?: never;
35
+ path?: never;
36
+ cookie?: never;
37
+ };
38
+ get?: never;
39
+ put?: never;
202
40
  /**
203
- * Format: uuid
204
- * @description ID of the organization this view belongs to.
41
+ * Share a view by email
42
+ * @description Shares a view with a list of email addresses. When `share` is true, the
43
+ * view's visibility is flipped to public and an invitation email is sent
44
+ * to each recipient. When `share` is false, visibility is reverted to
45
+ * private. Only the owner of the view (or a provider admin) may change
46
+ * its sharing mode.
205
47
  */
206
- organizationId: string;
207
- /** @description Name of the organization this view belongs to. */
208
- organizationName?: string;
48
+ post: operations["shareView"];
49
+ delete?: never;
50
+ options?: never;
51
+ head?: never;
52
+ patch?: never;
53
+ trace?: never;
54
+ };
55
+ "/api/content/views/{viewId}": {
56
+ parameters: {
57
+ query?: never;
58
+ header?: never;
59
+ path?: never;
60
+ cookie?: never;
61
+ };
209
62
  /**
210
- * Format: date-time
211
- * @description Timestamp when the view was created.
63
+ * Get a view by ID
64
+ * @description Returns a single view by its unique identifier.
212
65
  */
213
- createdAt?: string;
66
+ get: operations["getViewById"];
214
67
  /**
215
- * Format: date-time
216
- * @description Timestamp when the view was last updated.
68
+ * Update a view
69
+ * @description Updates an existing view with new filters, metadata, or visibility.
217
70
  */
218
- updatedAt?: string;
71
+ put: operations["updateView"];
72
+ post?: never;
219
73
  /**
220
- * Format: date-time
221
- * @description Timestamp when the view was soft deleted. Null while the view remains active.
74
+ * Delete a view
75
+ * @description Soft-deletes a view by its unique identifier.
222
76
  */
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
- };
77
+ delete: operations["deleteView"];
78
+ options?: never;
79
+ head?: never;
80
+ patch?: never;
81
+ trace?: never;
290
82
  };
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
83
  }
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": {
84
+ export type webhooks = Record<string, never>;
85
+ export interface components {
86
+ schemas: {
87
+ /**
88
+ * MesheryView
89
+ * @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
90
+ * @example {
91
+ * "id": "00000000-0000-0000-0000-000000000000",
92
+ * "name": "My Kubernetes View",
93
+ * "visibility": "private",
94
+ * "filters": {},
95
+ * "metadata": {},
96
+ * "userId": "00000000-0000-0000-0000-000000000000",
97
+ * "createdAt": "0001-01-01T00:00:00Z",
98
+ * "updatedAt": "0001-01-01T00:00:00Z",
99
+ * "deletedAt": null
100
+ * }
101
+ */
102
+ MesheryView: {
427
103
  /**
428
104
  * Format: uuid
429
105
  * @description Unique identifier for the view.
@@ -434,9 +110,9 @@ export interface operations {
434
110
  /** @description Visibility level of the view. */
435
111
  visibility: string;
436
112
  /** @description Filter configuration that defines which resources this view displays. */
437
- filters?: { [key: string]: unknown };
113
+ filters?: Record<string, never>;
438
114
  /** @description Additional metadata associated with the view. */
439
- metadata?: { [key: string]: unknown };
115
+ metadata?: Record<string, never>;
440
116
  /**
441
117
  * Format: uuid
442
118
  * @description ID of the user who created the view.
@@ -457,311 +133,804 @@ export interface operations {
457
133
  * @description Timestamp when the view was soft deleted. Null while the view remains active.
458
134
  */
459
135
  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
136
  };
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;
137
+ /** @description A view enriched with the workspace and organization it belongs to. */
138
+ MesheryViewWithLocation: {
139
+ /** Format: uuid */
140
+ id?: string;
581
141
  /** @description Display name of the view. */
582
- name: string;
142
+ name?: string;
583
143
  /** @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 };
144
+ visibility?: string;
145
+ /** @description Filter configuration for this view. */
146
+ filters?: Record<string, never>;
147
+ /** @description Metadata associated with the view. */
148
+ metadata?: Record<string, never>;
589
149
  /**
590
150
  * Format: uuid
591
151
  * @description ID of the user who created the view.
592
152
  */
593
- userId: string;
153
+ userId?: string;
154
+ /** @description Name of the workspace this view belongs to. */
155
+ workspaceName?: string;
156
+ /**
157
+ * Format: uuid
158
+ * @description ID of the workspace this view belongs to.
159
+ */
160
+ workspaceId: string;
161
+ /**
162
+ * Format: uuid
163
+ * @description ID of the organization this view belongs to.
164
+ */
165
+ organizationId: string;
166
+ /** @description Name of the organization this view belongs to. */
167
+ organizationName?: string;
594
168
  /**
595
169
  * Format: date-time
596
170
  * @description Timestamp when the view was created.
597
171
  */
598
- createdAt: string;
172
+ createdAt?: string;
599
173
  /**
600
174
  * Format: date-time
601
175
  * @description Timestamp when the view was last updated.
602
176
  */
603
- updatedAt: string;
177
+ updatedAt?: string;
604
178
  /**
605
179
  * Format: date-time
606
180
  * @description Timestamp when the view was soft deleted. Null while the view remains active.
607
181
  */
608
182
  deletedAt?: string | null;
609
- };
610
183
  };
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;
184
+ /** @description Payload for creating or updating a view. */
185
+ ViewPayload: {
656
186
  /** @description Display name of the view. */
657
187
  name: string;
188
+ /** @description Filter configuration for this view. */
189
+ filters?: Record<string, never>;
658
190
  /** @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 };
191
+ visibility?: string;
192
+ /** @description Metadata associated with the view. */
193
+ metadata?: Record<string, never>;
194
+ };
195
+ /**
196
+ * @description Payload for sharing a view with one or more recipients by email. The
197
+ * wire format matches the canonical design share payload
198
+ * (`design.ContentSharePayload` in `v1beta2/design`), restricted to the
199
+ * `view` content type since that is all this endpoint accepts.
200
+ */
201
+ ContentSharePayload: {
664
202
  /**
665
203
  * 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.
204
+ * @description Identifier of the view being shared.
672
205
  */
673
- createdAt: string;
206
+ contentId: string;
674
207
  /**
675
- * Format: date-time
676
- * @description Timestamp when the view was last updated.
208
+ * @description The kind of content being shared. Only `view` is accepted on this
209
+ * endpoint.
210
+ * @enum {string}
677
211
  */
678
- updatedAt: string;
212
+ contentType: "view";
213
+ /** @description Email addresses of the recipients to share this view with. */
214
+ emails: string[];
679
215
  /**
680
- * Format: date-time
681
- * @description Timestamp when the view was soft deleted. Null while the view remains active.
216
+ * @description When true, flip the view's visibility to public and send invitation
217
+ * emails to the recipients. When false, revert visibility to private.
682
218
  */
683
- deletedAt?: string | null;
684
- };
219
+ share: boolean;
685
220
  };
686
- };
687
- /** Invalid request body or request param */
688
- 400: {
689
- content: {
690
- "text/plain": string;
221
+ /** @description Paginated list of views with location enrichment. */
222
+ MesheryViewPage: {
223
+ /** @description Zero-based page index returned in this response. */
224
+ page?: number;
225
+ /** @description Maximum number of items returned on each page. */
226
+ pageSize?: number;
227
+ /** @description Total number of items across all pages. */
228
+ totalCount?: number;
229
+ /** @description Views in this page, enriched with workspace and organization context. */
230
+ views?: {
231
+ /** Format: uuid */
232
+ id?: string;
233
+ /** @description Display name of the view. */
234
+ name?: string;
235
+ /** @description Visibility level of the view. */
236
+ visibility?: string;
237
+ /** @description Filter configuration for this view. */
238
+ filters?: Record<string, never>;
239
+ /** @description Metadata associated with the view. */
240
+ metadata?: Record<string, never>;
241
+ /**
242
+ * Format: uuid
243
+ * @description ID of the user who created the view.
244
+ */
245
+ userId?: string;
246
+ /** @description Name of the workspace this view belongs to. */
247
+ workspaceName?: string;
248
+ /**
249
+ * Format: uuid
250
+ * @description ID of the workspace this view belongs to.
251
+ */
252
+ workspaceId: string;
253
+ /**
254
+ * Format: uuid
255
+ * @description ID of the organization this view belongs to.
256
+ */
257
+ organizationId: string;
258
+ /** @description Name of the organization this view belongs to. */
259
+ organizationName?: string;
260
+ /**
261
+ * Format: date-time
262
+ * @description Timestamp when the view was created.
263
+ */
264
+ createdAt?: string;
265
+ /**
266
+ * Format: date-time
267
+ * @description Timestamp when the view was last updated.
268
+ */
269
+ updatedAt?: string;
270
+ /**
271
+ * Format: date-time
272
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
273
+ */
274
+ deletedAt?: string | null;
275
+ }[];
691
276
  };
692
- };
693
- /** Expired JWT token used or insufficient privilege */
694
- 401: {
695
- content: {
696
- "text/plain": string;
277
+ };
278
+ responses: {
279
+ /** @description ok */
280
+ 200: {
281
+ headers: {
282
+ [name: string]: unknown;
283
+ };
284
+ content: {
285
+ "text/plain": string;
286
+ };
697
287
  };
698
- };
699
- /** Result not found */
700
- 404: {
701
- content: {
702
- "text/plain": string;
288
+ /** @description Invalid request body or request param */
289
+ 400: {
290
+ headers: {
291
+ [name: string]: unknown;
292
+ };
293
+ content: {
294
+ "text/plain": string;
295
+ };
703
296
  };
704
- };
705
- /** Internal server error */
706
- 500: {
707
- content: {
708
- "text/plain": string;
297
+ /** @description Expired JWT token used or insufficient privilege */
298
+ 401: {
299
+ headers: {
300
+ [name: string]: unknown;
301
+ };
302
+ content: {
303
+ "text/plain": string;
304
+ };
709
305
  };
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 };
306
+ /** @description Result not found */
307
+ 404: {
308
+ headers: {
309
+ [name: string]: unknown;
310
+ };
311
+ content: {
312
+ "text/plain": string;
313
+ };
314
+ };
315
+ /** @description Internal server error */
316
+ 500: {
317
+ headers: {
318
+ [name: string]: unknown;
319
+ };
320
+ content: {
321
+ "text/plain": string;
322
+ };
724
323
  };
725
- };
726
324
  };
727
- };
728
- /** Soft-deletes a view by its unique identifier. */
729
- deleteView: {
730
325
  parameters: {
731
- path: {
732
- /** View ID */
326
+ /** @description View ID */
733
327
  viewId: string;
734
- };
328
+ /** @description Get responses that match search param value */
329
+ search: string;
330
+ /** @description Get ordered responses */
331
+ order: string;
332
+ /** @description Get responses by page */
333
+ page: string;
334
+ /** @description Get responses by pagesize */
335
+ pagesize: string;
336
+ /** @description Organization ID to scope the request. */
337
+ orgIdQuery: string;
338
+ /** @description UUID of the user whose views to retrieve. */
339
+ userIdQuery: string;
735
340
  };
736
- responses: {
737
- /** View deleted */
738
- 204: never;
739
- /** Invalid request body or request param */
740
- 400: {
741
- content: {
742
- "text/plain": string;
341
+ requestBodies: {
342
+ /** @description Body for creating or updating a view */
343
+ viewPayload: {
344
+ content: {
345
+ "application/json": {
346
+ /** @description Display name of the view. */
347
+ name: string;
348
+ /** @description Filter configuration for this view. */
349
+ filters?: Record<string, never>;
350
+ /** @description Visibility level of the view. */
351
+ visibility?: string;
352
+ /** @description Metadata associated with the view. */
353
+ metadata?: Record<string, never>;
354
+ };
355
+ };
743
356
  };
744
- };
745
- /** Expired JWT token used or insufficient privilege */
746
- 401: {
747
- content: {
748
- "text/plain": string;
357
+ /** @description Body for sharing a view with recipients by email. */
358
+ contentSharePayload: {
359
+ content: {
360
+ "application/json": {
361
+ /**
362
+ * Format: uuid
363
+ * @description Identifier of the view being shared.
364
+ */
365
+ contentId: string;
366
+ /**
367
+ * @description The kind of content being shared. Only `view` is accepted on this
368
+ * endpoint.
369
+ * @enum {string}
370
+ */
371
+ contentType: "view";
372
+ /** @description Email addresses of the recipients to share this view with. */
373
+ emails: string[];
374
+ /**
375
+ * @description When true, flip the view's visibility to public and send invitation
376
+ * emails to the recipients. When false, revert visibility to private.
377
+ */
378
+ share: boolean;
379
+ };
380
+ };
749
381
  };
750
- };
751
- /** Result not found */
752
- 404: {
753
- content: {
754
- "text/plain": string;
382
+ };
383
+ headers: never;
384
+ pathItems: never;
385
+ }
386
+ export type $defs = Record<string, never>;
387
+ export interface operations {
388
+ getViews: {
389
+ parameters: {
390
+ query?: {
391
+ /** @description Get responses that match search param value */
392
+ search?: string;
393
+ /** @description Get ordered responses */
394
+ order?: string;
395
+ /** @description Get responses by page */
396
+ page?: string;
397
+ /** @description Get responses by pagesize */
398
+ pagesize?: string;
399
+ /** @description JSON-encoded filter string for assignment and soft-delete filters. */
400
+ filter?: string;
401
+ /** @description When true, include views shared with the user. */
402
+ shared?: boolean;
403
+ /** @description Filter by visibility level (public, private). */
404
+ visibility?: string;
405
+ /** @description Organization ID to scope the request. */
406
+ orgId?: string;
407
+ /** @description UUID of the user whose views to retrieve. */
408
+ userId?: string;
409
+ };
410
+ header?: never;
411
+ path?: never;
412
+ cookie?: never;
755
413
  };
756
- };
757
- /** Internal server error */
758
- 500: {
759
- content: {
760
- "text/plain": string;
414
+ requestBody?: never;
415
+ responses: {
416
+ /** @description Views page */
417
+ 200: {
418
+ headers: {
419
+ [name: string]: unknown;
420
+ };
421
+ content: {
422
+ "application/json": {
423
+ /** @description Zero-based page index returned in this response. */
424
+ page?: number;
425
+ /** @description Maximum number of items returned on each page. */
426
+ pageSize?: number;
427
+ /** @description Total number of items across all pages. */
428
+ totalCount?: number;
429
+ /** @description Views in this page, enriched with workspace and organization context. */
430
+ views?: {
431
+ /** Format: uuid */
432
+ id?: string;
433
+ /** @description Display name of the view. */
434
+ name?: string;
435
+ /** @description Visibility level of the view. */
436
+ visibility?: string;
437
+ /** @description Filter configuration for this view. */
438
+ filters?: Record<string, never>;
439
+ /** @description Metadata associated with the view. */
440
+ metadata?: Record<string, never>;
441
+ /**
442
+ * Format: uuid
443
+ * @description ID of the user who created the view.
444
+ */
445
+ userId?: string;
446
+ /** @description Name of the workspace this view belongs to. */
447
+ workspaceName?: string;
448
+ /**
449
+ * Format: uuid
450
+ * @description ID of the workspace this view belongs to.
451
+ */
452
+ workspaceId: string;
453
+ /**
454
+ * Format: uuid
455
+ * @description ID of the organization this view belongs to.
456
+ */
457
+ organizationId: string;
458
+ /** @description Name of the organization this view belongs to. */
459
+ organizationName?: string;
460
+ /**
461
+ * Format: date-time
462
+ * @description Timestamp when the view was created.
463
+ */
464
+ createdAt?: string;
465
+ /**
466
+ * Format: date-time
467
+ * @description Timestamp when the view was last updated.
468
+ */
469
+ updatedAt?: string;
470
+ /**
471
+ * Format: date-time
472
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
473
+ */
474
+ deletedAt?: string | null;
475
+ }[];
476
+ };
477
+ };
478
+ };
479
+ /** @description Expired JWT token used or insufficient privilege */
480
+ 401: {
481
+ headers: {
482
+ [name: string]: unknown;
483
+ };
484
+ content: {
485
+ "text/plain": string;
486
+ };
487
+ };
488
+ /** @description Internal server error */
489
+ 500: {
490
+ headers: {
491
+ [name: string]: unknown;
492
+ };
493
+ content: {
494
+ "text/plain": string;
495
+ };
496
+ };
497
+ };
498
+ };
499
+ createView: {
500
+ parameters: {
501
+ query?: never;
502
+ header?: never;
503
+ path?: never;
504
+ cookie?: never;
505
+ };
506
+ /** @description Body for creating or updating a view */
507
+ requestBody: {
508
+ content: {
509
+ "application/json": {
510
+ /** @description Display name of the view. */
511
+ name: string;
512
+ /** @description Filter configuration for this view. */
513
+ filters?: Record<string, never>;
514
+ /** @description Visibility level of the view. */
515
+ visibility?: string;
516
+ /** @description Metadata associated with the view. */
517
+ metadata?: Record<string, never>;
518
+ };
519
+ };
520
+ };
521
+ responses: {
522
+ /** @description Created view */
523
+ 201: {
524
+ headers: {
525
+ [name: string]: unknown;
526
+ };
527
+ content: {
528
+ "application/json": {
529
+ /**
530
+ * Format: uuid
531
+ * @description Unique identifier for the view.
532
+ */
533
+ id: string;
534
+ /** @description Display name of the view. */
535
+ name: string;
536
+ /** @description Visibility level of the view. */
537
+ visibility: string;
538
+ /** @description Filter configuration that defines which resources this view displays. */
539
+ filters?: Record<string, never>;
540
+ /** @description Additional metadata associated with the view. */
541
+ metadata?: Record<string, never>;
542
+ /**
543
+ * Format: uuid
544
+ * @description ID of the user who created the view.
545
+ */
546
+ userId: string;
547
+ /**
548
+ * Format: date-time
549
+ * @description Timestamp when the view was created.
550
+ */
551
+ createdAt: string;
552
+ /**
553
+ * Format: date-time
554
+ * @description Timestamp when the view was last updated.
555
+ */
556
+ updatedAt: string;
557
+ /**
558
+ * Format: date-time
559
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
560
+ */
561
+ deletedAt?: string | null;
562
+ };
563
+ };
564
+ };
565
+ /** @description Invalid request body or request param */
566
+ 400: {
567
+ headers: {
568
+ [name: string]: unknown;
569
+ };
570
+ content: {
571
+ "text/plain": string;
572
+ };
573
+ };
574
+ /** @description Expired JWT token used or insufficient privilege */
575
+ 401: {
576
+ headers: {
577
+ [name: string]: unknown;
578
+ };
579
+ content: {
580
+ "text/plain": string;
581
+ };
582
+ };
583
+ /** @description Internal server error */
584
+ 500: {
585
+ headers: {
586
+ [name: string]: unknown;
587
+ };
588
+ content: {
589
+ "text/plain": string;
590
+ };
591
+ };
592
+ };
593
+ };
594
+ shareView: {
595
+ parameters: {
596
+ query?: never;
597
+ header?: never;
598
+ path?: never;
599
+ cookie?: never;
600
+ };
601
+ /** @description Body for sharing a view with recipients by email. */
602
+ requestBody: {
603
+ content: {
604
+ "application/json": {
605
+ /**
606
+ * Format: uuid
607
+ * @description Identifier of the view being shared.
608
+ */
609
+ contentId: string;
610
+ /**
611
+ * @description The kind of content being shared. Only `view` is accepted on this
612
+ * endpoint.
613
+ * @enum {string}
614
+ */
615
+ contentType: "view";
616
+ /** @description Email addresses of the recipients to share this view with. */
617
+ emails: string[];
618
+ /**
619
+ * @description When true, flip the view's visibility to public and send invitation
620
+ * emails to the recipients. When false, revert visibility to private.
621
+ */
622
+ share: boolean;
623
+ };
624
+ };
625
+ };
626
+ responses: {
627
+ /** @description View shared. */
628
+ 200: {
629
+ headers: {
630
+ [name: string]: unknown;
631
+ };
632
+ content?: never;
633
+ };
634
+ /** @description Invalid request body or request param */
635
+ 400: {
636
+ headers: {
637
+ [name: string]: unknown;
638
+ };
639
+ content: {
640
+ "text/plain": string;
641
+ };
642
+ };
643
+ /** @description Expired JWT token used or insufficient privilege */
644
+ 401: {
645
+ headers: {
646
+ [name: string]: unknown;
647
+ };
648
+ content: {
649
+ "text/plain": string;
650
+ };
651
+ };
652
+ /** @description Caller is not the owner of the view. */
653
+ 403: {
654
+ headers: {
655
+ [name: string]: unknown;
656
+ };
657
+ content?: never;
658
+ };
659
+ /** @description Result not found */
660
+ 404: {
661
+ headers: {
662
+ [name: string]: unknown;
663
+ };
664
+ content: {
665
+ "text/plain": string;
666
+ };
667
+ };
668
+ /** @description Internal server error */
669
+ 500: {
670
+ headers: {
671
+ [name: string]: unknown;
672
+ };
673
+ content: {
674
+ "text/plain": string;
675
+ };
676
+ };
677
+ };
678
+ };
679
+ getViewById: {
680
+ parameters: {
681
+ query?: never;
682
+ header?: never;
683
+ path: {
684
+ /** @description View ID */
685
+ viewId: string;
686
+ };
687
+ cookie?: never;
688
+ };
689
+ requestBody?: never;
690
+ responses: {
691
+ /** @description View */
692
+ 200: {
693
+ headers: {
694
+ [name: string]: unknown;
695
+ };
696
+ content: {
697
+ "application/json": {
698
+ /**
699
+ * Format: uuid
700
+ * @description Unique identifier for the view.
701
+ */
702
+ id: string;
703
+ /** @description Display name of the view. */
704
+ name: string;
705
+ /** @description Visibility level of the view. */
706
+ visibility: string;
707
+ /** @description Filter configuration that defines which resources this view displays. */
708
+ filters?: Record<string, never>;
709
+ /** @description Additional metadata associated with the view. */
710
+ metadata?: Record<string, never>;
711
+ /**
712
+ * Format: uuid
713
+ * @description ID of the user who created the view.
714
+ */
715
+ userId: string;
716
+ /**
717
+ * Format: date-time
718
+ * @description Timestamp when the view was created.
719
+ */
720
+ createdAt: string;
721
+ /**
722
+ * Format: date-time
723
+ * @description Timestamp when the view was last updated.
724
+ */
725
+ updatedAt: string;
726
+ /**
727
+ * Format: date-time
728
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
729
+ */
730
+ deletedAt?: string | null;
731
+ };
732
+ };
733
+ };
734
+ /** @description Invalid request body or request param */
735
+ 400: {
736
+ headers: {
737
+ [name: string]: unknown;
738
+ };
739
+ content: {
740
+ "text/plain": string;
741
+ };
742
+ };
743
+ /** @description Expired JWT token used or insufficient privilege */
744
+ 401: {
745
+ headers: {
746
+ [name: string]: unknown;
747
+ };
748
+ content: {
749
+ "text/plain": string;
750
+ };
751
+ };
752
+ /** @description Result not found */
753
+ 404: {
754
+ headers: {
755
+ [name: string]: unknown;
756
+ };
757
+ content: {
758
+ "text/plain": string;
759
+ };
760
+ };
761
+ /** @description Internal server error */
762
+ 500: {
763
+ headers: {
764
+ [name: string]: unknown;
765
+ };
766
+ content: {
767
+ "text/plain": string;
768
+ };
769
+ };
770
+ };
771
+ };
772
+ updateView: {
773
+ parameters: {
774
+ query?: never;
775
+ header?: never;
776
+ path: {
777
+ /** @description View ID */
778
+ viewId: string;
779
+ };
780
+ cookie?: never;
781
+ };
782
+ /** @description Body for creating or updating a view */
783
+ requestBody: {
784
+ content: {
785
+ "application/json": {
786
+ /** @description Display name of the view. */
787
+ name: string;
788
+ /** @description Filter configuration for this view. */
789
+ filters?: Record<string, never>;
790
+ /** @description Visibility level of the view. */
791
+ visibility?: string;
792
+ /** @description Metadata associated with the view. */
793
+ metadata?: Record<string, never>;
794
+ };
795
+ };
796
+ };
797
+ responses: {
798
+ /** @description Updated view */
799
+ 200: {
800
+ headers: {
801
+ [name: string]: unknown;
802
+ };
803
+ content: {
804
+ "application/json": {
805
+ /**
806
+ * Format: uuid
807
+ * @description Unique identifier for the view.
808
+ */
809
+ id: string;
810
+ /** @description Display name of the view. */
811
+ name: string;
812
+ /** @description Visibility level of the view. */
813
+ visibility: string;
814
+ /** @description Filter configuration that defines which resources this view displays. */
815
+ filters?: Record<string, never>;
816
+ /** @description Additional metadata associated with the view. */
817
+ metadata?: Record<string, never>;
818
+ /**
819
+ * Format: uuid
820
+ * @description ID of the user who created the view.
821
+ */
822
+ userId: string;
823
+ /**
824
+ * Format: date-time
825
+ * @description Timestamp when the view was created.
826
+ */
827
+ createdAt: string;
828
+ /**
829
+ * Format: date-time
830
+ * @description Timestamp when the view was last updated.
831
+ */
832
+ updatedAt: string;
833
+ /**
834
+ * Format: date-time
835
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
836
+ */
837
+ deletedAt?: string | null;
838
+ };
839
+ };
840
+ };
841
+ /** @description Invalid request body or request param */
842
+ 400: {
843
+ headers: {
844
+ [name: string]: unknown;
845
+ };
846
+ content: {
847
+ "text/plain": string;
848
+ };
849
+ };
850
+ /** @description Expired JWT token used or insufficient privilege */
851
+ 401: {
852
+ headers: {
853
+ [name: string]: unknown;
854
+ };
855
+ content: {
856
+ "text/plain": string;
857
+ };
858
+ };
859
+ /** @description Result not found */
860
+ 404: {
861
+ headers: {
862
+ [name: string]: unknown;
863
+ };
864
+ content: {
865
+ "text/plain": string;
866
+ };
867
+ };
868
+ /** @description Internal server error */
869
+ 500: {
870
+ headers: {
871
+ [name: string]: unknown;
872
+ };
873
+ content: {
874
+ "text/plain": string;
875
+ };
876
+ };
877
+ };
878
+ };
879
+ deleteView: {
880
+ parameters: {
881
+ query?: never;
882
+ header?: never;
883
+ path: {
884
+ /** @description View ID */
885
+ viewId: string;
886
+ };
887
+ cookie?: never;
888
+ };
889
+ requestBody?: never;
890
+ responses: {
891
+ /** @description View deleted */
892
+ 204: {
893
+ headers: {
894
+ [name: string]: unknown;
895
+ };
896
+ content?: never;
897
+ };
898
+ /** @description Invalid request body or request param */
899
+ 400: {
900
+ headers: {
901
+ [name: string]: unknown;
902
+ };
903
+ content: {
904
+ "text/plain": string;
905
+ };
906
+ };
907
+ /** @description Expired JWT token used or insufficient privilege */
908
+ 401: {
909
+ headers: {
910
+ [name: string]: unknown;
911
+ };
912
+ content: {
913
+ "text/plain": string;
914
+ };
915
+ };
916
+ /** @description Result not found */
917
+ 404: {
918
+ headers: {
919
+ [name: string]: unknown;
920
+ };
921
+ content: {
922
+ "text/plain": string;
923
+ };
924
+ };
925
+ /** @description Internal server error */
926
+ 500: {
927
+ headers: {
928
+ [name: string]: unknown;
929
+ };
930
+ content: {
931
+ "text/plain": string;
932
+ };
933
+ };
761
934
  };
762
- };
763
935
  };
764
- };
765
936
  }
766
-
767
- export interface external {}