@meshery/schemas 1.3.8 → 1.4.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 (103) hide show
  1. package/dist/cloudApi.d.mts +4154 -1704
  2. package/dist/cloudApi.d.ts +4154 -1704
  3. package/dist/cloudApi.js +1 -1
  4. package/dist/cloudApi.mjs +1 -1
  5. package/dist/constructs/v1alpha1/capability/Capability.d.ts +106 -111
  6. package/dist/constructs/v1alpha1/core/Core.d.ts +822 -734
  7. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +45 -40
  8. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1829 -1716
  9. package/dist/constructs/v1beta1/academy/Academy.d.ts +6023 -6642
  10. package/dist/constructs/v1beta1/badge/Badge.d.ts +439 -600
  11. package/dist/constructs/v1beta1/capability/Capability.d.ts +106 -111
  12. package/dist/constructs/v1beta1/catalog/Catalog.d.ts +45 -40
  13. package/dist/constructs/v1beta1/category/Category.d.ts +38 -26
  14. package/dist/constructs/v1beta1/component/Component.d.ts +833 -729
  15. package/dist/constructs/v1beta1/connection/Connection.d.ts +1170 -1357
  16. package/dist/constructs/v1beta1/core/Core.d.ts +822 -734
  17. package/dist/constructs/v1beta1/credential/Credential.d.ts +458 -593
  18. package/dist/constructs/v1beta1/environment/Environment.d.ts +666 -835
  19. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +6142 -5619
  20. package/dist/constructs/v1beta1/event/Event.d.ts +527 -898
  21. package/dist/constructs/v1beta1/feature/Feature.d.ts +343 -389
  22. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +877 -1244
  23. package/dist/constructs/v1beta1/key/Key.d.ts +444 -589
  24. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +575 -796
  25. package/dist/constructs/v1beta1/model/Model.d.ts +598 -572
  26. package/dist/constructs/v1beta1/organization/Organization.d.ts +1410 -1829
  27. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +17988 -17171
  28. package/dist/constructs/v1beta1/plan/Plan.d.ts +115 -159
  29. package/dist/constructs/v1beta1/role/Role.d.ts +688 -933
  30. package/dist/constructs/v1beta1/schedule/Schedule.d.ts +315 -425
  31. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +61 -18
  32. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +674 -839
  33. package/dist/constructs/v1beta1/support/Support.d.ts +74 -115
  34. package/dist/constructs/v1beta1/system/System.d.ts +250 -385
  35. package/dist/constructs/v1beta1/team/Team.d.ts +762 -1028
  36. package/dist/constructs/v1beta1/token/Token.d.ts +475 -612
  37. package/dist/constructs/v1beta1/user/User.d.ts +1553 -1722
  38. package/dist/constructs/v1beta1/view/View.d.ts +664 -833
  39. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4705 -4910
  40. package/dist/constructs/v1beta2/academy/Academy.d.ts +7246 -7864
  41. package/dist/constructs/v1beta2/badge/Badge.d.ts +453 -610
  42. package/dist/constructs/v1beta2/catalog/Catalog.d.ts +45 -40
  43. package/dist/constructs/v1beta2/component/Component.d.ts +851 -747
  44. package/dist/constructs/v1beta2/connection/Connection.d.ts +1189 -1376
  45. package/dist/constructs/v1beta2/core/Core.d.ts +856 -768
  46. package/dist/constructs/v1beta2/credential/Credential.d.ts +437 -572
  47. package/dist/constructs/v1beta2/design/Design.d.ts +18631 -17846
  48. package/dist/constructs/v1beta2/event/Event.d.ts +575 -946
  49. package/dist/constructs/v1beta2/invitation/Invitation.d.ts +901 -1268
  50. package/dist/constructs/v1beta2/key/Key.d.ts +454 -599
  51. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +585 -806
  52. package/dist/constructs/v1beta2/model/Model.d.ts +636 -610
  53. package/dist/constructs/v1beta2/organization/Organization.d.ts +2017 -2458
  54. package/dist/constructs/v1beta2/plan/Plan.d.ts +128 -169
  55. package/dist/constructs/v1beta2/relationship/Relationship.d.ts +2013 -1844
  56. package/dist/constructs/v1beta2/role/Role.d.ts +695 -940
  57. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +356 -466
  58. package/dist/constructs/v1beta2/subscription/Subscription.d.ts +701 -866
  59. package/dist/constructs/v1beta2/team/Team.d.ts +852 -1118
  60. package/dist/constructs/v1beta2/token/Token.d.ts +479 -616
  61. package/dist/constructs/v1beta2/user/User.d.ts +1553 -1722
  62. package/dist/constructs/v1beta2/view/View.d.ts +669 -838
  63. package/dist/constructs/v1beta3/academy/Academy.d.ts +7246 -7864
  64. package/dist/constructs/v1beta3/academy/AcademySchema.js +1 -1
  65. package/dist/constructs/v1beta3/academy/AcademySchema.mjs +1 -1
  66. package/dist/constructs/v1beta3/component/Component.d.ts +857 -753
  67. package/dist/constructs/v1beta3/connection/Connection.d.ts +5919 -1416
  68. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +25 -1
  69. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +25 -1
  70. package/dist/constructs/v1beta3/design/Design.d.ts +5297 -5719
  71. package/dist/constructs/v1beta3/design/DesignSchema.js +2 -2
  72. package/dist/constructs/v1beta3/design/DesignSchema.mjs +2 -2
  73. package/dist/constructs/v1beta3/environment/Environment.d.ts +689 -858
  74. package/dist/constructs/v1beta3/event/Event.d.ts +666 -1041
  75. package/dist/constructs/v1beta3/event/EventSchema.js +1 -1
  76. package/dist/constructs/v1beta3/event/EventSchema.mjs +1 -1
  77. package/dist/constructs/v1beta3/filter/Filter.d.ts +1300 -1438
  78. package/dist/constructs/v1beta3/filter/FilterSchema.js +7 -7
  79. package/dist/constructs/v1beta3/filter/FilterSchema.mjs +7 -7
  80. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +911 -1278
  81. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
  82. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
  83. package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +1114 -1412
  84. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.js +1 -1
  85. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.mjs +1 -1
  86. package/dist/constructs/v1beta3/plan/Plan.d.ts +156 -197
  87. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +2013 -1844
  88. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +804 -969
  89. package/dist/constructs/v1beta3/token/Token.d.ts +480 -617
  90. package/dist/constructs/v1beta3/token/TokenSchema.js +1 -1
  91. package/dist/constructs/v1beta3/token/TokenSchema.mjs +1 -1
  92. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4825 -5033
  93. package/dist/index.d.mts +5032 -5501
  94. package/dist/index.d.ts +5032 -5501
  95. package/dist/mesheryApi.d.mts +3334 -884
  96. package/dist/mesheryApi.d.ts +3334 -884
  97. package/dist/mesheryApi.js +1 -1
  98. package/dist/mesheryApi.mjs +1 -1
  99. package/dist/permissions.d.mts +25 -1
  100. package/dist/permissions.d.ts +25 -1
  101. package/dist/permissions.js +1 -1
  102. package/dist/permissions.mjs +1 -1
  103. package/package.json +1 -1
