@idp.global/interfaces 20.0.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 2026-07-18 - 20.0.1
4
12
 
5
13
  ### Fixes
@@ -10,6 +18,12 @@
10
18
 
11
19
  ## 2026-07-18 - next
12
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
+
13
27
  ### Fixes
14
28
 
15
29
  - include global-administrator grant/removal events in the closed browser-safe
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '20.0.1',
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=
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "20.0.1",
3
+ "version": "21.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: '20.0.1',
6
+ version: '21.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -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
  };