@idp.global/interfaces 5.0.0 → 7.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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-06-24 - 7.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - rename lole reception tag to backend service (tags)
8
+ - Renames ITag_LolePubapi to ITag_BackendService and changes the tag name from lole-reception to backend-service.
9
+ - Documents the dto namespace in package readmes.
10
+
11
+ ## 2026-06-23 - 6.0.0
12
+
13
+ ### Breaking Changes
14
+
15
+ - remove obsolete user request contracts and add suspended activity type (user)
16
+ - Removed exported IReq_GetUserData, IReq_SetUserData, and IDeleteSuspendedUser request interfaces.
17
+ - Added user_suspended to supported activity log event types.
18
+
3
19
  ## 2026-06-21 - 5.0.0
4
20
 
5
21
  ### 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: '7.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: {
@@ -1,6 +1,6 @@
1
1
  import * as plugins from '../plugins.js';
2
- export interface ITag_LolePubapi extends plugins.typedRequestInterfaces.implementsTag<plugins.typedRequestInterfaces.ITag, ITag_LolePubapi> {
3
- name: 'lole-reception';
2
+ export interface ITag_BackendService extends plugins.typedRequestInterfaces.implementsTag<plugins.typedRequestInterfaces.ITag, ITag_BackendService> {
3
+ name: 'backend-service';
4
4
  payload: {
5
5
  backendToken: string;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "5.0.0",
3
+ "version": "7.0.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
6
6
  "exports": {
package/readme.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.
4
4
 
5
- This package contains only public data shapes, typed RPC request definitions, and shared tags used by the idp.global backend, browser client, CLI, web UI, and external integrations.
5
+ This package contains only public data shapes, DTOs, typed RPC request definitions, and shared tags used by the idp.global backend, browser client, CLI, web UI, and external integrations.
6
6
 
7
7
  ## Issue Reporting and Security
8
8
 
@@ -17,14 +17,15 @@ pnpm add @idp.global/interfaces
17
17
  ## Public API
18
18
 
19
19
  ```ts
20
- import { data, request, tags } from '@idp.global/interfaces';
20
+ import { data, dto, request, tags } from '@idp.global/interfaces';
21
21
  ```
22
22
 
23
- The root export exposes three namespaces:
23
+ The root export exposes four namespaces:
24
24
 
25
25
  ```ts
26
26
  export {
27
27
  data,
28
+ dto,
28
29
  request,
29
30
  tags,
30
31
  };
@@ -67,6 +68,10 @@ const payload: LoginRequest['request'] = {
67
68
 
68
69
  Request groups cover login, registration, JWT refresh, user/session queries, organization membership, invitations, apps, billing, admin actions, alerts, passport device flows, password reset, device IDs, and OIDC authorization.
69
70
 
71
+ ## DTO Contracts
72
+
73
+ Use `dto` for normalized transfer objects grouped by activity, alerts, apps, billing, invitations, MFA, organizations, passport, and users.
74
+
70
75
  ## Scope
71
76
 
72
77
  This package is intentionally contract-only. It does not open sockets, store auth state, talk to MongoDB, send email, or implement authentication logic.
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '5.0.0',
6
+ version: '7.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;
package/ts/readme.md CHANGED
@@ -17,7 +17,7 @@ pnpm add @idp.global/interfaces
17
17
  ## Quick Start
18
18
 
19
19
  ```ts
20
- import { data, request, tags } from '@idp.global/interfaces';
20
+ import { data, dto, request, tags } from '@idp.global/interfaces';
21
21
 
22
22
  const loginRequest: request.IReq_LoginWithEmailOrUsernameAndPassword['request'] = {
23
23
  username: 'user@example.com',
@@ -70,6 +70,10 @@ The `request` export includes typed request contracts for:
70
70
  - alert and passport approval flows
71
71
  - OIDC authorization preparation and completion
72
72
 
73
+ ### `dto`
74
+
75
+ The `dto` export includes normalized transfer objects for activity, alerts, apps, billing, invitations, MFA, organizations, passport, and users.
76
+
73
77
  ### `tags`
74
78
 
75
79
  Shared tag exports live under `tags/`.
@@ -79,6 +83,7 @@ Shared tag exports live under `tags/`.
79
83
  | Path | Purpose |
80
84
  | --- | --- |
81
85
  | `data/index.ts` | Re-exports all shared data interfaces |
86
+ | `dto/index.ts` | Re-exports normalized transfer object interfaces |
82
87
  | `request/index.ts` | Re-exports all typed request contracts |
83
88
  | `tags/index.ts` | Re-exports shared tags |
84
89
 
@@ -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,
package/ts/tags/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as plugins from '../plugins.js';
2
2
 
3
- export interface ITag_LolePubapi
3
+ export interface ITag_BackendService
4
4
  extends plugins.typedRequestInterfaces.implementsTag<
5
5
  plugins.typedRequestInterfaces.ITag,
6
- ITag_LolePubapi
6
+ ITag_BackendService
7
7
  > {
8
- name: 'lole-reception';
8
+ name: 'backend-service';
9
9
  payload: {
10
10
  backendToken: string;
11
11
  };