@idp.global/interfaces 28.0.0 → 28.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 +8 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/request/backend.d.ts +21 -0
- package/dist_ts/request/backend.js +2 -0
- package/dist_ts/request/index.d.ts +1 -0
- package/dist_ts/request/index.js +2 -1
- package/package.json +1 -1
- package/readme.md +7 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/request/backend.ts +26 -0
- package/ts/request/index.ts +1 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-08-02 - 28.1.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add backend service connection registration request (request)
|
|
8
|
+
- Adds IReq_RegisterBackendServiceConnection with a backendToken-only request and exact { registered: true } success response.
|
|
9
|
+
- Exports the backend request contract and documents backend-service connection registration behavior.
|
|
10
|
+
|
|
3
11
|
## 2026-08-02 - 28.0.0
|
|
4
12
|
|
|
5
13
|
### Breaking Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@idp.global/interfaces',
|
|
6
|
-
version: '28.
|
|
6
|
+
version: '28.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=
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
/**
|
|
3
|
+
* Authenticate the exact TypedSocket request peer as an idp.global backend service.
|
|
4
|
+
*
|
|
5
|
+
* **Direction:** Backend service → idp.global
|
|
6
|
+
* **Requester:** Backend services that consume JWT verification state
|
|
7
|
+
* **Handler:** idp.global
|
|
8
|
+
*
|
|
9
|
+
* The backend token is validated before the server resolves and mutates the
|
|
10
|
+
* request peer. A successful handler assigns the protected backend-service
|
|
11
|
+
* role as server-owned connection state.
|
|
12
|
+
*/
|
|
13
|
+
export interface IReq_RegisterBackendServiceConnection extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_RegisterBackendServiceConnection> {
|
|
14
|
+
method: 'registerBackendServiceConnection';
|
|
15
|
+
request: {
|
|
16
|
+
backendToken: string;
|
|
17
|
+
};
|
|
18
|
+
response: {
|
|
19
|
+
registered: true;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3JlcXVlc3QvYmFja2VuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
package/dist_ts/request/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './globaladmin.js';
|
|
|
3
3
|
export * from './alert.js';
|
|
4
4
|
export * from './app.js';
|
|
5
5
|
export * from './authorization.js';
|
|
6
|
+
export * from './backend.js';
|
|
6
7
|
export * from './billingplan.js';
|
|
7
8
|
export * from './jwt.js';
|
|
8
9
|
export * from './login.js';
|
|
@@ -14,4 +15,4 @@ export * from './registration.js';
|
|
|
14
15
|
export * from './user.js';
|
|
15
16
|
export * from './userinvitation.js';
|
|
16
17
|
export * from './ssoconnection.js';
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsb0JBQW9CLENBQUMifQ==
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -141,6 +141,13 @@ const transferRequest: request.IReq_ExchangeRefreshTokenAndTransferToken['reques
|
|
|
141
141
|
};
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
+
Backend TypedSocket clients authenticate the exact request peer with
|
|
145
|
+
`IReq_RegisterBackendServiceConnection`. The request carries only the backend
|
|
146
|
+
token and success is exactly `{ registered: true }`. The idp.global handler
|
|
147
|
+
validates the token before resolving that peer and assigning the protected
|
|
148
|
+
backend-service role as server-owned connection state; clients do not set the
|
|
149
|
+
role tag themselves.
|
|
150
|
+
|
|
144
151
|
`transferTarget` is required both when a refresh token issues a transfer token
|
|
145
152
|
and when a transfer token is consumed. The server authorizes and canonicalizes
|
|
146
153
|
the target before binding its server-derived hash to the outstanding transfer
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Authenticate the exact TypedSocket request peer as an idp.global backend service.
|
|
5
|
+
*
|
|
6
|
+
* **Direction:** Backend service → idp.global
|
|
7
|
+
* **Requester:** Backend services that consume JWT verification state
|
|
8
|
+
* **Handler:** idp.global
|
|
9
|
+
*
|
|
10
|
+
* The backend token is validated before the server resolves and mutates the
|
|
11
|
+
* request peer. A successful handler assigns the protected backend-service
|
|
12
|
+
* role as server-owned connection state.
|
|
13
|
+
*/
|
|
14
|
+
export interface IReq_RegisterBackendServiceConnection
|
|
15
|
+
extends plugins.typedRequestInterfaces.implementsTR<
|
|
16
|
+
plugins.typedRequestInterfaces.ITypedRequest,
|
|
17
|
+
IReq_RegisterBackendServiceConnection
|
|
18
|
+
> {
|
|
19
|
+
method: 'registerBackendServiceConnection';
|
|
20
|
+
request: {
|
|
21
|
+
backendToken: string;
|
|
22
|
+
};
|
|
23
|
+
response: {
|
|
24
|
+
registered: true;
|
|
25
|
+
};
|
|
26
|
+
}
|
package/ts/request/index.ts
CHANGED