@grantjs/schema 1.1.7 → 1.3.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 (50) hide show
  1. package/package.json +7 -7
  2. package/src/generated/graphql.ts +1617 -126
  3. package/src/generated/resolvers.ts +505 -0
  4. package/src/generated/schema-types.ts +268 -0
  5. package/src/index.ts +2 -0
  6. package/src/operations/groups/getGroupsList.graphql +38 -0
  7. package/src/operations/groups/updateGroup.graphql +6 -0
  8. package/src/operations/me/me.graphql +4 -0
  9. package/src/operations/permissions/getPermissionsList.graphql +45 -0
  10. package/src/operations/permissions/updatePermission.graphql +6 -0
  11. package/src/operations/resources/updateResource.graphql +6 -0
  12. package/src/operations/role-permissions/role-permissions.graphql +39 -0
  13. package/src/operations/roles/getRoles.graphql +12 -0
  14. package/src/operations/roles/getRolesList.graphql +38 -0
  15. package/src/operations/roles/updateRole.graphql +6 -0
  16. package/src/operations/user-permissions/user-permissions.graphql +39 -0
  17. package/src/operations/users/getUsers.graphql +26 -0
  18. package/src/operations/users/getUsersList.graphql +43 -0
  19. package/src/operations/users/updateUser.graphql +6 -0
  20. package/src/schema/auth/inputs/is-authorized.graphql +7 -0
  21. package/src/schema/auth/queries/is-authorized.graphql +3 -0
  22. package/src/schema/groups/types/group-searchable-field.graphql +1 -0
  23. package/src/schema/groups/types/group.graphql +3 -0
  24. package/src/schema/permissions/types/permission.graphql +2 -0
  25. package/src/schema/project-role-permissions/types/project-role-permission.graphql +27 -0
  26. package/src/schema/project-user-groups/types/project-user-group.graphql +27 -0
  27. package/src/schema/project-user-permissions/types/project-user-permission.graphql +27 -0
  28. package/src/schema/projects/inputs/sync-project-cdm.graphql +27 -0
  29. package/src/schema/role-permissions/inputs/assign-role-permission.graphql +5 -0
  30. package/src/schema/role-permissions/inputs/query-role-permissions.graphql +4 -0
  31. package/src/schema/role-permissions/inputs/revoke-role-permission.graphql +6 -0
  32. package/src/schema/role-permissions/mutations/assign-role-permission.graphql +3 -0
  33. package/src/schema/role-permissions/mutations/revoke-role-permission.graphql +3 -0
  34. package/src/schema/role-permissions/types/role-permission.graphql +10 -0
  35. package/src/schema/roles/inputs/create-role.graphql +1 -0
  36. package/src/schema/roles/types/role-searchable-field.graphql +1 -0
  37. package/src/schema/roles/types/role.graphql +5 -0
  38. package/src/schema/user-groups/inputs/add-user-group.graphql +4 -0
  39. package/src/schema/user-groups/inputs/query-user-groups.graphql +4 -0
  40. package/src/schema/user-groups/inputs/remove-user-group.graphql +4 -0
  41. package/src/schema/user-groups/types/user-group.graphql +10 -0
  42. package/src/schema/user-permissions/inputs/assign-user-permission.graphql +5 -0
  43. package/src/schema/user-permissions/inputs/query-user-permissions.graphql +4 -0
  44. package/src/schema/user-permissions/inputs/revoke-user-permission.graphql +6 -0
  45. package/src/schema/user-permissions/mutations/assign-user-permission.graphql +3 -0
  46. package/src/schema/user-permissions/mutations/revoke-user-permission.graphql +3 -0
  47. package/src/schema/user-permissions/types/user-permission.graphql +10 -0
  48. package/src/schema/users/inputs/create-user.graphql +2 -0
  49. package/src/schema/users/inputs/update-user.graphql +1 -0
  50. package/src/schema/users/types/user.graphql +7 -0
@@ -267,6 +267,34 @@ export type GetGroupsQuery = {
267
267
  };
268
268
  };
269
269
 
270
+ export type GetGroupsListQueryVariables = Exact<{
271
+ scope: Types.Scope;
272
+ page?: number | null | undefined;
273
+ limit?: number | null | undefined;
274
+ sort?: Types.GroupSortInput | null | undefined;
275
+ search?: string | null | undefined;
276
+ ids?: Array<string | number> | string | number | null | undefined;
277
+ tagIds?: Array<string | number> | string | number | null | undefined;
278
+ }>;
279
+
280
+ export type GetGroupsListQuery = {
281
+ groups: {
282
+ totalCount: number;
283
+ hasNextPage: boolean;
284
+ groups: Array<{
285
+ id: string;
286
+ name: string;
287
+ description: string | null;
288
+ metadata: Record<string, unknown>;
289
+ createdAt: Date;
290
+ updatedAt: Date;
291
+ permissionCount: number;
292
+ tagCount: number;
293
+ primaryTag: { id: string; name: string; color: string; isPrimary: boolean | null } | null;
294
+ }>;
295
+ };
296
+ };
297
+
270
298
  export type UpdateGroupMutationVariables = Exact<{
271
299
  id: string | number;
272
300
  input: Types.UpdateGroupInput;
@@ -280,6 +308,7 @@ export type UpdateGroupMutation = {
280
308
  metadata: Record<string, unknown>;
281
309
  createdAt: Date;
282
310
  updatedAt: Date;
311
+ tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
283
312
  };
284
313
  };
285
314
 
@@ -397,6 +426,10 @@ export type MeQuery = {
397
426
  name: string;
398
427
  pictureUrl: string | null;
399
428
  metadata: Record<string, unknown>;
429
+ roleCount: number;
430
+ permissionCount: number;
431
+ projectUserApiKeyCount: number;
432
+ tagCount: number;
400
433
  createdAt: Date;
401
434
  updatedAt: Date;
402
435
  };
@@ -893,6 +926,37 @@ export type GetPermissionsQuery = {
893
926
  };
894
927
  };
895
928
 
929
+ export type GetPermissionsListQueryVariables = Exact<{
930
+ scope: Types.Scope;
931
+ page?: number | null | undefined;
932
+ limit?: number | null | undefined;
933
+ sort?: Types.PermissionSortInput | null | undefined;
934
+ search?: string | null | undefined;
935
+ ids?: Array<string | number> | string | number | null | undefined;
936
+ tagIds?: Array<string | number> | string | number | null | undefined;
937
+ }>;
938
+
939
+ export type GetPermissionsListQuery = {
940
+ permissions: {
941
+ totalCount: number;
942
+ hasNextPage: boolean;
943
+ permissions: Array<{
944
+ id: string;
945
+ name: string;
946
+ action: string;
947
+ description: string | null;
948
+ metadata: Record<string, unknown>;
949
+ resourceId: string | null;
950
+ condition: Record<string, unknown> | null;
951
+ createdAt: Date;
952
+ updatedAt: Date;
953
+ tagCount: number;
954
+ primaryTag: { id: string; name: string; color: string; isPrimary: boolean | null } | null;
955
+ resource: { id: string; name: string; slug: string } | null;
956
+ }>;
957
+ };
958
+ };
959
+
896
960
  export type UpdatePermissionMutationVariables = Exact<{
897
961
  id: string | number;
898
962
  input: Types.UpdatePermissionInput;
@@ -909,6 +973,7 @@ export type UpdatePermissionMutation = {
909
973
  createdAt: Date;
910
974
  updatedAt: Date;
911
975
  resource: { id: string; name: string; slug: string } | null;
976
+ tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
912
977
  };
913
978
  };
914
979
 
@@ -1349,6 +1414,58 @@ export type UpdateResourceMutation = {
1349
1414
  isActive: boolean;
1350
1415
  createdAt: Date;
1351
1416
  updatedAt: Date;
1417
+ tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }>;
1418
+ };
1419
+ };
1420
+
1421
+ export type AssignRolePermissionMutationVariables = Exact<{
1422
+ input: Types.AssignRolePermissionInput;
1423
+ }>;
1424
+
1425
+ export type AssignRolePermissionMutation = {
1426
+ assignRolePermission: {
1427
+ id: string;
1428
+ roleId: string;
1429
+ permissionId: string;
1430
+ createdAt: Date;
1431
+ updatedAt: Date;
1432
+ };
1433
+ };
1434
+
1435
+ export type RevokeRolePermissionMutationVariables = Exact<{
1436
+ input: Types.RevokeRolePermissionInput;
1437
+ }>;
1438
+
1439
+ export type RevokeRolePermissionMutation = {
1440
+ revokeRolePermission: {
1441
+ id: string;
1442
+ roleId: string;
1443
+ permissionId: string;
1444
+ deletedAt: Date | null;
1445
+ };
1446
+ };
1447
+
1448
+ export type GetRoleDirectPermissionsQueryVariables = Exact<{
1449
+ scope: Types.Scope;
1450
+ roleId: string | number;
1451
+ }>;
1452
+
1453
+ export type GetRoleDirectPermissionsQuery = {
1454
+ roles: {
1455
+ roles: Array<{
1456
+ id: string;
1457
+ permissionCount: number;
1458
+ rolePermissions: Array<{
1459
+ id: string;
1460
+ permissionId: string;
1461
+ permission: {
1462
+ id: string;
1463
+ name: string;
1464
+ action: string;
1465
+ resource: { slug: string } | null;
1466
+ } | null;
1467
+ }> | null;
1468
+ }>;
1352
1469
  };
1353
1470
  };
