@idp.global/interfaces 26.2.0 → 26.3.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-07-27 - 26.3.0
4
+
5
+ ### Features
6
+
7
+ - preserve opaque OIDC authorization across registration (registration)
8
+ - Add an optional transaction identifier to registration start and server-side registration-session data.
9
+ - Return the authoritative stored transaction only after email proof and at registration completion so clients can resume the existing authenticated OIDC handoff.
10
+
3
11
  ## 2026-07-25 - 26.2.0
4
12
 
5
13
  ### Features
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '26.2.0',
6
+ version: '26.3.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=
@@ -12,6 +12,11 @@ export interface IRegistrationSession {
12
12
  * Remaining code verification attempts before the session is invalidated.
13
13
  */
14
14
  codeAttemptsRemaining: number;
15
+ /**
16
+ * Opaque pending OIDC authorization transaction retained server-side.
17
+ * It is never embedded in registration email links.
18
+ */
19
+ oidcTransactionId?: string;
15
20
  status: TRegistrationSessionStatus;
16
21
  validUntil: number;
17
22
  createdAt: number;
@@ -9,6 +9,11 @@ export interface IReq_FirstRegistration extends plugins.typedRequestInterfaces.i
9
9
  request: {
10
10
  email: string;
11
11
  productSlugOfInterest: string;
12
+ /**
13
+ * Optional opaque OIDC authorization transaction to resume after the
14
+ * registration session has established an authenticated browser session.
15
+ */
16
+ oidcTransactionId?: string;
12
17
  };
13
18
  response: {
14
19
  status: 'ok' | 'not ok';
@@ -29,6 +34,11 @@ export interface IReq_AfterRegistrationEmailClicked extends plugins.typedRequest
29
34
  * the email thats associated with the given request token
30
35
  */
31
36
  email: string;
37
+ /**
38
+ * Authoritative transaction retained by the server-side registration
39
+ * session. It is returned only after the email token has been proved.
40
+ */
41
+ oidcTransactionId?: string;
32
42
  };
33
43
  }
34
44
  export interface IReq_VerifyRegistrationEmailCode extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_VerifyRegistrationEmailCode> {
@@ -48,6 +58,11 @@ export interface IReq_VerifyRegistrationEmailCode extends plugins.typedRequestIn
48
58
  */
49
59
  token: string;
50
60
  email: string;
61
+ /**
62
+ * Authoritative transaction retained by the server-side registration
63
+ * session. It is returned only after the email code has been proved.
64
+ */
65
+ oidcTransactionId?: string;
51
66
  };
52
67
  }
53
68
  export interface IReq_SetDataForRegistration extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_SetDataForRegistration> {
@@ -76,5 +91,10 @@ export interface IReq_FinishRegistration extends plugins.typedRequestInterfaces.
76
91
  * the client then routes to the normal sign-in.
77
92
  */
78
93
  refreshToken?: string;
94
+ /**
95
+ * Authoritative transaction retained by the completed registration
96
+ * session so the authenticated client can resume the OIDC handoff.
97
+ */
98
+ oidcTransactionId?: string;
79
99
  };
80
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "26.2.0",
3
+ "version": "26.3.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
6
6
  "exports": {
@@ -17,7 +17,7 @@
17
17
  "@git.zone/tsbuild": "^4.4.2",
18
18
  "@git.zone/tsdoc": "^2.1.1",
19
19
  "@git.zone/tsrun": "^2.0.5",
20
- "@git.zone/tstest": "^3.6.6",
20
+ "@git.zone/tstest": "^3.6.7",
21
21
  "@types/node": "^26.1.1"
22
22
  },
23
23
  "files": [
package/readme.md CHANGED
@@ -123,6 +123,12 @@ The OIDC V2 authorization contracts
123
123
  opaque browser handoff. Only a one-time `transactionId` crosses the browser
124
124
  boundary; the original OAuth request remains server-side.
125
125
 
126
+ Registration may retain that opaque transaction in its server-side session.
127
+ `IReq_FirstRegistration` accepts it optionally, while successful email-token
128
+ or email-code proof and registration completion return the authoritative stored
129
+ value. Implementations should keep it out of registration email links and use
130
+ the existing authenticated OIDC prepare/complete requests for final binding.
131
+
126
132
  OIDC app contracts expose only client configuration and safe credential
127
133
  metadata. Client-secret hashes, signing private keys, and persistence records
128
134
  for authorization codes, access tokens, refresh tokens, and token families
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '26.2.0',
6
+ version: '26.3.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -17,6 +17,11 @@ export interface IRegistrationSession {
17
17
  * Remaining code verification attempts before the session is invalidated.
18
18
  */
19
19
  codeAttemptsRemaining: number;
20
+ /**
21
+ * Opaque pending OIDC authorization transaction retained server-side.
22
+ * It is never embedded in registration email links.
23
+ */
24
+ oidcTransactionId?: string;
20
25
  status: TRegistrationSessionStatus;
21
26
  validUntil: number;
22
27
  createdAt: number;
@@ -15,6 +15,11 @@ export interface IReq_FirstRegistration
15
15
  request: {
16
16
  email: string;
17
17
  productSlugOfInterest: string;
18
+ /**
19
+ * Optional opaque OIDC authorization transaction to resume after the
20
+ * registration session has established an authenticated browser session.
21
+ */
22
+ oidcTransactionId?: string;
18
23
  };
19
24
  response: {
20
25
  status: 'ok' | 'not ok';
@@ -40,6 +45,11 @@ export interface IReq_AfterRegistrationEmailClicked
40
45
  * the email thats associated with the given request token
41
46
  */
42
47
  email: string;
48
+ /**
49
+ * Authoritative transaction retained by the server-side registration
50
+ * session. It is returned only after the email token has been proved.
51
+ */
52
+ oidcTransactionId?: string;
43
53
  };
44
54
  }
45
55
 
@@ -64,6 +74,11 @@ export interface IReq_VerifyRegistrationEmailCode
64
74
  */
65
75
  token: string;
66
76
  email: string;
77
+ /**
78
+ * Authoritative transaction retained by the server-side registration
79
+ * session. It is returned only after the email code has been proved.
80
+ */
81
+ oidcTransactionId?: string;
67
82
  };
68
83
  }
69
84
 
@@ -102,5 +117,10 @@ export interface IReq_FinishRegistration
102
117
  * the client then routes to the normal sign-in.
103
118
  */
104
119
  refreshToken?: string;
120
+ /**
121
+ * Authoritative transaction retained by the completed registration
122
+ * session so the authenticated client can resume the OIDC handoff.
123
+ */
124
+ oidcTransactionId?: string;
105
125
  };
106
126
  }