@@ -4,102 +4,426 @@
4
4
  */
5
5
 
6
6
  export interface paths {
7
- "/api/content/views": {
8
- parameters: {
9
- query?: never;
10
- header?: never;
11
- path?: never;
12
- cookie?: never;
13
- };
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 };
14
190
  /**
15
- * Get views
16
- * @description Returns a paginated list of views accessible to the user.
191
+ * Format: uuid
192
+ * @description ID of the user who created the view.
17
193
  */
18
- get: operations["getViews"];
19
- put?: never;
194
+ userId?: string;
195
+ /** @description Name of the workspace this view belongs to. */
196
+ workspaceName?: string;
20
197
  /**
21
- * Create a view
22
- * @description Creates a new view with the given filters and metadata.
198
+ * Format: uuid
199
+ * @description ID of the workspace this view belongs to.
23
200
  */
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;
201
+ workspaceId: string;
40
202
  /**
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.
203
+ * Format: uuid
204
+ * @description ID of the organization this view belongs to.
47
205
  */
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
- };
206
+ organizationId: string;
207
+ /** @description Name of the organization this view belongs to. */
208
+ organizationName?: string;
62
209
  /**
63
- * Get a view by ID
64
- * @description Returns a single view by its unique identifier.
210
+ * Format: date-time
211
+ * @description Timestamp when the view was created.
65
212
  */
