@idp.global/interfaces 29.0.1 → 29.1.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 +18 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/oidc.d.ts +51 -0
- package/package.json +5 -5
- package/readme.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/oidc.ts +55 -0
- /package/{license → license.md} +0 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-09-09 - 29.1.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add RFC 7662 introspection contracts (oidc)
|
|
8
|
+
- Adds optional introspection endpoint metadata to OIDC discovery documents.
|
|
9
|
+
- Defines introspection request and active/inactive response authority interfaces.
|
|
10
|
+
- Adds type assertions for optional discovery support and inactive response disclosure.
|
|
11
|
+
|
|
12
|
+
### Fixes
|
|
13
|
+
|
|
14
|
+
- update development tooling dependencies (dev-deps)
|
|
15
|
+
- Update @git.zone/tsdoc to ^2.2.0 and @git.zone/tstest to ^4.1.1
|
|
16
|
+
- Pin @types/node to 26.4.1 and update pnpm to 12.2.1
|
|
17
|
+
- rename license file to license.md and update package references (license)
|
|
18
|
+
- Updated package files list to include license.md
|
|
19
|
+
- Updated README link to the renamed license file
|
|
20
|
+
|
|
3
21
|
## 2026-08-02 - 29.0.1
|
|
4
22
|
|
|
5
23
|
### Fixes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '29.0
|
|
6
|
+
version: '29.1.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=
|
package/dist_ts/data/oidc.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export interface IOidcDiscoveryDocument {
|
|
|
15
15
|
userinfo_endpoint: string;
|
|
16
16
|
jwks_uri: string;
|
|
17
17
|
revocation_endpoint: string;
|
|
18
|
+
/** Optional RFC 7662 support; older providers may omit introspection. */
|
|
19
|
+
introspection_endpoint?: string;
|
|
20
|
+
introspection_endpoint_auth_methods_supported?: string[];
|
|
18
21
|
end_session_endpoint: string;
|
|
19
22
|
scopes_supported: TOidcScope[];
|
|
20
23
|
response_types_supported: string[];
|
|
@@ -160,3 +163,51 @@ export interface ITokenRequestRefresh {
|
|
|
160
163
|
* Union type for token requests
|
|
161
164
|
*/
|
|
162
165
|
export type ITokenRequest = ITokenRequestAuthCode | ITokenRequestRefresh;
|
|
166
|
+
/**
|
|
167
|
+
* Confidential self-client RFC 7662 request. Send these fields exactly once
|
|
168
|
+
* as application/x-www-form-urlencoded, with client_secret_basic credentials.
|
|
169
|
+
* Subject and organization are exact canonical IDs, never email/domain aliases.
|
|
170
|
+
*/
|
|
171
|
+
export interface IOidcIntrospectionRequest {
|
|
172
|
+
token: string;
|
|
173
|
+
subject: string;
|
|
174
|
+
organization_id: string;
|
|
175
|
+
/** Fresh cryptographically random base64url value, at least 32 random bytes. */
|
|
176
|
+
nonce: string;
|
|
177
|
+
token_type_hint?: 'access_token';
|
|
178
|
+
}
|
|
179
|
+
/** Current authority observed under the provider's membership mutation fences. */
|
|
180
|
+
export interface IOidcIntrospectionAuthority {
|
|
181
|
+
version: 1;
|
|
182
|
+
nonce: string;
|
|
183
|
+
subject_revision: number;
|
|
184
|
+
organization_id: string;
|
|
185
|
+
organization_revision: number;
|
|
186
|
+
membership_id: string;
|
|
187
|
+
membership_revision: number;
|
|
188
|
+
app_connection_id: string;
|
|
189
|
+
app_connection_revision: number;
|
|
190
|
+
/** Sorted, unique current organization membership roles. */
|
|
191
|
+
roles: string[];
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* A live observation for one authorization decision, never a cacheable grant.
|
|
195
|
+
* exp is a conservative token/session/family deadline in epoch seconds; it
|
|
196
|
+
* does not promise that membership remains active until that deadline.
|
|
197
|
+
*/
|
|
198
|
+
export interface IOidcActiveIntrospectionResponse {
|
|
199
|
+
active: true;
|
|
200
|
+
token_type: 'Bearer';
|
|
201
|
+
client_id: string;
|
|
202
|
+
scope: string;
|
|
203
|
+
iss: string;
|
|
204
|
+
aud: string;
|
|
205
|
+
sub: string;
|
|
206
|
+
exp: number;
|
|
207
|
+
iat: number;
|
|
208
|
+
idp_global_authority: IOidcIntrospectionAuthority;
|
|
209
|
+
}
|
|
210
|
+
/** Inactive responses deliberately disclose no identity or authority metadata. */
|
|
211
|
+
export type TOidcIntrospectionResponse = {
|
|
212
|
+
active: false;
|
|
213
|
+
} | IOidcActiveIntrospectionResponse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idp.global/interfaces",
|
|
3
|
-
"version": "29.0
|
|
3
|
+
"version": "29.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
|
|
6
6
|
"exports": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@git.zone/tsbuild": "^4.4.2",
|
|
20
|
-
"@git.zone/tsdoc": "^2.
|
|
20
|
+
"@git.zone/tsdoc": "^2.2.0",
|
|
21
21
|
"@git.zone/tsrun": "^2.0.6",
|
|
22
|
-
"@git.zone/tstest": "^
|
|
23
|
-
"@types/node": "
|
|
22
|
+
"@git.zone/tstest": "^4.1.1",
|
|
23
|
+
"@types/node": "26.4.1"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"ts/**/*",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist_ts/**/*",
|
|
30
30
|
"readme.md",
|
|
31
31
|
"changelog.md",
|
|
32
|
-
"license"
|
|
32
|
+
"license.md"
|
|
33
33
|
],
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
package/readme.md
CHANGED
|
@@ -203,7 +203,7 @@ pnpm test
|
|
|
203
203
|
|
|
204
204
|
## License and Legal Information
|
|
205
205
|
|
|
206
|
-
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [license](./license) file.
|
|
206
|
+
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [license.md](./license.md) file.
|
|
207
207
|
|
|
208
208
|
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
|
209
209
|
|
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/oidc.ts
CHANGED
|
@@ -17,6 +17,9 @@ export interface IOidcDiscoveryDocument {
|
|
|
17
17
|
userinfo_endpoint: string;
|
|
18
18
|
jwks_uri: string;
|
|
19
19
|
revocation_endpoint: string;
|
|
20
|
+
/** Optional RFC 7662 support; older providers may omit introspection. */
|
|
21
|
+
introspection_endpoint?: string;
|
|
22
|
+
introspection_endpoint_auth_methods_supported?: string[];
|
|
20
23
|
end_session_endpoint: string;
|
|
21
24
|
scopes_supported: TOidcScope[];
|
|
22
25
|
response_types_supported: string[];
|
|
@@ -189,3 +192,55 @@ export interface ITokenRequestRefresh {
|
|
|
189
192
|
* Union type for token requests
|
|
190
193
|
*/
|
|
191
194
|
export type ITokenRequest = ITokenRequestAuthCode | ITokenRequestRefresh;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Confidential self-client RFC 7662 request. Send these fields exactly once
|
|
198
|
+
* as application/x-www-form-urlencoded, with client_secret_basic credentials.
|
|
199
|
+
* Subject and organization are exact canonical IDs, never email/domain aliases.
|
|
200
|
+
*/
|
|
201
|
+
export interface IOidcIntrospectionRequest {
|
|
202
|
+
token: string;
|
|
203
|
+
subject: string;
|
|
204
|
+
organization_id: string;
|
|
205
|
+
/** Fresh cryptographically random base64url value, at least 32 random bytes. */
|
|
206
|
+
nonce: string;
|
|
207
|
+
token_type_hint?: 'access_token';
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** Current authority observed under the provider's membership mutation fences. */
|
|
211
|
+
export interface IOidcIntrospectionAuthority {
|
|
212
|
+
version: 1;
|
|
213
|
+
nonce: string;
|
|
214
|
+
subject_revision: number;
|
|
215
|
+
organization_id: string;
|
|
216
|
+
organization_revision: number;
|
|
217
|
+
membership_id: string;
|
|
218
|
+
membership_revision: number;
|
|
219
|
+
app_connection_id: string;
|
|
220
|
+
app_connection_revision: number;
|
|
221
|
+
/** Sorted, unique current organization membership roles. */
|
|
222
|
+
roles: string[];
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* A live observation for one authorization decision, never a cacheable grant.
|
|
227
|
+
* exp is a conservative token/session/family deadline in epoch seconds; it
|
|
228
|
+
* does not promise that membership remains active until that deadline.
|
|
229
|
+
*/
|
|
230
|
+
export interface IOidcActiveIntrospectionResponse {
|
|
231
|
+
active: true;
|
|
232
|
+
token_type: 'Bearer';
|
|
233
|
+
client_id: string;
|
|
234
|
+
scope: string;
|
|
235
|
+
iss: string;
|
|
236
|
+
aud: string;
|
|
237
|
+
sub: string;
|
|
238
|
+
exp: number;
|
|
239
|
+
iat: number;
|
|
240
|
+
idp_global_authority: IOidcIntrospectionAuthority;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** Inactive responses deliberately disclose no identity or authority metadata. */
|
|
244
|
+
export type TOidcIntrospectionResponse =
|
|
245
|
+
| { active: false }
|
|
246
|
+
| IOidcActiveIntrospectionResponse;
|
/package/{license → license.md}
RENAMED
|
File without changes
|