1354
1471
 
@@ -1408,11 +1525,49 @@ export type GetRolesQuery = {
1408
1525
  name: string;
1409
1526
  tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
1410
1527
  }> | null;
1528
+ rolePermissions: Array<{
1529
+ id: string;
1530
+ permissionId: string;
1531
+ permission: {
1532
+ id: string;
1533
+ name: string;
1534
+ action: string;
1535
+ resource: { slug: string } | null;
1536
+ } | null;
1537
+ }> | null;
1411
1538
  tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
1412
1539
  }>;
1413
1540
  };
1414
1541
  };
1415
1542
 
1543
+ export type GetRolesListQueryVariables = Exact<{
1544
+ scope: Types.Scope;
1545
+ page?: number | null | undefined;
1546
+ limit?: number | null | undefined;
1547
+ sort?: Types.RoleSortInput | null | undefined;
1548
+ search?: string | null | undefined;
1549
+ ids?: Array<string | number> | string | number | null | undefined;
1550
+ tagIds?: Array<string | number> | string | number | null | undefined;
1551
+ }>;
1552
+
1553
+ export type GetRolesListQuery = {
1554
+ roles: {
1555
+ totalCount: number;
1556
+ hasNextPage: boolean;
1557
+ roles: Array<{
1558
+ id: string;
1559
+ name: string;
1560
+ description: string | null;
1561
+ metadata: Record<string, unknown>;
1562
+ createdAt: Date;
1563
+ updatedAt: Date;
1564
+ groupCount: number;
1565
+ tagCount: number;
1566
+ primaryTag: { id: string; name: string; color: string; isPrimary: boolean | null } | null;
1567
+ }>;
1568
+ };
1569
+ };
1570
+
1416
1571
  export type UpdateRoleMutationVariables = Exact<{
1417
1572
  id: string | number;
1418
1573
  input: Types.UpdateRoleInput;
@@ -1426,6 +1581,7 @@ export type UpdateRoleMutation = {
1426
1581
  metadata: Record<string, unknown>;
1427
1582
  createdAt: Date;
1428
1583
  updatedAt: Date;
1584
+ tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
1429
1585
  };
1430
1586
  };
1431
1587
 
@@ -1503,6 +1659,57 @@ export type UpdateTagMutation = {
1503
1659
  updateTag: { id: string; name: string; color: string; createdAt: Date; updatedAt: Date };
1504
1660
  };
1505
1661
 
1662
+ export type AssignUserPermissionMutationVariables = Exact<{
1663
+ input: Types.AssignUserPermissionInput;
1664
+ }>;
1665
+
1666
+ export type AssignUserPermissionMutation = {
1667
+ assignUserPermission: {
1668
+ id: string;
1669
+ userId: string;
1670
+ permissionId: string;
1671
+ createdAt: Date;
1672
+ updatedAt: Date;
1673
+ };
1674
+ };
1675
+
1676
+ export type RevokeUserPermissionMutationVariables = Exact<{
1677
+ input: Types.RevokeUserPermissionInput;
1678
+ }>;
1679
+
1680
+ export type RevokeUserPermissionMutation = {
1681
+ revokeUserPermission: {
1682
+ id: string;
1683
+ userId: string;
1684
+ permissionId: string;
1685
+ deletedAt: Date | null;
1686
+ };
1687
+ };
1688
+
1689
+ export type GetUserDirectPermissionsQueryVariables = Exact<{
1690
+ scope: Types.Scope;
1691
+ userId: string | number;
1692
+ }>;
1693
+
1694
+ export type GetUserDirectPermissionsQuery = {
1695
+ users: {
1696
+ users: Array<{
1697
+ id: string;
1698
+ permissionCount: number;
1699
+ userPermissions: Array<{
1700
+ id: string;
1701
+ permissionId: string;
1702
+ permission: {
1703
+ id: string;
1704
+ name: string;
1705
+ action: string;
1706
+ resource: { slug: string } | null;
1707
+ } | null;
1708
+ }> | null;
1709
+ }>;
1710
+ };
1711
+ };
1712
+
1506
1713
  export type CreateUserMutationVariables = Exact<{
1507
1714
  input: Types.CreateUserInput;
1508
1715
  }>;
@@ -1552,6 +1759,30 @@ export type GetUsersQuery = {
1552
1759
  name: string;
1553
1760
  tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
1554
1761
  }> | null;
1762
+ userGroups: Array<{
1763
+ id: string;
1764
+ groupId: string;
1765
+ group: {
1766
+ id: string;
1767
+ name: string;
1768
+ tags: Array<{
1769
+ id: string;
1770
+ name: string;
1771
+ color: string;
1772
+ isPrimary: boolean | null;
1773
+ }> | null;
1774
+ } | null;
1775
+ }> | null;
1776
+ userPermissions: Array<{
1777
+ id: string;
1778
+ permissionId: string;
1779
+ permission: {
1780
+ id: string;
1781
+ name: string;
1782
+ action: string;
1783
+ resource: { slug: string } | null;
1784
+ } | null;
1785
+ }> | null;
1555
1786
  tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
1556
1787
  authenticationMethods: Array<{
1557
1788
  provider: Types.UserAuthenticationMethodProvider;
@@ -1561,6 +1792,39 @@ export type GetUsersQuery = {
1561
1792
  };
1562
1793
  };
1563
1794
 
1795
+ export type GetUsersListQueryVariables = Exact<{
1796
+ scope: Types.Scope;
1797
+ page?: number | null | undefined;
1798
+ limit?: number | null | undefined;
1799
+ sort?: Types.UserSortInput | null | undefined;
1800
+ search?: string | null | undefined;
1801
+ ids?: Array<string | number> | string | number | null | undefined;
1802
+ tagIds?: Array<string | number> | string | number | null | undefined;
1803
+ }>;
1804
+
1805
+ export type GetUsersListQuery = {
1806
+ users: {
1807
+ totalCount: number;
1808
+ hasNextPage: boolean;
1809
+ users: Array<{
1810
+ id: string;
1811
+ name: string;
1812
+ pictureUrl: string | null;
1813
+ metadata: Record<string, unknown>;
1814
+ createdAt: Date;
1815
+ updatedAt: Date;
1816
+ roleCount: number;
1817
+ projectUserApiKeyCount: number;
1818
+ tagCount: number;
1819
+ primaryTag: { id: string; name: string; color: string; isPrimary: boolean | null } | null;
1820
+ authenticationMethods: Array<{
1821
+ provider: Types.UserAuthenticationMethodProvider;
1822
+ providerId: string;
1823
+ }> | null;
1824
+ }>;
1825
+ };
1826
+ };
1827
+
1564
1828
  export type UpdateUserMutationVariables = Exact<{
1565
1829
  id: string | number;
1566
1830
  input: Types.UpdateUserInput;
@@ -1573,6 +1837,7 @@ export type UpdateUserMutation = {
1573
1837
  metadata: Record<string, unknown>;
1574
1838
  createdAt: Date;
1575
1839
  updatedAt: Date;
1840
+ tags: Array<{ id: string; name: string; color: string; isPrimary: boolean | null }> | null;
1576
1841
  };
1577
1842
  };
1578
1843
 
@@ -2671,28 +2936,62 @@ export const GetGroupsDocument = {
2671
2936
  },
2672
2937
  ],
2673
2938
  } as unknown as DocumentNode<GetGroupsQuery, GetGroupsQueryVariables>;
2674
- export const UpdateGroupDocument = {
2939
+ export const GetGroupsListDocument = {
2675
2940
  kind: 'Document',
2676
2941
  definitions: [
2677
2942
  {
2678
2943
  kind: 'OperationDefinition',
2679
- operation: 'mutation',
2680
- name: { kind: 'Name', value: 'UpdateGroup' },
2944
+ operation: 'query',
2945
+ name: { kind: 'Name', value: 'GetGroupsList' },
2681
2946
  variableDefinitions: [
2682
2947
  {
2683
2948
  kind: 'VariableDefinition',
2684
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
2949
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
2685
2950
  type: {
2686
2951
  kind: 'NonNullType',
2687
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
2952
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
2688
2953
  },
2689
2954
  },
2690
2955
  {
2691
2956
  kind: 'VariableDefinition',
2692
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
2957
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
2958
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
2959
+ },
2960
+ {
2961
+ kind: 'VariableDefinition',
2962
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
2963
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
2964
+ },
2965
+ {
2966
+ kind: 'VariableDefinition',
2967
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
2968
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'GroupSortInput' } },
2969
+ },
2970
+ {
2971
+ kind: 'VariableDefinition',
2972
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
2973
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2974
+ },
2975
+ {
2976
+ kind: 'VariableDefinition',
2977
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
2693
2978
  type: {
2694
- kind: 'NonNullType',
2695
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'UpdateGroupInput' } },
2979
+ kind: 'ListType',
2980
+ type: {
2981
+ kind: 'NonNullType',
2982
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
2983
+ },
2984
+ },
2985
+ },
2986
+ {
2987
+ kind: 'VariableDefinition',
2988
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
2989
+ type: {
2990
+ kind: 'ListType',
2991
+ type: {
2992
+ kind: 'NonNullType',
2993
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
2994
+ },
2696
2995
  },
2697
2996
  },
2698
2997
  ],
