@meshery/schemas 1.3.13 → 1.3.15

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.
@@ -247,28 +247,176 @@ export interface components {
247
247
  */
248
248
  deletedAt: string | null;
249
249
  /**
250
- * @description List of global roles assigned to the user
250
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
251
251
  * @example [
252
- * "admin",
253
- * "meshmap"
252
+ * "organization admin",
253
+ * "user"
254
254
  * ]
255
255
  */
256
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
256
+ roleNames?: string[];
257
257
  /** @description Teams the user belongs to with role information */
258
258
  teams?: {
259
259
  /** @description Team memberships for the user with their assigned roles. */
260
- teamsWithRoles?: Record<string, never>[];
260
+ teamsWithRoles?: {
261
+ /**
262
+ * Format: uuid
263
+ * @description Unique identifier of the team.
264
+ */
265
+ id: string;
266
+ /** @description Name of the team. */
267
+ name: string;
268
+ /** @description Human readable description of the team. */
269
+ description?: string;
270
+ /**
271
+ * Format: uuid
272
+ * @description Identifier of the team owner.
273
+ */
274
+ owner?: string;
275
+ /** @description Free-form metadata associated with the team. */
276
+ metadata?: {
277
+ [key: string]: unknown;
278
+ };
279
+ /**
280
+ * Format: date-time
281
+ * @description Timestamp when the team was created.
282
+ */
283
+ createdAt?: string;
284
+ /**
285
+ * Format: date-time
286
+ * @description Timestamp when the team was last updated.
287
+ */
288
+ updatedAt?: string;
289
+ /**
290
+ * Format: date-time
291
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
292
+ */
293
+ deletedAt?: string | null;
294
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
295
+ roleNames: string[];
296
+ }[];
261
297
  /** @description Total number of team memberships returned for the user. */
262
298
  totalCount?: number;
263
299
  };
264
300
  /** @description Organizations the user belongs to with role information */
265
301
  organizations?: {
266
302
  /** @description Organization memberships for the user with their assigned roles. */
267
- organizationsWithRoles?: Record<string, never>[];
303
+ organizationsWithRoles?: {
304
+ /**
305
+ * Format: uuid
306
+ * @description Unique identifier of the organization.
307
+ */
308
+ id: string;
309
+ /** @description Name of the organization. */
310
+ name: string;
311
+ /** @description Human readable description of the organization. */
312
+ description?: string;
313
+ /** @description Country associated with the organization. */
314
+ country?: string;
315
+ /** @description Region associated with the organization. */
316
+ region?: string;
317
+ /**
318
+ * Format: uuid
319
+ * @description Identifier of the organization owner.
320
+ */
321
+ owner?: string;
322
+ /**
323
+ * Format: date-time
324
+ * @description Timestamp when the organization was created.
325
+ */
326
+ createdAt?: string;
327
+ /**
328
+ * Format: date-time
329
+ * @description Timestamp when the organization was last updated.
330
+ */
331
+ updatedAt?: string;
332
+ /**
333
+ * Format: date-time
334
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
335
+ */
336
+ deletedAt?: string | null;
337
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
338
+ roleNames: string[];
339
+ }[];
268
340
  /** @description Total number of organization memberships returned for the user. */
269
341
  totalCount?: number;
270
342
  };
271
343
  };
