@idp.global/interfaces 26.0.0 → 26.2.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,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-07-25 - 26.2.0
4
+
5
+ ### Features
6
+
7
+ - add opaque OIDC authorization transaction inspection, completion, and denial contracts
8
+ - add opaque OIDC authorization V2 contracts (oidc-authorization)
9
+ - Adds inspect, prepare, complete, and deny V2 typed request interfaces for OIDC authorization flows.
10
+ - Models one-time transactionId handoff so OAuth request data can remain server-side.
11
+ - Documents the OIDC V2 opaque browser handoff in the README and changelog.
12
+
13
+ ## 2026-07-23 - 26.1.0
14
+
15
+ ### Features
16
+
17
+ - add optional refresh token to registration completion response (registration)
18
+ - Expose an optional refreshToken on registration completion responses when a session can be issued directly.
19
+ - Document that clients should fall back to normal sign-in when no refresh token is returned.
20
+
3
21
  ## 2026-07-22 - 26.0.0
4
22
 
5
23
  ### Breaking Changes
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '26.0.0',
6
+ version: '26.2.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=
@@ -42,3 +42,45 @@ export interface IReq_PrepareOidcAuthorization extends plugins.typedRequestInter
42
42
  grantedScopes: TOidcScope[];
43
43
  };
44
44
  }
45
+ /**
46
+ * Opaque authorization handoff. The browser receives only the one-time
47
+ * transaction identifier; all OAuth request data remains server-side.
48
+ */
49
+ export interface IReq_InspectOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_InspectOidcAuthorizationV2> {
50
+ method: 'inspectOidcAuthorizationV2';
51
+ request: {
52
+ transactionId: string;
53
+ };
54
+ response: {
55
+ prompt: 'none' | 'login' | 'consent' | null;
56
+ };
57
+ }
58
+ export interface IReq_PrepareOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_PrepareOidcAuthorizationV2> {
59
+ method: 'prepareOidcAuthorizationV2';
60
+ request: {
61
+ jwt: string;
62
+ transactionId: string;
63
+ };
64
+ response: IReq_PrepareOidcAuthorization['response'];
65
+ }
66
+ export interface IReq_CompleteOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_CompleteOidcAuthorizationV2> {
67
+ method: 'completeOidcAuthorizationV2';
68
+ request: {
69
+ jwt: string;
70
+ transactionId: string;
71
+ consentApproved?: boolean;
72
+ };
73
+ response: {
74
+ redirectUrl: string;
75
+ };
76
+ }
77
+ export interface IReq_DenyOidcAuthorizationV2 extends plugins.typedRequestInterfaces.implementsTR<plugins.typedRequestInterfaces.ITypedRequest, IReq_DenyOidcAuthorizationV2> {
78
+ method: 'denyOidcAuthorizationV2';
79
+ request: {
80
+ transactionId: string;
81
+ error?: 'access_denied' | 'login_required' | 'consent_required';
82
+ };
83
+ response: {
84
+ redirectUrl: string;
85
+ };
86
+ }
@@ -68,5 +68,13 @@ export interface IReq_FinishRegistration extends plugins.typedRequestInterfaces.
68
68
  response: {
69
69
  status: 'ok' | 'not ok';
70
70
  accountData?: dto.IUserProfileDto;
71
+ /**
72
+ * Refresh token for the session minted on completion. The registration
73
+ * token proves email ownership, so no separate credential round trip is
74
+ * needed. Absent when a session cannot be issued directly (for example a
75
+ * crash-retried completion for an account that has since enrolled MFA) —
76
+ * the client then routes to the normal sign-in.
77
+ */
78
+ refreshToken?: string;
71
79
  };
