@idp.global/interfaces 30.9.0 → 30.10.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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-23 - 30.10.0
4
+
5
+ ### Features
6
+
7
+ - Introspection app roles (AGL-655):
8
+ - Added optional `idp_global_authority_versions_supported` to `IOidcDiscoveryDocument`, optional `authority_version?: '1' | '2'` to `IOidcIntrospectionRequest`, `TOidcIntrospectionAuthorityVersion` (`1 | 2`), and optional `app_roles?: string[]` to `IOidcIntrospectionAuthority` (populated on version 2 responses from `IAppConnection.roleMappings`).
9
+ - `login_hint` & Pushed Authorization Requests (PAR, RFC 9126) (AGL-648):
10
+ - Added optional `pushed_authorization_request_endpoint` and `require_pushed_authorization_requests` to `IOidcDiscoveryDocument`, optional `login_hint` and `request_uri` to `IAuthorizationRequest`, `IPushedAuthorizationResponse`, and optional `loginHint` to `IReq_InspectOidcAuthorizationV2['response']`.
11
+
3
12
  ## 2026-11-23 - 30.9.0
4
13
 
5
14
  ### Features
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '30.9.0',
6
+ version: '30.10.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFNBQVM7SUFDbEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -19,6 +19,16 @@ export interface IOidcDiscoveryDocument {
19
19
  /** Optional RFC 7662 support; older providers may omit introspection. */
20
20
  introspection_endpoint?: string;
21
21
  introspection_endpoint_auth_methods_supported?: string[];
22
+ /**
23
+ * Supported `idp_global_authority` contract versions on `POST /oauth/introspect`.
24
+ * Version `1` is returned by default; version `2` adds `app_roles` derived from
25
+ * the active `AppConnection`'s `roleMappings` for the requested organization.
26
+ */
27
+ idp_global_authority_versions_supported?: number[];
28
+ /** Optional RFC 9126 Pushed Authorization Request (PAR) endpoint. */
29
+ pushed_authorization_request_endpoint?: string;
30
+ /** Whether the authorization server requires PAR for all clients (RFC 9126 §5). */
31
+ require_pushed_authorization_requests?: boolean;
22
32
  /**
23
33
  * The RFC 9396 authorization-details types the server supports, server-wide. idp.global
24
34
  * advertises `['app_connection']` from app 16.4.0; whether a given client may send one is gated
@@ -200,6 +210,23 @@ export interface IAuthorizationRequest {
200
210
  * no provider this installation offers is ignored: the login UI shows the sign-in choice.
201
211
  */
202
212
  provider_hint?: TUpstreamIdentityProvider;
213
+ /**
214
+ * Standard OIDC `login_hint` parameter (OpenID Connect Core §3.1.2.1): an email or identifier
215
+ * hint used to pre-fill the login/sign-up prompt. Never trusted as proof of identity.
216
+ */
217
+ login_hint?: string;
218
+ /**
219
+ * RFC 9126 Pushed Authorization Request (PAR) `request_uri` referencing parameters pushed
220
+ * server-to-server to `pushed_authorization_request_endpoint`.
221
+ */
222
+ request_uri?: string;
223
+ }
224
+ /**
225
+ * RFC 9126 Pushed Authorization Request (PAR) response from `POST /oauth/par`.
226
+ */
227
+ export interface IPushedAuthorizationResponse {
228
+ request_uri: string;
229
+ expires_in: number;
203
230
  }
204
231
  /**
205
232
  * Token request for authorization_code grant
@@ -238,10 +265,16 @@ export interface IOidcIntrospectionRequest {
238
265
  /** Fresh cryptographically random base64url value, at least 32 random bytes. */
239
266
  nonce: string;
240
267
  token_type_hint?: 'access_token';
268
+ /**
269
+ * Optional requested `idp_global_authority` contract version (`'1'` or `'2'`).
270
+ * Omitting it defaults to `'1'` for backwards compatibility with older clients.
271
+ */
272
+ authority_version?: '1' | '2';
241
273
  }
274
+ export type TOidcIntrospectionAuthorityVersion = 1 | 2;
242
275
  /** Current authority observed under the provider's membership mutation fences. */
243
276
  export interface IOidcIntrospectionAuthority {
244
- version: 1;
277
+ version: TOidcIntrospectionAuthorityVersion;
245
278
  nonce: string;
246
279
  subject_revision: number;
247
280
  organization_id: string;
@@ -252,6 +285,12 @@ export interface IOidcIntrospectionAuthority {
252
285
  app_connection_revision: number;
253
286
  /** Sorted, unique current organization membership roles. */
254
287
  roles: string[];
288
+ /**
289
+ * Sorted, unique application roles derived from the active `AppConnection`'s
290
+ * `roleMappings` for the subject's current roles in this organization.
291
+ * Present on `version: 2` responses (empty when no mapping applies); omitted on `version: 1`.
292
+ */
293
+ app_roles?: string[];
255
294
  }
256
295
  /**
257
296
  * A live observation for one authorization decision, never a cacheable grant.
@@ -59,6 +59,8 @@ export interface IReq_InspectOidcAuthorizationV2 extends plugins.typedRequestInt
59
59
  };
60
60
  /** The authorize request's `provider_hint`: the login UI starts this provider's sign-in itself. */
61
61
  providerHint?: TUpstreamIdentityProvider;
62
+ /** The authorize request's `login_hint` (pre-fills email/identifier on login/sign-up; advisory only). */
63
+ loginHint?: string;
62
64
  };
