@meshery/schemas 0.8.122 → 0.8.124

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.
@@ -0,0 +1,719 @@
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/identity/orgs/{orgId}/teams": {
7
+ /** Gets all teams within an organization */
8
+ get: operations["GetTeams"];
9
+ /** Creates a new team within an organization */
10
+ post: operations["CreateTeam"];
11
+ };
12
+ "/api/identity/orgs/{orgId}/teams/{teamId}": {
13
+ /** Gets a team by its ID */
14
+ get: operations["GetTeamByID"];
15
+ /** Updates a team's information */
16
+ put: operations["UpdateTeam"];
17
+ /** Deletes a team by its ID */
18
+ delete: operations["DeleteTeam"];
19
+ };
20
+ "/api/identity/orgs/{orgId}/teams/{teamId}/users": {
21
+ /** Gets all users that belong to a team */
22
+ get: operations["GetTeamUsers"];
23
+ };
24
+ "/api/identity/orgs/{orgId}/teams/{teamId}/users/{userId}": {
25
+ /** Assigns a user to a team */
26
+ post: operations["AddUserToTeam"];
27
+ /** Unassigns a user from a team */
28
+ delete: operations["RemoveUserFromTeam"];
29
+ };
30
+ }
31
+ interface components {
32
+ schemas: {
33
+ /** @description A Team is a group of one or more users. Teams are often used as a grouping mechanism for assigning permissions, whether in the context of an organization, a workspace, or some other domain within Meshery. Learn more at https://docs.meshery.io/concepts/logical/teams */
34
+ team: {
35
+ /**
36
+ * Format: uuid
37
+ * @description Team ID
38
+ */
39
+ id: string;
40
+ /** @description Team name */
41
+ name: string;
42
+ /** @description Team description */
43
+ description?: string;
44
+ /**
45
+ * Format: uuid
46
+ * @description User ID of the owner of the team
47
+ */
48
+ owner?: string;
49
+ /** @description Additional metadata for the team */
50
+ metadata?: {
51
+ [key: string]: unknown;
52
+ };
53
+ /** Format: date-time */
54
+ created_at?: string;
55
+ /** Format: date-time */
56
+ updated_at?: string;
57
+ /** Format: date-time */
58
+ deleted_at?: string;
59
+ };
60
+ /** @description Payload for creating a new team */
61
+ teamPayload: {
62
+ /** @description Team name. Provide a meaningful name that represents this team. */
63
+ name: string;
64
+ /** @description A detailed description of the team's purpose and responsibilities. */
65
+ description?: string;
66
+ };
67
+ /** @description Payload for updating an existing team */
68
+ teamUpdatePayload: {
69
+ /** @description Updated team name */
70
+ name?: string;
71
+ /** @description Updated team description */
72
+ description?: string;
73
+ };
74
+ /** @description Paginated list of teams */
75
+ teamPage: {
76
+ page?: number;
77
+ page_size?: number;
78
+ total_count?: number;
79
+ teams?: {
80
+ /**
81
+ * Format: uuid
82
+ * @description Team ID
83
+ */
84
+ id: string;
85
+ /** @description Team name */
86
+ name: string;
87
+ /** @description Team description */
88
+ description?: string;
89
+ /**
90
+ * Format: uuid
91
+ * @description User ID of the owner of the team
92
+ */
93
+ owner?: string;
94
+ /** @description Additional metadata for the team */
95
+ metadata?: {
96
+ [key: string]: unknown;
97
+ };
98
+ /** Format: date-time */
99
+ created_at?: string;
100
+ /** Format: date-time */
101
+ updated_at?: string;
102
+ /** Format: date-time */
103
+ deleted_at?: string;
104
+ }[];
105
+ };
106
+ /** @description Mapping between teams and users */
107
+ teamsUsersMapping: {
108
+ /** Format: uuid */
109
+ id?: string;
110
+ /** Format: uuid */
111
+ team_id?: string;
112
+ /** @description user's email or username */
113
+ user_id?: string;
114
+ /** Format: date-time */
115
+ created_at?: string;
116
+ /** Format: date-time */
117
+ updated_at?: string;
118
+ /** @description SQL null Timestamp to handle null values of time. */
119
+ deleted_at?: string;
120
+ };
121
+ /** @description Paginated list of team-user mappings */
122
+ teamsUsersMappingPage: {
123
+ page?: number;
124
+ page_size?: number;
125
+ total_count?: number;
126
+ teams_users_mapping?: {
127
+ /** Format: uuid */
128
+ id?: string;
129
+ /** Format: uuid */
130
+ team_id?: string;
131
+ /** @description user's email or username */
132
+ user_id?: string;
133
+ /** Format: date-time */
134
+ created_at?: string;
135
+ /** Format: date-time */
136
+ updated_at?: string;
137
+ /** @description SQL null Timestamp to handle null values of time. */
138
+ deleted_at?: string;
139
+ }[];
140
+ };
141
+ };
142
+ responses: {
143
+ /** ok */
144
+ 200: {
145
+ content: {
146
+ "text/plain": string;
147
+ };
148
+ };
149
+ /** Invalid request body or request param */
150
+ 400: {
151
+ content: {
152
+ "text/plain": string;
153
+ };
154
+ };
155
+ /** Expired JWT token used or insufficient privilege */
156
+ 401: {
157
+ content: {
158
+ "text/plain": string;
159
+ };
160
+ };
161
+ /** Result not found */
162
+ 404: {
163
+ content: {
164
+ "text/plain": string;
165
+ };
166
+ };
167
+ /** Internal server error */
168
+ 500: {
169
+ content: {
170
+ "text/plain": string;
171
+ };
172
+ };
173
+ };
174
+ parameters: {
175
+ /** @description Team ID */
176
+ teamId: string;
177
+ /** @description Organization ID */
178
+ orgId: string;
179
+ /** @description Get responses that match search param value */
180
+ search: string;
181
+ /** @description Get ordered responses */
182
+ order: string;
183
+ /** @description Get responses by page */
184
+ page: string;
185
+ /** @description Get responses by pagesize */
186
+ pagesize: string;
187
+ };
188
+ requestBodies: {
189
+ /** Body for creating a team */
190
+ teamPayload: {
191
+ content: {
192
+ "application/json": {
193
+ /** @description Team name. Provide a meaningful name that represents this team. */
194
+ name: string;
195
+ /** @description A detailed description of the team's purpose and responsibilities. */
196
+ description?: string;
197
+ };
198
+ };
199
+ };
200
+ /** Body for updating a team */
201
+ teamUpdatePayload: {
202
+ content: {
203
+ "application/json": {
204
+ /** @description Updated team name */
205
+ name?: string;
206
+ /** @description Updated team description */
207
+ description?: string;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ }
213
+ interface operations {
214
+ /** Gets all teams within an organization */
215
+ GetTeams: {
216
+ parameters: {
217
+ path: {
218
+ /** Organization ID */
219
+ orgId: string;
220
+ };
221
+ query: {
222
+ /** Get responses that match search param value */
223
+ search?: string;
224
+ /** Get ordered responses */
225
+ order?: string;
226
+ /** Get responses by page */
227
+ page?: string;
228
+ /** Get responses by pagesize */
229
+ pagesize?: string;
230
+ };
231
+ };
232
+ responses: {
233
+ /** Teams */
234
+ 200: {
235
+ content: {
236
+ "application/json": {
237
+ page?: number;
238
+ page_size?: number;
239
+ total_count?: number;
240
+ teams?: {
241
+ /**
242
+ * Format: uuid
243
+ * @description Team ID
244
+ */
245
+ id: string;
246
+ /** @description Team name */
247
+ name: string;
248
+ /** @description Team description */
249
+ description?: string;
250
+ /**
251
+ * Format: uuid
252
+ * @description User ID of the owner of the team
253
+ */
254
+ owner?: string;
255
+ /** @description Additional metadata for the team */
256
+ metadata?: {
257
+ [key: string]: unknown;
258
+ };
259
+ /** Format: date-time */
260
+ created_at?: string;
261
+ /** Format: date-time */
262
+ updated_at?: string;
263
+ /** Format: date-time */
264
+ deleted_at?: string;
265
+ }[];
266
+ };
267
+ };
268
+ };
269
+ /** Expired JWT token used or insufficient privilege */
270
+ 401: {
271
+ content: {
272
+ "text/plain": string;
273
+ };
274
+ };
275
+ /** Internal server error */
276
+ 500: {
277
+ content: {
278
+ "text/plain": string;
279
+ };
280
+ };
281
+ };
282
+ };
283
+ /** Creates a new team within an organization */
284
+ CreateTeam: {
285
+ parameters: {
286
+ path: {
287
+ /** Organization ID */
288
+ orgId: string;
289
+ };
290
+ };
291
+ responses: {
292
+ /** Created team */
293
+ 201: {
294
+ content: {
295
+ "application/json": {
296
+ /**
297
+ * Format: uuid
298
+ * @description Team ID
299
+ */
300
+ id: string;
301
+ /** @description Team name */
302
+ name: string;
303
+ /** @description Team description */
304
+ description?: string;
305
+ /**
306
+ * Format: uuid
307
+ * @description User ID of the owner of the team
308
+ */
309
+ owner?: string;
310
+ /** @description Additional metadata for the team */
311
+ metadata?: {
312
+ [key: string]: unknown;
313
+ };
314
+ /** Format: date-time */
315
+ created_at?: string;
316
+ /** Format: date-time */
317
+ updated_at?: string;
318
+ /** Format: date-time */
319
+ deleted_at?: string;
320
+ };
321
+ };
322
+ };
323
+ /** Invalid request body or request param */
324
+ 400: {
325
+ content: {
326
+ "text/plain": string;
327
+ };
328
+ };
329
+ /** Internal server error */
330
+ 500: {
331
+ content: {
332
+ "text/plain": string;
333
+ };
334
+ };
335
+ };
336
+ /** Body for creating a team */
337
+ requestBody: {
338
+ content: {
339
+ "application/json": {
340
+ /** @description Team name. Provide a meaningful name that represents this team. */
341
+ name: string;
342
+ /** @description A detailed description of the team's purpose and responsibilities. */
343
+ description?: string;
344
+ };
345
+ };
346
+ };
347
+ };
348
+ /** Gets a team by its ID */
349
+ GetTeamByID: {
350
+ parameters: {
351
+ path: {
352
+ /** Organization ID */
353
+ orgId: string;
354
+ /** Team ID */
355
+ teamId: string;
356
+ };
357
+ };
358
+ responses: {
359
+ /** Team */
360
+ 200: {
361
+ content: {
362
+ "application/json": {
363
+ /**
364
+ * Format: uuid
365
+ * @description Team ID
366
+ */
367
+ id: string;
368
+ /** @description Team name */
369
+ name: string;
370
+ /** @description Team description */
371
+ description?: string;
372
+ /**
373
+ * Format: uuid
374
+ * @description User ID of the owner of the team
375
+ */
376
+ owner?: string;
377
+ /** @description Additional metadata for the team */
378
+ metadata?: {
379
+ [key: string]: unknown;
380
+ };
381
+ /** Format: date-time */
382
+ created_at?: string;
383
+ /** Format: date-time */
384
+ updated_at?: string;
385
+ /** Format: date-time */
386
+ deleted_at?: string;
387
+ };
388
+ };
389
+ };
390
+ /** Invalid request body or request param */
391
+ 400: {
392
+ content: {
393
+ "text/plain": string;
394
+ };
395
+ };
396
+ /** Expired JWT token used or insufficient privilege */
397
+ 401: {
398
+ content: {
399
+ "text/plain": string;
400
+ };
401
+ };
402
+ /** Result not found */
403
+ 404: {
404
+ content: {
405
+ "text/plain": string;
406
+ };
407
+ };
408
+ /** Internal server error */
409
+ 500: {
410
+ content: {
411
+ "text/plain": string;
412
+ };
413
+ };
414
+ };
415
+ };
416
+ /** Updates a team's information */
417
+ UpdateTeam: {
418
+ parameters: {
419
+ path: {
420
+ /** Organization ID */
421
+ orgId: string;
422
+ /** Team ID */
423
+ teamId: string;
424
+ };
425
+ };
426
+ responses: {
427
+ /** Updated team */
428
+ 200: {
429
+ content: {
430
+ "application/json": {
431
+ /**
432
+ * Format: uuid
433
+ * @description Team ID
434
+ */
435
+ id: string;
436
+ /** @description Team name */
437
+ name: string;
438
+ /** @description Team description */
439
+ description?: string;
440
+ /**
441
+ * Format: uuid
442
+ * @description User ID of the owner of the team
443
+ */
444
+ owner?: string;
445
+ /** @description Additional metadata for the team */
446
+ metadata?: {
447
+ [key: string]: unknown;
448
+ };
449
+ /** Format: date-time */
450
+ created_at?: string;
451
+ /** Format: date-time */
452
+ updated_at?: string;
453
+ /** Format: date-time */
454
+ deleted_at?: string;
455
+ };
456
+ };
457
+ };
458
+ /** Invalid request body or request param */
459
+ 400: {
460
+ content: {
461
+ "text/plain": string;
462
+ };
463
+ };
464
+ /** Expired JWT token used or insufficient privilege */
465
+ 401: {
466
+ content: {
467
+ "text/plain": string;
468
+ };
469
+ };
470
+ /** Result not found */
471
+ 404: {
472
+ content: {
473
+ "text/plain": string;
474
+ };
475
+ };
476
+ /** Internal server error */
477
+ 500: {
478
+ content: {
479
+ "text/plain": string;
480
+ };
481
+ };
482
+ };
483
+ /** Body for updating a team */
484
+ requestBody: {
485
+ content: {
486
+ "application/json": {
487
+ /** @description Updated team name */
488
+ name?: string;
489
+ /** @description Updated team description */
490
+ description?: string;
491
+ };
492
+ };
493
+ };
494
+ };
495
+ /** Deletes a team by its ID */
496
+ DeleteTeam: {
497
+ parameters: {
498
+ path: {
499
+ /** Organization ID */
500
+ orgId: string;
501
+ /** Team ID */
502
+ teamId: string;
503
+ };
504
+ };
505
+ responses: {
506
+ /** Team deleted successfully */
507
+ 204: never;
508
+ /** Invalid request body or request param */
509
+ 400: {
510
+ content: {
511
+ "text/plain": string;
512
+ };
513
+ };
514
+ /** Expired JWT token used or insufficient privilege */
515
+ 401: {
516
+ content: {
517
+ "text/plain": string;
518
+ };
519
+ };
520
+ /** Result not found */
521
+ 404: {
522
+ content: {
523
+ "text/plain": string;
524
+ };
525
+ };
526
+ /** Internal server error */
527
+ 500: {
528
+ content: {
529
+ "text/plain": string;
530
+ };
531
+ };
532
+ };
533
+ };
534
+ /** Gets all users that belong to a team */
535
+ GetTeamUsers: {
536
+ parameters: {
537
+ path: {
538
+ /** Organization ID */
539
+ orgId: string;
540
+ /** Team ID */
541
+ teamId: string;
542
+ };
543
+ query: {
544
+ /** Get responses that match search param value */
545
+ search?: string;
546
+ /** Get ordered responses */
547
+ order?: string;
548
+ /** Get responses by page */
549
+ page?: string;
550
+ /** Get responses by pagesize */
551
+ pagesize?: string;
552
+ };
553
+ };
554
+ responses: {
555
+ /** Team users mapping */
556
+ 200: {
557
+ content: {
558
+ "application/json": {
559
+ page?: number;
560
+ page_size?: number;
561
+ total_count?: number;
562
+ teams_users_mapping?: {
563
+ /** Format: uuid */
564
+ id?: string;
565
+ /** Format: uuid */
566
+ team_id?: string;
567
+ /** @description user's email or username */
568
+ user_id?: string;
569
+ /** Format: date-time */
570
+ created_at?: string;
571
+ /** Format: date-time */
572
+ updated_at?: string;
573
+ /** @description SQL null Timestamp to handle null values of time. */
574
+ deleted_at?: string;
575
+ }[];
576
+ };
577
+ };
578
+ };
579
+ /** Invalid request body or request param */
580
+ 400: {
581
+ content: {
582
+ "text/plain": string;
583
+ };
584
+ };
585
+ /** Expired JWT token used or insufficient privilege */
586
+ 401: {
587
+ content: {
588
+ "text/plain": string;
589
+ };
590
+ };
591
+ /** Result not found */
592
+ 404: {
593
+ content: {
594
+ "text/plain": string;
595
+ };
596
+ };
597
+ /** Internal server error */
598
+ 500: {
599
+ content: {
600
+ "text/plain": string;
601
+ };
602
+ };
603
+ };
604
+ };
605
+ /** Assigns a user to a team */
606
+ AddUserToTeam: {
607
+ parameters: {
608
+ path: {
609
+ /** Organization ID */
610
+ orgId: string;
611
+ /** Team ID */
612
+ teamId: string;
613
+ /** User ID */
614
+ userId: string;
615
+ };
616
+ };
617
+ responses: {
618
+ /** User added to team */
619
+ 200: {
620
+ content: {
621
+ "application/json": {
622
+ /** Format: uuid */
623
+ id?: string;
624
+ /** Format: uuid */
625
+ team_id?: string;
626
+ /** @description user's email or username */
627
+ user_id?: string;
628
+ /** Format: date-time */
629
+ created_at?: string;
630
+ /** Format: date-time */
631
+ updated_at?: string;
632
+ /** @description SQL null Timestamp to handle null values of time. */
633
+ deleted_at?: string;
634
+ };
635
+ };
636
+ };
637
+ /** Invalid request body or request param */
638
+ 400: {
639
+ content: {
640
+ "text/plain": string;
641
+ };
642
+ };
643
+ /** Expired JWT token used or insufficient privilege */
644
+ 401: {
645
+ content: {
646
+ "text/plain": string;
647
+ };
648
+ };
649
+ /** Internal server error */
650
+ 500: {
651
+ content: {
652
+ "text/plain": string;
653
+ };
654
+ };
655
+ };
656
+ };
657
+ /** Unassigns a user from a team */
658
+ RemoveUserFromTeam: {
659
+ parameters: {
660
+ path: {
661
+ /** Organization ID */
662
+ orgId: string;
663
+ /** Team ID */
664
+ teamId: string;
665
+ /** User ID */
666
+ userId: string;
667
+ };
668
+ };
669
+ responses: {
670
+ /** User removed from team */
671
+ 200: {
672
+ content: {
673
+ "application/json": {
674
+ /** Format: uuid */
675
+ id?: string;
676
+ /** Format: uuid */
677
+ team_id?: string;
678
+ /** @description user's email or username */
679
+ user_id?: string;
680
+ /** Format: date-time */
681
+ created_at?: string;
682
+ /** Format: date-time */
683
+ updated_at?: string;
684
+ /** @description SQL null Timestamp to handle null values of time. */
685
+ deleted_at?: string;
686
+ };
687
+ };
688
+ };
689
+ /** Invalid request body or request param */
690
+ 400: {
691
+ content: {
692
+ "text/plain": string;
693
+ };
694
+ };
695
+ /** Expired JWT token used or insufficient privilege */
696
+ 401: {
697
+ content: {
698
+ "text/plain": string;
699
+ };
700
+ };
701
+ /** Result not found */
702
+ 404: {
703
+ content: {
704
+ "text/plain": string;
705
+ };
706
+ };
707
+ /** Internal server error */
708
+ 500: {
709
+ content: {
710
+ "text/plain": string;
711
+ };
712
+ };
713
+ };
714
+ };
715
+ }
716
+ interface external {
717
+ }
718
+
719
+ export type { components, external, operations, paths };