@adminide-stack/core 7.2.5-alpha.0 → 7.2.6-alpha.13

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 (32) hide show
  1. package/lib/core/in-memory-providers/cde-code-provider.d.ts +7 -0
  2. package/lib/core/in-memory-providers/cde-code-provider.js +16 -0
  3. package/lib/core/in-memory-providers/cde-code-provider.js.map +1 -0
  4. package/lib/core/in-memory-providers/cde-code-provider.test.d.ts +1 -0
  5. package/lib/core/in-memory-providers/in-memory-value-store.d.ts +5 -0
  6. package/lib/core/in-memory-providers/in-memory-value-store.js +9 -0
  7. package/lib/core/in-memory-providers/in-memory-value-store.js.map +1 -0
  8. package/lib/core/in-memory-providers/index.d.ts +1 -0
  9. package/lib/core/index.d.ts +1 -0
  10. package/lib/index.js +1 -1
  11. package/lib/interfaces/apollo-context.d.ts +1 -0
  12. package/lib/interfaces/configuration/configuration.d.ts +1 -0
  13. package/lib/interfaces/configuration/configuration.js +2 -1
  14. package/lib/interfaces/configuration/configuration.js.map +1 -1
  15. package/lib/interfaces/generated/generated-models.d.ts +302 -37
  16. package/lib/interfaces/generated/generated-models.js +10131 -9798
  17. package/lib/interfaces/generated/generated-models.js.map +1 -1
  18. package/lib/modules/account-api/enums/index.d.ts +20 -19
  19. package/lib/modules/account-api/enums/index.js +21 -19
  20. package/lib/modules/account-api/enums/index.js.map +1 -1
  21. package/lib/utils/cdecodeUri.d.ts +19 -0
  22. package/lib/utils/cdecodeUri.js +42 -0
  23. package/lib/utils/cdecodeUri.js.map +1 -0
  24. package/lib/utils/cdecodeUri.test.d.ts +1 -0
  25. package/lib/utils/generate-uri.d.ts +0 -5
  26. package/lib/utils/generate-uri.js +4 -14
  27. package/lib/utils/generate-uri.js.map +1 -1
  28. package/lib/utils/index.d.ts +1 -0
  29. package/lib/utils/roles-utils.d.ts +2 -0
  30. package/lib/utils/roles-utils.js +26 -2
  31. package/lib/utils/roles-utils.js.map +1 -1
  32. package/package.json +2 -2
@@ -92,7 +92,7 @@ export type Scalars = {
92
92
  output: URI | UriComponents;
93
93
  };
94
94
  };
95
- export type IAccessRole = IApplicationRole | IDefaultRole | IOrganizationRole | IResourceRole;
95
+ export type IAccessRole = IApplicationRole | IDefaultRole | IOrganizationRole | IResourceRole | IUserRole;
96
96
  /** An access token that grants to the holder the privileges of the user who created it. */
