@meshery/schemas 1.0.3 → 1.0.5
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.
- package/README.md +7 -15
- package/dist/cloudApi.d.mts +4047 -3586
- package/dist/cloudApi.d.ts +4047 -3586
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +1 -1
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +1 -1
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +4 -4
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +4 -4
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +0 -160
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +0 -160
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +13 -13
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +13 -13
- package/dist/constructs/v1beta1/view/View.d.mts +674 -0
- package/dist/constructs/v1beta1/view/View.d.ts +674 -0
- package/dist/constructs/v1beta1/view/View.js +1 -0
- package/dist/constructs/v1beta1/view/View.mjs +0 -0
- package/dist/constructs/v1beta1/view/ViewSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/view/ViewSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/view/ViewSchema.js +2 -0
- package/dist/constructs/v1beta1/view/ViewSchema.mjs +2 -0
- package/dist/constructs/v1beta1/workspace/Workspace.d.mts +357 -148
- package/dist/constructs/v1beta1/workspace/Workspace.d.ts +357 -148
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +5 -5
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +5 -5
- package/dist/constructs/v1beta2/design/Design.d.mts +0 -168
- package/dist/constructs/v1beta2/design/Design.d.ts +0 -168
- package/dist/constructs/v1beta2/design/DesignSchema.js +13 -13
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +13 -13
- package/dist/constructs/v1beta2/relationship/RelationshipSchema.js +1 -1
- package/dist/constructs/v1beta2/relationship/RelationshipSchema.mjs +1 -1
- package/dist/index.js +33 -33
- package/dist/index.mjs +33 -33
- package/dist/mesheryApi.d.mts +382 -382
- package/dist/mesheryApi.d.ts +382 -382
- package/package.json +1 -1
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
interface paths {
|
|
6
|
+
"/api/content/views": {
|
|
7
|
+
/** Returns a paginated list of views accessible to the user. */
|
|
8
|
+
get: operations["getViews"];
|
|
9
|
+
/** Creates a new view with the given filters and metadata. */
|
|
10
|
+
post: operations["createView"];
|
|
11
|
+
};
|
|
12
|
+
"/api/content/views/{viewId}": {
|
|
13
|
+
/** Returns a single view by its unique identifier. */
|
|
14
|
+
get: operations["getViewById"];
|
|
15
|
+
/** Updates an existing view with new filters, metadata, or visibility. */
|
|
16
|
+
put: operations["updateView"];
|
|
17
|
+
/** Soft-deletes a view by its unique identifier. */
|
|
18
|
+
delete: operations["deleteView"];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface components {
|
|
22
|
+
schemas: {
|
|
23
|
+
/**
|
|
24
|
+
* MesheryView
|
|
25
|
+
* @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
|
|
26
|
+
* @example {
|
|
27
|
+
* "id": "00000000-0000-0000-0000-000000000000",
|
|
28
|
+
* "name": "My Kubernetes View",
|
|
29
|
+
* "visibility": "private",
|
|
30
|
+
* "filters": {},
|
|
31
|
+
* "metadata": {},
|
|
32
|
+
* "user_id": "00000000-0000-0000-0000-000000000000",
|
|
33
|
+
* "created_at": "0001-01-01T00:00:00Z",
|
|
34
|
+
* "updated_at": "0001-01-01T00:00:00Z",
|
|
35
|
+
* "deleted_at": null
|
|
36
|
+
* }
|
|
37
|
+
*/
|
|
38
|
+
MesheryView: {
|
|
39
|
+
/**
|
|
40
|
+
* Format: uuid
|
|
41
|
+
* @description Unique identifier for the view.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/** @description Display name of the view. */
|
|
45
|
+
name: string;
|
|
46
|
+
/** @description Visibility level of the view. */
|
|
47
|
+
visibility: string;
|
|
48
|
+
/** @description Filter configuration that defines which resources this view displays. */
|
|
49
|
+
filters?: {
|
|
50
|
+
[key: string]: unknown;
|
|
51
|
+
};
|
|
52
|
+
/** @description Additional metadata associated with the view. */
|
|
53
|
+
metadata?: {
|
|
54
|
+
[key: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Format: uuid
|
|
58
|
+
* @description ID of the user who created the view.
|
|
59
|
+
*/
|
|
60
|
+
user_id: string;
|
|
61
|
+
/**
|
|
62
|
+
* Format: date-time
|
|
63
|
+
* @description Timestamp when the view was created.
|
|
64
|
+
*/
|
|
65
|
+
created_at: string;
|
|
66
|
+
/**
|
|
67
|
+
* Format: date-time
|
|
68
|
+
* @description Timestamp when the view was last updated.
|
|
69
|
+
*/
|
|
70
|
+
updated_at: string;
|
|
71
|
+
/**
|
|
72
|
+
* Format: date-time
|
|
73
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
74
|
+
*/
|
|
75
|
+
deleted_at?: string | null;
|
|
76
|
+
};
|
|
77
|
+
/** @description A view enriched with the workspace and organization it belongs to. */
|
|
78
|
+
MesheryViewWithLocation: {
|
|
79
|
+
/** Format: uuid */
|
|
80
|
+
id?: string;
|
|
81
|
+
/** @description Display name of the view. */
|
|
82
|
+
name?: string;
|
|
83
|
+
/** @description Visibility level of the view. */
|
|
84
|
+
visibility?: string;
|
|
85
|
+
/** @description Filter configuration for this view. */
|
|
86
|
+
filters?: {
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
};
|
|
89
|
+
/** @description Metadata associated with the view. */
|
|
90
|
+
metadata?: {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Format: uuid
|
|
95
|
+
* @description ID of the user who created the view.
|
|
96
|
+
*/
|
|
97
|
+
user_id?: string;
|
|
98
|
+
/** @description Name of the workspace this view belongs to. */
|
|
99
|
+
workspace_name?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Format: uuid
|
|
102
|
+
* @description ID of the workspace this view belongs to.
|
|
103
|
+
*/
|
|
104
|
+
workspace_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* Format: uuid
|
|
107
|
+
* @description ID of the organization this view belongs to.
|
|
108
|
+
*/
|
|
109
|
+
organization_id: string;
|
|
110
|
+
/** @description Name of the organization this view belongs to. */
|
|
111
|
+
organization_name?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Format: date-time
|
|
114
|
+
* @description Timestamp when the resource was created.
|
|
115
|
+
*/
|
|
116
|
+
created_at?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Format: date-time
|
|
119
|
+
* @description Timestamp when the resource was updated.
|
|
120
|
+
*/
|
|
121
|
+
updated_at?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Format: date-time
|
|
124
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
125
|
+
*/
|
|
126
|
+
deleted_at?: string;
|
|
127
|
+
};
|
|
128
|
+
/** @description Payload for creating or updating a view. */
|
|
129
|
+
ViewPayload: {
|
|
130
|
+
/** @description Display name of the view. */
|
|
131
|
+
name: string;
|
|
132
|
+
/** @description Filter configuration for this view. */
|
|
133
|
+
filters?: {
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
};
|
|
136
|
+
/** @description Visibility level of the view. */
|
|
137
|
+
visibility?: string;
|
|
138
|
+
/** @description Metadata associated with the view. */
|
|
139
|
+
metadata?: {
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
/** @description Paginated list of views with location enrichment. */
|
|
144
|
+
MesheryViewPage: {
|
|
145
|
+
page?: number;
|
|
146
|
+
page_size?: number;
|
|
147
|
+
total_count?: number;
|
|
148
|
+
/** @description Views in this page, enriched with workspace and organization context. */
|
|
149
|
+
views?: {
|
|
150
|
+
/** Format: uuid */
|
|
151
|
+
id?: string;
|
|
152
|
+
/** @description Display name of the view. */
|
|
153
|
+
name?: string;
|
|
154
|
+
/** @description Visibility level of the view. */
|
|
155
|
+
visibility?: string;
|
|
156
|
+
/** @description Filter configuration for this view. */
|
|
157
|
+
filters?: {
|
|
158
|
+
[key: string]: unknown;
|
|
159
|
+
};
|
|
160
|
+
/** @description Metadata associated with the view. */
|
|
161
|
+
metadata?: {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Format: uuid
|
|
166
|
+
* @description ID of the user who created the view.
|
|
167
|
+
*/
|
|
168
|
+
user_id?: string;
|
|
169
|
+
/** @description Name of the workspace this view belongs to. */
|
|
170
|
+
workspace_name?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Format: uuid
|
|
173
|
+
* @description ID of the workspace this view belongs to.
|
|
174
|
+
*/
|
|
175
|
+
workspace_id: string;
|
|
176
|
+
/**
|
|
177
|
+
* Format: uuid
|
|
178
|
+
* @description ID of the organization this view belongs to.
|
|
179
|
+
*/
|
|
180
|
+
organization_id: string;
|
|
181
|
+
/** @description Name of the organization this view belongs to. */
|
|
182
|
+
organization_name?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Format: date-time
|
|
185
|
+
* @description Timestamp when the resource was created.
|
|
186
|
+
*/
|
|
187
|
+
created_at?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Format: date-time
|
|
190
|
+
* @description Timestamp when the resource was updated.
|
|
191
|
+
*/
|
|
192
|
+
updated_at?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Format: date-time
|
|
195
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
196
|
+
*/
|
|
197
|
+
deleted_at?: string;
|
|
198
|
+
}[];
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
responses: {
|
|
202
|
+
/** ok */
|
|
203
|
+
200: {
|
|
204
|
+
content: {
|
|
205
|
+
"text/plain": string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/** Invalid request body or request param */
|
|
209
|
+
400: {
|
|
210
|
+
content: {
|
|
211
|
+
"text/plain": string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
/** Expired JWT token used or insufficient privilege */
|
|
215
|
+
401: {
|
|
216
|
+
content: {
|
|
217
|
+
"text/plain": string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
/** Result not found */
|
|
221
|
+
404: {
|
|
222
|
+
content: {
|
|
223
|
+
"text/plain": string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
/** Internal server error */
|
|
227
|
+
500: {
|
|
228
|
+
content: {
|
|
229
|
+
"text/plain": string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
parameters: {
|
|
234
|
+
/** @description View ID */
|
|
235
|
+
viewId: string;
|
|
236
|
+
/** @description Get responses that match search param value */
|
|
237
|
+
search: string;
|
|
238
|
+
/** @description Get ordered responses */
|
|
239
|
+
order: string;
|
|
240
|
+
/** @description Get responses by page */
|
|
241
|
+
page: string;
|
|
242
|
+
/** @description Get responses by pagesize */
|
|
243
|
+
pagesize: string;
|
|
244
|
+
/** @description Organization ID to scope the request. */
|
|
245
|
+
orgIdQuery: string;
|
|
246
|
+
};
|
|
247
|
+
requestBodies: {
|
|
248
|
+
/** Body for creating or updating a view */
|
|
249
|
+
viewPayload: {
|
|
250
|
+
content: {
|
|
251
|
+
"application/json": {
|
|
252
|
+
/** @description Display name of the view. */
|
|
253
|
+
name: string;
|
|
254
|
+
/** @description Filter configuration for this view. */
|
|
255
|
+
filters?: {
|
|
256
|
+
[key: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
/** @description Visibility level of the view. */
|
|
259
|
+
visibility?: string;
|
|
260
|
+
/** @description Metadata associated with the view. */
|
|
261
|
+
metadata?: {
|
|
262
|
+
[key: string]: unknown;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
interface operations {
|
|
270
|
+
/** Returns a paginated list of views accessible to the user. */
|
|
271
|
+
getViews: {
|
|
272
|
+
parameters: {
|
|
273
|
+
query: {
|
|
274
|
+
/** Get responses that match search param value */
|
|
275
|
+
search?: string;
|
|
276
|
+
/** Get ordered responses */
|
|
277
|
+
order?: string;
|
|
278
|
+
/** Get responses by page */
|
|
279
|
+
page?: string;
|
|
280
|
+
/** Get responses by pagesize */
|
|
281
|
+
pagesize?: string;
|
|
282
|
+
/** JSON-encoded filter string for assignment and soft-delete filters. */
|
|
283
|
+
filter?: string;
|
|
284
|
+
/** When true, include views shared with the user. */
|
|
285
|
+
shared?: boolean;
|
|
286
|
+
/** Filter by visibility level (public, private). */
|
|
287
|
+
visibility?: string;
|
|
288
|
+
/** Organization ID to scope the request. */
|
|
289
|
+
orgId?: string;
|
|
290
|
+
/** UUID of the user whose views to retrieve. */
|
|
291
|
+
userId?: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
responses: {
|
|
295
|
+
/** Views page */
|
|
296
|
+
200: {
|
|
297
|
+
content: {
|
|
298
|
+
"application/json": {
|
|
299
|
+
page?: number;
|
|
300
|
+
page_size?: number;
|
|
301
|
+
total_count?: number;
|
|
302
|
+
/** @description Views in this page, enriched with workspace and organization context. */
|
|
303
|
+
views?: {
|
|
304
|
+
/** Format: uuid */
|
|
305
|
+
id?: string;
|
|
306
|
+
/** @description Display name of the view. */
|
|
307
|
+
name?: string;
|
|
308
|
+
/** @description Visibility level of the view. */
|
|
309
|
+
visibility?: string;
|
|
310
|
+
/** @description Filter configuration for this view. */
|
|
311
|
+
filters?: {
|
|
312
|
+
[key: string]: unknown;
|
|
313
|
+
};
|
|
314
|
+
/** @description Metadata associated with the view. */
|
|
315
|
+
metadata?: {
|
|
316
|
+
[key: string]: unknown;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Format: uuid
|
|
320
|
+
* @description ID of the user who created the view.
|
|
321
|
+
*/
|
|
322
|
+
user_id?: string;
|
|
323
|
+
/** @description Name of the workspace this view belongs to. */
|
|
324
|
+
workspace_name?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Format: uuid
|
|
327
|
+
* @description ID of the workspace this view belongs to.
|
|
328
|
+
*/
|
|
329
|
+
workspace_id: string;
|
|
330
|
+
/**
|
|
331
|
+
* Format: uuid
|
|
332
|
+
* @description ID of the organization this view belongs to.
|
|
333
|
+
*/
|
|
334
|
+
organization_id: string;
|
|
335
|
+
/** @description Name of the organization this view belongs to. */
|
|
336
|
+
organization_name?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Format: date-time
|
|
339
|
+
* @description Timestamp when the resource was created.
|
|
340
|
+
*/
|
|
341
|
+
created_at?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Format: date-time
|
|
344
|
+
* @description Timestamp when the resource was updated.
|
|
345
|
+
*/
|
|
346
|
+
updated_at?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Format: date-time
|
|
349
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
350
|
+
*/
|
|
351
|
+
deleted_at?: string;
|
|
352
|
+
}[];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
/** Expired JWT token used or insufficient privilege */
|
|
357
|
+
401: {
|
|
358
|
+
content: {
|
|
359
|
+
"text/plain": string;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
/** Internal server error */
|
|
363
|
+
500: {
|
|
364
|
+
content: {
|
|
365
|
+
"text/plain": string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
/** Creates a new view with the given filters and metadata. */
|
|
371
|
+
createView: {
|
|
372
|
+
responses: {
|
|
373
|
+
/** Created view */
|
|
374
|
+
201: {
|
|
375
|
+
content: {
|
|
376
|
+
"application/json": {
|
|
377
|
+
/**
|
|
378
|
+
* Format: uuid
|
|
379
|
+
* @description Unique identifier for the view.
|
|
380
|
+
*/
|
|
381
|
+
id: string;
|
|
382
|
+
/** @description Display name of the view. */
|
|
383
|
+
name: string;
|
|
384
|
+
/** @description Visibility level of the view. */
|
|
385
|
+
visibility: string;
|
|
386
|
+
/** @description Filter configuration that defines which resources this view displays. */
|
|
387
|
+
filters?: {
|
|
388
|
+
[key: string]: unknown;
|
|
389
|
+
};
|
|
390
|
+
/** @description Additional metadata associated with the view. */
|
|
391
|
+
metadata?: {
|
|
392
|
+
[key: string]: unknown;
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Format: uuid
|
|
396
|
+
* @description ID of the user who created the view.
|
|
397
|
+
*/
|
|
398
|
+
user_id: string;
|
|
399
|
+
/**
|
|
400
|
+
* Format: date-time
|
|
401
|
+
* @description Timestamp when the view was created.
|
|
402
|
+
*/
|
|
403
|
+
created_at: string;
|
|
404
|
+
/**
|
|
405
|
+
* Format: date-time
|
|
406
|
+
* @description Timestamp when the view was last updated.
|
|
407
|
+
*/
|
|
408
|
+
updated_at: string;
|
|
409
|
+
/**
|
|
410
|
+
* Format: date-time
|
|
411
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
412
|
+
*/
|
|
413
|
+
deleted_at?: string | null;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
/** Invalid request body or request param */
|
|
418
|
+
400: {
|
|
419
|
+
content: {
|
|
420
|
+
"text/plain": string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
/** Expired JWT token used or insufficient privilege */
|
|
424
|
+
401: {
|
|
425
|
+
content: {
|
|
426
|
+
"text/plain": string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
/** Internal server error */
|
|
430
|
+
500: {
|
|
431
|
+
content: {
|
|
432
|
+
"text/plain": string;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
/** Body for creating or updating a view */
|
|
437
|
+
requestBody: {
|
|
438
|
+
content: {
|
|
439
|
+
"application/json": {
|
|
440
|
+
/** @description Display name of the view. */
|
|
441
|
+
name: string;
|
|
442
|
+
/** @description Filter configuration for this view. */
|
|
443
|
+
filters?: {
|
|
444
|
+
[key: string]: unknown;
|
|
445
|
+
};
|
|
446
|
+
/** @description Visibility level of the view. */
|
|
447
|
+
visibility?: string;
|
|
448
|
+
/** @description Metadata associated with the view. */
|
|
449
|
+
metadata?: {
|
|
450
|
+
[key: string]: unknown;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/** Returns a single view by its unique identifier. */
|
|
457
|
+
getViewById: {
|
|
458
|
+
parameters: {
|
|
459
|
+
path: {
|
|
460
|
+
/** View ID */
|
|
461
|
+
viewId: string;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
responses: {
|
|
465
|
+
/** View */
|
|
466
|
+
200: {
|
|
467
|
+
content: {
|
|
468
|
+
"application/json": {
|
|
469
|
+
/**
|
|
470
|
+
* Format: uuid
|
|
471
|
+
* @description Unique identifier for the view.
|
|
472
|
+
*/
|
|
473
|
+
id: string;
|
|
474
|
+
/** @description Display name of the view. */
|
|
475
|
+
name: string;
|
|
476
|
+
/** @description Visibility level of the view. */
|
|
477
|
+
visibility: string;
|
|
478
|
+
/** @description Filter configuration that defines which resources this view displays. */
|
|
479
|
+
filters?: {
|
|
480
|
+
[key: string]: unknown;
|
|
481
|
+
};
|
|
482
|
+
/** @description Additional metadata associated with the view. */
|
|
483
|
+
metadata?: {
|
|
484
|
+
[key: string]: unknown;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Format: uuid
|
|
488
|
+
* @description ID of the user who created the view.
|
|
489
|
+
*/
|
|
490
|
+
user_id: string;
|
|
491
|
+
/**
|
|
492
|
+
* Format: date-time
|
|
493
|
+
* @description Timestamp when the view was created.
|
|
494
|
+
*/
|
|
495
|
+
created_at: string;
|
|
496
|
+
/**
|
|
497
|
+
* Format: date-time
|
|
498
|
+
* @description Timestamp when the view was last updated.
|
|
499
|
+
*/
|
|
500
|
+
updated_at: string;
|
|
501
|
+
/**
|
|
502
|
+
* Format: date-time
|
|
503
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
504
|
+
*/
|
|
505
|
+
deleted_at?: string | null;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
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
|
+
/** Result not found */
|
|
522
|
+
404: {
|
|
523
|
+
content: {
|
|
524
|
+
"text/plain": string;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
/** Internal server error */
|
|
528
|
+
500: {
|
|
529
|
+
content: {
|
|
530
|
+
"text/plain": string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
/** Updates an existing view with new filters, metadata, or visibility. */
|
|
536
|
+
updateView: {
|
|
537
|
+
parameters: {
|
|
538
|
+
path: {
|
|
539
|
+
/** View ID */
|
|
540
|
+
viewId: string;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
responses: {
|
|
544
|
+
/** Updated view */
|
|
545
|
+
200: {
|
|
546
|
+
content: {
|
|
547
|
+
"application/json": {
|
|
548
|
+
/**
|
|
549
|
+
* Format: uuid
|
|
550
|
+
* @description Unique identifier for the view.
|
|
551
|
+
*/
|
|
552
|
+
id: string;
|
|
553
|
+
/** @description Display name of the view. */
|
|
554
|
+
name: string;
|
|
555
|
+
/** @description Visibility level of the view. */
|
|
556
|
+
visibility: string;
|
|
557
|
+
/** @description Filter configuration that defines which resources this view displays. */
|
|
558
|
+
filters?: {
|
|
559
|
+
[key: string]: unknown;
|
|
560
|
+
};
|
|
561
|
+
/** @description Additional metadata associated with the view. */
|
|
562
|
+
metadata?: {
|
|
563
|
+
[key: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Format: uuid
|
|
567
|
+
* @description ID of the user who created the view.
|
|
568
|
+
*/
|
|
569
|
+
user_id: string;
|
|
570
|
+
/**
|
|
571
|
+
* Format: date-time
|
|
572
|
+
* @description Timestamp when the view was created.
|
|
573
|
+
*/
|
|
574
|
+
created_at: string;
|
|
575
|
+
/**
|
|
576
|
+
* Format: date-time
|
|
577
|
+
* @description Timestamp when the view was last updated.
|
|
578
|
+
*/
|
|
579
|
+
updated_at: string;
|
|
580
|
+
/**
|
|
581
|
+
* Format: date-time
|
|
582
|
+
* @description Timestamp when the view was soft deleted. Null while the view remains active.
|
|
583
|
+
*/
|
|
584
|
+
deleted_at?: string | null;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
/** Invalid request body or request param */
|
|
589
|
+
400: {
|
|
590
|
+
content: {
|
|
591
|
+
"text/plain": string;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
/** Expired JWT token used or insufficient privilege */
|
|
595
|
+
401: {
|
|
596
|
+
content: {
|
|
597
|
+
"text/plain": string;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
/** Result not found */
|
|
601
|
+
404: {
|
|
602
|
+
content: {
|
|
603
|
+
"text/plain": string;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
/** Internal server error */
|
|
607
|
+
500: {
|
|
608
|
+
content: {
|
|
609
|
+
"text/plain": string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
/** Body for creating or updating a view */
|
|
614
|
+
requestBody: {
|
|
615
|
+
content: {
|
|
616
|
+
"application/json": {
|
|
617
|
+
/** @description Display name of the view. */
|
|
618
|
+
name: string;
|
|
619
|
+
/** @description Filter configuration for this view. */
|
|
620
|
+
filters?: {
|
|
621
|
+
[key: string]: unknown;
|
|
622
|
+
};
|
|
623
|
+
/** @description Visibility level of the view. */
|
|
624
|
+
visibility?: string;
|
|
625
|
+
/** @description Metadata associated with the view. */
|
|
626
|
+
metadata?: {
|
|
627
|
+
[key: string]: unknown;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
/** Soft-deletes a view by its unique identifier. */
|
|
634
|
+
deleteView: {
|
|
635
|
+
parameters: {
|
|
636
|
+
path: {
|
|
637
|
+
/** View ID */
|
|
638
|
+
viewId: string;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
responses: {
|
|
642
|
+
/** View deleted */
|
|
643
|
+
204: never;
|
|
644
|
+
/** Invalid request body or request param */
|
|
645
|
+
400: {
|
|
646
|
+
content: {
|
|
647
|
+
"text/plain": string;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
/** Expired JWT token used or insufficient privilege */
|
|
651
|
+
401: {
|
|
652
|
+
content: {
|
|
653
|
+
"text/plain": string;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
/** Result not found */
|
|
657
|
+
404: {
|
|
658
|
+
content: {
|
|
659
|
+
"text/plain": string;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
/** Internal server error */
|
|
663
|
+
500: {
|
|
664
|
+
content: {
|
|
665
|
+
"text/plain": string;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
interface external {
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export type { components, external, operations, paths };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|