@idp.global/interfaces 8.0.1 → 9.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-07-08 - 9.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - remove legacy contracts (cleanup)
8
+ - Removed IReq_SuspendUser — superseded by IReq_SetUserSuspension (suspend/unsuspend, returns the updated user)
9
+ - Removed IReq_MobileVerificationForRegistration and the SMS fields/status on IRegistrationSession — the platform no longer provides an SMS sending service; registration completes after email validation
10
+
3
11
  ## 2026-07-08 - 8.0.1
4
12
 
5
13
  - 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.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,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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "8.0.1",
3
+ "version": "9.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: '8.0.1',
6
+ version: '9.0.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,