66
- get: operations["getViewById"];
213
+ createdAt?: string;
67
214
  /**
68
- * Update a view
69
- * @description Updates an existing view with new filters, metadata, or visibility.
215
+ * Format: date-time
216
+ * @description Timestamp when the view was last updated.
70
217
  */
71
- put: operations["updateView"];
72
- post?: never;
218
+ updatedAt?: string;
73
219
  /**
74
- * Delete a view
75
- * @description Soft-deletes a view by its unique identifier.
220
+ * Format: date-time
221
+ * @description Timestamp when the view was soft deleted. Null while the view remains active.
76
222
  */
77
- delete: operations["deleteView"];
78
- options?: never;
79
- head?: never;
80
- patch?: never;
81
- trace?: never;
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
+ };
82
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
+ };
83
318
  }
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: {
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": {
103
427
  /**
104
428
  * Format: uuid
105
429
  * @description Unique identifier for the view.
@@ -110,9 +434,9 @@ export interface components {
110
434
  /** @description Visibility level of the view. */
111
435
  visibility: string;
112
436
  /** @description Filter configuration that defines which resources this view displays. */
113
- filters?: Record<string, never>;
437
+ filters?: { [key: string]: unknown };
114
438
  /** @description Additional metadata associated with the view. */
115
- metadata?: Record<string, never>;
439
+ metadata?: { [key: string]: unknown };
116
440
  /**
117
441
  * Format: uuid
118
442
  * @description ID of the user who created the view.
@@ -133,804 +457,311 @@ export interface components {
133
457
  * @description Timestamp when the view was soft deleted. Null while the view remains active.
134
458
  */
135
459
  deletedAt?: string | null;
460
+ };
136
461
  };
137
- /** @description A view enriched with the workspace and organization it belongs to. */
138
- MesheryViewWithLocation: {
139
- /** Format: uuid */
140
- id?: string;
141
- /** @description Display name of the view. */
142
- name?: string;
143
- /** @description Visibility level of the view. */
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>;
149
- /**
150
- * Format: uuid
151
- * @description ID of the user who created the view.
152
- */
153
- userId?: string;
154
- /** @description Name of the workspace this view belongs to. */
155
- workspaceName?: string;
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": {
156
576
  /**
157
577
  * Format: uuid
158
- * @description ID of the workspace this view belongs to.
578
+ * @description Unique identifier for the view.
159
579
  */
160
- workspaceId: string;
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 };
161
589
  /**
162
590
  * Format: uuid
163
- * @description ID of the organization this view belongs to.
591
+ * @description ID of the user who created the view.
164
592
  */
165
- organizationId: string;
166
- /** @description Name of the organization this view belongs to. */
167
- organizationName?: string;
593
+ userId: string;
168
594
  /**
169
595
  * Format: date-time
170
596
  * @description Timestamp when the view was created.
171
597
  */
172
- createdAt?: string;
598
+ createdAt: string;
173
599
  /**
174
600
  * Format: date-time
175
601
  * @description Timestamp when the view was last updated.
176
602
  */
177
- updatedAt?: string;
603
+ updatedAt: string;
178
604
  /**
179
605
  * Format: date-time
180
606
  * @description Timestamp when the view was soft deleted. Null while the view remains active.
181
607
  */
182
608
  deletedAt?: string | null;