344
+ /** @description An organization the user is a member of, together with the names of the roles assigned to that user within the organization. Returned as an item of User.organizations.organizationsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration). */
345
+ OrganizationWithRoles: {
346
+ /**
347
+ * Format: uuid
348
+ * @description Unique identifier of the organization.
349
+ */
350
+ id: string;
351
+ /** @description Name of the organization. */
352
+ name: string;
353
+ /** @description Human readable description of the organization. */
354
+ description?: string;
355
+ /** @description Country associated with the organization. */
356
+ country?: string;
357
+ /** @description Region associated with the organization. */
358
+ region?: string;
359
+ /**
360
+ * Format: uuid
361
+ * @description Identifier of the organization owner.
362
+ */
363
+ owner?: string;
364
+ /**
365
+ * Format: date-time
366
+ * @description Timestamp when the organization was created.
367
+ */
368
+ createdAt?: string;
369
+ /**
370
+ * Format: date-time
371
+ * @description Timestamp when the organization was last updated.
372
+ */
373
+ updatedAt?: string;
374
+ /**
375
+ * Format: date-time
376
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
377
+ */
378
+ deletedAt?: string | null;
379
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
380
+ roleNames: string[];
381
+ };
382
+ /** @description A team the user is a member of, together with the names of the roles assigned to that user within the team. Returned as an item of User.teams.teamsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration). */
383
+ TeamWithRoles: {
384
+ /**
385
+ * Format: uuid
386
+ * @description Unique identifier of the team.
387
+ */
388
+ id: string;
389
+ /** @description Name of the team. */
390
+ name: string;
391
+ /** @description Human readable description of the team. */
392
+ description?: string;
393
+ /**
394
+ * Format: uuid
395
+ * @description Identifier of the team owner.
396
+ */
397
+ owner?: string;
398
+ /** @description Free-form metadata associated with the team. */
399
+ metadata?: {
400
+ [key: string]: unknown;
401
+ };
402
+ /**
403
+ * Format: date-time
404
+ * @description Timestamp when the team was created.
405
+ */
406
+ createdAt?: string;
407
+ /**
408
+ * Format: date-time
409
+ * @description Timestamp when the team was last updated.
410
+ */
411
+ updatedAt?: string;
412
+ /**
413
+ * Format: date-time
414
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
415
+ */
416
+ deletedAt?: string | null;
417
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
418
+ roleNames: string[];
419
+ };
272
420
  /** @description Paginated list of users with organization and team role context */
