@burdenoff/microfe-auth 2026.511.1 → 2026.514.1

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 (53) hide show
  1. package/dist/auth/AuthRoutes.d.ts.map +1 -1
  2. package/dist/auth/AuthRoutes.js +94 -58
  3. package/dist/auth/AuthRoutes.js.map +1 -1
  4. package/dist/auth/components/AuthLayout.js +1 -1
  5. package/dist/auth/components/AuthLayout.js.map +1 -1
  6. package/dist/auth/hooks/useApiKeyOperations.d.ts +5 -1
  7. package/dist/auth/hooks/useApiKeyOperations.d.ts.map +1 -1
  8. package/dist/auth/hooks/useAppOperations.d.ts +5 -1
  9. package/dist/auth/hooks/useAppOperations.d.ts.map +1 -1
  10. package/dist/auth/hooks/useDelegationOperations.d.ts +10 -2
  11. package/dist/auth/hooks/useDelegationOperations.d.ts.map +1 -1
  12. package/dist/auth/hooks/useSessionOperations.js +1 -1
  13. package/dist/auth/hooks/useSessionOperations.js.map +1 -1
  14. package/dist/auth/pages/AuditLogPage.d.ts +8 -1
  15. package/dist/auth/pages/AuditLogPage.d.ts.map +1 -1
  16. package/dist/auth/pages/AuditLogPage.js +189 -104
  17. package/dist/auth/pages/AuditLogPage.js.map +1 -1
  18. package/dist/auth/pages/MfaSetupPage.d.ts.map +1 -1
  19. package/dist/auth/pages/MfaSetupPage.js +5 -5
  20. package/dist/auth/pages/MfaSetupPage.js.map +1 -1
  21. package/dist/auth/pages/SecurityPage.d.ts.map +1 -1
  22. package/dist/auth/pages/SecurityPage.js +335 -267
  23. package/dist/auth/pages/SecurityPage.js.map +1 -1
  24. package/dist/auth/pages/SessionsPage.d.ts +6 -0
  25. package/dist/auth/pages/SessionsPage.d.ts.map +1 -1
  26. package/dist/auth/pages/SessionsPage.js +255 -143
  27. package/dist/auth/pages/SessionsPage.js.map +1 -1
  28. package/dist/auth/pages/UserDetailsPage.d.ts.map +1 -1
  29. package/dist/auth/pages/UserDetailsPage.js +1 -1
  30. package/dist/auth/pages/UserDetailsPage.js.map +1 -1
  31. package/dist/auth/pages/UsersPage.d.ts.map +1 -1
  32. package/dist/auth/pages/UsersPage.js +501 -378
  33. package/dist/auth/pages/UsersPage.js.map +1 -1
  34. package/dist/generated/global-operations.d.ts +219 -103
  35. package/dist/generated/global-operations.d.ts.map +1 -1
  36. package/dist/generated/global-operations.js +237 -166
  37. package/dist/generated/global-operations.js.map +1 -1
  38. package/dist/generated/global-types.d.ts +2544 -270
  39. package/dist/generated/global-types.d.ts.map +1 -1
  40. package/dist/generated/wspace-operations.d.ts +41 -1
  41. package/dist/generated/wspace-operations.d.ts.map +1 -1
  42. package/dist/generated/wspace-operations.js +26 -0
  43. package/dist/generated/wspace-operations.js.map +1 -0
  44. package/dist/generated/wspace-types.d.ts +2974 -337
  45. package/dist/generated/wspace-types.d.ts.map +1 -1
  46. package/dist/microfe-auth.css +1 -1
  47. package/dist/translations/en.d.ts +249 -0
  48. package/dist/translations/en.d.ts.map +1 -0
  49. package/package.json +1 -1
  50. package/dist/auth/pages/ApiKeysPage.d.ts +0 -5
  51. package/dist/auth/pages/ApiKeysPage.d.ts.map +0 -1
  52. package/dist/auth/pages/DelegationsPage.d.ts +0 -5
  53. package/dist/auth/pages/DelegationsPage.d.ts.map +0 -1
