@idp.global/interfaces 5.0.0 → 6.0.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.
package/changelog.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-06-23 - 6.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - remove obsolete user request contracts and add suspended activity type (user)
8
+ - Removed exported IReq_GetUserData, IReq_SetUserData, and IDeleteSuspendedUser request interfaces.
9
+ - Added user_suspended to supported activity log event types.
10
+
3
11
  ## 2026-06-21 - 5.0.0
4
12
 
5
13
  ### Breaking Changes
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '5.0.0',
6
+ version: '6.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -1,4 +1,4 @@
1
- export type TActivityAction = 'login' | 'logout' | 'session_created' | 'session_revoked' | 'passport_device_enrolled' | 'passport_device_revoked' | 'passport_challenge_approved' | 'passport_challenge_rejected' | 'org_created' | 'org_updated' | 'org_deleted' | 'org_ownership_transferred' | 'org_joined' | 'org_left' | 'role_changed' | 'org_app_role_mappings_updated' | 'profile_updated' | 'totp_enabled' | 'totp_disabled' | 'backup_codes_regenerated' | 'mfa_completed' | 'passkey_registered' | 'passkey_revoked' | 'passkey_login' | 'app_connected' | 'app_disconnected';
1
+ export type TActivityAction = 'login' | 'logout' | 'session_created' | 'session_revoked' | 'passport_device_enrolled' | 'passport_device_revoked' | 'passport_challenge_approved' | 'passport_challenge_rejected' | 'org_created' | 'org_updated' | 'org_deleted' | 'org_ownership_transferred' | 'org_joined' | 'org_left' | 'role_changed' | 'org_app_role_mappings_updated' | 'profile_updated' | 'totp_enabled' | 'totp_disabled' | 'backup_codes_regenerated' | 'mfa_completed' | 'passkey_registered' | 'passkey_revoked' | 'passkey_login' | 'app_connected' | 'app_disconnected' | 'user_suspended';
2
2
  export interface IActivityLog {
3
3
  id: string;
4
4
  data: {
@@ -1,23 +1,5 @@
1
1
  import * as dto from '../dto/index.js';
2
2
  import * as plugins from '../plugins.js';
3
- export interface IReq_GetUserData extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetUserData> {
4
- method: 'getUserData';
5
- request: {
6
- refreshToken: string;
7
- };
8
- response: {
9
- jwt: string;
10
- };
11
- }
12
- export interface IReq_SetUserData extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetUserData> {
13
- method: 'setUserData';
14
- request: {
15
- refreshToken: string;
16
- };
17
- response: {
18
- oneTimeTransferCode: string;
19
- };
20
- }
21
3
  export interface IReq_SuspendUser extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SuspendUser> {
22
4
  method: 'suspendUser';
23
5
  request: {
@@ -28,16 +10,6 @@ export interface IReq_SuspendUser extends plugins.typedRequestInterfaces.impleme
28
10
  publicKeyPem: string;
29
11
  };
30
12
  }
31
- export interface IDeleteSuspendedUser extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IDeleteSuspendedUser> {
32
- method: 'deleteSuspendedUser';
33
- request: {
34
- backendToken: string;
35
- };
36
- response: {
37
- ok: boolean;
38
- errorText?: string;
39
- };
40
- }
41
13
  export interface IReq_GetRolesAndOrganizationsForUserId extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetRolesAndOrganizationsForUserId> {
42
14
  method: 'getRolesAndOrganizationsForUserId';
43
15
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '5.0.0',
6
+ version: '6.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -24,7 +24,8 @@ export type TActivityAction =
24
24
  | 'passkey_revoked'
25
25
  | 'passkey_login'
26
26
  | 'app_connected'
27
- | 'app_disconnected';
27
+ | 'app_disconnected'
28
+ | 'user_suspended';
28
29
 
29
30
  export interface IActivityLog {
30
31
  id: string;
@@ -2,34 +2,6 @@ import * as data from '../data/index.js';
2
2
  import * as dto from '../dto/index.js';
3
3
  import * as plugins from '../plugins.js';
4
4
 
5
- export interface IReq_GetUserData
6
- extends plugins.typedRequestInterfaces.implementsTR<
7
- plugins.typedRequestInterfaces.ITypedRequest,
8
- IReq_GetUserData
9
- > {
10
- method: 'getUserData';
11
- request: {
12
- refreshToken: string;
13
- };
14
- response: {
15
- jwt: string;
16
- };
17
- }
18
-
19
- export interface IReq_SetUserData
20
- extends plugins.typedRequestInterfaces.implementsTR<
21
- plugins.typedRequestInterfaces.ITypedRequest,
22
- IReq_SetUserData
23
- > {
24
- method: 'setUserData';
25
- request: {
26
- refreshToken: string;
27
- };
28
- response: {
29
- oneTimeTransferCode: string;
30
- };
31
- }
32
-
33
5
  export interface IReq_SuspendUser
34
6
  extends plugins.typedRequestInterfaces.implementsTR<
35
7
  plugins.typedRequestInterfaces.ITypedRequest,
@@ -45,21 +17,6 @@ export interface IReq_SuspendUser
45
17
  };
46
18
  }
47
19
 
48
- export interface IDeleteSuspendedUser
49
- extends plugins.typedRequestInterfaces.implementsTR<
50
- plugins.typedRequestInterfaces.ITypedRequest,
51
- IDeleteSuspendedUser
52
- > {
53
- method: 'deleteSuspendedUser';
54
- request: {
55
- backendToken: string;
56
- };
57
- response: {
58
- ok: boolean;
59
- errorText?: string;
60
- };
61
- }
62
-
63
20
  export interface IReq_GetRolesAndOrganizationsForUserId
64
21
  extends plugins.typedRequestInterfaces.implementsTR<
65
22
  plugins.typedRequestInterfaces.ITypedRequest,