273
421
  UsersPageForAdmin: {
274
422
  /** @description Current page number of the result set. */
@@ -442,24 +590,96 @@ export interface components {
442
590
  */
443
591
  deletedAt: string | null;
444
592
  /**
445
- * @description List of global roles assigned to the user
593
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
446
594
  * @example [
447
- * "admin",
448
- * "meshmap"
595
+ * "organization admin",
596
+ * "user"
449
597
  * ]
450
598
  */
451
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
599
+ roleNames?: string[];
452
600
  /** @description Teams the user belongs to with role information */
453
601
  teams?: {
454
602
  /** @description Team memberships for the user with their assigned roles. */
455
- teamsWithRoles?: Record<string, never>[];
603
+ teamsWithRoles?: {
604
+ /**
605
+ * Format: uuid
606
+ * @description Unique identifier of the team.
607
+ */
608
+ id: string;
609
+ /** @description Name of the team. */
610
+ name: string;
611
+ /** @description Human readable description of the team. */
612
+ description?: string;
613
+ /**
614
+ * Format: uuid
615
+ * @description Identifier of the team owner.
616
+ */
617
+ owner?: string;
618
+ /** @description Free-form metadata associated with the team. */
619
+ metadata?: {
620
+ [key: string]: unknown;
621
+ };
622
+ /**
623
+ * Format: date-time
624
+ * @description Timestamp when the team was created.
625
+ */
626
+ createdAt?: string;
627
+ /**
628
+ * Format: date-time
629
+ * @description Timestamp when the team was last updated.
630
+ */
631
+ updatedAt?: string;
632
+ /**
633
+ * Format: date-time
634
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
635
+ */
636
+ deletedAt?: string | null;
637
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
638
+ roleNames: string[];
639
+ }[];
456
640
  /** @description Total number of team memberships returned for the user. */
457
641
  totalCount?: number;
458
642
  };
459
643
  /** @description Organizations the user belongs to with role information */
460
644
  organizations?: {
461
645
  /** @description Organization memberships for the user with their assigned roles. */
462
- organizationsWithRoles?: Record<string, never>[];
646
+ organizationsWithRoles?: {
647
+ /**
648
+ * Format: uuid
649
+ * @description Unique identifier of the organization.
650
+ */
651
+ id: string;
652
+ /** @description Name of the organization. */
653
+ name: string;
654
+ /** @description Human readable description of the organization. */
655
+ description?: string;
656
+ /** @description Country associated with the organization. */
657
+ country?: string;
658
+ /** @description Region associated with the organization. */
659
+ region?: string;
660
+ /**
661
+ * Format: uuid
662
+ * @description Identifier of the organization owner.
663
+ */
664
+ owner?: string;
665
+ /**
666
+ * Format: date-time
667
+ * @description Timestamp when the organization was created.
668
+ */
669
+ createdAt?: string;
670
+ /**
671
+ * Format: date-time
672
+ * @description Timestamp when the organization was last updated.
673
+ */
674
+ updatedAt?: string;
675
+ /**
676
+ * Format: date-time
677
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
678
+ */
679
+ deletedAt?: string | null;
680
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
681
+ roleNames: string[];
682
+ }[];
463
683
  /** @description Total number of organization memberships returned for the user. */
464
684
  totalCount?: number;
465
685
  };
@@ -638,24 +858,96 @@ export interface components {
638
858
  */
639
859
  deletedAt: string | null;
640
860
  /**
641
- * @description List of global roles assigned to the user
861
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
642
862
  * @example [
643
- * "admin",
644
- * "meshmap"
863
+ * "organization admin",
864
+ * "user"
645
865
  * ]
646
866
  */
647
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
867
+ roleNames?: string[];
648
868
  /** @description Teams the user belongs to with role information */
649
869
  teams?: {
650
870
  /** @description Team memberships for the user with their assigned roles. */
651
- teamsWithRoles?: Record<string, never>[];
871
+ teamsWithRoles?: {
872
+ /**
873
+ * Format: uuid
874
+ * @description Unique identifier of the team.
875
+ */
876
+ id: string;
877
+ /** @description Name of the team. */
878
+ name: string;
879
+ /** @description Human readable description of the team. */
880
+ description?: string;
881
+ /**
882
+ * Format: uuid
883
+ * @description Identifier of the team owner.
884
+ */
885
+ owner?: string;
886
+ /** @description Free-form metadata associated with the team. */
887
+ metadata?: {
888
+ [key: string]: unknown;
889
+ };
890
+ /**
891
+ * Format: date-time
892
+ * @description Timestamp when the team was created.
893
+ */
894
+ createdAt?: string;
895
+ /**
896
+ * Format: date-time
897
+ * @description Timestamp when the team was last updated.
898
+ */
899
+ updatedAt?: string;
900
+ /**
901
+ * Format: date-time
902
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
903
+ */
904
+ deletedAt?: string | null;
905
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
906
+ roleNames: string[];
907
+ }[];
652
908
  /** @description Total number of team memberships returned for the user. */
653
909
  totalCount?: number;
654
910
  };
655
911
  /** @description Organizations the user belongs to with role information */
656
912
  organizations?: {
657
913
  /** @description Organization memberships for the user with their assigned roles. */
658
- organizationsWithRoles?: Record<string, never>[];
914
+ organizationsWithRoles?: {
915
+ /**
916
+ * Format: uuid
917
+ * @description Unique identifier of the organization.
918
+ */
919
+ id: string;
920
+ /** @description Name of the organization. */
921
+ name: string;
922
+ /** @description Human readable description of the organization. */
923
+ description?: string;
924
+ /** @description Country associated with the organization. */
925
+ country?: string;
926
+ /** @description Region associated with the organization. */
927
+ region?: string;
928
+ /**
929
+ * Format: uuid
930
+ * @description Identifier of the organization owner.
931
+ */
932
+ owner?: string;
933
+ /**
934
+ * Format: date-time
935
+ * @description Timestamp when the organization was created.
936
+ */
937
+ createdAt?: string;
938
+ /**
939
+ * Format: date-time
940
+ * @description Timestamp when the organization was last updated.
941
+ */
942
+ updatedAt?: string;
943
+ /**
944
+ * Format: date-time
945
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
946
+ */
947
+ deletedAt?: string | null;
948
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
949
+ roleNames: string[];
950
+ }[];
659
951
  /** @description Total number of organization memberships returned for the user. */
660
952
  totalCount?: number;
661
953
  };
@@ -1061,24 +1353,96 @@ export interface operations {
1061
1353
  */
1062
1354
  deletedAt: string | null;
1063
1355
  /**
1064
- * @description List of global roles assigned to the user
1356
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
1065
1357
  * @example [
1066
- * "admin",
1067
- * "meshmap"
1358
+ * "organization admin",
1359
+ * "user"
1068
1360
  * ]
1069
1361
  */
1070
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
1362
+ roleNames?: string[];
1071
1363
  /** @description Teams the user belongs to with role information */
1072
1364
  teams?: {
1073
1365
  /** @description Team memberships for the user with their assigned roles. */
1074
- teamsWithRoles?: Record<string, never>[];
1366
+ teamsWithRoles?: {
1367
+ /**
1368
+ * Format: uuid
1369
+ * @description Unique identifier of the team.
1370
+ */
1371
+ id: string;
1372
+ /** @description Name of the team. */
1373
+ name: string;
1374
+ /** @description Human readable description of the team. */
1375
+ description?: string;
1376
+ /**
1377
+ * Format: uuid
1378
+ * @description Identifier of the team owner.
1379
+ */
1380
+ owner?: string;
1381
+ /** @description Free-form metadata associated with the team. */
1382
+ metadata?: {
1383
+ [key: string]: unknown;
1384
+ };
1385
+ /**
1386
+ * Format: date-time
1387
+ * @description Timestamp when the team was created.
1388
+ */
1389
+ createdAt?: string;
1390
+ /**
1391
+ * Format: date-time
1392
+ * @description Timestamp when the team was last updated.
1393
+ */
1394
+ updatedAt?: string;
1395
+ /**
1396
+ * Format: date-time
1397
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
1398
+ */
1399
+ deletedAt?: string | null;
1400
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
1401
+ roleNames: string[];
1402
+ }[];
1075
1403
  /** @description Total number of team memberships returned for the user. */
1076
1404
  totalCount?: number;
1077
1405
  };
1078
1406
  /** @description Organizations the user belongs to with role information */
1079
1407
  organizations?: {
1080
1408
  /** @description Organization memberships for the user with their assigned roles. */
1081
- organizationsWithRoles?: Record<string, never>[];
1409
+ organizationsWithRoles?: {
1410
+ /**
1411
+ * Format: uuid
1412
+ * @description Unique identifier of the organization.
1413
+ */
1414
+ id: string;
1415
+ /** @description Name of the organization. */
1416
+ name: string;
1417
+ /** @description Human readable description of the organization. */
1418
+ description?: string;
1419
+ /** @description Country associated with the organization. */
1420
+ country?: string;
1421
+ /** @description Region associated with the organization. */
1422
+ region?: string;
1423
+ /**
1424
+ * Format: uuid
1425
+ * @description Identifier of the organization owner.
1426
+ */
1427
+ owner?: string;
1428
+ /**
1429
+ * Format: date-time
1430
+ * @description Timestamp when the organization was created.
1431
+ */
1432
+ createdAt?: string;
1433
+ /**
1434
+ * Format: date-time
1435
+ * @description Timestamp when the organization was last updated.
1436
+ */
1437
+ updatedAt?: string;
1438
+ /**
1439
+ * Format: date-time
1440
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
1441
+ */
1442
+ deletedAt?: string | null;
1443
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
1444
+ roleNames: string[];
1445
+ }[];
1082
1446
  /** @description Total number of organization memberships returned for the user. */
1083
1447
  totalCount?: number;
1084
1448
  };
@@ -1322,24 +1686,96 @@ export interface operations {
1322
1686
  */
1323
1687
  deletedAt: string | null;
1324
1688
  /**
1325
- * @description List of global roles assigned to the user
1689
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
1326
1690
  * @example [
1327
- * "admin",
1328
- * "meshmap"
1691
+ * "organization admin",
1692
+ * "user"
1329
1693
  * ]
1330
1694
  */
1331
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
1695
+ roleNames?: string[];
1332
1696
  /** @description Teams the user belongs to with role information */
1333
1697
  teams?: {
1334
1698
  /** @description Team memberships for the user with their assigned roles. */
1335
- teamsWithRoles?: Record<string, never>[];
1699
+ teamsWithRoles?: {
1700
+ /**
1701
+ * Format: uuid
1702
+ * @description Unique identifier of the team.
1703
+ */
1704
+ id: string;
1705
+ /** @description Name of the team. */
1706
+ name: string;
1707
+ /** @description Human readable description of the team. */
1708
+ description?: string;
1709
+ /**
1710
+ * Format: uuid
1711
+ * @description Identifier of the team owner.
1712
+ */
1713
+ owner?: string;
1714
+ /** @description Free-form metadata associated with the team. */
1715
+ metadata?: {
1716
+ [key: string]: unknown;
1717
+ };
1718
+ /**
1719
+ * Format: date-time
1720
+ * @description Timestamp when the team was created.
1721
+ */
1722
+ createdAt?: string;
1723
+ /**
1724
+ * Format: date-time
1725
+ * @description Timestamp when the team was last updated.
1726
+ */
1727
+ updatedAt?: string;
1728
+ /**
1729
+ * Format: date-time
1730
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
1731
+ */
1732
+ deletedAt?: string | null;
1733
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
1734
+ roleNames: string[];
1735
+ }[];
1336
1736
  /** @description Total number of team memberships returned for the user. */
1337
1737
  totalCount?: number;
1338
1738
  };
1339
1739
  /** @description Organizations the user belongs to with role information */
1340
1740
  organizations?: {
1341
1741
  /** @description Organization memberships for the user with their assigned roles. */
1342
- organizationsWithRoles?: Record<string, never>[];
1742
+ organizationsWithRoles?: {
1743
+ /**
1744
+ * Format: uuid
1745
+ * @description Unique identifier of the organization.
1746
+ */
1747
+ id: string;
1748
+ /** @description Name of the organization. */
1749
+ name: string;
1750
+ /** @description Human readable description of the organization. */
1751
+ description?: string;
1752
+ /** @description Country associated with the organization. */
1753
+ country?: string;
1754
+ /** @description Region associated with the organization. */
1755
+ region?: string;
1756
+ /**
1757
+ * Format: uuid
1758
+ * @description Identifier of the organization owner.
1759
+ */
1760
+ owner?: string;
1761
+ /**
1762
+ * Format: date-time
1763
+ * @description Timestamp when the organization was created.
1764
+ */
1765
+ createdAt?: string;
1766
+ /**
1767
+ * Format: date-time
1768
+ * @description Timestamp when the organization was last updated.
1769
+ */
1770
+ updatedAt?: string;
1771
+ /**
1772
+ * Format: date-time
1773
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
1774
+ */
1775
+ deletedAt?: string | null;
1776
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
1777
+ roleNames: string[];
1778
+ }[];
1343
1779
  /** @description Total number of organization memberships returned for the user. */
1344
1780
  totalCount?: number;
1345
1781
  };
@@ -1558,24 +1994,96 @@ export interface operations {
1558
1994
  */
1559
1995
  deletedAt: string | null;
1560
1996
  /**
1561
- * @description List of global roles assigned to the user
1997
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
1562
1998
  * @example [
1563
- * "admin",
1564
- * "meshmap"
1999
+ * "organization admin",
2000
+ * "user"
1565
2001
  * ]
1566
2002
  */
1567
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
2003
+ roleNames?: string[];
1568
2004
  /** @description Teams the user belongs to with role information */
1569
2005
  teams?: {
1570
2006
  /** @description Team memberships for the user with their assigned roles. */
1571
- teamsWithRoles?: Record<string, never>[];
2007
+ teamsWithRoles?: {
2008
+ /**
2009
+ * Format: uuid
2010
+ * @description Unique identifier of the team.
2011
+ */
2012
+ id: string;
2013
+ /** @description Name of the team. */
2014
+ name: string;
2015
+ /** @description Human readable description of the team. */
2016
+ description?: string;
2017
+ /**
2018
+ * Format: uuid
2019
+ * @description Identifier of the team owner.
2020
+ */
2021
+ owner?: string;
2022
+ /** @description Free-form metadata associated with the team. */
2023
+ metadata?: {
2024
+ [key: string]: unknown;
2025
+ };
2026
+ /**
2027
+ * Format: date-time
2028
+ * @description Timestamp when the team was created.
2029
+ */
2030
+ createdAt?: string;
2031
+ /**
2032
+ * Format: date-time
2033
+ * @description Timestamp when the team was last updated.
2034
+ */
2035
+ updatedAt?: string;
2036
+ /**
2037
+ * Format: date-time
2038
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
2039
+ */
2040
+ deletedAt?: string | null;
2041
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
2042
+ roleNames: string[];
2043
+ }[];
1572
2044
  /** @description Total number of team memberships returned for the user. */
1573
2045
  totalCount?: number;
1574
2046
  };
1575
2047
  /** @description Organizations the user belongs to with role information */
1576
2048
  organizations?: {
1577
2049
  /** @description Organization memberships for the user with their assigned roles. */
1578
- organizationsWithRoles?: Record<string, never>[];
2050
+ organizationsWithRoles?: {
2051
+ /**
2052
+ * Format: uuid
2053
+ * @description Unique identifier of the organization.
2054
+ */
2055
+ id: string;
2056
+ /** @description Name of the organization. */
2057
+ name: string;
2058
+ /** @description Human readable description of the organization. */
2059
+ description?: string;
2060
+ /** @description Country associated with the organization. */
2061
+ country?: string;
2062
+ /** @description Region associated with the organization. */
2063
+ region?: string;
2064
+ /**
2065
+ * Format: uuid
2066
+ * @description Identifier of the organization owner.
2067
+ */
2068
+ owner?: string;
2069
+ /**
2070
+ * Format: date-time
2071
+ * @description Timestamp when the organization was created.
2072
+ */
2073
+ createdAt?: string;
2074
+ /**
2075
+ * Format: date-time
2076
+ * @description Timestamp when the organization was last updated.
2077
+ */
2078
+ updatedAt?: string;
2079
+ /**
2080
+ * Format: date-time
2081
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
2082
+ */
2083
+ deletedAt?: string | null;
2084
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
2085
+ roleNames: string[];
2086
+ }[];
1579
2087
  /** @description Total number of organization memberships returned for the user. */
1580
2088
  totalCount?: number;
1581
2089
  };
@@ -1799,24 +2307,96 @@ export interface operations {
1799
2307
  */
1800
2308
  deletedAt: string | null;
1801
2309
  /**
1802
- * @description List of global roles assigned to the user
2310
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
1803
2311
  * @example [
1804
- * "admin",
1805
- * "meshmap"
2312
+ * "organization admin",
2313
+ * "user"
1806
2314
  * ]
1807
2315
  */
1808
- roleNames?: ("admin" | "meshmap" | "curator" | "team admin" | "workspace admin" | "workspace manager" | "organization admin" | "user")[];
2316
+ roleNames?: string[];
1809
2317
  /** @description Teams the user belongs to with role information */
1810
2318
  teams?: {
1811
2319
  /** @description Team memberships for the user with their assigned roles. */
1812
- teamsWithRoles?: Record<string, never>[];
2320
+ teamsWithRoles?: {
2321
+ /**
2322
+ * Format: uuid
2323
+ * @description Unique identifier of the team.
2324
+ */
2325
+ id: string;
2326
+ /** @description Name of the team. */
2327
+ name: string;
2328
+ /** @description Human readable description of the team. */
2329
+ description?: string;
2330
+ /**
2331
+ * Format: uuid
2332
+ * @description Identifier of the team owner.
2333
+ */
2334
+ owner?: string;
2335
+ /** @description Free-form metadata associated with the team. */
2336
+ metadata?: {
2337
+ [key: string]: unknown;
2338
+ };
2339
+ /**
2340
+ * Format: date-time
2341
+ * @description Timestamp when the team was created.
2342
+ */
2343
+ createdAt?: string;
2344
+ /**
2345
+ * Format: date-time
2346
+ * @description Timestamp when the team was last updated.
2347
+ */
2348
+ updatedAt?: string;
2349
+ /**
2350
+ * Format: date-time
2351
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
2352
+ */
2353
+ deletedAt?: string | null;
2354
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
2355
+ roleNames: string[];
2356
+ }[];
1813
2357
  /** @description Total number of team memberships returned for the user. */
1814
2358
  totalCount?: number;
1815
2359
  };
1816
2360
  /** @description Organizations the user belongs to with role information */
1817
2361
  organizations?: {
1818
2362
  /** @description Organization memberships for the user with their assigned roles. */
1819
- organizationsWithRoles?: Record<string, never>[];
2363
+ organizationsWithRoles?: {
2364
+ /**
2365
+ * Format: uuid
2366
+ * @description Unique identifier of the organization.
2367
+ */
2368
+ id: string;
2369
+ /** @description Name of the organization. */
2370
+ name: string;
2371
+ /** @description Human readable description of the organization. */
2372
+ description?: string;
2373
+ /** @description Country associated with the organization. */
2374
+ country?: string;
2375
+ /** @description Region associated with the organization. */
2376
+ region?: string;
2377
+ /**
2378
+ * Format: uuid
2379
+ * @description Identifier of the organization owner.
2380
+ */
2381
+ owner?: string;
2382
+ /**
2383
+ * Format: date-time
2384
+ * @description Timestamp when the organization was created.
2385
+ */
2386
+ createdAt?: string;
2387
+ /**
2388
+ * Format: date-time
2389
+ * @description Timestamp when the organization was last updated.
2390
+ */
2391
+ updatedAt?: string;
2392
+ /**
2393
+ * Format: date-time
2394
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
2395
+ */
2396
+ deletedAt?: string | null;
2397
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
2398
+ roleNames: string[];
2399
+ }[];
1820
2400
  /** @description Total number of organization memberships returned for the user. */
1821
2401
  totalCount?: number;
1822
2402
  };