@idp.global/interfaces 20.0.0 → 21.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 +29 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/dto/activity.d.ts +1 -1
- package/dist_ts/request/login.d.ts +14 -6
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/dto/activity.ts +2 -0
- package/ts/request/login.ts +17 -6
package/changelog.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-18 - 21.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- require jwt in authenticated setNewPassword requests (request/login)
|
|
8
|
+
- Model setNewPassword as mutually exclusive authenticated password-change and recovery-token reset request variants.
|
|
9
|
+
- Authenticated password changes now require both jwt and oldPassword; recovery-token resets continue to use tokenArg.
|
|
10
|
+
|
|
11
|
+
## 2026-07-18 - 20.0.1
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
|
|
15
|
+
- include global administrator grant and removal events in activity DTO union (activity-dto)
|
|
16
|
+
- Add global_admin_granted and global_admin_removed activity events with account targets.
|
|
17
|
+
- Align the browser-safe activity event DTO union with the published activity action contract.
|
|
18
|
+
|
|
19
|
+
## 2026-07-18 - next
|
|
20
|
+
|
|
21
|
+
### Breaking Changes
|
|
22
|
+
|
|
23
|
+
- require an authenticated password change to carry the caller's JWT in
|
|
24
|
+
addition to the current password; recovery-token password resets remain a
|
|
25
|
+
separate mutually exclusive request shape
|
|
26
|
+
|
|
27
|
+
### Fixes
|
|
28
|
+
|
|
29
|
+
- include global-administrator grant/removal events in the closed browser-safe
|
|
30
|
+
activity-event DTO union, matching the published activity action contract
|
|
31
|
+
|
|
3
32
|
## 2026-07-18 - 20.0.0
|
|
4
33
|
|
|
5
34
|
### Breaking Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '
|
|
6
|
+
version: '21.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -24,7 +24,7 @@ export type TActivityEventDto = TActivityEventFor<'login', 'account', {
|
|
|
24
24
|
roleChange: TActivityRoleChange;
|
|
25
25
|
}> | TActivityEventFor<'org_app_role_mappings_updated', 'organization_role_mapping', null> | TActivityEventFor<'profile_updated', 'profile', null> | TActivityEventFor<'totp_enabled', 'mfa_method', null> | TActivityEventFor<'totp_disabled', 'mfa_method', null> | TActivityEventFor<'backup_codes_regenerated', 'mfa_method', null> | TActivityEventFor<'mfa_completed', 'mfa_method', {
|
|
26
26
|
factor: TActivityMfaFactor;
|
|
27
|
-
}> | TActivityEventFor<'passkey_registered', 'passkey', null> | TActivityEventFor<'passkey_revoked', 'passkey', null> | TActivityEventFor<'passkey_login', 'passkey', null> | TActivityEventFor<'app_connected', 'application_connection', null> | TActivityEventFor<'app_disconnected', 'application_connection', null> | TActivityEventFor<'user_suspended', 'account', null> | TActivityEventFor<'user_unsuspended', 'account', null> | TActivityEventFor<'account_deletion_requested', 'account', null> | TActivityEventFor<'account_deletion_cancelled', 'account', null> | TActivityEventFor<'account_purged', 'account', null> | TActivityEventFor<'sso_connection_created', 'sso_connection', {
|
|
27
|
+
}> | TActivityEventFor<'passkey_registered', 'passkey', null> | TActivityEventFor<'passkey_revoked', 'passkey', null> | TActivityEventFor<'passkey_login', 'passkey', null> | TActivityEventFor<'app_connected', 'application_connection', null> | TActivityEventFor<'app_disconnected', 'application_connection', null> | TActivityEventFor<'user_suspended', 'account', null> | TActivityEventFor<'user_unsuspended', 'account', null> | TActivityEventFor<'global_admin_granted', 'account', null> | TActivityEventFor<'global_admin_removed', 'account', null> | TActivityEventFor<'account_deletion_requested', 'account', null> | TActivityEventFor<'account_deletion_cancelled', 'account', null> | TActivityEventFor<'account_purged', 'account', null> | TActivityEventFor<'sso_connection_created', 'sso_connection', {
|
|
28
28
|
protocol: 'saml';
|
|
29
29
|
}> | TActivityEventFor<'sso_connection_updated', 'sso_connection', {
|
|
30
30
|
protocol: 'saml';
|
|
@@ -84,14 +84,22 @@ export interface IReq_ResetPassword extends plugins.typedRequestInterfaces.imple
|
|
|
84
84
|
/**
|
|
85
85
|
* Completes an authenticated password change or recovery-token reset.
|
|
86
86
|
*/
|
|
87
|
+
export type TSetNewPasswordRequest = {
|
|
88
|
+
email: string;
|
|
89
|
+
jwt: string;
|
|
90
|
+
oldPassword: string;
|
|
91
|
+
tokenArg?: never;
|
|
92
|
+
newPassword: string;
|
|
93
|
+
} | {
|
|
94
|
+
email: string;
|
|
95
|
+
jwt?: never;
|
|
96
|
+
oldPassword?: never;
|
|
97
|
+
tokenArg: string;
|
|
98
|
+
newPassword: string;
|
|
99
|
+
};
|
|
87
100
|
export interface IReq_SetNewPassword extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetNewPassword> {
|
|
88
101
|
method: 'setNewPassword';
|
|
89
|
-
request:
|
|
90
|
-
email: string;
|
|
91
|
-
oldPassword?: string;
|
|
92
|
-
tokenArg?: string;
|
|
93
|
-
newPassword: string;
|
|
94
|
-
};
|
|
102
|
+
request: TSetNewPasswordRequest;
|
|
95
103
|
response: {
|
|
96
104
|
status: 'ok' | 'not ok';
|
|
97
105
|
};
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/dto/activity.ts
CHANGED
|
@@ -75,6 +75,8 @@ export type TActivityEventDto =
|
|
|
75
75
|
| TActivityEventFor<'app_disconnected', 'application_connection', null>
|
|
76
76
|
| TActivityEventFor<'user_suspended', 'account', null>
|
|
77
77
|
| TActivityEventFor<'user_unsuspended', 'account', null>
|
|
78
|
+
| TActivityEventFor<'global_admin_granted', 'account', null>
|
|
79
|
+
| TActivityEventFor<'global_admin_removed', 'account', null>
|
|
78
80
|
| TActivityEventFor<'account_deletion_requested', 'account', null>
|
|
79
81
|
| TActivityEventFor<'account_deletion_cancelled', 'account', null>
|
|
80
82
|
| TActivityEventFor<'account_purged', 'account', null>
|
package/ts/request/login.ts
CHANGED
|
@@ -120,18 +120,29 @@ export interface IReq_ResetPassword
|
|
|
120
120
|
/**
|
|
121
121
|
* Completes an authenticated password change or recovery-token reset.
|
|
122
122
|
*/
|
|
123
|
+
export type TSetNewPasswordRequest =
|
|
124
|
+
| {
|
|
125
|
+
email: string;
|
|
126
|
+
jwt: string;
|
|
127
|
+
oldPassword: string;
|
|
128
|
+
tokenArg?: never;
|
|
129
|
+
newPassword: string;
|
|
130
|
+
}
|
|
131
|
+
| {
|
|
132
|
+
email: string;
|
|
133
|
+
jwt?: never;
|
|
134
|
+
oldPassword?: never;
|
|
135
|
+
tokenArg: string;
|
|
136
|
+
newPassword: string;
|
|
137
|
+
};
|
|
138
|
+
|
|
123
139
|
export interface IReq_SetNewPassword
|
|
124
140
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
125
141
|
plugins.typedRequestInterfaces.ITypedRequest,
|
|
126
142
|
IReq_SetNewPassword
|
|
127
143
|
> {
|
|
128
144
|
method: 'setNewPassword';
|
|
129
|
-
request:
|
|
130
|
-
email: string;
|
|
131
|
-
oldPassword?: string;
|
|
132
|
-
tokenArg?: string;
|
|
133
|
-
newPassword: string;
|
|
134
|
-
};
|
|
145
|
+
request: TSetNewPasswordRequest;
|
|
135
146
|
response: {
|
|
136
147
|
status: 'ok' | 'not ok';
|
|
137
148
|
};
|