@idp.global/interfaces 22.0.0 → 23.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 +9 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/request/admin.d.ts +31 -0
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/request/admin.ts +36 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-18 - 23.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- require two-step OIDC signing-key rotation approvals (admin)
|
|
8
|
+
- Require operationId for rotateOidcSigningKey requests and return rotation status metadata.
|
|
9
|
+
- Add approveOidcSigningKeyRotation request contract with expected active key validation.
|
|
10
|
+
- Expose completion-only rotation results such as approvedAt, resultingActiveKid, and retiringKids.
|
|
11
|
+
|
|
3
12
|
## 2026-07-18 - 22.0.0
|
|
4
13
|
|
|
5
14
|
### Breaking Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '
|
|
6
|
+
version: '23.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=
|
|
@@ -167,10 +167,41 @@ export interface IReq_RotateOidcSigningKey extends plugins.typedRequestInterface
|
|
|
167
167
|
method: 'rotateOidcSigningKey';
|
|
168
168
|
request: {
|
|
169
169
|
jwt: string;
|
|
170
|
+
/** Caller-stable idempotency key for this exact rotation request. */
|
|
171
|
+
operationId: string;
|
|
172
|
+
};
|
|
173
|
+
response: {
|
|
174
|
+
status: 'pending' | 'completed' | 'expired';
|
|
175
|
+
operationId: string;
|
|
176
|
+
activeKid: string;
|
|
177
|
+
requestedAt: number;
|
|
178
|
+
expiresAt: number;
|
|
179
|
+
/** Present only when a distinct administrator completed the request. */
|
|
180
|
+
approvedAt?: number;
|
|
181
|
+
/** Present only when the request completed and identifies its new active key. */
|
|
182
|
+
resultingActiveKid?: string;
|
|
183
|
+
/** Present only when the request completed. */
|
|
184
|
+
retiringKids?: string[];
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Approve and execute a pending OIDC signing-key rotation requested by a
|
|
189
|
+
* different global administrator.
|
|
190
|
+
*/
|
|
191
|
+
export interface IReq_ApproveOidcSigningKeyRotation extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ApproveOidcSigningKeyRotation> {
|
|
192
|
+
method: 'approveOidcSigningKeyRotation';
|
|
193
|
+
request: {
|
|
194
|
+
jwt: string;
|
|
195
|
+
/** Must exactly match the caller-stable id of the pending request. */
|
|
196
|
+
operationId: string;
|
|
197
|
+
/** Binds approval to the key that was active when the request was reviewed. */
|
|
198
|
+
expectedActiveKid: string;
|
|
170
199
|
};
|
|
171
200
|
response: {
|
|
201
|
+
operationId: string;
|
|
172
202
|
activeKid: string;
|
|
173
203
|
retiringKids: string[];
|
|
204
|
+
approvedAt: number;
|
|
174
205
|
};
|
|
175
206
|
}
|
|
176
207
|
export interface IReq_SetOrganizationSuspension extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetOrganizationSuspension> {
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/request/admin.ts
CHANGED
|
@@ -218,10 +218,46 @@ export interface IReq_RotateOidcSigningKey
|
|
|
218
218
|
method: 'rotateOidcSigningKey';
|
|
219
219
|
request: {
|
|
220
220
|
jwt: string;
|
|
221
|
+
/** Caller-stable idempotency key for this exact rotation request. */
|
|
222
|
+
operationId: string;
|
|
223
|
+
};
|
|
224
|
+
response: {
|
|
225
|
+
status: 'pending' | 'completed' | 'expired';
|
|
226
|
+
operationId: string;
|
|
227
|
+
activeKid: string;
|
|
228
|
+
requestedAt: number;
|
|
229
|
+
expiresAt: number;
|
|
230
|
+
/** Present only when a distinct administrator completed the request. */
|
|
231
|
+
approvedAt?: number;
|
|
232
|
+
/** Present only when the request completed and identifies its new active key. */
|
|
233
|
+
resultingActiveKid?: string;
|
|
234
|
+
/** Present only when the request completed. */
|
|
235
|
+
retiringKids?: string[];
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Approve and execute a pending OIDC signing-key rotation requested by a
|
|
241
|
+
* different global administrator.
|
|
242
|
+
*/
|
|
243
|
+
export interface IReq_ApproveOidcSigningKeyRotation
|
|
244
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
245
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
246
|
+
IReq_ApproveOidcSigningKeyRotation
|
|
247
|
+
> {
|
|
248
|
+
method: 'approveOidcSigningKeyRotation';
|
|
249
|
+
request: {
|
|
250
|
+
jwt: string;
|
|
251
|
+
/** Must exactly match the caller-stable id of the pending request. */
|
|
252
|
+
operationId: string;
|
|
253
|
+
/** Binds approval to the key that was active when the request was reviewed. */
|
|
254
|
+
expectedActiveKid: string;
|
|
221
255
|
};
|
|
222
256
|
response: {
|
|
257
|
+
operationId: string;
|
|
223
258
|
activeKid: string;
|
|
224
259
|
retiringKids: string[];
|
|
260
|
+
approvedAt: number;
|
|
225
261
|
};
|
|
226
262
|
}
|
|
227
263
|
|