@@ -2701,30 +3000,154 @@ export const UpdateGroupDocument = {
2701
3000
  selections: [
2702
3001
  {
2703
3002
  kind: 'Field',
2704
- name: { kind: 'Name', value: 'updateGroup' },
3003
+ name: { kind: 'Name', value: 'groups' },
2705
3004
  arguments: [
2706
3005
  {
2707
3006
  kind: 'Argument',
2708
- name: { kind: 'Name', value: 'id' },
2709
- value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
3007
+ name: { kind: 'Name', value: 'scope' },
3008
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
2710
3009
  },
2711
3010
  {
2712
3011
  kind: 'Argument',
2713
- name: { kind: 'Name', value: 'input' },
2714
- value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
3012
+ name: { kind: 'Name', value: 'page' },
3013
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
3014
+ },
3015
+ {
3016
+ kind: 'Argument',
3017
+ name: { kind: 'Name', value: 'limit' },
3018
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
3019
+ },
3020
+ {
3021
+ kind: 'Argument',
3022
+ name: { kind: 'Name', value: 'sort' },
3023
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
3024
+ },
3025
+ {
3026
+ kind: 'Argument',
3027
+ name: { kind: 'Name', value: 'search' },
3028
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
3029
+ },
3030
+ {
3031
+ kind: 'Argument',
3032
+ name: { kind: 'Name', value: 'ids' },
3033
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
3034
+ },
3035
+ {
3036
+ kind: 'Argument',
3037
+ name: { kind: 'Name', value: 'tagIds' },
3038
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
2715
3039
  },
2716
3040
  ],
2717
3041
  selectionSet: {
2718
3042
  kind: 'SelectionSet',
2719
3043
  selections: [
2720
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
2721
- { kind: 'Field', name: { kind: 'Name', value: 'name' } },
2722
- { kind: 'Field', name: { kind: 'Name', value: 'description' } },
2723
- { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
2724
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
2725
- { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
2726
- ],
2727
- },
3044
+ {
3045
+ kind: 'Field',
3046
+ name: { kind: 'Name', value: 'groups' },
3047
+ selectionSet: {
3048
+ kind: 'SelectionSet',
3049
+ selections: [
3050
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3051
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3052
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
3053
+ { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
3054
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
3055
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
3056
+ {
3057
+ kind: 'Field',
3058
+ name: { kind: 'Name', value: 'primaryTag' },
3059
+ selectionSet: {
3060
+ kind: 'SelectionSet',
3061
+ selections: [
3062
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3063
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3064
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
3065
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
3066
+ ],
3067
+ },
3068
+ },
3069
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionCount' } },
3070
+ { kind: 'Field', name: { kind: 'Name', value: 'tagCount' } },
3071
+ ],
3072
+ },
3073
+ },
3074
+ { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } },
3075
+ { kind: 'Field', name: { kind: 'Name', value: 'hasNextPage' } },
3076
+ ],
3077
+ },
3078
+ },
3079
+ ],
3080
+ },
3081
+ },
3082
+ ],
3083
+ } as unknown as DocumentNode<GetGroupsListQuery, GetGroupsListQueryVariables>;
3084
+ export const UpdateGroupDocument = {
3085
+ kind: 'Document',
3086
+ definitions: [
3087
+ {
3088
+ kind: 'OperationDefinition',
3089
+ operation: 'mutation',
3090
+ name: { kind: 'Name', value: 'UpdateGroup' },
3091
+ variableDefinitions: [
3092
+ {
3093
+ kind: 'VariableDefinition',
3094
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
3095
+ type: {
3096
+ kind: 'NonNullType',
3097
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
3098
+ },
3099
+ },
3100
+ {
3101
+ kind: 'VariableDefinition',
3102
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
3103
+ type: {
3104
+ kind: 'NonNullType',
3105
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'UpdateGroupInput' } },
3106
+ },
3107
+ },
3108
+ ],
3109
+ selectionSet: {
3110
+ kind: 'SelectionSet',
3111
+ selections: [
3112
+ {
3113
+ kind: 'Field',
3114
+ name: { kind: 'Name', value: 'updateGroup' },
3115
+ arguments: [
3116
+ {
3117
+ kind: 'Argument',
3118
+ name: { kind: 'Name', value: 'id' },
3119
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
3120
+ },
3121
+ {
3122
+ kind: 'Argument',
3123
+ name: { kind: 'Name', value: 'input' },
3124
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
3125
+ },
3126
+ ],
3127
+ selectionSet: {
3128
+ kind: 'SelectionSet',
3129
+ selections: [
3130
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3131
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3132
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
3133
+ { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
3134
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
3135
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
3136
+ {
3137
+ kind: 'Field',
3138
+ name: { kind: 'Name', value: 'tags' },
3139
+ selectionSet: {
3140
+ kind: 'SelectionSet',
3141
+ selections: [
3142
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3143
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3144
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
3145
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
3146
+ ],
3147
+ },
3148
+ },
3149
+ ],
3150
+ },
2728
3151
  },
2729
3152
  ],
2730
3153
  },
@@ -3136,6 +3559,13 @@ export const MeDocument = {
3136
3559
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3137
3560
  { kind: 'Field', name: { kind: 'Name', value: 'pictureUrl' } },
3138
3561
  { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
3562
+ { kind: 'Field', name: { kind: 'Name', value: 'roleCount' } },
3563
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionCount' } },
3564
+ {
3565
+ kind: 'Field',
3566
+ name: { kind: 'Name', value: 'projectUserApiKeyCount' },
3567
+ },
3568
+ { kind: 'Field', name: { kind: 'Name', value: 'tagCount' } },
3139
3569
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
3140
3570
  { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
3141
3571
  ],
@@ -5156,28 +5586,62 @@ export const GetPermissionsDocument = {
5156
5586
  },
5157
5587
  ],
5158
5588
  } as unknown as DocumentNode<GetPermissionsQuery, GetPermissionsQueryVariables>;
5159
- export const UpdatePermissionDocument = {
5589
+ export const GetPermissionsListDocument = {
5160
5590
  kind: 'Document',
5161
5591
  definitions: [
5162
5592
  {
5163
5593
  kind: 'OperationDefinition',
5164
- operation: 'mutation',
5165
- name: { kind: 'Name', value: 'UpdatePermission' },
5594
+ operation: 'query',
5595
+ name: { kind: 'Name', value: 'GetPermissionsList' },
5166
5596
  variableDefinitions: [
5167
5597
  {
5168
5598
  kind: 'VariableDefinition',
5169
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
5599
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
5170
5600
  type: {
5171
5601
  kind: 'NonNullType',
5172
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
5602
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
5173
5603
  },
5174
5604
  },
5175
5605
  {
5176
5606
  kind: 'VariableDefinition',
5177
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
5607
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
5608
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
5609
+ },
5610
+ {
5611
+ kind: 'VariableDefinition',
5612
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
5613
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
5614
+ },
5615
+ {
5616
+ kind: 'VariableDefinition',
5617
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
5618
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'PermissionSortInput' } },
5619
+ },
5620
+ {
5621
+ kind: 'VariableDefinition',
5622
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
5623
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
5624
+ },
5625
+ {
5626
+ kind: 'VariableDefinition',
5627
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
5178
5628
  type: {
5179
- kind: 'NonNullType',
5180
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'UpdatePermissionInput' } },
5629
+ kind: 'ListType',
5630
+ type: {
5631
+ kind: 'NonNullType',
5632
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
5633
+ },
5634
+ },
5635
+ },
5636
+ {
5637
+ kind: 'VariableDefinition',
5638
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
5639
+ type: {
5640
+ kind: 'ListType',
5641
+ type: {
5642
+ kind: 'NonNullType',
5643
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
5644
+ },
5181
5645
  },
5182
5646
  },
5183
5647
  ],
@@ -5186,42 +5650,93 @@ export const UpdatePermissionDocument = {
5186
5650
  selections: [
5187
5651
  {
5188
5652
  kind: 'Field',
5189
- name: { kind: 'Name', value: 'updatePermission' },
5653
+ name: { kind: 'Name', value: 'permissions' },
5190
5654
  arguments: [
5191
5655
  {
5192
5656
  kind: 'Argument',
5193
- name: { kind: 'Name', value: 'id' },
5194
- value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
5657
+ name: { kind: 'Name', value: 'scope' },
5658
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
5195
5659
  },
5196
5660
  {
5197
5661
  kind: 'Argument',
5198
- name: { kind: 'Name', value: 'input' },
5199
- value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
5662
+ name: { kind: 'Name', value: 'page' },
5663
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
5664
+ },
5665
+ {
5666
+ kind: 'Argument',
5667
+ name: { kind: 'Name', value: 'limit' },
5668
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
5669
+ },
5670
+ {
5671
+ kind: 'Argument',
5672
+ name: { kind: 'Name', value: 'sort' },
5673
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
5674
+ },
5675
+ {
5676
+ kind: 'Argument',
5677
+ name: { kind: 'Name', value: 'search' },
5678
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
5679
+ },
5680
+ {
5681
+ kind: 'Argument',
5682
+ name: { kind: 'Name', value: 'ids' },
5683
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
5684
+ },
5685
+ {
5686
+ kind: 'Argument',
5687
+ name: { kind: 'Name', value: 'tagIds' },
5688
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
5200
5689
  },
5201
5690
  ],
5202
5691
  selectionSet: {
5203
5692
  kind: 'SelectionSet',
5204
5693
  selections: [
5205
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5206
- { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5207
- { kind: 'Field', name: { kind: 'Name', value: 'action' } },
5208
- { kind: 'Field', name: { kind: 'Name', value: 'description' } },
5209
- { kind: 'Field', name: { kind: 'Name', value: 'resourceId' } },
5210
5694
  {
5211
5695
  kind: 'Field',
5212
- name: { kind: 'Name', value: 'resource' },
5696
+ name: { kind: 'Name', value: 'permissions' },
5213
5697
  selectionSet: {
5214
5698
  kind: 'SelectionSet',
5215
5699
  selections: [
5216
5700
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5217
5701
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5218
- { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
5702
+ { kind: 'Field', name: { kind: 'Name', value: 'action' } },
5703
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
5704
+ { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
5705
+ { kind: 'Field', name: { kind: 'Name', value: 'resourceId' } },
5706
+ { kind: 'Field', name: { kind: 'Name', value: 'condition' } },
5707
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
5708
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
5709
+ {
5710
+ kind: 'Field',
5711
+ name: { kind: 'Name', value: 'primaryTag' },
5712
+ selectionSet: {
5713
+ kind: 'SelectionSet',
5714
+ selections: [
5715
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5716
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5717
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
5718
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
5719
+ ],
5720
+ },
5721
+ },
5722
+ {
5723
+ kind: 'Field',
5724
+ name: { kind: 'Name', value: 'resource' },
5725
+ selectionSet: {
5726
+ kind: 'SelectionSet',
5727
+ selections: [
5728
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5729
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5730
+ { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
5731
+ ],
5732
+ },
5733
+ },
5734
+ { kind: 'Field', name: { kind: 'Name', value: 'tagCount' } },
5219
5735
  ],
5220
5736
  },
5221
5737
  },
5222
- { kind: 'Field', name: { kind: 'Name', value: 'condition' } },
5223
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
5224
- { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
5738
+ { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } },
5739
+ { kind: 'Field', name: { kind: 'Name', value: 'hasNextPage' } },
5225
5740
  ],
5226
5741
  },
5227
5742
  },
@@ -5229,21 +5744,29 @@ export const UpdatePermissionDocument = {
5229
5744
  },
5230
5745
  },
5231
5746
  ],
5232
- } as unknown as DocumentNode<UpdatePermissionMutation, UpdatePermissionMutationVariables>;
5233
- export const CreateProjectAppDocument = {
5747
+ } as unknown as DocumentNode<GetPermissionsListQuery, GetPermissionsListQueryVariables>;
5748
+ export const UpdatePermissionDocument = {
5234
5749
  kind: 'Document',
5235
5750
  definitions: [
5236
5751
  {
5237
5752
  kind: 'OperationDefinition',
5238
5753
  operation: 'mutation',
5239
- name: { kind: 'Name', value: 'CreateProjectApp' },
5754
+ name: { kind: 'Name', value: 'UpdatePermission' },
5240
5755
  variableDefinitions: [
5756
+ {
5757
+ kind: 'VariableDefinition',
5758
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
5759
+ type: {
5760
+ kind: 'NonNullType',
5761
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
5762
+ },
5763
+ },
5241
5764
  {
5242
5765
  kind: 'VariableDefinition',
5243
5766
  variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
5244
5767
  type: {
5245
5768
  kind: 'NonNullType',
5246
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'CreateProjectAppInput' } },
5769
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'UpdatePermissionInput' } },
5247
5770
  },
5248
5771
  },
5249
5772
  ],
@@ -5252,8 +5775,13 @@ export const CreateProjectAppDocument = {
5252
5775
  selections: [
5253
5776
  {
5254
5777
  kind: 'Field',
5255
- name: { kind: 'Name', value: 'createProjectApp' },
5778
+ name: { kind: 'Name', value: 'updatePermission' },
5256
5779
  arguments: [
5780
+ {
5781
+ kind: 'Argument',
5782
+ name: { kind: 'Name', value: 'id' },
5783
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
5784
+ },
5257
5785
  {
5258
5786
  kind: 'Argument',
5259
5787
  name: { kind: 'Name', value: 'input' },
@@ -5264,7 +5792,81 @@ export const CreateProjectAppDocument = {
5264
5792
  kind: 'SelectionSet',
5265
5793
  selections: [
5266
5794
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5267
- { kind: 'Field', name: { kind: 'Name', value: 'clientId' } },
5795
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5796
+ { kind: 'Field', name: { kind: 'Name', value: 'action' } },
5797
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
5798
+ { kind: 'Field', name: { kind: 'Name', value: 'resourceId' } },
5799
+ {
5800
+ kind: 'Field',
5801
+ name: { kind: 'Name', value: 'resource' },
5802
+ selectionSet: {
5803
+ kind: 'SelectionSet',
5804
+ selections: [
5805
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5806
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5807
+ { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
5808
+ ],
5809
+ },
5810
+ },
5811
+ { kind: 'Field', name: { kind: 'Name', value: 'condition' } },
5812
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
5813
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
5814
+ {
5815
+ kind: 'Field',
5816
+ name: { kind: 'Name', value: 'tags' },
5817
+ selectionSet: {
5818
+ kind: 'SelectionSet',
5819
+ selections: [
5820
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5821
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5822
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
5823
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
5824
+ ],
5825
+ },
5826
+ },
5827
+ ],
5828
+ },
5829
+ },
5830
+ ],
5831
+ },
5832
+ },
5833
+ ],
5834
+ } as unknown as DocumentNode<UpdatePermissionMutation, UpdatePermissionMutationVariables>;
5835
+ export const CreateProjectAppDocument = {
5836
+ kind: 'Document',
5837
+ definitions: [
5838
+ {
5839
+ kind: 'OperationDefinition',
5840
+ operation: 'mutation',
5841
+ name: { kind: 'Name', value: 'CreateProjectApp' },
5842
+ variableDefinitions: [
5843
+ {
5844
+ kind: 'VariableDefinition',
5845
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
5846
+ type: {
5847
+ kind: 'NonNullType',
5848
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'CreateProjectAppInput' } },
5849
+ },
5850
+ },
5851
+ ],
5852
+ selectionSet: {
5853
+ kind: 'SelectionSet',
5854
+ selections: [
5855
+ {
5856
+ kind: 'Field',
5857
+ name: { kind: 'Name', value: 'createProjectApp' },
5858
+ arguments: [
5859
+ {
5860
+ kind: 'Argument',
5861
+ name: { kind: 'Name', value: 'input' },
5862
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
5863
+ },
5864
+ ],
5865
+ selectionSet: {
5866
+ kind: 'SelectionSet',
5867
+ selections: [
5868
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5869
+ { kind: 'Field', name: { kind: 'Name', value: 'clientId' } },
5268
5870
  { kind: 'Field', name: { kind: 'Name', value: 'clientSecret' } },
5269
5871
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
5270
5872
  { kind: 'Field', name: { kind: 'Name', value: 'redirectUris' } },
@@ -6846,6 +7448,19 @@ export const UpdateResourceDocument = {
6846
7448
  { kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
6847
7449
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
6848
7450
  { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
7451
+ {
7452
+ kind: 'Field',
7453
+ name: { kind: 'Name', value: 'tags' },
7454
+ selectionSet: {
7455
+ kind: 'SelectionSet',
7456
+ selections: [
7457
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7458
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7459
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
7460
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
7461
+ ],
7462
+ },
7463
+ },
6849
7464
  ],
6850
7465
  },
6851
7466
  },
@@ -6854,6 +7469,213 @@ export const UpdateResourceDocument = {
6854
7469
  },
6855
7470
  ],
6856
7471
  } as unknown as DocumentNode<UpdateResourceMutation, UpdateResourceMutationVariables>;
7472
+ export const AssignRolePermissionDocument = {
7473
+ kind: 'Document',
7474
+ definitions: [
7475
+ {
7476
+ kind: 'OperationDefinition',
7477
+ operation: 'mutation',
7478
+ name: { kind: 'Name', value: 'AssignRolePermission' },
7479
+ variableDefinitions: [
7480
+ {
7481
+ kind: 'VariableDefinition',
7482
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7483
+ type: {
7484
+ kind: 'NonNullType',
7485
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'AssignRolePermissionInput' } },
7486
+ },
7487
+ },
7488
+ ],
7489
+ selectionSet: {
7490
+ kind: 'SelectionSet',
7491
+ selections: [
7492
+ {
7493
+ kind: 'Field',
7494
+ name: { kind: 'Name', value: 'assignRolePermission' },
7495
+ arguments: [
7496
+ {
7497
+ kind: 'Argument',
7498
+ name: { kind: 'Name', value: 'input' },
7499
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7500
+ },
7501
+ ],
7502
+ selectionSet: {
7503
+ kind: 'SelectionSet',
7504
+ selections: [
7505
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7506
+ { kind: 'Field', name: { kind: 'Name', value: 'roleId' } },
7507
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
7508
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
7509
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
7510
+ ],
7511
+ },
7512
+ },
7513
+ ],
7514
+ },
7515
+ },
7516
+ ],
7517
+ } as unknown as DocumentNode<AssignRolePermissionMutation, AssignRolePermissionMutationVariables>;
7518
+ export const RevokeRolePermissionDocument = {
7519
+ kind: 'Document',
7520
+ definitions: [
7521
+ {
7522
+ kind: 'OperationDefinition',
7523
+ operation: 'mutation',
7524
+ name: { kind: 'Name', value: 'RevokeRolePermission' },
7525
+ variableDefinitions: [
7526
+ {
7527
+ kind: 'VariableDefinition',
7528
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7529
+ type: {
7530
+ kind: 'NonNullType',
7531
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'RevokeRolePermissionInput' } },
7532
+ },
7533
+ },
7534
+ ],
7535
+ selectionSet: {
7536
+ kind: 'SelectionSet',
7537
+ selections: [
7538
+ {
7539
+ kind: 'Field',
7540
+ name: { kind: 'Name', value: 'revokeRolePermission' },
7541
+ arguments: [
7542
+ {
7543
+ kind: 'Argument',
7544
+ name: { kind: 'Name', value: 'input' },
7545
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7546
+ },
7547
+ ],
7548
+ selectionSet: {
7549
+ kind: 'SelectionSet',
7550
+ selections: [
7551
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7552
+ { kind: 'Field', name: { kind: 'Name', value: 'roleId' } },
7553
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
7554
+ { kind: 'Field', name: { kind: 'Name', value: 'deletedAt' } },
7555
+ ],
7556
+ },
7557
+ },
7558
+ ],
7559
+ },
7560
+ },
7561
+ ],
7562
+ } as unknown as DocumentNode<RevokeRolePermissionMutation, RevokeRolePermissionMutationVariables>;
7563
+ export const GetRoleDirectPermissionsDocument = {
7564
+ kind: 'Document',
7565
+ definitions: [
7566
+ {
7567
+ kind: 'OperationDefinition',
7568
+ operation: 'query',
7569
+ name: { kind: 'Name', value: 'GetRoleDirectPermissions' },
7570
+ variableDefinitions: [
7571
+ {
7572
+ kind: 'VariableDefinition',
7573
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
7574
+ type: {
7575
+ kind: 'NonNullType',
7576
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
7577
+ },
7578
+ },
7579
+ {
7580
+ kind: 'VariableDefinition',
7581
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'roleId' } },
7582
+ type: {
7583
+ kind: 'NonNullType',
7584
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
7585
+ },
7586
+ },
7587
+ ],
7588
+ selectionSet: {
7589
+ kind: 'SelectionSet',
7590
+ selections: [
7591
+ {
7592
+ kind: 'Field',
7593
+ name: { kind: 'Name', value: 'roles' },
7594
+ arguments: [
7595
+ {
7596
+ kind: 'Argument',
7597
+ name: { kind: 'Name', value: 'scope' },
7598
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
7599
+ },
7600
+ {
7601
+ kind: 'Argument',
7602
+ name: { kind: 'Name', value: 'ids' },
7603
+ value: {
7604
+ kind: 'ListValue',
7605
+ values: [{ kind: 'Variable', name: { kind: 'Name', value: 'roleId' } }],
7606
+ },
7607
+ },
7608
+ {
7609
+ kind: 'Argument',
7610
+ name: { kind: 'Name', value: 'limit' },
7611
+ value: { kind: 'IntValue', value: '1' },
7612
+ },
7613
+ ],
7614
+ selectionSet: {
7615
+ kind: 'SelectionSet',
7616
+ selections: [
7617
+ {
7618
+ kind: 'Field',
7619
+ name: { kind: 'Name', value: 'roles' },
7620
+ selectionSet: {
7621
+ kind: 'SelectionSet',
7622
+ selections: [
7623
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7624
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionCount' } },
7625
+ {
7626
+ kind: 'Field',
7627
+ name: { kind: 'Name', value: 'rolePermissions' },
7628
+ selectionSet: {
7629
+ kind: 'SelectionSet',
7630
+ selections: [
7631
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7632
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
7633
+ {
7634
+ kind: 'Field',
7635
+ name: { kind: 'Name', value: 'permission' },
7636
+ arguments: [
7637
+ {
7638
+ kind: 'Argument',
7639
+ name: { kind: 'Name', value: 'scope' },
7640
+ value: {
7641
+ kind: 'Variable',
7642
+ name: { kind: 'Name', value: 'scope' },
7643
+ },
7644
+ },
7645
+ ],
7646
+ selectionSet: {
7647
+ kind: 'SelectionSet',
7648
+ selections: [
7649
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7650
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7651
+ { kind: 'Field', name: { kind: 'Name', value: 'action' } },
7652
+ {
7653
+ kind: 'Field',
7654
+ name: { kind: 'Name', value: 'resource' },
7655
+ selectionSet: {
7656
+ kind: 'SelectionSet',
7657
+ selections: [
7658
+ { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
7659
+ ],
7660
+ },
7661
+ },
7662
+ ],
7663
+ },
7664
+ },
7665
+ ],
7666
+ },
7667
+ },
7668
+ ],
7669
+ },
7670
+ },
7671
+ ],
7672
+ },
7673
+ },
7674
+ ],
7675
+ },
7676
+ },
7677
+ ],
7678
+ } as unknown as DocumentNode<GetRoleDirectPermissionsQuery, GetRoleDirectPermissionsQueryVariables>;
6857
7679
  export const CreateRoleDocument = {
6858
7680
  kind: 'Document',
6859
7681
  definitions: [
@@ -7103,13 +7925,56 @@ export const GetRolesDocument = {
7103
7925
  },
7104
7926
  {
7105
7927
  kind: 'Field',
7106
- name: { kind: 'Name', value: 'tags' },
7928
+ name: { kind: 'Name', value: 'rolePermissions' },
7107
7929
  selectionSet: {
7108
7930
  kind: 'SelectionSet',
7109
7931
  selections: [
7110
7932
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7111
- { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7112
- { kind: 'Field', name: { kind: 'Name', value: 'color' } },
7933
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
7934
+ {
7935
+ kind: 'Field',
7936
+ name: { kind: 'Name', value: 'permission' },
7937
+ arguments: [
7938
+ {
7939
+ kind: 'Argument',
7940
+ name: { kind: 'Name', value: 'scope' },
7941
+ value: {
7942
+ kind: 'Variable',
7943
+ name: { kind: 'Name', value: 'scope' },
7944
+ },
7945
+ },
7946
+ ],
7947
+ selectionSet: {
7948
+ kind: 'SelectionSet',
7949
+ selections: [
7950
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7951
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7952
+ { kind: 'Field', name: { kind: 'Name', value: 'action' } },
7953
+ {
7954
+ kind: 'Field',
7955
+ name: { kind: 'Name', value: 'resource' },
7956
+ selectionSet: {
7957
+ kind: 'SelectionSet',
7958
+ selections: [
7959
+ { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
7960
+ ],
7961
+ },
7962
+ },
7963
+ ],
7964
+ },
7965
+ },
7966
+ ],
7967
+ },
7968
+ },
7969
+ {
7970
+ kind: 'Field',
7971
+ name: { kind: 'Name', value: 'tags' },
7972
+ selectionSet: {
7973
+ kind: 'SelectionSet',
7974
+ selections: [
7975
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7976
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7977
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
7113
7978
  { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
7114
7979
  ],
7115
7980
  },
@@ -7127,6 +7992,151 @@ export const GetRolesDocument = {
7127
7992
  },
7128
7993
  ],
7129
7994
  } as unknown as DocumentNode<GetRolesQuery, GetRolesQueryVariables>;
7995
+ export const GetRolesListDocument = {
7996
+ kind: 'Document',
7997
+ definitions: [
7998
+ {
7999
+ kind: 'OperationDefinition',
8000
+ operation: 'query',
8001
+ name: { kind: 'Name', value: 'GetRolesList' },
8002
+ variableDefinitions: [
8003
+ {
8004
+ kind: 'VariableDefinition',
8005
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8006
+ type: {
8007
+ kind: 'NonNullType',
8008
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
8009
+ },
8010
+ },
8011
+ {
8012
+ kind: 'VariableDefinition',
8013
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
8014
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
8015
+ },
8016
+ {
8017
+ kind: 'VariableDefinition',
8018
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
8019
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
8020
+ },
8021
+ {
8022
+ kind: 'VariableDefinition',
8023
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
8024
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'RoleSortInput' } },
8025
+ },
8026
+ {
8027
+ kind: 'VariableDefinition',
8028
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
8029
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
8030
+ },
8031
+ {
8032
+ kind: 'VariableDefinition',
8033
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
8034
+ type: {
8035
+ kind: 'ListType',
8036
+ type: {
8037
+ kind: 'NonNullType',
8038
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
8039
+ },
8040
+ },
8041
+ },
8042
+ {
8043
+ kind: 'VariableDefinition',
8044
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
8045
+ type: {
8046
+ kind: 'ListType',
8047
+ type: {
8048
+ kind: 'NonNullType',
8049
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
8050
+ },
8051
+ },
8052
+ },
8053
+ ],
8054
+ selectionSet: {
8055
+ kind: 'SelectionSet',
8056
+ selections: [
8057
+ {
8058
+ kind: 'Field',
8059
+ name: { kind: 'Name', value: 'roles' },
8060
+ arguments: [
8061
+ {
8062
+ kind: 'Argument',
8063
+ name: { kind: 'Name', value: 'scope' },
8064
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8065
+ },
8066
+ {
8067
+ kind: 'Argument',
8068
+ name: { kind: 'Name', value: 'page' },
8069
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
8070
+ },
8071
+ {
8072
+ kind: 'Argument',
8073
+ name: { kind: 'Name', value: 'limit' },
8074
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
8075
+ },
8076
+ {
8077
+ kind: 'Argument',
8078
+ name: { kind: 'Name', value: 'sort' },
8079
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
8080
+ },
8081
+ {
8082
+ kind: 'Argument',
8083
+ name: { kind: 'Name', value: 'search' },
8084
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
8085
+ },
8086
+ {
8087
+ kind: 'Argument',
8088
+ name: { kind: 'Name', value: 'ids' },
8089
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
8090
+ },
8091
+ {
8092
+ kind: 'Argument',
8093
+ name: { kind: 'Name', value: 'tagIds' },
8094
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
8095
+ },
8096
+ ],
8097
+ selectionSet: {
8098
+ kind: 'SelectionSet',
8099
+ selections: [
8100
+ {
8101
+ kind: 'Field',
8102
+ name: { kind: 'Name', value: 'roles' },
8103
+ selectionSet: {
8104
+ kind: 'SelectionSet',
8105
+ selections: [
8106
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8107
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
8108
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
8109
+ { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
8110
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
8111
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
8112
+ {
8113
+ kind: 'Field',
8114
+ name: { kind: 'Name', value: 'primaryTag' },
8115
+ selectionSet: {
8116
+ kind: 'SelectionSet',
8117
+ selections: [
8118
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8119
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
8120
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
8121
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
8122
+ ],
8123
+ },
8124
+ },
8125
+ { kind: 'Field', name: { kind: 'Name', value: 'groupCount' } },
8126
+ { kind: 'Field', name: { kind: 'Name', value: 'tagCount' } },
8127
+ ],
8128
+ },
8129
+ },
8130
+ { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } },
8131
+ { kind: 'Field', name: { kind: 'Name', value: 'hasNextPage' } },
8132
+ ],
8133
+ },
8134
+ },
8135
+ ],
8136
+ },
8137
+ },
8138
+ ],
8139
+ } as unknown as DocumentNode<GetRolesListQuery, GetRolesListQueryVariables>;
7130
8140
  export const UpdateRoleDocument = {
7131
8141
  kind: 'Document',
7132
8142
  definitions: [
@@ -7179,6 +8189,19 @@ export const UpdateRoleDocument = {
7179
8189
  { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
7180
8190
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
7181
8191
  { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
8192
+ {
8193
+ kind: 'Field',
8194
+ name: { kind: 'Name', value: 'tags' },
8195
+ selectionSet: {
8196
+ kind: 'SelectionSet',
8197
+ selections: [
8198
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8199
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
8200
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
8201
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
8202
+ ],
8203
+ },
8204
+ },
7182
8205
  ],
7183
8206
  },
7184
8207
  },
@@ -7559,20 +8582,20 @@ export const UpdateTagDocument = {
7559
8582
  },
7560
8583
  ],
7561
8584
  } as unknown as DocumentNode<UpdateTagMutation, UpdateTagMutationVariables>;
7562
- export const CreateUserDocument = {
8585
+ export const AssignUserPermissionDocument = {
7563
8586
  kind: 'Document',
7564
8587
  definitions: [
7565
8588
  {
7566
8589
  kind: 'OperationDefinition',
7567
8590
  operation: 'mutation',
7568
- name: { kind: 'Name', value: 'CreateUser' },
8591
+ name: { kind: 'Name', value: 'AssignUserPermission' },
7569
8592
  variableDefinitions: [
7570
8593
  {
7571
8594
  kind: 'VariableDefinition',
7572
8595
  variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7573
8596
  type: {
7574
8597
  kind: 'NonNullType',
7575
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'CreateUserInput' } },
8598
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'AssignUserPermissionInput' } },
7576
8599
  },
7577
8600
  },
7578
8601
  ],
@@ -7581,7 +8604,7 @@ export const CreateUserDocument = {
7581
8604
  selections: [
7582
8605
  {
7583
8606
  kind: 'Field',
7584
- name: { kind: 'Name', value: 'createUser' },
8607
+ name: { kind: 'Name', value: 'assignUserPermission' },
7585
8608
  arguments: [
7586
8609
  {
7587
8610
  kind: 'Argument',
@@ -7593,8 +8616,8 @@ export const CreateUserDocument = {
7593
8616
  kind: 'SelectionSet',
7594
8617
  selections: [
7595
8618
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7596
- { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7597
- { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
8619
+ { kind: 'Field', name: { kind: 'Name', value: 'userId' } },
8620
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
7598
8621
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
7599
8622
  { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
7600
8623
  ],
@@ -7604,29 +8627,21 @@ export const CreateUserDocument = {
7604
8627
  },
7605
8628
  },
7606
8629
  ],
7607
- } as unknown as DocumentNode<CreateUserMutation, CreateUserMutationVariables>;
7608
- export const DeleteUserDocument = {
8630
+ } as unknown as DocumentNode<AssignUserPermissionMutation, AssignUserPermissionMutationVariables>;
8631
+ export const RevokeUserPermissionDocument = {
7609
8632
  kind: 'Document',
7610
8633
  definitions: [
7611
8634
  {
7612
8635
  kind: 'OperationDefinition',
7613
8636
  operation: 'mutation',
7614
- name: { kind: 'Name', value: 'DeleteUser' },
8637
+ name: { kind: 'Name', value: 'RevokeUserPermission' },
7615
8638
  variableDefinitions: [
7616
8639
  {
7617
8640
  kind: 'VariableDefinition',
7618
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
7619
- type: {
7620
- kind: 'NonNullType',
7621
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
7622
- },
7623
- },
7624
- {
7625
- kind: 'VariableDefinition',
7626
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8641
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7627
8642
  type: {
7628
8643
  kind: 'NonNullType',
7629
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
8644
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'RevokeUserPermissionInput' } },
7630
8645
  },
7631
8646
  },
7632
8647
  ],
@@ -7635,26 +8650,21 @@ export const DeleteUserDocument = {
7635
8650
  selections: [
7636
8651
  {
7637
8652
  kind: 'Field',
7638
- name: { kind: 'Name', value: 'deleteUser' },
8653
+ name: { kind: 'Name', value: 'revokeUserPermission' },
7639
8654
  arguments: [
7640
8655
  {
7641
8656
  kind: 'Argument',
7642
- name: { kind: 'Name', value: 'id' },
7643
- value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
7644
- },
7645
- {
7646
- kind: 'Argument',
7647
- name: { kind: 'Name', value: 'scope' },
7648
- value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8657
+ name: { kind: 'Name', value: 'input' },
8658
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
7649
8659
  },
7650
8660
  ],
7651
8661
  selectionSet: {
7652
8662
  kind: 'SelectionSet',
7653
8663
  selections: [
7654
8664
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
7655
- { kind: 'Field', name: { kind: 'Name', value: 'name' } },
7656
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
7657
- { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
8665
+ { kind: 'Field', name: { kind: 'Name', value: 'userId' } },
8666
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
8667
+ { kind: 'Field', name: { kind: 'Name', value: 'deletedAt' } },
7658
8668
  ],
7659
8669
  },
7660
8670
  },
@@ -7662,14 +8672,14 @@ export const DeleteUserDocument = {
7662
8672
  },
7663
8673
  },
7664
8674
  ],
7665
- } as unknown as DocumentNode<DeleteUserMutation, DeleteUserMutationVariables>;
7666
- export const GetUsersDocument = {
8675
+ } as unknown as DocumentNode<RevokeUserPermissionMutation, RevokeUserPermissionMutationVariables>;
8676
+ export const GetUserDirectPermissionsDocument = {
7667
8677
  kind: 'Document',
7668
8678
  definitions: [
7669
8679
  {
7670
8680
  kind: 'OperationDefinition',
7671
8681
  operation: 'query',
7672
- name: { kind: 'Name', value: 'GetUsers' },
8682
+ name: { kind: 'Name', value: 'GetUserDirectPermissions' },
7673
8683
  variableDefinitions: [
7674
8684
  {
7675
8685
  kind: 'VariableDefinition',
@@ -7681,44 +8691,10 @@ export const GetUsersDocument = {
7681
8691
  },
7682
8692
  {
7683
8693
  kind: 'VariableDefinition',
7684
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
7685
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
7686
- },
7687
- {
7688
- kind: 'VariableDefinition',
7689
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
7690
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
7691
- },
7692
- {
7693
- kind: 'VariableDefinition',
7694
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
7695
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'UserSortInput' } },
7696
- },
7697
- {
7698
- kind: 'VariableDefinition',
7699
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
7700
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
7701
- },
7702
- {
7703
- kind: 'VariableDefinition',
7704
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
7705
- type: {
7706
- kind: 'ListType',
7707
- type: {
7708
- kind: 'NonNullType',
7709
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
7710
- },
7711
- },
7712
- },
7713
- {
7714
- kind: 'VariableDefinition',
7715
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
8694
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'userId' } },
7716
8695
  type: {
7717
- kind: 'ListType',
7718
- type: {
7719
- kind: 'NonNullType',
7720
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
7721
- },
8696
+ kind: 'NonNullType',
8697
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
7722
8698
  },
7723
8699
  },
7724
8700
  ],
@@ -7736,9 +8712,263 @@ export const GetUsersDocument = {
7736
8712
  },
7737
8713
  {
7738
8714
  kind: 'Argument',
7739
- name: { kind: 'Name', value: 'page' },
7740
- value: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
7741
- },
8715
+ name: { kind: 'Name', value: 'ids' },
8716
+ value: {
8717
+ kind: 'ListValue',
8718
+ values: [{ kind: 'Variable', name: { kind: 'Name', value: 'userId' } }],
8719
+ },
8720
+ },
8721
+ {
8722
+ kind: 'Argument',
8723
+ name: { kind: 'Name', value: 'limit' },
8724
+ value: { kind: 'IntValue', value: '1' },
8725
+ },
8726
+ ],
8727
+ selectionSet: {
8728
+ kind: 'SelectionSet',
8729
+ selections: [
8730
+ {
8731
+ kind: 'Field',
8732
+ name: { kind: 'Name', value: 'users' },
8733
+ selectionSet: {
8734
+ kind: 'SelectionSet',
8735
+ selections: [
8736
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8737
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionCount' } },
8738
+ {
8739
+ kind: 'Field',
8740
+ name: { kind: 'Name', value: 'userPermissions' },
8741
+ selectionSet: {
8742
+ kind: 'SelectionSet',
8743
+ selections: [
8744
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8745
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
8746
+ {
8747
+ kind: 'Field',
8748
+ name: { kind: 'Name', value: 'permission' },
8749
+ arguments: [
8750
+ {
8751
+ kind: 'Argument',
8752
+ name: { kind: 'Name', value: 'scope' },
8753
+ value: {
8754
+ kind: 'Variable',
8755
+ name: { kind: 'Name', value: 'scope' },
8756
+ },
8757
+ },
8758
+ ],
8759
+ selectionSet: {
8760
+ kind: 'SelectionSet',
8761
+ selections: [
8762
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8763
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
8764
+ { kind: 'Field', name: { kind: 'Name', value: 'action' } },
8765
+ {
8766
+ kind: 'Field',
8767
+ name: { kind: 'Name', value: 'resource' },
8768
+ selectionSet: {
8769
+ kind: 'SelectionSet',
8770
+ selections: [
8771
+ { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
8772
+ ],
8773
+ },
8774
+ },
8775
+ ],
8776
+ },
8777
+ },
8778
+ ],
8779
+ },
8780
+ },
8781
+ ],
8782
+ },
8783
+ },
8784
+ ],
8785
+ },
8786
+ },
8787
+ ],
8788
+ },
8789
+ },
8790
+ ],
8791
+ } as unknown as DocumentNode<GetUserDirectPermissionsQuery, GetUserDirectPermissionsQueryVariables>;
8792
+ export const CreateUserDocument = {
8793
+ kind: 'Document',
8794
+ definitions: [
8795
+ {
8796
+ kind: 'OperationDefinition',
8797
+ operation: 'mutation',
8798
+ name: { kind: 'Name', value: 'CreateUser' },
8799
+ variableDefinitions: [
8800
+ {
8801
+ kind: 'VariableDefinition',
8802
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
8803
+ type: {
8804
+ kind: 'NonNullType',
8805
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'CreateUserInput' } },
8806
+ },
8807
+ },
8808
+ ],
8809
+ selectionSet: {
8810
+ kind: 'SelectionSet',
8811
+ selections: [
8812
+ {
8813
+ kind: 'Field',
8814
+ name: { kind: 'Name', value: 'createUser' },
8815
+ arguments: [
8816
+ {
8817
+ kind: 'Argument',
8818
+ name: { kind: 'Name', value: 'input' },
8819
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
8820
+ },
8821
+ ],
8822
+ selectionSet: {
8823
+ kind: 'SelectionSet',
8824
+ selections: [
8825
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8826
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
8827
+ { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
8828
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
8829
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
8830
+ ],
8831
+ },
8832
+ },
8833
+ ],
8834
+ },
8835
+ },
8836
+ ],
8837
+ } as unknown as DocumentNode<CreateUserMutation, CreateUserMutationVariables>;
8838
+ export const DeleteUserDocument = {
8839
+ kind: 'Document',
8840
+ definitions: [
8841
+ {
8842
+ kind: 'OperationDefinition',
8843
+ operation: 'mutation',
8844
+ name: { kind: 'Name', value: 'DeleteUser' },
8845
+ variableDefinitions: [
8846
+ {
8847
+ kind: 'VariableDefinition',
8848
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
8849
+ type: {
8850
+ kind: 'NonNullType',
8851
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
8852
+ },
8853
+ },
8854
+ {
8855
+ kind: 'VariableDefinition',
8856
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8857
+ type: {
8858
+ kind: 'NonNullType',
8859
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
8860
+ },
8861
+ },
8862
+ ],
8863
+ selectionSet: {
8864
+ kind: 'SelectionSet',
8865
+ selections: [
8866
+ {
8867
+ kind: 'Field',
8868
+ name: { kind: 'Name', value: 'deleteUser' },
8869
+ arguments: [
8870
+ {
8871
+ kind: 'Argument',
8872
+ name: { kind: 'Name', value: 'id' },
8873
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
8874
+ },
8875
+ {
8876
+ kind: 'Argument',
8877
+ name: { kind: 'Name', value: 'scope' },
8878
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8879
+ },
8880
+ ],
8881
+ selectionSet: {
8882
+ kind: 'SelectionSet',
8883
+ selections: [
8884
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
8885
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
8886
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
8887
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
8888
+ ],
8889
+ },
8890
+ },
8891
+ ],
8892
+ },
8893
+ },
8894
+ ],
8895
+ } as unknown as DocumentNode<DeleteUserMutation, DeleteUserMutationVariables>;
8896
+ export const GetUsersDocument = {
8897
+ kind: 'Document',
8898
+ definitions: [
8899
+ {
8900
+ kind: 'OperationDefinition',
8901
+ operation: 'query',
8902
+ name: { kind: 'Name', value: 'GetUsers' },
8903
+ variableDefinitions: [
8904
+ {
8905
+ kind: 'VariableDefinition',
8906
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8907
+ type: {
8908
+ kind: 'NonNullType',
8909
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
8910
+ },
8911
+ },
8912
+ {
8913
+ kind: 'VariableDefinition',
8914
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
8915
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
8916
+ },
8917
+ {
8918
+ kind: 'VariableDefinition',
8919
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
8920
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
8921
+ },
8922
+ {
8923
+ kind: 'VariableDefinition',
8924
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
8925
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'UserSortInput' } },
8926
+ },
8927
+ {
8928
+ kind: 'VariableDefinition',
8929
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
8930
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
8931
+ },
8932
+ {
8933
+ kind: 'VariableDefinition',
8934
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
8935
+ type: {
8936
+ kind: 'ListType',
8937
+ type: {
8938
+ kind: 'NonNullType',
8939
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
8940
+ },
8941
+ },
8942
+ },
8943
+ {
8944
+ kind: 'VariableDefinition',
8945
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
8946
+ type: {
8947
+ kind: 'ListType',
8948
+ type: {
8949
+ kind: 'NonNullType',
8950
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
8951
+ },
8952
+ },
8953
+ },
8954
+ ],
8955
+ selectionSet: {
8956
+ kind: 'SelectionSet',
8957
+ selections: [
8958
+ {
8959
+ kind: 'Field',
8960
+ name: { kind: 'Name', value: 'users' },
8961
+ arguments: [
8962
+ {
8963
+ kind: 'Argument',
8964
+ name: { kind: 'Name', value: 'scope' },
8965
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
8966
+ },
8967
+ {
8968
+ kind: 'Argument',
8969
+ name: { kind: 'Name', value: 'page' },
8970
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
8971
+ },
7742
8972
  {
7743
8973
  kind: 'Argument',
7744
8974
  name: { kind: 'Name', value: 'limit' },
@@ -7804,6 +9034,97 @@ export const GetUsersDocument = {
7804
9034
  ],
7805
9035
  },
7806
9036
  },
9037
+ {
9038
+ kind: 'Field',
9039
+ name: { kind: 'Name', value: 'userGroups' },
9040
+ selectionSet: {
9041
+ kind: 'SelectionSet',
9042
+ selections: [
9043
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9044
+ { kind: 'Field', name: { kind: 'Name', value: 'groupId' } },
9045
+ {
9046
+ kind: 'Field',
9047
+ name: { kind: 'Name', value: 'group' },
9048
+ arguments: [
9049
+ {
9050
+ kind: 'Argument',
9051
+ name: { kind: 'Name', value: 'scope' },
9052
+ value: {
9053
+ kind: 'Variable',
9054
+ name: { kind: 'Name', value: 'scope' },
9055
+ },
9056
+ },
9057
+ ],
9058
+ selectionSet: {
9059
+ kind: 'SelectionSet',
9060
+ selections: [
9061
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9062
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
9063
+ {
9064
+ kind: 'Field',
9065
+ name: { kind: 'Name', value: 'tags' },
9066
+ selectionSet: {
9067
+ kind: 'SelectionSet',
9068
+ selections: [
9069
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9070
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
9071
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
9072
+ {
9073
+ kind: 'Field',
9074
+ name: { kind: 'Name', value: 'isPrimary' },
9075
+ },
9076
+ ],
9077
+ },
9078
+ },
9079
+ ],
9080
+ },
9081
+ },
9082
+ ],
9083
+ },
9084
+ },
9085
+ {
9086
+ kind: 'Field',
9087
+ name: { kind: 'Name', value: 'userPermissions' },
9088
+ selectionSet: {
9089
+ kind: 'SelectionSet',
9090
+ selections: [
9091
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9092
+ { kind: 'Field', name: { kind: 'Name', value: 'permissionId' } },
9093
+ {
9094
+ kind: 'Field',
9095
+ name: { kind: 'Name', value: 'permission' },
9096
+ arguments: [
9097
+ {
9098
+ kind: 'Argument',
9099
+ name: { kind: 'Name', value: 'scope' },
9100
+ value: {
9101
+ kind: 'Variable',
9102
+ name: { kind: 'Name', value: 'scope' },
9103
+ },
9104
+ },
9105
+ ],
9106
+ selectionSet: {
9107
+ kind: 'SelectionSet',
9108
+ selections: [
9109
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9110
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
9111
+ { kind: 'Field', name: { kind: 'Name', value: 'action' } },
9112
+ {
9113
+ kind: 'Field',
9114
+ name: { kind: 'Name', value: 'resource' },
9115
+ selectionSet: {
9116
+ kind: 'SelectionSet',
9117
+ selections: [
9118
+ { kind: 'Field', name: { kind: 'Name', value: 'slug' } },
9119
+ ],
9120
+ },
9121
+ },
9122
+ ],
9123
+ },
9124
+ },
9125
+ ],
9126
+ },
9127
+ },
7807
9128
  {
7808
9129
  kind: 'Field',
7809
9130
  name: { kind: 'Name', value: 'tags' },
@@ -7841,6 +9162,163 @@ export const GetUsersDocument = {
7841
9162
  },
7842
9163
  ],
7843
9164
  } as unknown as DocumentNode<GetUsersQuery, GetUsersQueryVariables>;
9165
+ export const GetUsersListDocument = {
9166
+ kind: 'Document',
9167
+ definitions: [
9168
+ {
9169
+ kind: 'OperationDefinition',
9170
+ operation: 'query',
9171
+ name: { kind: 'Name', value: 'GetUsersList' },
9172
+ variableDefinitions: [
9173
+ {
9174
+ kind: 'VariableDefinition',
9175
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
9176
+ type: {
9177
+ kind: 'NonNullType',
9178
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Scope' } },
9179
+ },
9180
+ },
9181
+ {
9182
+ kind: 'VariableDefinition',
9183
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
9184
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
9185
+ },
9186
+ {
9187
+ kind: 'VariableDefinition',
9188
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
9189
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
9190
+ },
9191
+ {
9192
+ kind: 'VariableDefinition',
9193
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
9194
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'UserSortInput' } },
9195
+ },
9196
+ {
9197
+ kind: 'VariableDefinition',
9198
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
9199
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
9200
+ },
9201
+ {
9202
+ kind: 'VariableDefinition',
9203
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
9204
+ type: {
9205
+ kind: 'ListType',
9206
+ type: {
9207
+ kind: 'NonNullType',
9208
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
9209
+ },
9210
+ },
9211
+ },
9212
+ {
9213
+ kind: 'VariableDefinition',
9214
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
9215
+ type: {
9216
+ kind: 'ListType',
9217
+ type: {
9218
+ kind: 'NonNullType',
9219
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
9220
+ },
9221
+ },
9222
+ },
9223
+ ],
9224
+ selectionSet: {
9225
+ kind: 'SelectionSet',
9226
+ selections: [
9227
+ {
9228
+ kind: 'Field',
9229
+ name: { kind: 'Name', value: 'users' },
9230
+ arguments: [
9231
+ {
9232
+ kind: 'Argument',
9233
+ name: { kind: 'Name', value: 'scope' },
9234
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scope' } },
9235
+ },
9236
+ {
9237
+ kind: 'Argument',
9238
+ name: { kind: 'Name', value: 'page' },
9239
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'page' } },
9240
+ },
9241
+ {
9242
+ kind: 'Argument',
9243
+ name: { kind: 'Name', value: 'limit' },
9244
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
9245
+ },
9246
+ {
9247
+ kind: 'Argument',
9248
+ name: { kind: 'Name', value: 'sort' },
9249
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'sort' } },
9250
+ },
9251
+ {
9252
+ kind: 'Argument',
9253
+ name: { kind: 'Name', value: 'search' },
9254
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'search' } },
9255
+ },
9256
+ {
9257
+ kind: 'Argument',
9258
+ name: { kind: 'Name', value: 'ids' },
9259
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'ids' } },
9260
+ },
9261
+ {
9262
+ kind: 'Argument',
9263
+ name: { kind: 'Name', value: 'tagIds' },
9264
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'tagIds' } },
9265
+ },
9266
+ ],
9267
+ selectionSet: {
9268
+ kind: 'SelectionSet',
9269
+ selections: [
9270
+ {
9271
+ kind: 'Field',
9272
+ name: { kind: 'Name', value: 'users' },
9273
+ selectionSet: {
9274
+ kind: 'SelectionSet',
9275
+ selections: [
9276
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9277
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
9278
+ { kind: 'Field', name: { kind: 'Name', value: 'pictureUrl' } },
9279
+ { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
9280
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
9281
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
9282
+ {
9283
+ kind: 'Field',
9284
+ name: { kind: 'Name', value: 'primaryTag' },
9285
+ selectionSet: {
9286
+ kind: 'SelectionSet',
9287
+ selections: [
9288
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9289
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
9290
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
9291
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
9292
+ ],
9293
+ },
9294
+ },
9295
+ { kind: 'Field', name: { kind: 'Name', value: 'roleCount' } },
9296
+ { kind: 'Field', name: { kind: 'Name', value: 'projectUserApiKeyCount' } },
9297
+ { kind: 'Field', name: { kind: 'Name', value: 'tagCount' } },
9298
+ {
9299
+ kind: 'Field',
9300
+ name: { kind: 'Name', value: 'authenticationMethods' },
9301
+ selectionSet: {
9302
+ kind: 'SelectionSet',
9303
+ selections: [
9304
+ { kind: 'Field', name: { kind: 'Name', value: 'provider' } },
9305
+ { kind: 'Field', name: { kind: 'Name', value: 'providerId' } },
9306
+ ],
9307
+ },
9308
+ },
9309
+ ],
9310
+ },
9311
+ },
9312
+ { kind: 'Field', name: { kind: 'Name', value: 'totalCount' } },
9313
+ { kind: 'Field', name: { kind: 'Name', value: 'hasNextPage' } },
9314
+ ],
9315
+ },
9316
+ },
9317
+ ],
9318
+ },
9319
+ },
9320
+ ],
9321
+ } as unknown as DocumentNode<GetUsersListQuery, GetUsersListQueryVariables>;
7844
9322
  export const UpdateUserDocument = {
7845
9323
  kind: 'Document',
7846
9324
  definitions: [
@@ -7892,6 +9370,19 @@ export const UpdateUserDocument = {
7892
9370
  { kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
7893
9371
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
7894
9372
  { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
9373
+ {
9374
+ kind: 'Field',
9375
+ name: { kind: 'Name', value: 'tags' },
9376
+ selectionSet: {
9377
+ kind: 'SelectionSet',
9378
+ selections: [
9379
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9380
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
9381
+ { kind: 'Field', name: { kind: 'Name', value: 'color' } },
9382
+ { kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
9383
+ ],
9384
+ },
9385
+ },
7895
9386
  ],
7896
9387
  },
7897
9388
  },