@idp.global/interfaces 18.0.0 → 20.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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-07-18 - 20.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - expose user revision in global admin DTOs (dto)
8
+ - Add required revision to IGlobalUserAdminDto for compare-and-set administration.
9
+ - Document revision as the review token for global admin directory and mutation responses.
10
+
11
+ ## 2026-07-18 - next
12
+
13
+ ### Breaking Changes
14
+
15
+ - expose the exact current User revision in every global-user administration
16
+ DTO so callers can satisfy the mandatory compare-and-set contract
17
+
18
+ ## 2026-07-18 - 19.0.0
19
+
20
+ ### Breaking Changes
21
+
22
+ - require a caller-stable operation id and exact reviewed User revision for
23
+ every global-administrator grant/removal request
24
+ - require idempotency and revision guards for global admin changes (admin)
25
+ - Add operationId to setGlobalAdmin requests for durable retry reconciliation
26
+ - Add expectedUserRevision to enforce compare-and-set behavior for reviewed user state
27
+ - Update documentation and type assertions for the stricter global admin contract
28
+
3
29
  ## 2026-07-18 - 18.0.0
4
30
 
5
31
  ### Breaking Changes
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '18.0.0',
6
+ version: '20.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=
@@ -29,6 +29,8 @@ export interface IUserProfileDto {
29
29
  */
30
30
  export interface IGlobalUserAdminDto {
31
31
  id: string;
32
+ /** Exact current User revision for compare-and-set administration. */
33
+ revision: number;
32
34
  name: string;
33
35
  username: string;
34
36
  email: string;
@@ -170,7 +170,11 @@ export interface IReq_SetGlobalAdmin extends plugins.typedRequestInterfaces.impl
170
170
  method: 'setGlobalAdmin';
171
171
  request: {
172
172
  jwt: string;
173
+ /** Caller-stable idempotency key for one grant/removal attempt. */
174
+ operationId: string;
173
175
  userId: string;
176
+ /** Exact current User revision the caller reviewed. */
177
+ expectedUserRevision: number;
174
178
  isGlobalAdmin: boolean;
175
179
  };
176
180
  response: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "18.0.0",
3
+ "version": "20.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
@@ -61,9 +61,13 @@ authentication evidence; refresh operations must not advance those timestamps.
61
61
  The admin contract includes `setGlobalAdmin` for controlled platform
62
62
  administrator grant/removal. Implementations must require fresh strong MFA,
63
63
  distinct actor and target identities, serialized compare-and-set mutation, and
64
- must never remove the last active global administrator. Grant/removal attempt
65
- and result events use the closed `global_admin_granted` and
66
- `global_admin_removed` activity actions.
64
+ must never remove the last active global administrator. The request requires a
65
+ caller-stable `operationId` and the exact reviewed `expectedUserRevision` so
66
+ retries reconcile one durable attempt without overwriting a newer decision.
67
+ `IGlobalUserAdminDto.revision` supplies that exact review token in directory
68
+ and mutation responses.
69
+ Grant/removal attempt and result events use the closed `global_admin_granted`
70
+ and `global_admin_removed` activity actions.
67
71
  The target hash is derived server-side from the canonical, authorized
68
72
  `ITransferTarget.appUrl`; the raw target URL is never persisted in session
69
73
  data. Opaque tokens and the transfer target remain limited to the request and
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '18.0.0',
6
+ version: '20.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
package/ts/dto/user.ts CHANGED
@@ -32,6 +32,8 @@ export interface IUserProfileDto {
32
32
  */
33
33
  export interface IGlobalUserAdminDto {
34
34
  id: string;
35
+ /** Exact current User revision for compare-and-set administration. */
36
+ revision: number;
35
37
  name: string;
36
38
  username: string;
37
39
  email: string;
@@ -225,7 +225,11 @@ export interface IReq_SetGlobalAdmin
225
225
  method: 'setGlobalAdmin';
226
226
  request: {
227
227
  jwt: string;
228
+ /** Caller-stable idempotency key for one grant/removal attempt. */
229
+ operationId: string;
228
230
  userId: string;
231
+ /** Exact current User revision the caller reviewed. */
232
+ expectedUserRevision: number;
229
233
  isGlobalAdmin: boolean;
230
234
  };
231
235
  response: {