@idp.global/interfaces 18.0.0 → 19.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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-07-18 - 19.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - require a caller-stable operation id and exact reviewed User revision for
8
+ every global-administrator grant/removal request
9
+ - require idempotency and revision guards for global admin changes (admin)
10
+ - Add operationId to setGlobalAdmin requests for durable retry reconciliation
11
+ - Add expectedUserRevision to enforce compare-and-set behavior for reviewed user state
12
+ - Update documentation and type assertions for the stricter global admin contract
13
+
3
14
  ## 2026-07-18 - 18.0.0
4
15
 
5
16
  ### 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: '19.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=
@@ -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": "19.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,11 @@ 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
+ Grant/removal attempt and result events use the closed `global_admin_granted`
68
+ and `global_admin_removed` activity actions.
67
69
  The target hash is derived server-side from the canonical, authorized
68
70
  `ITransferTarget.appUrl`; the raw target URL is never persisted in session
69
71
  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: '19.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -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: {