609
+ };
183
610
  };
184
- /** @description Payload for creating or updating a view. */
185
- ViewPayload: {
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;
186
656
  /** @description Display name of the view. */
187
657
  name: string;
188
- /** @description Filter configuration for this view. */
189
- filters?: Record<string, never>;
190
658
  /** @description Visibility level of the view. */
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: {
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 };
202
664
  /**
203
665
  * Format: uuid
204
- * @description Identifier of the view being shared.
666
+ * @description ID of the user who created the view.
205
667
  */
206
- contentId: string;
668
+ userId: string;
207
669
  /**
208
- * @description The kind of content being shared. Only `view` is accepted on this
209
- * endpoint.
210
- * @enum {string}
670
+ * Format: date-time
671
+ * @description Timestamp when the view was created.
211
672
  */
212
- contentType: "view";
213
- /** @description Email addresses of the recipients to share this view with. */
214
- emails: string[];
673
+ createdAt: string;
215
674
  /**
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.
675
+ * Format: date-time
676
+ * @description Timestamp when the view was last updated.
218
677
  */
219
- share: boolean;
220
- };
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
- }[];
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
+ };
276
685
  };
277
- };
278
- responses: {
279
- /** @description ok */
280
- 200: {
281
- headers: {
282
- [name: string]: unknown;
283
- };
284
- content: {
285
- "text/plain": string;
286
- };
686
+ };
687
+ /** Invalid request body or request param */
688
+ 400: {
689
+ content: {
690
+ "text/plain": string;
287
691
  };
288
- /** @description Invalid request body or request param */
289
- 400: {
290
- headers: {
291
- [name: string]: unknown;
292
- };
293
- content: {
294
- "text/plain": string;
295
- };
692
+ };
693
+ /** Expired JWT token used or insufficient privilege */
694
+ 401: {
695
+ content: {
696
+ "text/plain": string;
296
697
  };
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
- };
698
+ };
699
+ /** Result not found */
700
+ 404: {
701
+ content: {
702
+ "text/plain": string;
305
703
  };
306
- /** @description Result not found */
307
- 404: {
308
- headers: {
309
- [name: string]: unknown;
310
- };
311
- content: {
312
- "text/plain": string;
313
- };
704
+ };
705
+ /** Internal server error */
706
+ 500: {
707
+ content: {
708
+ "text/plain": string;
314
709
  };
315
- /** @description Internal server error */
316
- 500: {
317
- headers: {
318
- [name: string]: unknown;
319
- };
320
- content: {
321
- "text/plain": string;
322
- };
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 };
323
724
  };
725
+ };
324
726
  };
727
+ };
728
+ /** Soft-deletes a view by its unique identifier. */
729
+ deleteView: {
325
730
  parameters: {
326
- /** @description View ID */
731
+ path: {
732
+ /** View ID */
327
733
  viewId: string;
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;
734
+ };
340
735
  };
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
- };
356
- };
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
- };
381
- };
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;
413
- };
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
- };
736
+ responses: {
737
+ /** View deleted */
738
+ 204: never;
739
+ /** Invalid request body or request param */
740
+ 400: {
741
+ content: {
742
+ "text/plain": string;
796
743
  };
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
- };
744
+ };
745
+ /** Expired JWT token used or insufficient privilege */
746
+ 401: {
747
+ content: {
748
+ "text/plain": string;
877
749
  };
878
- };
879
- deleteView: {
880
- parameters: {
881
- query?: never;
882
- header?: never;
883
- path: {
884
- /** @description View ID */
885
- viewId: string;
886
- };
887
- cookie?: never;
750
+ };
751
+ /** Result not found */
752
+ 404: {
753
+ content: {
754
+ "text/plain": string;
888
755
  };
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
- };
756
+ };
757
+ /** Internal server error */
758
+ 500: {
759
+ content: {
760
+ "text/plain": string;
934
761
  };
762
+ };
935
763
  };
764
+ };
936
765
  }
766
+
767
+ export interface external {}