72
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "26.0.0",
3
+ "version": "26.2.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
6
6
  "exports": {
package/readme.md CHANGED
@@ -117,6 +117,12 @@ token.
117
117
 
118
118
  Request groups cover login, registration, JWT refresh, user/session queries, organization membership, invitations, apps, billing, admin actions, alerts, passport device flows, password reset, device IDs, and OIDC authorization.
119
119
 
120
+ The OIDC V2 authorization contracts
121
+ `IReq_InspectOidcAuthorizationV2`, `IReq_PrepareOidcAuthorizationV2`,
122
+ `IReq_CompleteOidcAuthorizationV2`, and `IReq_DenyOidcAuthorizationV2` model an
123
+ opaque browser handoff. Only a one-time `transactionId` crosses the browser
124
+ boundary; the original OAuth request remains server-side.
125
+
120
126
  OIDC app contracts expose only client configuration and safe credential
121
127
  metadata. Client-secret hashes, signing private keys, and persistence records
122
128
  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.0.0',
6
+ version: '26.2.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
@@ -52,3 +52,65 @@ export interface IReq_PrepareOidcAuthorization
52
52
  grantedScopes: TOidcScope[];
53
53
  };
54
54
  }
55
+
56
+ /**
57
+ * Opaque authorization handoff. The browser receives only the one-time
58
+ * transaction identifier; all OAuth request data remains server-side.
59
+ */
60
+ export interface IReq_InspectOidcAuthorizationV2
61
+ extends plugins.typedRequestInterfaces.implementsTR<
62
+ plugins.typedRequestInterfaces.ITypedRequest,
63
+ IReq_InspectOidcAuthorizationV2
64
+ > {
65
+ method: 'inspectOidcAuthorizationV2';
66
+ request: {
67
+ transactionId: string;
68
+ };
69
+ response: {
70
+ prompt: 'none' | 'login' | 'consent' | null;
71
+ };
72
+ }
73
+
74
+ export interface IReq_PrepareOidcAuthorizationV2
75
+ extends plugins.typedRequestInterfaces.implementsTR<
76
+ plugins.typedRequestInterfaces.ITypedRequest,
77
+ IReq_PrepareOidcAuthorizationV2
78
+ > {
79
+ method: 'prepareOidcAuthorizationV2';
80
+ request: {
81
+ jwt: string;
82
+ transactionId: string;
83
+ };
84
+ response: IReq_PrepareOidcAuthorization['response'];
85
+ }
86
+
87
+ export interface IReq_CompleteOidcAuthorizationV2
88
+ extends plugins.typedRequestInterfaces.implementsTR<
89
+ plugins.typedRequestInterfaces.ITypedRequest,
90
+ IReq_CompleteOidcAuthorizationV2
91
+ > {
92
+ method: 'completeOidcAuthorizationV2';
93
+ request: {
94
+ jwt: string;
95
+ transactionId: string;
96
+ consentApproved?: boolean;
97
+ };
98
+ response: {
99
+ redirectUrl: string;
100
+ };
101
+ }
102
+
103
+ export interface IReq_DenyOidcAuthorizationV2
104
+ extends plugins.typedRequestInterfaces.implementsTR<
105
+ plugins.typedRequestInterfaces.ITypedRequest,
106
+ IReq_DenyOidcAuthorizationV2
107
+ > {
108
+ method: 'denyOidcAuthorizationV2';
109
+ request: {
110
+ transactionId: string;
111
+ error?: 'access_denied' | 'login_required' | 'consent_required';
112
+ };
113
+ response: {
114
+ redirectUrl: string;
115
+ };
116
+ }
@@ -94,5 +94,13 @@ export interface IReq_FinishRegistration
94
94
  response: {
95
95
  status: 'ok' | 'not ok';
96
96
  accountData?: dto.IUserProfileDto;
97
+ /**
98
+ * Refresh token for the session minted on completion. The registration
99
+ * token proves email ownership, so no separate credential round trip is
100
+ * needed. Absent when a session cannot be issued directly (for example a
101
+ * crash-retried completion for an account that has since enrolled MFA) —
102
+ * the client then routes to the normal sign-in.
103
+ */
104
+ refreshToken?: string;
97
105
  };
98
106
  }