@@ -1,6 +1,44 @@
1
1
  import * as Types from './global-types';
2
2
  import * as Apollo from '@apollo/client';
3
3
  import * as ApolloReactHooks from '@apollo/client/react';
4
+ export type AuditLogEntry_AuthAuditLogFragment = {
5
+ __typename?: 'AuthAuditLog';
6
+ id: string;
7
+ action: string;
8
+ description?: string | null;
9
+ ipAddress?: string | null;
10
+ userAgent?: string | null;
11
+ createdAt: string;
12
+ };
13
+ export type SessionCard_SessionFragment = {
14
+ __typename?: 'Session';
15
+ id: string;
16
+ status: Types.SessionStatus;
17
+ ipAddress?: string | null;
18
+ userAgent?: string | null;
19
+ location?: string | null;
20
+ lastActivityAt: string;
21
+ expiresAt: string;
22
+ createdAt: string;
23
+ isCurrent: boolean;
24
+ };
25
+ export type UserRow_UserFragment = {
26
+ __typename?: 'User';
27
+ id: string;
28
+ email: string;
29
+ username: string;
30
+ firstName?: string | null;
31
+ lastName?: string | null;
32
+ name?: string | null;
33
+ phoneNumber?: string | null;
34
+ role: string;
35
+ status: string;
36
+ emailVerified: boolean;
37
+ mfaEnabled: boolean;
38
+ lastLoginAt?: string | null;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ };
4
42
  export type DeactivateAccountMutationVariables = Types.Exact<{
5
43
  password: Types.Scalars['String']['input'];
6
44
  }>;
@@ -845,49 +883,59 @@ export type MyApiKeysQueryVariables = Types.Exact<{
845
883
  }>;
846
884
  export type MyApiKeysQuery = {
847
885
  __typename?: 'Query';
848
- myApiKeys: Array<{
849
- __typename?: 'APIKey';
850
- id: string;
851
- name: string;
852
- prefix: string;
853
- scopes: Array<string>;
854
- appId: string;
855
- appName?: string | null;
856
- createdAt: string;
857
- expiresAt?: string | null;
858
- lastUsedAt?: string | null;
859
- }>;
886
+ myApiKeys: {
887
+ __typename?: 'APIKeyConnection';
888
+ hasMore: boolean;
889
+ totalCount: number;
890
+ apiKeys: Array<{
891
+ __typename?: 'APIKey';
892
+ id: string;
893
+ name: string;
894
+ prefix: string;
895
+ scopes: Array<string>;
896
+ appId: string;
897
+ appName?: string | null;
898
+ createdAt: string;
899
+ expiresAt?: string | null;
900
+ lastUsedAt?: string | null;
901
+ }>;
902
+ };
860
903
  };
861
904
  export type CurrentUserAppsQueryVariables = Types.Exact<{
862
905
  [key: string]: never;
863
906
  }>;