63
65
  }
64
66
  export interface IReq_PrepareOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_PrepareOidcAuthorizationV2> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "30.9.0",
3
+ "version": "30.10.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: '30.9.0',
6
+ version: '30.10.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
package/ts/data/oidc.ts CHANGED
@@ -22,6 +22,16 @@ export interface IOidcDiscoveryDocument {
22
22
  /** Optional RFC 7662 support; older providers may omit introspection. */
23
23
  introspection_endpoint?: string;
24
24
  introspection_endpoint_auth_methods_supported?: string[];
25
+ /**
26
+ * Supported `idp_global_authority` contract versions on `POST /oauth/introspect`.
27
+ * Version `1` is returned by default; version `2` adds `app_roles` derived from
28
+ * the active `AppConnection`'s `roleMappings` for the requested organization.
29
+ */
30
+ idp_global_authority_versions_supported?: number[];
31
+ /** Optional RFC 9126 Pushed Authorization Request (PAR) endpoint. */
32
+ pushed_authorization_request_endpoint?: string;
33
+ /** Whether the authorization server requires PAR for all clients (RFC 9126 §5). */
34
+ require_pushed_authorization_requests?: boolean;
25
35
  /**
26
36
  * The RFC 9396 authorization-details types the server supports, server-wide. idp.global
27
37
  * advertises `['app_connection']` from app 16.4.0; whether a given client may send one is gated
@@ -230,6 +240,24 @@ export interface IAuthorizationRequest {
230
240
  * no provider this installation offers is ignored: the login UI shows the sign-in choice.
231
241
  */
232
242
  provider_hint?: TUpstreamIdentityProvider;
243
+ /**
244
+ * Standard OIDC `login_hint` parameter (OpenID Connect Core §3.1.2.1): an email or identifier
245
+ * hint used to pre-fill the login/sign-up prompt. Never trusted as proof of identity.
246
+ */
247
+ login_hint?: string;
248
+ /**
249
+ * RFC 9126 Pushed Authorization Request (PAR) `request_uri` referencing parameters pushed
250
+ * server-to-server to `pushed_authorization_request_endpoint`.
251
+ */
252
+ request_uri?: string;
253
+ }
254
+
255
+ /**
256
+ * RFC 9126 Pushed Authorization Request (PAR) response from `POST /oauth/par`.
257
+ */
258
+ export interface IPushedAuthorizationResponse {
259
+ request_uri: string;
260
+ expires_in: number;
233
261
  }
234
262
 
235
263
  /**
@@ -272,11 +300,18 @@ export interface IOidcIntrospectionRequest {
272
300
  /** Fresh cryptographically random base64url value, at least 32 random bytes. */
273
301
  nonce: string;
274
302
  token_type_hint?: 'access_token';
303
+ /**
304
+ * Optional requested `idp_global_authority` contract version (`'1'` or `'2'`).
305
+ * Omitting it defaults to `'1'` for backwards compatibility with older clients.
306
+ */
307
+ authority_version?: '1' | '2';
275
308
  }
276
309
 
310
+ export type TOidcIntrospectionAuthorityVersion = 1 | 2;
311
+
277
312
  /** Current authority observed under the provider's membership mutation fences. */
278
313
  export interface IOidcIntrospectionAuthority {
279
- version: 1;
314
+ version: TOidcIntrospectionAuthorityVersion;
280
315
  nonce: string;
281
316
  subject_revision: number;
282
317
  organization_id: string;
@@ -287,6 +322,12 @@ export interface IOidcIntrospectionAuthority {
287
322
  app_connection_revision: number;
288
323
  /** Sorted, unique current organization membership roles. */
289
324
  roles: string[];
325
+ /**
326
+ * Sorted, unique application roles derived from the active `AppConnection`'s
327
+ * `roleMappings` for the subject's current roles in this organization.
328
+ * Present on `version: 2` responses (empty when no mapping applies); omitted on `version: 1`.
329
+ */
330
+ app_roles?: string[];
290
331
  }
291
332
 
292
333
  /**
@@ -76,6 +76,8 @@ export interface IReq_InspectOidcAuthorizationV2
76
76
  appConnection?: { requiresPasskey: true };
77
77
  /** The authorize request's `provider_hint`: the login UI starts this provider's sign-in itself. */
78
78
  providerHint?: TUpstreamIdentityProvider;
79
+ /** The authorize request's `login_hint` (pre-fills email/identifier on login/sign-up; advisory only). */
80
+ loginHint?: string;
79
81
  };
80
82
  }
81
83