@idp.global/interfaces 8.0.1 → 9.1.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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-07-08 - 9.1.0
4
+
5
+ ### Features
6
+
7
+ - add cursor-paged user activity export contract (audit)
8
+ - IReq_ExportUserActivity: opaque-cursor pagination with since/until filters for SOC2 evidence export and data portability
9
+
10
+ ## 2026-07-08 - 9.0.0
11
+
12
+ ### Breaking Changes
13
+
14
+ - remove legacy contracts (cleanup)
15
+ - Removed IReq_SuspendUser — superseded by IReq_SetUserSuspension (suspend/unsuspend, returns the updated user)
16
+ - Removed IReq_MobileVerificationForRegistration and the SMS fields/status on IRegistrationSession — the platform no longer provides an SMS sending service; registration completes after email validation
17
+
3
18
  ## 2026-07-08 - 8.0.1
4
19
 
5
20
  - feat(admin): add global admin directory, user suspension, and profile update contracts
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '8.0.1',
6
+ version: '9.1.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,11 +1,9 @@
1
- export type TRegistrationSessionStatus = 'announced' | 'emailValidated' | 'mobileVerified' | 'registered' | 'failed';
1
+ export type TRegistrationSessionStatus = 'announced' | 'emailValidated' | 'registered' | 'failed';
2
2
  export interface IRegistrationSession {
3
3
  id: string;
4
4
  data: {
5
5
  emailAddress: string;
6
6
  hashedEmailToken: string;
7
- smsCodeHash?: string | null;
8
- smsvalidationCounter: number;
9
7
  status: TRegistrationSessionStatus;
10
8
  validUntil: number;
11
9
  createdAt: number;
@@ -38,24 +38,6 @@ export interface IReq_SetDataForRegistration extends plugins.typedRequestInterfa
38
38
  status: 'ok' | 'not ok';
39
39
  };
40
40
  }
