@idp.global/interfaces 10.0.0 → 11.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 +13 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/app.d.ts +1 -1
- package/dist_ts/dto/app.d.ts +1 -1
- package/dist_ts/request/index.d.ts +0 -1
- package/dist_ts/request/index.js +1 -2
- package/dist_ts/request/jwt.d.ts +4 -3
- package/dist_ts/request/login.d.ts +2 -14
- package/dist_ts/request/user.d.ts +4 -4
- package/package.json +2 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/app.ts +1 -1
- package/ts/dto/app.ts +1 -1
- package/ts/request/index.ts +0 -1
- package/ts/request/jwt.ts +4 -3
- package/ts/request/login.ts +2 -19
- package/ts/request/user.ts +4 -4
- package/dist_ts/request/apitoken.d.ts +0 -1
- package/dist_ts/request/apitoken.js +0 -2
- package/ts/request/apitoken.ts +0 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-11 - 11.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- remove the unsafe `loginWithApiToken` request contract; a future machine-credential API will use explicit scoped credentials rather than exchanging a long-lived token for a full user JWT
|
|
8
|
+
- remove `client_credentials` from OIDC app contracts because the token endpoint has no service-principal, audience, or machine-authorization implementation
|
|
9
|
+
- clarify that `confirmEmail` is visual confirmation only and passwordless account deletion fails closed until fresh-auth step-up is available
|
|
10
|
+
- define JWT blocklist pushes as complete persisted snapshots that replace consumer-local state rather than incremental append events
|
|
11
|
+
|
|
12
|
+
### Maintenance
|
|
13
|
+
|
|
14
|
+
- update Node.js type definitions to the newest supply-chain-mature 26.1.0 release
|
|
15
|
+
|
|
3
16
|
## 2026-07-10 - 10.0.0
|
|
4
17
|
|
|
5
18
|
### Breaking Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '
|
|
6
|
+
version: '11.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=
|
package/dist_ts/data/app.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface IOAuthCredentials {
|
|
|
12
12
|
redirectUris: string[];
|
|
13
13
|
postLogoutRedirectUris: string[];
|
|
14
14
|
allowedScopes: string[];
|
|
15
|
-
grantTypes: ('authorization_code' | '
|
|
15
|
+
grantTypes: ('authorization_code' | 'refresh_token')[];
|
|
16
16
|
}
|
|
17
17
|
export interface IAppBaseData {
|
|
18
18
|
name: string;
|
package/dist_ts/dto/app.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface IOAuthClientDto {
|
|
|
6
6
|
redirectUris: string[];
|
|
7
7
|
postLogoutRedirectUris: string[];
|
|
8
8
|
allowedScopes: string[];
|
|
9
|
-
grantTypes: ('authorization_code' | '
|
|
9
|
+
grantTypes: ('authorization_code' | 'refresh_token')[];
|
|
10
10
|
hasActiveClientSecret: boolean;
|
|
11
11
|
retiringClientSecretCount: number;
|
|
12
12
|
nextRetiringClientSecretExpiry?: number;
|
package/dist_ts/request/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './admin.js';
|
|
2
|
-
export * from './apitoken.js';
|
|
3
2
|
export * from './alert.js';
|
|
4
3
|
export * from './app.js';
|
|
5
4
|
export * from './authorization.js';
|
|
@@ -14,4 +13,4 @@ export * from './registration.js';
|
|
|
14
13
|
export * from './user.js';
|
|
15
14
|
export * from './userinvitation.js';
|
|
16
15
|
export * from './ssoconnection.js';
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLG9CQUFvQixDQUFDIn0=
|
package/dist_ts/request/jwt.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface IReq_PushPublicKeyForValidation extends plugins.typedRequestInt
|
|
|
43
43
|
*
|
|
44
44
|
* **Bidirectional:**
|
|
45
45
|
* - **GET direction:** Client → idp.global - Client requests current blocklist
|
|
46
|
-
* - **PUSH direction:** idp.global → Client - Server pushes
|
|
46
|
+
* - **PUSH direction:** idp.global → Client - Server pushes the complete current blocklist snapshot
|
|
47
47
|
*
|
|
48
48
|
* **For GET (client fires):**
|
|
49
49
|
* - Fire with empty/undefined `blockedJwtIds` to request the full blocklist
|
|
@@ -52,9 +52,10 @@ export interface IReq_PushPublicKeyForValidation extends plugins.typedRequestInt
|
|
|
52
52
|
* - Use `IdpClient.requests.getJwtIdBlocklist` for this direction
|
|
53
53
|
*
|
|
54
54
|
* **For PUSH (idp.global fires):**
|
|
55
|
-
* - idp.global sends
|
|
55
|
+
* - idp.global sends the complete current persisted blocklist snapshot to connected clients
|
|
56
56
|
* - Clients must register a handler using `IdpClient.onBlocklistPush()`
|
|
57
|
-
* -
|
|
57
|
+
* - Each push contains the complete current persisted list; replace the local
|
|
58
|
+
* snapshot rather than treating it as an incremental append
|
|
58
59
|
*/
|
|
59
60
|
export interface IReq_PushOrGetJwtIdBlocklist extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_PushOrGetJwtIdBlocklist> {
|
|
60
61
|
method: 'pushOrGetJwtIdBlocklist';
|
|
@@ -36,18 +36,6 @@ export interface IReq_LoginWithEmailAfterEmailTokenAquired extends plugins.typed
|
|
|
36
36
|
availableMfaMethods?: data.TMfaMethod[];
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
/**
|
|
40
|
-
* in case you authenticate with a long lived api token
|
|
41
|
-
*/
|
|
42
|
-
export interface IReq_LoginWithApiToken extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_LoginWithApiToken> {
|
|
43
|
-
method: 'loginWithApiToken';
|
|
44
|
-
request: {
|
|
45
|
-
apiToken: string;
|
|
46
|
-
};
|
|
47
|
-
response: {
|
|
48
|
-
jwt?: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
39
|
export interface ILogoutRequest extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, ILogoutRequest> {
|
|
52
40
|
method: 'logout';
|
|
53
41
|
request: {
|
|
@@ -82,7 +70,7 @@ export interface IReq_ExchangeRefreshTokenAndTransferToken extends plugins.typed
|
|
|
82
70
|
};
|
|
83
71
|
}
|
|
84
72
|
/**
|
|
85
|
-
*
|
|
73
|
+
* Starts password recovery without revealing whether the account exists.
|
|
86
74
|
*/
|
|
87
75
|
export interface IReq_ResetPassword extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_ResetPassword> {
|
|
88
76
|
method: 'resetPassword';
|
|
@@ -94,7 +82,7 @@ export interface IReq_ResetPassword extends plugins.typedRequestInterfaces.imple
|
|
|
94
82
|
};
|
|
95
83
|
}
|
|
96
84
|
/**
|
|
97
|
-
*
|
|
85
|
+
* Completes an authenticated password change or recovery-token reset.
|
|
98
86
|
*/
|
|
99
87
|
export interface IReq_SetNewPassword extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetNewPassword> {
|
|
100
88
|
method: 'setNewPassword';
|
|
@@ -78,9 +78,9 @@ export interface IReq_GetUserActivity extends plugins.typedRequestInterfaces.imp
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Self-service account deletion. Requires re-authentication
|
|
82
|
-
*
|
|
83
|
-
*
|
|
81
|
+
* Self-service account deletion. Requires password re-authentication.
|
|
82
|
+
* Passwordless accounts fail closed until purpose-bound fresh-auth step-up is
|
|
83
|
+
* available; typing an email address is never authentication. Owning any organization blocks deletion until ownership is
|
|
84
84
|
* transferred or the organization is deleted. On success the account is
|
|
85
85
|
* locked immediately (all sessions and JWTs revoked, sign-in rejected) and
|
|
86
86
|
* purged after a 7-day grace window; a global admin can cancel within the
|
|
@@ -92,7 +92,7 @@ export interface IReq_DeleteAccount extends plugins.typedRequestInterfaces.imple
|
|
|
92
92
|
jwt: string;
|
|
93
93
|
/** required when the account has a password */
|
|
94
94
|
password?: string;
|
|
95
|
-
/**
|
|
95
|
+
/** visual confirmation only; never accepted as authentication */
|
|
96
96
|
confirmEmail?: string;
|
|
97
97
|
};
|
|
98
98
|
response: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idp.global/interfaces",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
|
|
6
6
|
"exports": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@git.zone/tsdoc": "^2.1.1",
|
|
19
19
|
"@git.zone/tsrun": "^2.0.5",
|
|
20
20
|
"@git.zone/tstest": "^3.6.6",
|
|
21
|
-
"@types/node": "^26.
|
|
21
|
+
"@types/node": "^26.1.0"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"ts/**/*",
|
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/app.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface IOAuthCredentials {
|
|
|
16
16
|
redirectUris: string[];
|
|
17
17
|
postLogoutRedirectUris: string[];
|
|
18
18
|
allowedScopes: string[];
|
|
19
|
-
grantTypes: ('authorization_code' | '
|
|
19
|
+
grantTypes: ('authorization_code' | 'refresh_token')[];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// Base app data shared by all app types
|
package/ts/dto/app.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface IOAuthClientDto {
|
|
|
7
7
|
redirectUris: string[];
|
|
8
8
|
postLogoutRedirectUris: string[];
|
|
9
9
|
allowedScopes: string[];
|
|
10
|
-
grantTypes: ('authorization_code' | '
|
|
10
|
+
grantTypes: ('authorization_code' | 'refresh_token')[];
|
|
11
11
|
hasActiveClientSecret: boolean;
|
|
12
12
|
retiringClientSecretCount: number;
|
|
13
13
|
nextRetiringClientSecretExpiry?: number;
|
package/ts/request/index.ts
CHANGED
package/ts/request/jwt.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface IReq_PushPublicKeyForValidation
|
|
|
54
54
|
*
|
|
55
55
|
* **Bidirectional:**
|
|
56
56
|
* - **GET direction:** Client → idp.global - Client requests current blocklist
|
|
57
|
-
* - **PUSH direction:** idp.global → Client - Server pushes
|
|
57
|
+
* - **PUSH direction:** idp.global → Client - Server pushes the complete current blocklist snapshot
|
|
58
58
|
*
|
|
59
59
|
* **For GET (client fires):**
|
|
60
60
|
* - Fire with empty/undefined `blockedJwtIds` to request the full blocklist
|
|
@@ -63,9 +63,10 @@ export interface IReq_PushPublicKeyForValidation
|
|
|
63
63
|
* - Use `IdpClient.requests.getJwtIdBlocklist` for this direction
|
|
64
64
|
*
|
|
65
65
|
* **For PUSH (idp.global fires):**
|
|
66
|
-
* - idp.global sends
|
|
66
|
+
* - idp.global sends the complete current persisted blocklist snapshot to connected clients
|
|
67
67
|
* - Clients must register a handler using `IdpClient.onBlocklistPush()`
|
|
68
|
-
* -
|
|
68
|
+
* - Each push contains the complete current persisted list; replace the local
|
|
69
|
+
* snapshot rather than treating it as an incremental append
|
|
69
70
|
*/
|
|
70
71
|
export interface IReq_PushOrGetJwtIdBlocklist
|
|
71
72
|
extends plugins.typedRequestInterfaces.implementsTR<
|
package/ts/request/login.ts
CHANGED
|
@@ -52,23 +52,6 @@ export interface IReq_LoginWithEmailAfterEmailTokenAquired
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
* in case you authenticate with a long lived api token
|
|
57
|
-
*/
|
|
58
|
-
export interface IReq_LoginWithApiToken
|
|
59
|
-
extends plugins.typedRequestInterfaces.implementsTR<
|
|
60
|
-
plugins.typedRequestInterfaces.ITypedRequest,
|
|
61
|
-
IReq_LoginWithApiToken
|
|
62
|
-
> {
|
|
63
|
-
method: 'loginWithApiToken';
|
|
64
|
-
request: {
|
|
65
|
-
apiToken: string;
|
|
66
|
-
};
|
|
67
|
-
response: {
|
|
68
|
-
jwt?: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
55
|
export interface ILogoutRequest
|
|
73
56
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
74
57
|
plugins.typedRequestInterfaces.ITypedRequest,
|
|
@@ -118,7 +101,7 @@ export interface IReq_ExchangeRefreshTokenAndTransferToken
|
|
|
118
101
|
}
|
|
119
102
|
|
|
120
103
|
/**
|
|
121
|
-
*
|
|
104
|
+
* Starts password recovery without revealing whether the account exists.
|
|
122
105
|
*/
|
|
123
106
|
export interface IReq_ResetPassword
|
|
124
107
|
extends plugins.typedRequestInterfaces.implementsTR<
|
|
@@ -135,7 +118,7 @@ export interface IReq_ResetPassword
|
|
|
135
118
|
}
|
|
136
119
|
|
|
137
120
|
/**
|
|
138
|
-
*
|
|
121
|
+
* Completes an authenticated password change or recovery-token reset.
|
|
139
122
|
*/
|
|
140
123
|
export interface IReq_SetNewPassword
|
|
141
124
|
extends plugins.typedRequestInterfaces.implementsTR<
|
package/ts/request/user.ts
CHANGED
|
@@ -110,9 +110,9 @@ export interface IReq_GetUserActivity
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Self-service account deletion. Requires re-authentication
|
|
114
|
-
*
|
|
115
|
-
*
|
|
113
|
+
* Self-service account deletion. Requires password re-authentication.
|
|
114
|
+
* Passwordless accounts fail closed until purpose-bound fresh-auth step-up is
|
|
115
|
+
* available; typing an email address is never authentication. Owning any organization blocks deletion until ownership is
|
|
116
116
|
* transferred or the organization is deleted. On success the account is
|
|
117
117
|
* locked immediately (all sessions and JWTs revoked, sign-in rejected) and
|
|
118
118
|
* purged after a 7-day grace window; a global admin can cancel within the
|
|
@@ -128,7 +128,7 @@ export interface IReq_DeleteAccount
|
|
|
128
128
|
jwt: string;
|
|
129
129
|
/** required when the account has a password */
|
|
130
130
|
password?: string;
|
|
131
|
-
/**
|
|
131
|
+
/** visual confirmation only; never accepted as authentication */
|
|
132
132
|
confirmEmail?: string;
|
|
133
133
|
};
|
|
134
134
|
response: {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/ts/request/apitoken.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|