97
97
  export type IAccessToken = INode & {
98
98
  __typename?: 'AccessToken';
@@ -698,7 +698,8 @@ export declare enum IClientCacheTypeNames {
698
698
  SettingsGroup = "SettingsGroup",
699
699
  SettingsSection = "SettingsSection",
700
700
  UserAccount = "UserAccount",
701
- UserConfiguration = "UserConfiguration"
701
+ UserConfiguration = "UserConfiguration",
702
+ UserRole = "UserRole"
702
703
  }
703
704
  export declare enum IClientContainerService {
704
705
  ApolloErrorHandler = "ApolloErrorHandler",
@@ -847,6 +848,7 @@ export type IContributionRoles = {
847
848
  description?: Maybe<Scalars['String']['output']>;
848
849
  id?: Maybe<Scalars['String']['output']>;
849
850
  name?: Maybe<Scalars['String']['output']>;
851
+ originalRoleName?: Maybe<Scalars['String']['output']>;
850
852
  permissions?: Maybe<IAccessRole>;
851
853
  target?: Maybe<Scalars['Int']['output']>;
852
854
  };
@@ -1926,6 +1928,7 @@ export type IOrganization = {
1926
1928
  periodStart?: Maybe<Scalars['DateTime']['output']>;
1927
1929
  periodStop?: Maybe<Scalars['DateTime']['output']>;
1928
1930
  picture?: Maybe<Scalars['String']['output']>;
1931
+ resources?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1929
1932
  status?: Maybe<Scalars['String']['output']>;
1930
1933
  stripeId?: Maybe<Scalars['String']['output']>;
1931
1934
  stripeSubscriptionId?: Maybe<Scalars['String']['output']>;
@@ -2215,12 +2218,14 @@ export declare enum IPermissionResource {
2215
2218
  }
2216
2219
  export type IPermissionSubject = {
2217
2220
  __typename?: 'PermissionSubject';
2221
+ /** Partial role */
2222
+ accessRole?: Maybe<IAccessRole>;
2218
2223
  /** The time when this was created. */
2219
2224
  createdAt?: Maybe<Scalars['String']['output']>;
2220
2225
  /** The stringified JSON contents of the permissions. */
2221
2226
  permissions: Scalars['AnyObject']['output'];
2222
2227
  /** The URL to the roles. */
2223
- roleURL: Scalars['URI']['output'];
2228
+ roleURL?: Maybe<Scalars['URI']['output']>;
2224
2229
  };
2225
2230
  export declare enum IPermissionType {
2226
2231
  Allow = "Allow",
@@ -2459,6 +2464,7 @@ export type IQuery = {
2459
2464
  getUserContextData?: Maybe<IUserContext>;
2460
2465
  getUserOrganizations?: Maybe<Array<Maybe<IOrganization>>>;
2461
2466
  getUserOrganizationsWithRole?: Maybe<Array<Maybe<IOrganization>>>;
2467
+ getUserPermissions?: Maybe<IContributionRoles>;
2462
2468
  getUserTokenDetails?: Maybe<IUserToken>;
2463
2469
  getUsers?: Maybe<Array<Maybe<IUserAccount>>>;
2464
2470
  /** Get the available roles and its descriptions */
@@ -2731,6 +2737,7 @@ export declare enum IRegistryExtensions {
2731
2737
  }
2732
2738
  export type IRenewAuthUsingRefreshToken = {
2733
2739
  __typename?: 'RenewAuthUsingRefreshToken';
2740
+ accessToken?: Maybe<Scalars['String']['output']>;
2734
2741
  expiresIn?: Maybe<Scalars['Int']['output']>;
2735
2742
  idToken?: Maybe<Scalars['String']['output']>;
2736
2743
  };
@@ -2740,9 +2747,16 @@ export type IResourceAccessRole = {
2740
2747
  resourceUserRoles?: Maybe<Array<Maybe<IResourceUser>>>;
2741
2748
  };
2742
2749
  export declare enum IResourceAuthority {
2750
+ Applicationrole = "applicationrole",
2743
2751
  Defaultpermissions = "defaultpermissions",
2744
2752
  Defaultpolicies = "defaultpolicies",
2745
- Defaultsettings = "defaultsettings"
2753
+ Defaultrole = "defaultrole",
2754
+ Defaultsettings = "defaultsettings",
2755
+ Organizationrole = "organizationrole",
2756
+ Permissions = "permissions",
2757
+ Resourcerole = "resourcerole",
2758
+ Resources = "resources",
2759
+ Userrole = "userrole"
2746
2760
  }
2747
2761
  export type IResourceCreatedEvent = {
2748
2762
  __typename?: 'ResourceCreatedEvent';
@@ -2790,7 +2804,12 @@ export declare enum IRole {
2790
2804
  User = "USER"
2791
2805
  }
2792
2806
  export type IRoleInput = {
2807
+ accountId?: InputMaybe<Scalars['String']['input']>;
2808
+ orgName?: InputMaybe<Scalars['String']['input']>;
2809
+ /** @deprecated Use resourceId instead */
2793
2810
  resource?: InputMaybe<Scalars['URIInput']['input']>;
2811
+ resourceId?: InputMaybe<Scalars['String']['input']>;
2812
+ resourceType?: InputMaybe<IConfigCollectionName>;
2794
2813
  roleName?: InputMaybe<Scalars['String']['input']>;
2795
2814
  target: Scalars['Int']['input'];
2796
2815
  };
@@ -3048,6 +3067,7 @@ export type IUserAccount = INode & {
3048
3067
  */
3049
3068
  accessTokens: IAccessTokenConnection;
3050
3069
  alias?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
3070
+ contributionRoles?: Maybe<Scalars['AnyObject']['output']>;
3051
3071
  email?: Maybe<Scalars['String']['output']>;
3052
3072
  emailVerified?: Maybe<Scalars['Boolean']['output']>;
3053
3073
  familyName?: Maybe<Scalars['String']['output']>;
@@ -3206,6 +3226,7 @@ export type IUserConfiguration = IIConfigurationModel & {
3206
3226
  export type IUserContext = {
3207
3227
  __typename?: 'UserContext';
3208
3228
  accountId?: Maybe<Scalars['String']['output']>;
3229
+ accountsRoles?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
3209
3230
  dummy?: Maybe<Scalars['String']['output']>;
3210
3231
  emailId?: Maybe<Scalars['String']['output']>;
3211
3232
  identity?: Maybe<Scalars['AnyObject']['output']>;
@@ -3313,6 +3334,14 @@ export type IUserProfile = IIAuth0Token & IIAuth0User & IIAuth0UserProfile & {
3313
3334
  username: Scalars['String']['output'];
3314
3335
  work_email?: Maybe<Scalars['String']['output']>;
3315
3336
  };
3337
+ export type IUserRole = IIConfigurationModel & {
3338
+ __typename?: 'UserRole';
3339
+ contents?: Maybe<Scalars['AnyObject']['output']>;
3340
+ keys?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
3341
+ overrides?: Maybe<Array<Maybe<IOverrides>>>;
3342
+ resource?: Maybe<Scalars['URI']['output']>;
3343
+ target?: Maybe<Scalars['Int']['output']>;
3344
+ };
3316
3345
  export declare enum IUserServiceAction {
3317
3346
  OnEmailVerified = "onEmailVerified"
3318
3347
  }
@@ -4523,7 +4552,19 @@ type IConfiguration_UserConfiguration_Fragment = {
4523
4552
  identifiers?: Array<string | null> | null;
4524
4553
  } | null> | null;
4525
4554
  };
4526
- export type IConfigurationFragment = IConfiguration_ApplicationConfiguration_Fragment | IConfiguration_ApplicationPolicy_Fragment | IConfiguration_ApplicationRole_Fragment | IConfiguration_DefaultConfiguration_Fragment | IConfiguration_DefaultPolicy_Fragment | IConfiguration_DefaultRole_Fragment | IConfiguration_MachineConfiguration_Fragment | IConfiguration_OrganizationConfiguration_Fragment | IConfiguration_OrganizationPolicy_Fragment | IConfiguration_OrganizationResourceConfiguration_Fragment | IConfiguration_OrganizationRole_Fragment | IConfiguration_PolicyConfiguration_Fragment | IConfiguration_ResourcePolicy_Fragment | IConfiguration_ResourceRole_Fragment | IConfiguration_UserConfiguration_Fragment;
4555
+ type IConfiguration_UserRole_Fragment = {
4556
+ __typename: 'UserRole';
4557
+ resource?: URI | null;
4558
+ target?: number | null;
4559
+ contents?: any | null;
4560
+ keys?: Array<string | null> | null;
4561
+ overrides?: Array<{
4562
+ __typename?: 'Overrides';
4563
+ contents?: any | null;
4564
+ identifiers?: Array<string | null> | null;
4565
+ } | null> | null;
4566
+ };
4567
+ export type IConfigurationFragment = IConfiguration_ApplicationConfiguration_Fragment | IConfiguration_ApplicationPolicy_Fragment | IConfiguration_ApplicationRole_Fragment | IConfiguration_DefaultConfiguration_Fragment | IConfiguration_DefaultPolicy_Fragment | IConfiguration_DefaultRole_Fragment | IConfiguration_MachineConfiguration_Fragment | IConfiguration_OrganizationConfiguration_Fragment | IConfiguration_OrganizationPolicy_Fragment | IConfiguration_OrganizationResourceConfiguration_Fragment | IConfiguration_OrganizationRole_Fragment | IConfiguration_PolicyConfiguration_Fragment | IConfiguration_ResourcePolicy_Fragment | IConfiguration_ResourceRole_Fragment | IConfiguration_UserConfiguration_Fragment | IConfiguration_UserRole_Fragment;
4527
4568
  export type IContextConfigurationFragment = {
4528
4569
  __typename?: 'OrganizationData';
4529
4570
  id: string;
@@ -4735,6 +4776,8 @@ export type IGetApplicationRoleQuery = {
4735
4776
  __typename?: 'OrganizationRole';
4736
4777
  } | {
4737
4778
  __typename?: 'ResourceRole';
4779
+ } | {
4780
+ __typename?: 'UserRole';
4738
4781
  } | null> | null;
4739
4782
  };
4740
4783
  export type IDefaultResolveSettingsQueryVariables = Exact<{
@@ -4911,6 +4954,8 @@ export type IGetDefaultRoleQuery = {
4911
4954
  __typename?: 'OrganizationRole';
4912
4955
  } | {
4913
4956
  __typename?: 'ResourceRole';
4957
+ } | {
4958
+ __typename?: 'UserRole';
4914
4959
  } | null> | null;
4915
4960
  };
4916
4961
  export type IGetTeamContextQueryVariables = Exact<{
@@ -4967,6 +5012,8 @@ export type IGetUserAccessRoleQuery = {
4967
5012
  contents?: any | null;
4968
5013
  identifiers?: Array<string | null> | null;
4969
5014
  } | null> | null;
5015
+ } | {
5016
+ __typename?: 'UserRole';
4970
5017
  } | null> | null;
4971
5018
  resourceUserRoles?: Array<{
4972
5019
  __typename?: 'ResourceUser';
@@ -4975,6 +5022,34 @@ export type IGetUserAccessRoleQuery = {
4975
5022
  } | null> | null;
4976
5023
  } | null;
4977
5024
  };
5025
+ export type IGetUserPermissionsQueryVariables = Exact<{
5026
+ [key: string]: never;
5027
+ }>;
5028
+ export type IGetUserPermissionsQuery = {
5029
+ __typename?: 'Query';
5030
+ getUserPermissions?: {
5031
+ __typename?: 'ContributionRoles';
5032
+ name?: string | null;
5033
+ target?: number | null;
5034
+ id?: string | null;
5035
+ description?: string | null;
5036
+ permissions?: {
5037
+ __typename?: 'ApplicationRole';
5038
+ } | {
5039
+ __typename?: 'DefaultRole';
5040
+ } | {
5041
+ __typename?: 'OrganizationRole';
5042
+ } | {
5043
+ __typename?: 'ResourceRole';
5044
+ } | {
5045
+ __typename?: 'UserRole';
5046
+ target?: number | null;
5047
+ keys?: Array<string | null> | null;
5048
+ contents?: any | null;
5049
+ resource?: URI | null;
5050
+ } | null;
5051
+ } | null;
5052
+ };
4978
5053
  export type IGetUserRoleQueryVariables = Exact<{
4979
5054
  orgName: Scalars['String']['input'];
4980
5055
  userId?: InputMaybe<Scalars['String']['input']>;
@@ -4986,6 +5061,18 @@ export type IGetUserRoleQuery = {
4986
5061
  role?: string | null;
4987
5062
  } | null;
4988
5063
  };
5064
+ export type IGetViewerPermissionsQueryVariables = Exact<{
5065
+ input?: InputMaybe<IRoleInput>;
5066
+ }>;
5067
+ export type IGetViewerPermissionsQuery = {
5068
+ __typename?: 'Query';
5069
+ getViewerPermissions?: {
5070
+ __typename?: 'PermissionSubject';
5071
+ createdAt?: string | null;
5072
+ permissions: any;
5073
+ roleURL?: URI | null;
5074
+ } | null;
5075
+ };
4989
5076
  export type IOpenPreferencesSettingsQueryVariables = Exact<{
4990
5077
  resource?: InputMaybe<Scalars['URI']['input']>;
4991
5078
  jsonEditor?: InputMaybe<Scalars['Boolean']['input']>;
@@ -5059,7 +5146,16 @@ export type IGetOrgRoleQueryVariables = Exact<{
5059
5146
  export type IGetOrgRoleQuery = {
5060
5147
  __typename?: 'Query';
5061
5148
  getRoles?: Array<{
5062
- __typename?: 'ApplicationRole';
5149
+ __typename: 'ApplicationRole';
5150
+ resource?: URI | null;
5151
+ target?: number | null;
5152
+ contents?: any | null;
5153
+ keys?: Array<string | null> | null;
5154
+ overrides?: Array<{
5155
+ __typename?: 'Overrides';
5156
+ contents?: any | null;
5157
+ identifiers?: Array<string | null> | null;
5158
+ } | null> | null;
5063
5159
  } | {
5064
5160
  __typename?: 'DefaultRole';
5065
5161
  } | {
@@ -5074,7 +5170,27 @@ export type IGetOrgRoleQuery = {
5074
5170
  identifiers?: Array<string | null> | null;
5075
5171
  } | null> | null;
5076
5172
  } | {
5077
- __typename?: 'ResourceRole';
5173
+ __typename: 'ResourceRole';
5174
+ resource?: URI | null;
5175
+ target?: number | null;
5176
+ contents?: any | null;
5177
+ keys?: Array<string | null> | null;
5178
+ overrides?: Array<{
5179
+ __typename?: 'Overrides';
5180
+ contents?: any | null;
5181
+ identifiers?: Array<string | null> | null;
5182
+ } | null> | null;
5183
+ } | {
5184
+ __typename: 'UserRole';
5185
+ resource?: URI | null;
5186
+ target?: number | null;
5187
+ contents?: any | null;
5188
+ keys?: Array<string | null> | null;
5189
+ overrides?: Array<{
5190
+ __typename?: 'Overrides';
5191
+ contents?: any | null;
5192
+ identifiers?: Array<string | null> | null;
5193
+ } | null> | null;
5078
5194
  } | null> | null;
5079
5195
  };
5080
5196
  export type IGetOrgWithResourcesPolicyQueryVariables = Exact<{
@@ -5150,6 +5266,17 @@ export type IGetOrgWithResourcesRoleQuery = {
5150
5266
  contents?: any | null;
5151
5267
  identifiers?: Array<string | null> | null;
5152
5268
  } | null> | null;
5269
+ } | {
5270
+ __typename: 'UserRole';
5271
+ resource?: URI | null;
5272
+ target?: number | null;
5273
+ contents?: any | null;
5274
+ keys?: Array<string | null> | null;
5275
+ overrides?: Array<{
5276
+ __typename?: 'Overrides';
5277
+ contents?: any | null;
5278
+ identifiers?: Array<string | null> | null;
5279
+ } | null> | null;
5153
5280
  } | null> | null;
5154
5281
  };
5155
5282
  export type IResolveConfigurationQueryVariables = Exact<{
@@ -5341,6 +5468,8 @@ export type IGetRoleQuery = {
5341
5468
  keys?: Array<string | null> | null;
5342
5469
  } | {
5343
5470
  __typename?: 'ResourceRole';
5471
+ } | {
5472
+ __typename?: 'UserRole';
5344
5473
  } | null;
5345
5474
  };
5346
5475
  export type IGetOrgWithResourcesConfigurationQueryVariables = Exact<{
@@ -5863,6 +5992,17 @@ export type IGetConfigurationDataQuery = {
5863
5992
  contents?: any | null;
5864
5993
  identifiers?: Array<string | null> | null;
5865
5994
  } | null> | null;
5995
+ } | {
5996
+ __typename: 'UserRole';
5997
+ resource?: URI | null;
5998
+ target?: number | null;
5999
+ contents?: any | null;
6000
+ keys?: Array<string | null> | null;
6001
+ overrides?: Array<{
6002
+ __typename?: 'Overrides';
6003
+ contents?: any | null;
6004
+ identifiers?: Array<string | null> | null;
6005
+ } | null> | null;
5866
6006
  } | null;
5867
6007
  user?: {
5868
6008
  __typename: 'ApplicationConfiguration';
@@ -6029,6 +6169,17 @@ export type IGetConfigurationDataQuery = {
6029
6169
  contents?: any | null;
6030
6170
  identifiers?: Array<string | null> | null;
6031
6171
  } | null> | null;
6172
+ } | {
6173
+ __typename: 'UserRole';
6174
+ resource?: URI | null;
6175
+ target?: number | null;
6176
+ contents?: any | null;
6177
+ keys?: Array<string | null> | null;
6178
+ overrides?: Array<{
6179
+ __typename?: 'Overrides';
6180
+ contents?: any | null;
6181
+ identifiers?: Array<string | null> | null;
6182
+ } | null> | null;
6032
6183
  } | null;
6033
6184
  machine?: {
6034
6185
  __typename: 'ApplicationConfiguration';
@@ -6195,6 +6346,17 @@ export type IGetConfigurationDataQuery = {
6195
6346
  contents?: any | null;
6196
6347
  identifiers?: Array<string | null> | null;
6197
6348
  } | null> | null;
6349
+ } | {
6350
+ __typename: 'UserRole';
6351
+ resource?: URI | null;
6352
+ target?: number | null;
6353
+ contents?: any | null;
6354
+ keys?: Array<string | null> | null;
6355
+ overrides?: Array<{
6356
+ __typename?: 'Overrides';
6357
+ contents?: any | null;
6358
+ identifiers?: Array<string | null> | null;
6359
+ } | null> | null;
6198
6360
  } | null;
6199
6361
  organization?: {
6200
6362
  __typename: 'ApplicationConfiguration';
@@ -6361,6 +6523,17 @@ export type IGetConfigurationDataQuery = {
6361
6523
  contents?: any | null;
6362
6524
  identifiers?: Array<string | null> | null;
6363
6525
  } | null> | null;
6526
+ } | {
6527
+ __typename: 'UserRole';
6528
+ resource?: URI | null;
6529
+ target?: number | null;
6530
+ contents?: any | null;
6531
+ keys?: Array<string | null> | null;
6532
+ overrides?: Array<{
6533
+ __typename?: 'Overrides';
6534
+ contents?: any | null;
6535
+ identifiers?: Array<string | null> | null;
6536
+ } | null> | null;
6364
6537
  } | null;
6365
6538
  resources?: Array<{
6366
6539
  __typename: 'ApplicationConfiguration';
@@ -6527,6 +6700,17 @@ export type IGetConfigurationDataQuery = {
6527
6700
  contents?: any | null;
6528
6701
  identifiers?: Array<string | null> | null;
6529
6702
  } | null> | null;
6703
+ } | {
6704
+ __typename: 'UserRole';
6705
+ resource?: URI | null;
6706
+ target?: number | null;
6707
+ contents?: any | null;
6708
+ keys?: Array<string | null> | null;
6709
+ overrides?: Array<{
6710
+ __typename?: 'Overrides';
6711
+ contents?: any | null;
6712
+ identifiers?: Array<string | null> | null;
6713
+ } | null> | null;
6530
6714
  } | null> | null;
6531
6715
  } | null;
6532
6716
  };
@@ -8871,6 +9055,35 @@ export type GetUserAccessRoleQueryHookResult = ReturnType<typeof useGetUserAcces
8871
9055
  export type GetUserAccessRoleLazyQueryHookResult = ReturnType<typeof useGetUserAccessRoleLazyQuery>;
8872
9056
  export type GetUserAccessRoleSuspenseQueryHookResult = ReturnType<typeof useGetUserAccessRoleSuspenseQuery>;
8873
9057
  export type GetUserAccessRoleQueryResult = Apollo.QueryResult<IGetUserAccessRoleQuery, IGetUserAccessRoleQueryVariables>;
9058
+ export declare const GetUserPermissionsDocument: DocumentNode;
9059
+ /**
9060
+ * __useGetUserPermissionsQuery__
9061
+ *
9062
+ * To run a query within a React component, call `useGetUserPermissionsQuery` and pass it any options that fit your needs.
9063
+ * When your component renders, `useGetUserPermissionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
9064
+ * you can use to render your UI.
9065
+ *
9066
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
9067
+ *
9068
+ * @example
9069
+ * const { data, loading, error } = useGetUserPermissionsQuery({
9070
+ * variables: {
9071
+ * },
9072
+ * });
9073
+ */
9074
+ export declare function useGetUserPermissionsQuery(baseOptions?: Apollo.QueryHookOptions<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>): Apollo.QueryResult<IGetUserPermissionsQuery, Exact<{
9075
+ [key: string]: never;
9076
+ }>>;
9077
+ export declare function useGetUserPermissionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>): Apollo.LazyQueryResultTuple<IGetUserPermissionsQuery, Exact<{
9078
+ [key: string]: never;
9079
+ }>>;
9080
+ export declare function useGetUserPermissionsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>): Apollo.UseSuspenseQueryResult<IGetUserPermissionsQuery, Exact<{
9081
+ [key: string]: never;
9082
+ }>>;
9083
+ export type GetUserPermissionsQueryHookResult = ReturnType<typeof useGetUserPermissionsQuery>;
9084
+ export type GetUserPermissionsLazyQueryHookResult = ReturnType<typeof useGetUserPermissionsLazyQuery>;
9085
+ export type GetUserPermissionsSuspenseQueryHookResult = ReturnType<typeof useGetUserPermissionsSuspenseQuery>;
9086
+ export type GetUserPermissionsQueryResult = Apollo.QueryResult<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>;
8874
9087
  export declare const GetUserRoleDocument: DocumentNode;
8875
9088
  /**
8876
9089
  * __useGetUserRoleQuery__
@@ -8910,6 +9123,36 @@ export type GetUserRoleQueryHookResult = ReturnType<typeof useGetUserRoleQuery>;
8910
9123
  export type GetUserRoleLazyQueryHookResult = ReturnType<typeof useGetUserRoleLazyQuery>;
8911
9124
  export type GetUserRoleSuspenseQueryHookResult = ReturnType<typeof useGetUserRoleSuspenseQuery>;
8912
9125
  export type GetUserRoleQueryResult = Apollo.QueryResult<IGetUserRoleQuery, IGetUserRoleQueryVariables>;
9126
+ export declare const GetViewerPermissionsDocument: DocumentNode;
9127
+ /**
9128
+ * __useGetViewerPermissionsQuery__
9129
+ *
9130
+ * To run a query within a React component, call `useGetViewerPermissionsQuery` and pass it any options that fit your needs.
9131
+ * When your component renders, `useGetViewerPermissionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
9132
+ * you can use to render your UI.
9133
+ *
9134
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
9135
+ *
9136
+ * @example
9137
+ * const { data, loading, error } = useGetViewerPermissionsQuery({
9138
+ * variables: {
9139
+ * input: // value for 'input'
9140
+ * },
9141
+ * });
9142
+ */
9143
+ export declare function useGetViewerPermissionsQuery(baseOptions?: Apollo.QueryHookOptions<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>): Apollo.QueryResult<IGetViewerPermissionsQuery, Exact<{
9144
+ input?: IRoleInput;
9145
+ }>>;
9146
+ export declare function useGetViewerPermissionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>): Apollo.LazyQueryResultTuple<IGetViewerPermissionsQuery, Exact<{
9147
+ input?: IRoleInput;
9148
+ }>>;
9149
+ export declare function useGetViewerPermissionsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>): Apollo.UseSuspenseQueryResult<IGetViewerPermissionsQuery, Exact<{
9150
+ input?: IRoleInput;
9151
+ }>>;
9152
+ export type GetViewerPermissionsQueryHookResult = ReturnType<typeof useGetViewerPermissionsQuery>;
9153
+ export type GetViewerPermissionsLazyQueryHookResult = ReturnType<typeof useGetViewerPermissionsLazyQuery>;
9154
+ export type GetViewerPermissionsSuspenseQueryHookResult = ReturnType<typeof useGetViewerPermissionsSuspenseQuery>;
9155
+ export type GetViewerPermissionsQueryResult = Apollo.QueryResult<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>;
8913
9156
  export declare const OpenPreferencesSettingsDocument: DocumentNode;
8914
9157
  /**
8915
9158
  * __useOpenPreferencesSettingsQuery__
@@ -9835,32 +10078,32 @@ export type NextResolverFn<T> = () => Promise<T>;
9835
10078
  export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
9836
10079
  /** Mapping of union types */
9837
10080
  export type IResolversUnionTypes<_RefType extends Record<string, unknown>> = {
9838
- AccessRole: (IApplicationRole) | (IDefaultRole) | (IOrganizationRole) | (IResourceRole);
9839
- Configuration: (IApplicationConfiguration) | (IDefaultConfiguration) | (IMachineConfiguration) | (IOrganizationConfiguration) | (IOrganizationResourceConfiguration) | (IPolicyConfiguration) | (IUserConfiguration);
9840
- ConfigurationPolicy: (IApplicationPolicy) | (IDefaultPolicy) | (IOrganizationPolicy) | (IResourcePolicy);
9841
- ResourceData: (IExternalResourceData) | (IOrganizationResourceData);
9842
- SettingsSubject: (IApplicationSettings) | (IDefaultSettings) | (IGlobalSettings) | (IMachineSettings) | (IMemorySettings) | (IOrganizationResourceSettings) | (IOrganizationSettings) | (IUserSettings);
10081
+ AccessRole: IApplicationRole | IDefaultRole | IOrganizationRole | IResourceRole | IUserRole;
10082
+ Configuration: IApplicationConfiguration | IDefaultConfiguration | IMachineConfiguration | IOrganizationConfiguration | IOrganizationResourceConfiguration | IPolicyConfiguration | IUserConfiguration;
10083
+ ConfigurationPolicy: IApplicationPolicy | IDefaultPolicy | IOrganizationPolicy | IResourcePolicy;
10084
+ ResourceData: IExternalResourceData | IOrganizationResourceData;
10085
+ SettingsSubject: IApplicationSettings | IDefaultSettings | IGlobalSettings | IMachineSettings | IMemorySettings | IOrganizationResourceSettings | IOrganizationSettings | IUserSettings;
9843
10086
  };
9844
10087
  /** Mapping of interface types */
9845
10088
  export type IResolversInterfaceTypes<_RefType extends Record<string, unknown>> = {
9846
10089
  IAuth0Identity: never;
9847
- IAuth0Token: (IUserProfile);
9848
- IAuth0User: (IUserProfile);
9849
- IAuth0UserProfile: (IUserProfile);
9850
- ICity: (ICity);
9851
- IConfigurationModel: (IApplicationConfiguration) | (IApplicationPolicy) | (IApplicationRole) | (IDefaultConfiguration) | (IDefaultPolicy) | (IDefaultRole) | (IMachineConfiguration) | (IOrganizationConfiguration) | (IOrganizationPolicy) | (IOrganizationResourceConfiguration) | (IOrganizationRole) | (IPolicyConfiguration) | (IResourcePolicy) | (IResourceRole) | (IUserConfiguration);
10090
+ IAuth0Token: IUserProfile;
10091
+ IAuth0User: IUserProfile;
10092
+ IAuth0UserProfile: IUserProfile;
10093
+ ICity: ICity;
10094
+ IConfigurationModel: IApplicationConfiguration | IApplicationPolicy | IApplicationRole | IDefaultConfiguration | IDefaultPolicy | IDefaultRole | IMachineConfiguration | IOrganizationConfiguration | IOrganizationPolicy | IOrganizationResourceConfiguration | IOrganizationRole | IPolicyConfiguration | IResourcePolicy | IResourceRole | IUserConfiguration | IUserRole;
9852
10095
  IConfigurationService: never;
9853
- ICountry: (ICountry);
9854
- IEventWithContext: (IOrganizationCreatedEvent) | (IOrganizationDeletedEvent);
9855
- IOrgUser: (IOrgUser);
9856
- IResourceData: (IExternalResourceData) | (IOrganizationResourceData);
9857
- IResourceUserRole: (IResourceUser);
10096
+ ICountry: ICountry;
10097
+ IEventWithContext: IOrganizationCreatedEvent | IOrganizationDeletedEvent;
10098
+ IOrgUser: IOrgUser;
10099
+ IResourceData: IExternalResourceData | IOrganizationResourceData;
10100
+ IResourceUserRole: IResourceUser;
9858
10101
  IResourceUtilizationSettings: never;
9859
- ISettingsSubject: (IApplicationSettings) | (IDefaultSettings) | (IGlobalSettings) | (IMachineSettings) | (IMemorySettings) | (IOrganizationResourceSettings) | (IOrganizationSettings) | (IUserSettings);
9860
- ITerritorialState: (IState);
9861
- IUser: (IAuthUser);
9862
- IUserMetadata: (IUserMetadata);
9863
- Node: (IAccessToken) | (IApiExternalAccount) | (IApiManagement) | (IUserAccount);
10102
+ ISettingsSubject: IApplicationSettings | IDefaultSettings | IGlobalSettings | IMachineSettings | IMemorySettings | IOrganizationResourceSettings | IOrganizationSettings | IUserSettings;
10103
+ ITerritorialState: IState;
10104
+ IUser: IAuthUser;
10105
+ IUserMetadata: IUserMetadata;
10106
+ Node: IAccessToken | IApiExternalAccount | IApiManagement | IUserAccount;
9864
10107
  };
9865
10108
  /** Mapping between all available schema types and the resolvers types */
9866
10109
  export type IResolversTypes = {
@@ -10044,7 +10287,9 @@ export type IResolversTypes = {
10044
10287
  PageInfo: ResolverTypeWrapper<IPageInfo>;
10045
10288
  PermissionAction: IPermissionAction;
10046
10289
  PermissionResource: IPermissionResource;
10047
- PermissionSubject: ResolverTypeWrapper<IPermissionSubject>;
10290
+ PermissionSubject: ResolverTypeWrapper<Omit<IPermissionSubject, 'accessRole'> & {
10291
+ accessRole?: Maybe<IResolversTypes['AccessRole']>;
10292
+ }>;
10048
10293
  PermissionType: IPermissionType;
10049
10294
  PhoneNumber: ResolverTypeWrapper<IPhoneNumber>;
10050
10295
  PhoneNumberInput: IPhoneNumberInput;
@@ -10146,6 +10391,7 @@ export type IResolversTypes = {
10146
10391
  UserPasswordResetInput: IUserPasswordResetInput;
10147
10392
  UserPreviousValues: ResolverTypeWrapper<IUserPreviousValues>;
10148
10393
  UserProfile: ResolverTypeWrapper<IUserProfile>;
10394
+ UserRole: ResolverTypeWrapper<IUserRole>;
10149
10395
  UserServiceAction: IUserServiceAction;
10150
10396
  UserSession: ResolverTypeWrapper<IUserSession>;
10151
10397
  UserSessionId: ResolverTypeWrapper<IUserSessionId>;
@@ -10312,7 +10558,9 @@ export type IResolversParentTypes = {
10312
10558
  OrganizationsDeletedEvent: IOrganizationsDeletedEvent;
10313
10559
  Overrides: IOverrides;
10314
10560
  PageInfo: IPageInfo;
10315
- PermissionSubject: IPermissionSubject;
10561
+ PermissionSubject: Omit<IPermissionSubject, 'accessRole'> & {
10562
+ accessRole?: Maybe<IResolversParentTypes['AccessRole']>;
10563
+ };
10316
10564
  PhoneNumber: IPhoneNumber;
10317
10565
  PhoneNumberInput: IPhoneNumberInput;
10318
10566
  PolicyConfiguration: IPolicyConfiguration;
@@ -10401,6 +10649,7 @@ export type IResolversParentTypes = {
10401
10649
  UserPasswordResetInput: IUserPasswordResetInput;
10402
10650
  UserPreviousValues: IUserPreviousValues;
10403
10651
  UserProfile: IUserProfile;
10652
+ UserRole: IUserRole;
10404
10653
  UserSession: IUserSession;
10405
10654
  UserSessionId: IUserSessionId;
10406
10655
  UserSettings: IUserSettings;
@@ -10435,7 +10684,7 @@ export type IIsAuthenticatedDirectiveResolver<Result, Parent, ContextType = MyCo
10435
10684
  export type IProfileDirectiveArgs = {};
10436
10685
  export type IProfileDirectiveResolver<Result, Parent, ContextType = MyContext, Args = IProfileDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
10437
10686
  export type IAccessRoleResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['AccessRole'] = IResolversParentTypes['AccessRole']> = {
10438
- __resolveType: TypeResolveFn<'ApplicationRole' | 'DefaultRole' | 'OrganizationRole' | 'ResourceRole', ParentType, ContextType>;
10687
+ __resolveType: TypeResolveFn<'ApplicationRole' | 'DefaultRole' | 'OrganizationRole' | 'ResourceRole' | 'UserRole', ParentType, ContextType>;
10439
10688
  };
10440
10689
  export type IAccessTokenResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['AccessToken'] = IResolversParentTypes['AccessToken']> = {
10441
10690
  createdAt?: Resolver<IResolversTypes['DateTime'], ParentType, ContextType>;
@@ -10702,6 +10951,7 @@ export type IContributionRolesResolvers<ContextType = MyContext, ParentType exte
10702
10951
  description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10703
10952
  id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10704
10953
  name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10954
+ originalRoleName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10705
10955
  permissions?: Resolver<Maybe<IResolversTypes['AccessRole']>, ParentType, ContextType>;
10706
10956
  target?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
10707
10957
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
@@ -10914,7 +11164,7 @@ export type IICityResolvers<ContextType = MyContext, ParentType extends IResolve
10914
11164
  updatedAt?: Resolver<IResolversTypes['DateTime'], ParentType, ContextType>;
10915
11165
  };
10916
11166
  export type IIConfigurationModelResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['IConfigurationModel'] = IResolversParentTypes['IConfigurationModel']> = {
10917
- __resolveType: TypeResolveFn<'ApplicationConfiguration' | 'ApplicationPolicy' | 'ApplicationRole' | 'DefaultConfiguration' | 'DefaultPolicy' | 'DefaultRole' | 'MachineConfiguration' | 'OrganizationConfiguration' | 'OrganizationPolicy' | 'OrganizationResourceConfiguration' | 'OrganizationRole' | 'PolicyConfiguration' | 'ResourcePolicy' | 'ResourceRole' | 'UserConfiguration', ParentType, ContextType>;
11167
+ __resolveType: TypeResolveFn<'ApplicationConfiguration' | 'ApplicationPolicy' | 'ApplicationRole' | 'DefaultConfiguration' | 'DefaultPolicy' | 'DefaultRole' | 'MachineConfiguration' | 'OrganizationConfiguration' | 'OrganizationPolicy' | 'OrganizationResourceConfiguration' | 'OrganizationRole' | 'PolicyConfiguration' | 'ResourcePolicy' | 'ResourceRole' | 'UserConfiguration' | 'UserRole', ParentType, ContextType>;
10918
11168
  contents?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
10919
11169
  keys?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
10920
11170
  overrides?: Resolver<Maybe<Array<Maybe<IResolversTypes['Overrides']>>>, ParentType, ContextType>;
@@ -11220,6 +11470,7 @@ export type IOrganizationResolvers<ContextType = MyContext, ParentType extends I
11220
11470
  periodStart?: Resolver<Maybe<IResolversTypes['DateTime']>, ParentType, ContextType>;
11221
11471
  periodStop?: Resolver<Maybe<IResolversTypes['DateTime']>, ParentType, ContextType>;
11222
11472
  picture?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11473
+ resources?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
11223
11474
  status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11224
11475
  stripeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11225
11476
  stripeSubscriptionId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -11362,9 +11613,10 @@ export type IPageInfoResolvers<ContextType = MyContext, ParentType extends IReso
11362
11613
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11363
11614
  };
11364
11615
  export type IPermissionSubjectResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['PermissionSubject'] = IResolversParentTypes['PermissionSubject']> = {
11616
+ accessRole?: Resolver<Maybe<IResolversTypes['AccessRole']>, ParentType, ContextType>;
11365
11617
  createdAt?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11366
11618
  permissions?: Resolver<IResolversTypes['AnyObject'], ParentType, ContextType>;
11367
- roleURL?: Resolver<IResolversTypes['URI'], ParentType, ContextType>;
11619
+ roleURL?: Resolver<Maybe<IResolversTypes['URI']>, ParentType, ContextType>;
11368
11620
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11369
11621
  };
11370
11622
  export type IPhoneNumberResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['PhoneNumber'] = IResolversParentTypes['PhoneNumber']> = {
@@ -11526,6 +11778,7 @@ export type IQueryResolvers<ContextType = MyContext, ParentType extends IResolve
11526
11778
  getUserContextData?: Resolver<Maybe<IResolversTypes['UserContext']>, ParentType, ContextType>;
11527
11779
  getUserOrganizations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType, Partial<IQueryGetUserOrganizationsArgs>>;
11528
11780
  getUserOrganizationsWithRole?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType, Partial<IQueryGetUserOrganizationsWithRoleArgs>>;
11781
+ getUserPermissions?: Resolver<Maybe<IResolversTypes['ContributionRoles']>, ParentType, ContextType>;
11529
11782
  getUserTokenDetails?: Resolver<Maybe<IResolversTypes['UserToken']>, ParentType, ContextType, Partial<IQueryGetUserTokenDetailsArgs>>;
11530
11783
  getUsers?: Resolver<Maybe<Array<Maybe<IResolversTypes['UserAccount']>>>, ParentType, ContextType, Partial<IQueryGetUsersArgs>>;
11531
11784
  getViewerPermissions?: Resolver<Maybe<IResolversTypes['PermissionSubject']>, ParentType, ContextType, Partial<IQueryGetViewerPermissionsArgs>>;
@@ -11557,6 +11810,7 @@ export type IRangeResolvers<ContextType = MyContext, ParentType extends IResolve
11557
11810
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11558
11811
  };
11559
11812
  export type IRenewAuthUsingRefreshTokenResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['RenewAuthUsingRefreshToken'] = IResolversParentTypes['RenewAuthUsingRefreshToken']> = {
11813
+ accessToken?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11560
11814
  expiresIn?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
11561
11815
  idToken?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11562
11816
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
@@ -11663,11 +11917,11 @@ export type ISubscribedOrganizationDataResolvers<ContextType = MyContext, Parent
11663
11917
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11664
11918
  };
11665
11919
  export type ISubscriptionResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
11666
- SubscribeToConfigurationUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToConfigurationUpdate", ParentType, ContextType, RequireFields<ISubscriptionSubscribeToConfigurationUpdateArgs, 'orgName'>>;
11667
- SubscribeToOrganizationContext?: SubscriptionResolver<Maybe<IResolversTypes['SubscribedOrganizationData']>, "SubscribeToOrganizationContext", ParentType, ContextType, Partial<ISubscriptionSubscribeToOrganizationContextArgs>>;
11668
- SubscribeToPermissionUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToPermissionUpdate", ParentType, ContextType, Partial<ISubscriptionSubscribeToPermissionUpdateArgs>>;
11669
- SubscribeToPolicyUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToPolicyUpdate", ParentType, ContextType, Partial<ISubscriptionSubscribeToPolicyUpdateArgs>>;
11670
- dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, "dummy", ParentType, ContextType>;
11920
+ SubscribeToConfigurationUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, 'SubscribeToConfigurationUpdate', ParentType, ContextType, RequireFields<ISubscriptionSubscribeToConfigurationUpdateArgs, 'orgName'>>;
11921
+ SubscribeToOrganizationContext?: SubscriptionResolver<Maybe<IResolversTypes['SubscribedOrganizationData']>, 'SubscribeToOrganizationContext', ParentType, ContextType, Partial<ISubscriptionSubscribeToOrganizationContextArgs>>;
11922
+ SubscribeToPermissionUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, 'SubscribeToPermissionUpdate', ParentType, ContextType, Partial<ISubscriptionSubscribeToPermissionUpdateArgs>>;
11923
+ SubscribeToPolicyUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, 'SubscribeToPolicyUpdate', ParentType, ContextType, Partial<ISubscriptionSubscribeToPolicyUpdateArgs>>;
11924
+ dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, 'dummy', ParentType, ContextType>;
11671
11925
  };
11672
11926
  export type ITeamInvitationEmailVariablesResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['TeamInvitationEmailVariables'] = IResolversParentTypes['TeamInvitationEmailVariables']> = {
11673
11927
  name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -11695,6 +11949,7 @@ export interface IUriInputScalarConfig extends GraphQLScalarTypeConfig<IResolver
11695
11949
  export type IUserAccountResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserAccount'] = IResolversParentTypes['UserAccount']> = {
11696
11950
  accessTokens?: Resolver<IResolversTypes['AccessTokenConnection'], ParentType, ContextType, Partial<IUserAccountAccessTokensArgs>>;
11697
11951
  alias?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
11952
+ contributionRoles?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
11698
11953
  email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11699
11954
  emailVerified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
11700
11955
  familyName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -11767,6 +12022,7 @@ export type IUserConfigurationResolvers<ContextType = MyContext, ParentType exte
11767
12022
  };
11768
12023
  export type IUserContextResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserContext'] = IResolversParentTypes['UserContext']> = {
11769
12024
  accountId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
12025
+ accountsRoles?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
11770
12026
  dummy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11771
12027
  emailId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11772
12028
  identity?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
@@ -11844,6 +12100,14 @@ export type IUserProfileResolvers<ContextType = MyContext, ParentType extends IR
11844
12100
  work_email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11845
12101
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11846
12102
  };
12103
+ export type IUserRoleResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserRole'] = IResolversParentTypes['UserRole']> = {
12104
+ contents?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
12105
+ keys?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
12106
+ overrides?: Resolver<Maybe<Array<Maybe<IResolversTypes['Overrides']>>>, ParentType, ContextType>;
12107
+ resource?: Resolver<Maybe<IResolversTypes['URI']>, ParentType, ContextType>;
12108
+ target?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
12109
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
12110
+ };
11847
12111
  export type IUserSessionResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserSession'] = IResolversParentTypes['UserSession']> = {
11848
12112
  deviceInfo?: Resolver<Maybe<IResolversTypes['UserAuth0SessionDeviceInfo']>, ParentType, ContextType>;
11849
12113
  lastLoginAt?: Resolver<Maybe<IResolversTypes['Date']>, ParentType, ContextType>;
@@ -12064,6 +12328,7 @@ export type IResolvers<ContextType = MyContext> = {
12064
12328
  UserMetadata?: IUserMetadataResolvers<ContextType>;
12065
12329
  UserPreviousValues?: IUserPreviousValuesResolvers<ContextType>;
12066
12330
  UserProfile?: IUserProfileResolvers<ContextType>;
12331
+ UserRole?: IUserRoleResolvers<ContextType>;
12067
12332
  UserSession?: IUserSessionResolvers<ContextType>;
12068
12333
  UserSessionId?: IUserSessionIdResolvers<ContextType>;
12069
12334
  UserSettings?: IUserSettingsResolvers<ContextType>;