41
- /**
42
- * @deprecated SMS verification was removed from registration — the platform
43
- * no longer provides an SMS sending service. The server no longer handles
44
- * this method. Kept until the next major release.
45
- */
46
- export interface IReq_MobileVerificationForRegistration extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_MobileVerificationForRegistration> {
47
- method: 'mobileVerificationForRegistration';
48
- request: {
49
- token: string;
50
- mobileNumber?: string;
51
- verificationCode?: string;
52
- };
53
- response: {
54
- messageSent?: boolean;
55
- verficationCodeOk?: boolean;
56
- testOnlySmsCode?: string;
57
- };
58
- }
59
41
  export interface IReq_FinishRegistration extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_FinishRegistration> {
60
42
  method: 'finishRegistration';
61
43
  request: {
@@ -1,20 +1,5 @@
1
1
  import * as dto from '../dto/index.js';
2
2
  import * as plugins from '../plugins.js';
3
- /**
4
- * @deprecated superseded by IReq_SetUserSuspension (request/admin.ts), which
5
- * supports unsuspension and returns the updated user instead of a key. Kept
6
- * until the next major release.
7
- */
8
- export interface IReq_SuspendUser extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SuspendUser> {
9
- method: 'suspendUser';
10
- request: {
11
- jwt: string;
12
- userId: string;
13
- };
14
- response: {
15
- publicKeyPem: string;
16
- };
17
- }
18
3
  export interface IReq_GetRolesAndOrganizationsForUserId extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_GetRolesAndOrganizationsForUserId> {
19
4
  method: 'getRolesAndOrganizationsForUserId';
20
5
  request: {
@@ -92,3 +77,27 @@ export interface IReq_GetUserActivity extends plugins.typedRequestInterfaces.imp
92
77
  total: number;
93
78
  };
94
79
  }
80
+ /**
81
+ * Cursor-paged export of the authenticated user's full activity trail
82
+ * (SOC2 audit evidence / data portability). Iterate until nextCursor is
83
+ * absent.
84
+ */
85
+ export interface IReq_ExportUserActivity extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ExportUserActivity> {
86
+ method: 'exportUserActivity';
87
+ request: {
88
+ jwt: string;
89
+ /** opaque cursor from the previous page */
90
+ cursor?: string;
91
+ /** page size, capped server-side */
92
+ limit?: number;
93
+ /** only events at or after this epoch ms */
94
+ since?: number;
95
+ /** only events at or before this epoch ms */
96
+ until?: number;
97
+ };
98
+ response: {
99
+ activities: dto.IActivityEventDto[];
100
+ /** absent when the export is complete */
101
+ nextCursor?: string;
102
+ };
103
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "8.0.1",
3
+ "version": "9.1.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: '8.0.1',
6
+ version: '9.1.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -1,7 +1,6 @@
1
1
  export type TRegistrationSessionStatus =
2
2
  | 'announced'
3
3
  | 'emailValidated'
4
- | 'mobileVerified'
5
4
  | 'registered'
6
5
  | 'failed';
7
6
 
@@ -10,8 +9,6 @@ export interface IRegistrationSession {
10
9
  data: {
11
10
  emailAddress: string;
12
11
  hashedEmailToken: string;
13
- smsCodeHash?: string | null;
14
- smsvalidationCounter: number;
15
12
  status: TRegistrationSessionStatus;
16
13
  validUntil: number;
17
14
  createdAt: number;
@@ -54,29 +54,6 @@ export interface IReq_SetDataForRegistration
54
54
  };
55
55
  }
56
56
 
57
- /**
58
- * @deprecated SMS verification was removed from registration — the platform
59
- * no longer provides an SMS sending service. The server no longer handles
60
- * this method. Kept until the next major release.
61
- */
62
- export interface IReq_MobileVerificationForRegistration
63
- extends plugins.typedRequestInterfaces.implementsTR<
64
- plugins.typedRequestInterfaces.ITypedRequest,
65
- IReq_MobileVerificationForRegistration
66
- > {
67
- method: 'mobileVerificationForRegistration';
68
- request: {
69
- token: string;
70
- mobileNumber?: string;
71
- verificationCode?: string;
72
- };
73
- response: {
74
- messageSent?: boolean;
75
- verficationCodeOk?: boolean;
76
- testOnlySmsCode?: string;
77
- };
78
- }
79
-
80
57
  export interface IReq_FinishRegistration
81
58
  extends plugins.typedRequestInterfaces.implementsTR<
82
59
  plugins.typedRequestInterfaces.ITypedRequest,
@@ -2,26 +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
- /**
6
- * @deprecated superseded by IReq_SetUserSuspension (request/admin.ts), which
7
- * supports unsuspension and returns the updated user instead of a key. Kept
8
- * until the next major release.
9
- */
10
- export interface IReq_SuspendUser
11
- extends plugins.typedRequestInterfaces.implementsTR<
12
- plugins.typedRequestInterfaces.ITypedRequest,
13
- IReq_SuspendUser
14
- > {
15
- method: 'suspendUser';
16
- request: {
17
- jwt: string;
18
- userId: string;
19
- };
20
- response: {
21
- publicKeyPem: string;
22
- };
23
- }
24
-
25
5
  export interface IReq_GetRolesAndOrganizationsForUserId
26
6
  extends plugins.typedRequestInterfaces.implementsTR<
27
7
  plugins.typedRequestInterfaces.ITypedRequest,
@@ -128,3 +108,32 @@ export interface IReq_GetUserActivity
128
108
  total: number;
129
109
  };
130
110
  }
111
+
112
+ /**
113
+ * Cursor-paged export of the authenticated user's full activity trail
114
+ * (SOC2 audit evidence / data portability). Iterate until nextCursor is
115
+ * absent.
116
+ */
117
+ export interface IReq_ExportUserActivity
118
+ extends plugins.typedRequestInterfaces.implementsTR<
119
+ plugins.typedRequestInterfaces.ITypedRequest,
120
+ IReq_ExportUserActivity
121
+ > {
122
+ method: 'exportUserActivity';
123
+ request: {
124
+ jwt: string;
125
+ /** opaque cursor from the previous page */
126
+ cursor?: string;
127
+ /** page size, capped server-side */
128
+ limit?: number;
129
+ /** only events at or after this epoch ms */
130
+ since?: number;
131
+ /** only events at or before this epoch ms */
132
+ until?: number;
133
+ };
134
+ response: {
135
+ activities: dto.IActivityEventDto[];
136
+ /** absent when the export is complete */
137
+ nextCursor?: string;
138
+ };
139
+ }