864
907
  export type CurrentUserAppsQuery = {
865
908
  __typename?: 'Query';
866
- currentUserApps: Array<{
867
- __typename?: 'App';
868
- id: string;
869
- name: string;
870
- description?: string | null;
871
- clientId: string;
872
- type: Types.AppType;
873
- status: Types.AppStatus;
874
- scopes: Array<string>;
875
- redirectUris: Array<string>;
876
- ownerUserId: string;
877
- tenantId?: string | null;
878
- createdAt: string;
879
- updatedAt: string;
880
- delegations: Array<{
881
- __typename?: 'AppUserDelegation';
909
+ currentUserApps: {
910
+ __typename?: 'AppConnection';
911
+ hasMore: boolean;
912
+ totalCount: number;
913
+ apps: Array<{
914
+ __typename?: 'App';
882
915
  id: string;
883
- userId: string;
916
+ name: string;
917
+ description?: string | null;
918
+ clientId: string;
919
+ type: Types.AppType;
920
+ status: Types.AppStatus;
884
921
  scopes: Array<string>;
885
- workspaceIds: Array<string>;
886
- status: Types.DelegationStatus;
887
- grantedAt: string;
888
- expiresAt?: string | null;
922
+ redirectUris: Array<string>;
923
+ ownerUserId: string;
924
+ tenantId?: string | null;
925
+ createdAt: string;
926
+ updatedAt: string;
927
+ delegations: Array<{
928
+ __typename?: 'AppUserDelegation';
929
+ id: string;
930
+ userId: string;
931
+ scopes: Array<string>;
932
+ workspaceIds: Array<string>;
933
+ status: Types.DelegationStatus;
934
+ grantedAt: string;
935
+ expiresAt?: string | null;
936
+ }>;
889
937
  }>;
890
- }>;
938
+ };
891
939
  };
892
940
  export type GetAppQueryVariables = Types.Exact<{
893
941
  id: Types.Scalars['ID']['input'];
@@ -925,21 +973,46 @@ export type AppsActingAsCurrentUserQueryVariables = Types.Exact<{
925
973
  }>;
926
974
  export type AppsActingAsCurrentUserQuery = {
927
975
  __typename?: 'Query';
928
- appsActingAsCurrentUser: Array<{
929
- __typename?: 'App';
930
- id: string;
931
- name: string;
932
- description?: string | null;
933
- clientId: string;
934
- type: Types.AppType;
935
- status: Types.AppStatus;
936
- scopes: Array<string>;
937
- redirectUris: Array<string>;
938
- ownerUserId: string;
939
- tenantId?: string | null;
940
- createdAt: string;
941
- updatedAt: string;
942
- }>;
976
+ appsActingAsCurrentUser: {
977
+ __typename?: 'AppConnection';
978
+ hasMore: boolean;
979
+ totalCount: number;
980
+ apps: Array<{
981
+ __typename?: 'App';
982
+ id: string;
983
+ name: string;
984
+ description?: string | null;
985
+ clientId: string;
986
+ type: Types.AppType;
987
+ status: Types.AppStatus;
988
+ scopes: Array<string>;
989
+ redirectUris: Array<string>;
990
+ ownerUserId: string;
991
+ tenantId?: string | null;
992
+ createdAt: string;
993
+ updatedAt: string;
994
+ }>;
995
+ };
996
+ };
997
+ export type AuthAuditLogsQueryVariables = Types.Exact<{
998
+ pagination?: Types.InputMaybe<Types.PaginationInput>;
999
+ }>;
1000
+ export type AuthAuditLogsQuery = {
1001
+ __typename?: 'Query';
1002
+ authAuditLogs: {
1003
+ __typename?: 'AuthAuditLogConnection';
1004
+ totalCount: number;
1005
+ hasMore: boolean;
1006
+ auditLogs: Array<{
1007
+ __typename?: 'AuthAuditLog';
1008
+ id: string;
1009
+ action: string;
1010
+ description?: string | null;
1011
+ ipAddress?: string | null;
1012
+ userAgent?: string | null;
1013
+ createdAt: string;
1014
+ }>;
1015
+ };
943
1016
  };
944
1017
  export type CurrentUserQueryVariables = Types.Exact<{
945
1018
  [key: string]: never;
@@ -969,56 +1042,66 @@ export type CurrentUserDelegationsQueryVariables = Types.Exact<{
969
1042
  }>;
970
1043
  export type CurrentUserDelegationsQuery = {
971
1044
  __typename?: 'Query';
972
- currentUserDelegations: Array<{
973
- __typename?: 'AppUserDelegation';
974
- id: string;
975
- appId: string;
976
- userId: string;
977
- scopes: Array<string>;
978
- workspaceIds: Array<string>;
979
- status: Types.DelegationStatus;
980
- grantedAt: string;
981
- grantedBy: string;
982
- expiresAt?: string | null;
983
- revokedAt?: string | null;
984
- revokedBy?: string | null;
985
- app: {
986
- __typename?: 'App';
1045
+ currentUserDelegations: {
1046
+ __typename?: 'AppUserDelegationConnection';
1047
+ hasMore: boolean;
1048
+ totalCount: number;
1049
+ delegations: Array<{
1050
+ __typename?: 'AppUserDelegation';
987
1051
  id: string;
988
- name: string;
989
- description?: string | null;
990
- type: Types.AppType;
991
- status: Types.AppStatus;
992
- };
993
- }>;
1052
+ appId: string;
1053
+ userId: string;
1054
+ scopes: Array<string>;
1055
+ workspaceIds: Array<string>;
1056
+ status: Types.DelegationStatus;
1057
+ grantedAt: string;
1058
+ grantedBy: string;
1059
+ expiresAt?: string | null;
1060
+ revokedAt?: string | null;
1061
+ revokedBy?: string | null;
1062
+ app: {
1063
+ __typename?: 'App';
1064
+ id: string;
1065
+ name: string;
1066
+ description?: string | null;
1067
+ type: Types.AppType;
1068
+ status: Types.AppStatus;
1069
+ };
1070
+ }>;
1071
+ };
994
1072
  };
995
1073
  export type CurrentUserGrantedDelegationsQueryVariables = Types.Exact<{
996
1074
  [key: string]: never;
997
1075
  }>;
998
1076
  export type CurrentUserGrantedDelegationsQuery = {
999
1077
  __typename?: 'Query';
1000
- currentUserGrantedDelegations: Array<{
1001
- __typename?: 'AppUserDelegation';
1002
- id: string;
1003
- appId: string;
1004
- userId: string;
1005
- scopes: Array<string>;
1006
- workspaceIds: Array<string>;
1007
- status: Types.DelegationStatus;
1008
- grantedAt: string;
1009
- grantedBy: string;
1010
- expiresAt?: string | null;
1011
- revokedAt?: string | null;
1012
- revokedBy?: string | null;
1013
- app: {
1014
- __typename?: 'App';
1078
+ currentUserGrantedDelegations: {
1079
+ __typename?: 'AppUserDelegationConnection';
1080
+ hasMore: boolean;
1081
+ totalCount: number;
1082
+ delegations: Array<{
1083
+ __typename?: 'AppUserDelegation';
1015
1084
  id: string;
1016
- name: string;
1017
- description?: string | null;
1018
- type: Types.AppType;
1019
- status: Types.AppStatus;
1020
- };
1021
- }>;
1085
+ appId: string;
1086
+ userId: string;
1087
+ scopes: Array<string>;
1088
+ workspaceIds: Array<string>;
1089
+ status: Types.DelegationStatus;
1090
+ grantedAt: string;
1091
+ grantedBy: string;
1092
+ expiresAt?: string | null;
1093
+ revokedAt?: string | null;
1094
+ revokedBy?: string | null;
1095
+ app: {
1096
+ __typename?: 'App';
1097
+ id: string;
1098
+ name: string;
1099
+ description?: string | null;
1100
+ type: Types.AppType;
1101
+ status: Types.AppStatus;
1102
+ };
1103
+ }>;
1104
+ };
1022
1105
  };
1023
1106
  export type AvailableAuthMethodsQueryVariables = Types.Exact<{
1024
1107
  tenantId?: Types.InputMaybe<Types.Scalars['String']['input']>;
@@ -1063,18 +1146,23 @@ export type ActiveSessionsQueryVariables = Types.Exact<{
1063
1146
  }>;
1064
1147
  export type ActiveSessionsQuery = {
1065
1148
  __typename?: 'Query';
1066
- activeSessions: Array<{
1067
- __typename?: 'Session';
1068
- id: string;
1069
- status: Types.SessionStatus;
1070
- ipAddress?: string | null;
1071
- userAgent?: string | null;
1072
- location?: string | null;
1073
- lastActivityAt: string;
1074
- expiresAt: string;
1075
- createdAt: string;
1076
- isCurrent: boolean;
1077
- }>;
1149
+ activeSessions: {
1150
+ __typename?: 'SessionConnection';
1151
+ hasMore: boolean;
1152
+ totalCount: number;
1153
+ sessions: Array<{
1154
+ __typename?: 'Session';
1155
+ id: string;
1156
+ status: Types.SessionStatus;
1157
+ ipAddress?: string | null;
1158
+ userAgent?: string | null;
1159
+ location?: string | null;
1160
+ lastActivityAt: string;
1161
+ expiresAt: string;
1162
+ createdAt: string;
1163
+ isCurrent: boolean;
1164
+ }>;
1165
+ };
1078
1166
  };
1079
1167
  export type GetSsoConfigQueryVariables = Types.Exact<{
1080
1168
  tenantId: Types.Scalars['String']['input'];
@@ -1245,6 +1333,9 @@ export type WorkspaceMembersQuery = {
1245
1333
  }>;
1246
1334
  };
1247
1335
  };
1336
+ export declare const AuditLogEntry_AuthAuditLogFragmentDoc: Apollo.DocumentNode;
1337
+ export declare const SessionCard_SessionFragmentDoc: Apollo.DocumentNode;
1338
+ export declare const UserRow_UserFragmentDoc: Apollo.DocumentNode;
1248
1339
  export declare const DeactivateAccountDocument: Apollo.DocumentNode;
1249
1340
  export type DeactivateAccountMutationFn = Apollo.MutationFunction<Types.DeactivateAccountMutation, Types.DeactivateAccountMutationVariables>;
1250
1341
  /**
@@ -2579,6 +2670,31 @@ export type AppsActingAsCurrentUserQueryHookResult = ReturnType<typeof useAppsAc
2579
2670
  export type AppsActingAsCurrentUserLazyQueryHookResult = ReturnType<typeof useAppsActingAsCurrentUserLazyQuery>;
2580
2671
  export type AppsActingAsCurrentUserSuspenseQueryHookResult = ReturnType<typeof useAppsActingAsCurrentUserSuspenseQuery>;
2581
2672
  export type AppsActingAsCurrentUserQueryResult = Apollo.QueryResult<Types.AppsActingAsCurrentUserQuery, Types.AppsActingAsCurrentUserQueryVariables>;
2673
+ export declare const AuthAuditLogsDocument: Apollo.DocumentNode;
2674
+ /**
2675
+ * __useAuthAuditLogsQuery__
2676
+ *
2677
+ * To run a query within a React component, call `useAuthAuditLogsQuery` and pass it any options that fit your needs.
2678
+ * When your component renders, `useAuthAuditLogsQuery` returns an object from Apollo Client that contains loading, error, and data properties
2679
+ * you can use to render your UI.
2680
+ *
2681
+ * @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;
2682
+ *
2683
+ * @example
2684
+ * const { data, loading, error } = useAuthAuditLogsQuery({
2685
+ * variables: {
2686
+ * pagination: // value for 'pagination'
2687
+ * },
2688
+ * });
2689
+ */
2690
+ export declare function useAuthAuditLogsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables, "empty" | "complete" | "streaming", Types.AuthAuditLogsQueryVariables>;
2691
+ export declare function useAuthAuditLogsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables, "empty" | "complete" | "streaming">;
2692
+ export declare function useAuthAuditLogsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables>;
2693
+ export declare function useAuthAuditLogsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.AuthAuditLogsQuery | undefined, Types.AuthAuditLogsQueryVariables>;
2694
+ export type AuthAuditLogsQueryHookResult = ReturnType<typeof useAuthAuditLogsQuery>;
2695
+ export type AuthAuditLogsLazyQueryHookResult = ReturnType<typeof useAuthAuditLogsLazyQuery>;
2696
+ export type AuthAuditLogsSuspenseQueryHookResult = ReturnType<typeof useAuthAuditLogsSuspenseQuery>;
2697
+ export type AuthAuditLogsQueryResult = Apollo.QueryResult<Types.AuthAuditLogsQuery, Types.AuthAuditLogsQueryVariables>;
2582
2698
  export declare const CurrentUserDocument: Apollo.DocumentNode;
2583
2699
  /**
2584
2700
  * __useCurrentUserQuery__