@feelflow/ffid-sdk 5.8.0 → 5.10.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/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkMRHDPB7H_cjs = require('./chunk-MRHDPB7H.cjs');
4
- var chunkQ5SZVLNB_cjs = require('./chunk-Q5SZVLNB.cjs');
3
+ var chunkIZSL6DI7_cjs = require('./chunk-IZSL6DI7.cjs');
4
+ var chunkR5WSZMUL_cjs = require('./chunk-R5WSZMUL.cjs');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
 
@@ -54,8 +54,8 @@ function defaultRedirect(url) {
54
54
  }
55
55
  function useRequireActiveSubscription(options) {
56
56
  const { redirectTo, allowGrace = true, onRedirect } = options;
57
- const { isLoading, error } = chunkMRHDPB7H_cjs.useFFIDContext();
58
- const { effectiveStatus, isBlocked, isGrace } = chunkMRHDPB7H_cjs.useSubscription();
57
+ const { isLoading, error } = chunkIZSL6DI7_cjs.useFFIDContext();
58
+ const { effectiveStatus, isBlocked, isGrace } = chunkIZSL6DI7_cjs.useSubscription();
59
59
  const hasFetchError = error !== null && effectiveStatus === null;
60
60
  const shouldRedirect = !isLoading && !hasFetchError && (isBlocked || !allowGrace && isGrace || effectiveStatus === null);
61
61
  react.useEffect(() => {
@@ -76,7 +76,7 @@ function useRequireActiveSubscription(options) {
76
76
  }
77
77
  function withFFIDAuth(Component, options = {}) {
78
78
  const WrappedComponent = (props) => {
79
- const { isLoading, isAuthenticated, login } = chunkMRHDPB7H_cjs.useFFIDContext();
79
+ const { isLoading, isAuthenticated, login } = chunkIZSL6DI7_cjs.useFFIDContext();
80
80
  const hasRedirected = react.useRef(false);
81
81
  react.useEffect(() => {
82
82
  if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
@@ -105,211 +105,211 @@ var FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = 1e3;
105
105
 
106
106
  Object.defineProperty(exports, "ACCESS_GRANTING_EFFECTIVE_STATUSES", {
107
107
  enumerable: true,
108
- get: function () { return chunkMRHDPB7H_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
108
+ get: function () { return chunkIZSL6DI7_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
109
109
  });
110
110
  Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
111
111
  enumerable: true,
112
- get: function () { return chunkMRHDPB7H_cjs.BLOCKING_EFFECTIVE_STATUSES; }
112
+ get: function () { return chunkIZSL6DI7_cjs.BLOCKING_EFFECTIVE_STATUSES; }
113
113
  });
114
114
  Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
115
115
  enumerable: true,
116
- get: function () { return chunkMRHDPB7H_cjs.DEFAULT_API_BASE_URL; }
116
+ get: function () { return chunkIZSL6DI7_cjs.DEFAULT_API_BASE_URL; }
117
117
  });
118
118
  Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
119
119
  enumerable: true,
120
- get: function () { return chunkMRHDPB7H_cjs.DEFAULT_OAUTH_SCOPES; }
120
+ get: function () { return chunkIZSL6DI7_cjs.DEFAULT_OAUTH_SCOPES; }
121
121
  });
122
122
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
123
123
  enumerable: true,
124
- get: function () { return chunkMRHDPB7H_cjs.FFIDAnnouncementBadge; }
124
+ get: function () { return chunkIZSL6DI7_cjs.FFIDAnnouncementBadge; }
125
125
  });
126
126
  Object.defineProperty(exports, "FFIDAnnouncementList", {
127
127
  enumerable: true,
128
- get: function () { return chunkMRHDPB7H_cjs.FFIDAnnouncementList; }
128
+ get: function () { return chunkIZSL6DI7_cjs.FFIDAnnouncementList; }
129
129
  });
130
130
  Object.defineProperty(exports, "FFIDInquiryForm", {
131
131
  enumerable: true,
132
- get: function () { return chunkMRHDPB7H_cjs.FFIDInquiryForm; }
132
+ get: function () { return chunkIZSL6DI7_cjs.FFIDInquiryForm; }
133
133
  });
134
134
  Object.defineProperty(exports, "FFIDLoginButton", {
135
135
  enumerable: true,
136
- get: function () { return chunkMRHDPB7H_cjs.FFIDLoginButton; }
136
+ get: function () { return chunkIZSL6DI7_cjs.FFIDLoginButton; }
137
137
  });
138
138
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
139
139
  enumerable: true,
140
- get: function () { return chunkMRHDPB7H_cjs.FFIDOrganizationSwitcher; }
140
+ get: function () { return chunkIZSL6DI7_cjs.FFIDOrganizationSwitcher; }
141
141
  });
142
142
  Object.defineProperty(exports, "FFIDProvider", {
143
143
  enumerable: true,
144
- get: function () { return chunkMRHDPB7H_cjs.FFIDProvider; }
144
+ get: function () { return chunkIZSL6DI7_cjs.FFIDProvider; }
145
145
  });
146
146
  Object.defineProperty(exports, "FFIDSDKError", {
147
147
  enumerable: true,
148
- get: function () { return chunkMRHDPB7H_cjs.FFIDSDKError; }
148
+ get: function () { return chunkIZSL6DI7_cjs.FFIDSDKError; }
149
149
  });
150
150
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
151
151
  enumerable: true,
152
- get: function () { return chunkMRHDPB7H_cjs.FFIDSubscriptionBadge; }
152
+ get: function () { return chunkIZSL6DI7_cjs.FFIDSubscriptionBadge; }
153
153
  });
154
154
  Object.defineProperty(exports, "FFIDUserMenu", {
155
155
  enumerable: true,
156
- get: function () { return chunkMRHDPB7H_cjs.FFIDUserMenu; }
156
+ get: function () { return chunkIZSL6DI7_cjs.FFIDUserMenu; }
157
157
  });
158
158
  Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
159
159
  enumerable: true,
160
- get: function () { return chunkMRHDPB7H_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
160
+ get: function () { return chunkIZSL6DI7_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
161
161
  });
162
162
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
163
163
  enumerable: true,
164
- get: function () { return chunkMRHDPB7H_cjs.FFID_INQUIRY_CATEGORIES; }
164
+ get: function () { return chunkIZSL6DI7_cjs.FFID_INQUIRY_CATEGORIES; }
165
165
  });
166
166
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
167
167
  enumerable: true,
168
- get: function () { return chunkMRHDPB7H_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
168
+ get: function () { return chunkIZSL6DI7_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
169
169
  });
170
170
  Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
171
171
  enumerable: true,
172
- get: function () { return chunkMRHDPB7H_cjs.computeEffectiveStatusFromSession; }
172
+ get: function () { return chunkIZSL6DI7_cjs.computeEffectiveStatusFromSession; }
173
173
  });
174
174
  Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
175
175
  enumerable: true,
176
- get: function () { return chunkMRHDPB7H_cjs.createFFIDAnnouncementsClient; }
176
+ get: function () { return chunkIZSL6DI7_cjs.createFFIDAnnouncementsClient; }
177
177
  });
178
178
  Object.defineProperty(exports, "createFFIDClient", {
179
179
  enumerable: true,
180
- get: function () { return chunkMRHDPB7H_cjs.createFFIDClient; }
180
+ get: function () { return chunkIZSL6DI7_cjs.createFFIDClient; }
181
181
  });
182
182
  Object.defineProperty(exports, "createTokenStore", {
183
183
  enumerable: true,
184
- get: function () { return chunkMRHDPB7H_cjs.createTokenStore; }
184
+ get: function () { return chunkIZSL6DI7_cjs.createTokenStore; }
185
185
  });
186
186
  Object.defineProperty(exports, "generateCodeChallenge", {
187
187
  enumerable: true,
188
- get: function () { return chunkMRHDPB7H_cjs.generateCodeChallenge; }
188
+ get: function () { return chunkIZSL6DI7_cjs.generateCodeChallenge; }
189
189
  });
190
190
  Object.defineProperty(exports, "generateCodeVerifier", {
191
191
  enumerable: true,
192
- get: function () { return chunkMRHDPB7H_cjs.generateCodeVerifier; }
192
+ get: function () { return chunkIZSL6DI7_cjs.generateCodeVerifier; }
193
193
  });
194
194
  Object.defineProperty(exports, "hasAccessFromUserinfo", {
195
195
  enumerable: true,
196
- get: function () { return chunkMRHDPB7H_cjs.hasAccessFromUserinfo; }
196
+ get: function () { return chunkIZSL6DI7_cjs.hasAccessFromUserinfo; }
197
197
  });
198
198
  Object.defineProperty(exports, "isBlockedFromUserinfo", {
199
199
  enumerable: true,
200
- get: function () { return chunkMRHDPB7H_cjs.isBlockedFromUserinfo; }
200
+ get: function () { return chunkIZSL6DI7_cjs.isBlockedFromUserinfo; }
201
201
  });
202
202
  Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
203
203
  enumerable: true,
204
- get: function () { return chunkMRHDPB7H_cjs.isFFIDInquiryCategorySite2026; }
204
+ get: function () { return chunkIZSL6DI7_cjs.isFFIDInquiryCategorySite2026; }
205
205
  });
206
206
  Object.defineProperty(exports, "normalizeRedirectUri", {
207
207
  enumerable: true,
208
- get: function () { return chunkMRHDPB7H_cjs.normalizeRedirectUri; }
208
+ get: function () { return chunkIZSL6DI7_cjs.normalizeRedirectUri; }
209
209
  });
210
210
  Object.defineProperty(exports, "retrieveCodeVerifier", {
211
211
  enumerable: true,
212
- get: function () { return chunkMRHDPB7H_cjs.retrieveCodeVerifier; }
212
+ get: function () { return chunkIZSL6DI7_cjs.retrieveCodeVerifier; }
213
213
  });
214
214
  Object.defineProperty(exports, "storeCodeVerifier", {
215
215
  enumerable: true,
216
- get: function () { return chunkMRHDPB7H_cjs.storeCodeVerifier; }
216
+ get: function () { return chunkIZSL6DI7_cjs.storeCodeVerifier; }
217
217
  });
218
218
  Object.defineProperty(exports, "useFFID", {
219
219
  enumerable: true,
220
- get: function () { return chunkMRHDPB7H_cjs.useFFID; }
220
+ get: function () { return chunkIZSL6DI7_cjs.useFFID; }
221
221
  });
222
222
  Object.defineProperty(exports, "useFFIDAnnouncements", {
223
223
  enumerable: true,
224
- get: function () { return chunkMRHDPB7H_cjs.useFFIDAnnouncements; }
224
+ get: function () { return chunkIZSL6DI7_cjs.useFFIDAnnouncements; }
225
225
  });
226
226
  Object.defineProperty(exports, "useSubscription", {
227
227
  enumerable: true,
228
- get: function () { return chunkMRHDPB7H_cjs.useSubscription; }
228
+ get: function () { return chunkIZSL6DI7_cjs.useSubscription; }
229
229
  });
230
230
  Object.defineProperty(exports, "withSubscription", {
231
231
  enumerable: true,
232
- get: function () { return chunkMRHDPB7H_cjs.withSubscription; }
232
+ get: function () { return chunkIZSL6DI7_cjs.withSubscription; }
233
233
  });
234
234
  Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
235
235
  enumerable: true,
236
- get: function () { return chunkQ5SZVLNB_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
236
+ get: function () { return chunkR5WSZMUL_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
237
237
  });
238
238
  Object.defineProperty(exports, "CONSENT_COOKIE_NAME", {
239
239
  enumerable: true,
240
- get: function () { return chunkQ5SZVLNB_cjs.CONSENT_COOKIE_NAME; }
240
+ get: function () { return chunkR5WSZMUL_cjs.CONSENT_COOKIE_NAME; }
241
241
  });
242
242
  Object.defineProperty(exports, "CONSENT_DISMISSAL_TIMESTAMP_KEY", {
243
243
  enumerable: true,
244
- get: function () { return chunkQ5SZVLNB_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
244
+ get: function () { return chunkR5WSZMUL_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
245
245
  });
246
246
  Object.defineProperty(exports, "COOKIE_VERSION", {
247
247
  enumerable: true,
248
- get: function () { return chunkQ5SZVLNB_cjs.COOKIE_VERSION; }
248
+ get: function () { return chunkR5WSZMUL_cjs.COOKIE_VERSION; }
249
249
  });
250
250
  Object.defineProperty(exports, "DEFAULT_CONSENT_ERROR_MESSAGES", {
251
251
  enumerable: true,
252
- get: function () { return chunkQ5SZVLNB_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
252
+ get: function () { return chunkR5WSZMUL_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
253
253
  });
254
254
  Object.defineProperty(exports, "FFIDAnalyticsProvider", {
255
255
  enumerable: true,
256
- get: function () { return chunkQ5SZVLNB_cjs.FFIDAnalyticsProvider; }
256
+ get: function () { return chunkR5WSZMUL_cjs.FFIDAnalyticsProvider; }
257
257
  });
258
258
  Object.defineProperty(exports, "FFIDConsentError", {
259
259
  enumerable: true,
260
- get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentError; }
260
+ get: function () { return chunkR5WSZMUL_cjs.FFIDConsentError; }
261
261
  });
262
262
  Object.defineProperty(exports, "FFIDCookieBanner", {
263
263
  enumerable: true,
264
- get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieBanner; }
264
+ get: function () { return chunkR5WSZMUL_cjs.FFIDCookieBanner; }
265
265
  });
266
266
  Object.defineProperty(exports, "FFIDCookieLink", {
267
267
  enumerable: true,
268
- get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieLink; }
268
+ get: function () { return chunkR5WSZMUL_cjs.FFIDCookieLink; }
269
269
  });
270
270
  Object.defineProperty(exports, "FFIDCookieSettings", {
271
271
  enumerable: true,
272
- get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieSettings; }
272
+ get: function () { return chunkR5WSZMUL_cjs.FFIDCookieSettings; }
273
273
  });
274
274
  Object.defineProperty(exports, "FFID_CONSENT_ERROR_CODES", {
275
275
  enumerable: true,
276
- get: function () { return chunkQ5SZVLNB_cjs.FFID_CONSENT_ERROR_CODES; }
276
+ get: function () { return chunkR5WSZMUL_cjs.FFID_CONSENT_ERROR_CODES; }
277
277
  });
278
278
  Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
279
279
  enumerable: true,
280
- get: function () { return chunkQ5SZVLNB_cjs.clearConsentDismissalTimestamp; }
280
+ get: function () { return chunkR5WSZMUL_cjs.clearConsentDismissalTimestamp; }
281
281
  });
282
282
  Object.defineProperty(exports, "decodeConsentCookie", {
283
283
  enumerable: true,
284
- get: function () { return chunkQ5SZVLNB_cjs.decodeConsentCookie; }
284
+ get: function () { return chunkR5WSZMUL_cjs.decodeConsentCookie; }
285
285
  });
286
286
  Object.defineProperty(exports, "encodeConsentCookie", {
287
287
  enumerable: true,
288
- get: function () { return chunkQ5SZVLNB_cjs.encodeConsentCookie; }
288
+ get: function () { return chunkR5WSZMUL_cjs.encodeConsentCookie; }
289
289
  });
290
290
  Object.defineProperty(exports, "readConsentCookie", {
291
291
  enumerable: true,
292
- get: function () { return chunkQ5SZVLNB_cjs.readConsentCookie; }
292
+ get: function () { return chunkR5WSZMUL_cjs.readConsentCookie; }
293
293
  });
294
294
  Object.defineProperty(exports, "readConsentDismissalTimestamp", {
295
295
  enumerable: true,
296
- get: function () { return chunkQ5SZVLNB_cjs.readConsentDismissalTimestamp; }
296
+ get: function () { return chunkR5WSZMUL_cjs.readConsentDismissalTimestamp; }
297
297
  });
298
298
  Object.defineProperty(exports, "useFFIDConsent", {
299
299
  enumerable: true,
300
- get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsent; }
300
+ get: function () { return chunkR5WSZMUL_cjs.useFFIDConsent; }
301
301
  });
302
302
  Object.defineProperty(exports, "useFFIDConsentPreferences", {
303
303
  enumerable: true,
304
- get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsentPreferences; }
304
+ get: function () { return chunkR5WSZMUL_cjs.useFFIDConsentPreferences; }
305
305
  });
306
306
  Object.defineProperty(exports, "writeConsentCookie", {
307
307
  enumerable: true,
308
- get: function () { return chunkQ5SZVLNB_cjs.writeConsentCookie; }
308
+ get: function () { return chunkR5WSZMUL_cjs.writeConsentCookie; }
309
309
  });
310
310
  Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
311
311
  enumerable: true,
312
- get: function () { return chunkQ5SZVLNB_cjs.writeConsentDismissalTimestamp; }
312
+ get: function () { return chunkR5WSZMUL_cjs.writeConsentDismissalTimestamp; }
313
313
  });
314
314
  exports.FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS;
315
315
  exports.FFID_NEWSLETTER_TYPES = FFID_NEWSLETTER_TYPES;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDProfileCallOptions, j as FFIDUserProfile, k as FFIDUpdateUserProfileRequest, l as FFIDAnalyticsConfig, m as FFIDCreateCheckoutParams, n as FFIDCheckoutSessionResponse, o as FFIDCreatePortalParams, p as FFIDPortalSessionResponse, q as FFIDVerifyAccessTokenOptions, r as FFIDOAuthUserInfo, s as FFIDInquiryCreateParams, t as FFIDInquiryCreateResponse, u as FFIDAuthMode, v as FFIDLogger, w as FFIDCacheAdapter, x as FFIDUser, y as FFIDOrganization, z as FFIDSubscription, A as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, B as FFIDOAuthUserInfoSubscription, C as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, D as FFIDAnnouncementsApiResponse, G as AnnouncementListResponse, H as FFIDAnnouncementsLogger } from './index-DeegKrLW.cjs';
2
- export { I as Announcement, J as AnnouncementStatus, K as AnnouncementType, M as FFIDAnnouncementBadge, N as FFIDAnnouncementList, O as FFIDAnnouncementsError, P as FFIDAnnouncementsErrorCode, Q as FFIDAnnouncementsServerResponse, R as FFIDCacheConfig, S as FFIDContextValue, T as FFIDInquiryCategory, U as FFIDInquiryCategorySite2026, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a3 as FFIDJwtClaims, a4 as FFIDLoginButton, a5 as FFIDOAuthTokenResponse, a6 as FFIDOAuthUserInfoMemberRole, a7 as FFIDOrganizationSwitcher, a8 as FFIDRedirectErrorCode, a9 as FFIDSeatModel, aa as FFIDServiceAccessDenialReason, ab as FFIDServiceAccessFailPolicy, ac as FFIDSubscriptionBadge, ad as FFIDTokenIntrospectionResponse, ae as FFIDUserMenu, af as FFID_INQUIRY_CATEGORIES, ag as FFID_INQUIRY_CATEGORIES_SITE_2026, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as isFFIDInquiryCategorySite2026, ak as useFFIDAnnouncements } from './index-DeegKrLW.cjs';
3
- export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-CE01gYc4.cjs';
1
+ import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDProfileCallOptions, j as FFIDUserProfile, k as FFIDUpdateUserProfileRequest, l as FFIDAnalyticsConfig, m as FFIDCreateCheckoutParams, n as FFIDCheckoutSessionResponse, o as FFIDCreatePortalParams, p as FFIDPortalSessionResponse, q as FFIDVerifyAccessTokenOptions, r as FFIDOAuthUserInfo, s as FFIDInquiryCreateParams, t as FFIDInquiryCreateResponse, u as FFIDAuthMode, v as FFIDLogger, w as FFIDCacheAdapter, x as FFIDUser, y as FFIDOrganization, z as FFIDSubscription, A as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, B as FFIDOAuthUserInfoSubscription, C as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, D as FFIDAnnouncementsApiResponse, G as AnnouncementListResponse, H as FFIDAnnouncementsLogger } from './index-DSvX4q8E.cjs';
2
+ export { I as Announcement, J as AnnouncementStatus, K as AnnouncementType, M as FFIDAnnouncementBadge, N as FFIDAnnouncementList, O as FFIDAnnouncementsError, P as FFIDAnnouncementsErrorCode, Q as FFIDAnnouncementsServerResponse, R as FFIDCacheConfig, S as FFIDContextValue, T as FFIDInquiryCategory, U as FFIDInquiryCategorySite2026, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a3 as FFIDJwtClaims, a4 as FFIDLoginButton, a5 as FFIDOAuthTokenResponse, a6 as FFIDOAuthUserInfoMemberRole, a7 as FFIDOrganizationSwitcher, a8 as FFIDRedirectErrorCode, a9 as FFIDSeatModel, aa as FFIDServiceAccessDenialReason, ab as FFIDServiceAccessFailPolicy, ac as FFIDSubscriptionBadge, ad as FFIDTokenIntrospectionResponse, ae as FFIDUserMenu, af as FFID_INQUIRY_CATEGORIES, ag as FFID_INQUIRY_CATEGORIES_SITE_2026, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as isFFIDInquiryCategorySite2026, ak as useFFIDAnnouncements } from './index-DSvX4q8E.cjs';
3
+ export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-D1WwE_ZO.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
6
6
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDProfileCallOptions, j as FFIDUserProfile, k as FFIDUpdateUserProfileRequest, l as FFIDAnalyticsConfig, m as FFIDCreateCheckoutParams, n as FFIDCheckoutSessionResponse, o as FFIDCreatePortalParams, p as FFIDPortalSessionResponse, q as FFIDVerifyAccessTokenOptions, r as FFIDOAuthUserInfo, s as FFIDInquiryCreateParams, t as FFIDInquiryCreateResponse, u as FFIDAuthMode, v as FFIDLogger, w as FFIDCacheAdapter, x as FFIDUser, y as FFIDOrganization, z as FFIDSubscription, A as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, B as FFIDOAuthUserInfoSubscription, C as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, D as FFIDAnnouncementsApiResponse, G as AnnouncementListResponse, H as FFIDAnnouncementsLogger } from './index-DeegKrLW.js';
2
- export { I as Announcement, J as AnnouncementStatus, K as AnnouncementType, M as FFIDAnnouncementBadge, N as FFIDAnnouncementList, O as FFIDAnnouncementsError, P as FFIDAnnouncementsErrorCode, Q as FFIDAnnouncementsServerResponse, R as FFIDCacheConfig, S as FFIDContextValue, T as FFIDInquiryCategory, U as FFIDInquiryCategorySite2026, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a3 as FFIDJwtClaims, a4 as FFIDLoginButton, a5 as FFIDOAuthTokenResponse, a6 as FFIDOAuthUserInfoMemberRole, a7 as FFIDOrganizationSwitcher, a8 as FFIDRedirectErrorCode, a9 as FFIDSeatModel, aa as FFIDServiceAccessDenialReason, ab as FFIDServiceAccessFailPolicy, ac as FFIDSubscriptionBadge, ad as FFIDTokenIntrospectionResponse, ae as FFIDUserMenu, af as FFID_INQUIRY_CATEGORIES, ag as FFID_INQUIRY_CATEGORIES_SITE_2026, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as isFFIDInquiryCategorySite2026, ak as useFFIDAnnouncements } from './index-DeegKrLW.js';
3
- export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-CE01gYc4.js';
1
+ import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDProfileCallOptions, j as FFIDUserProfile, k as FFIDUpdateUserProfileRequest, l as FFIDAnalyticsConfig, m as FFIDCreateCheckoutParams, n as FFIDCheckoutSessionResponse, o as FFIDCreatePortalParams, p as FFIDPortalSessionResponse, q as FFIDVerifyAccessTokenOptions, r as FFIDOAuthUserInfo, s as FFIDInquiryCreateParams, t as FFIDInquiryCreateResponse, u as FFIDAuthMode, v as FFIDLogger, w as FFIDCacheAdapter, x as FFIDUser, y as FFIDOrganization, z as FFIDSubscription, A as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, B as FFIDOAuthUserInfoSubscription, C as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, D as FFIDAnnouncementsApiResponse, G as AnnouncementListResponse, H as FFIDAnnouncementsLogger } from './index-DSvX4q8E.js';
2
+ export { I as Announcement, J as AnnouncementStatus, K as AnnouncementType, M as FFIDAnnouncementBadge, N as FFIDAnnouncementList, O as FFIDAnnouncementsError, P as FFIDAnnouncementsErrorCode, Q as FFIDAnnouncementsServerResponse, R as FFIDCacheConfig, S as FFIDContextValue, T as FFIDInquiryCategory, U as FFIDInquiryCategorySite2026, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a3 as FFIDJwtClaims, a4 as FFIDLoginButton, a5 as FFIDOAuthTokenResponse, a6 as FFIDOAuthUserInfoMemberRole, a7 as FFIDOrganizationSwitcher, a8 as FFIDRedirectErrorCode, a9 as FFIDSeatModel, aa as FFIDServiceAccessDenialReason, ab as FFIDServiceAccessFailPolicy, ac as FFIDSubscriptionBadge, ad as FFIDTokenIntrospectionResponse, ae as FFIDUserMenu, af as FFID_INQUIRY_CATEGORIES, ag as FFID_INQUIRY_CATEGORIES_SITE_2026, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as isFFIDInquiryCategorySite2026, ak as useFFIDAnnouncements } from './index-DSvX4q8E.js';
3
+ export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-D1WwE_ZO.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
6
6
  import 'zod';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { useFFIDContext, useSubscription } from './chunk-Z6COUAR6.js';
2
- export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-Z6COUAR6.js';
3
- export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-KJ7FUNA6.js';
1
+ import { useFFIDContext, useSubscription } from './chunk-OJ3OJTIE.js';
2
+ export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-OJ3OJTIE.js';
3
+ export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-M4N2PUX6.js';
4
4
  import { useEffect, useRef } from 'react';
5
5
  import { jsx, Fragment } from 'react/jsx-runtime';
6
6
 
@@ -106,7 +106,16 @@ var SESSION_ELIGIBLE_SUBSCRIPTION_STATUSES = [
106
106
  function isSessionEligibleSubscriptionStatus(value) {
107
107
  return typeof value === "string" && SESSION_ELIGIBLE_SUBSCRIPTION_STATUSES.includes(value);
108
108
  }
109
+ function hasOwnKey(value, key) {
110
+ return Object.prototype.hasOwnProperty.call(value, key);
111
+ }
109
112
  function normalizeUserinfo(raw) {
113
+ const hasOrganizationId = hasOwnKey(raw, "organization_id");
114
+ const hasOrganizationName = hasOwnKey(raw, "organization_name");
115
+ const organizationFields = hasOrganizationId ? {
116
+ organizationId: raw.organization_id ?? null,
117
+ organizationName: hasOrganizationName ? raw.organization_name ?? null : null
118
+ } : hasOrganizationName ? { organizationName: raw.organization_name ?? null } : {};
110
119
  return {
111
120
  sub: raw.sub,
112
121
  email: raw.email,
@@ -116,7 +125,7 @@ function normalizeUserinfo(raw) {
116
125
  department: raw.department ?? null,
117
126
  position: raw.position ?? null,
118
127
  phoneNumber: raw.phone_number ?? null,
119
- organizationId: raw.organization_id ?? null,
128
+ ...organizationFields,
120
129
  subscription: raw.subscription ? {
121
130
  subscriptionId: raw.subscription.subscription_id ?? null,
122
131
  status: raw.subscription.status ?? null,
@@ -125,6 +134,7 @@ function normalizeUserinfo(raw) {
125
134
  seatModel: raw.subscription.seat_model ?? null,
126
135
  memberRole: raw.subscription.member_role ?? null,
127
136
  organizationId: raw.subscription.organization_id ?? null,
137
+ organizationName: hasOwnKey(raw.subscription, "organization_name") ? raw.subscription.organization_name ?? null : null,
128
138
  hasSeatAssignment: raw.subscription.has_seat_assignment ?? false,
129
139
  // #3464: legacy FFID (< this issue) omits the field on the wire.
130
140
  // The "unknown" axis is unused — no consumer differentiates "server
@@ -160,7 +170,8 @@ function mapUserinfoSubscriptionToSession(userinfo, serviceCode) {
160
170
  cancelAtPeriodEnd: subscription.cancelAtPeriodEnd,
161
171
  seatModel: subscription.seatModel ?? void 0,
162
172
  memberRole: subscription.memberRole ?? void 0,
163
- organizationId: subscription.organizationId
173
+ organizationId: subscription.organizationId,
174
+ organizationName: subscription.organizationName ?? void 0
164
175
  }
165
176
  ];
166
177
  }
@@ -369,7 +380,8 @@ function createVerifyAccessToken(deps) {
369
380
  department: introspectResponse.department ?? null,
370
381
  position: introspectResponse.position ?? null,
371
382
  phone_number: introspectResponse.phone_number ?? null,
372
- organization_id: introspectResponse.organization_id ?? null
383
+ organization_id: introspectResponse.organization_id ?? null,
384
+ organization_name: introspectResponse.organization_name ?? null
373
385
  };
374
386
  const raw = introspectResponse.subscription ? {
375
387
  ...base,
@@ -381,6 +393,7 @@ function createVerifyAccessToken(deps) {
381
393
  seat_model: introspectResponse.subscription.seat_model,
382
394
  member_role: introspectResponse.subscription.member_role,
383
395
  organization_id: introspectResponse.subscription.organization_id,
396
+ organization_name: introspectResponse.subscription.organization_name ?? null,
384
397
  has_seat_assignment: introspectResponse.subscription.has_seat_assignment ?? false
385
398
  }
386
399
  } : base;
@@ -851,7 +864,7 @@ function createProfileMethods(deps) {
851
864
  }
852
865
 
853
866
  // src/client/version-check.ts
854
- var SDK_VERSION = "5.8.0";
867
+ var SDK_VERSION = "5.10.0";
855
868
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
856
869
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
857
870
  function sdkHeaders() {
@@ -1,5 +1,5 @@
1
- import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-BhopNmnq.cjs';
2
- export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-BhopNmnq.cjs';
1
+ import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-DRjzfAaS.cjs';
2
+ export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-DRjzfAaS.cjs';
3
3
  export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.cjs';
4
4
  import { z } from 'zod';
5
5
  import '../types-BYdtyO_2.cjs';
@@ -1,5 +1,5 @@
1
- import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-DoGYvIll.js';
2
- export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-DoGYvIll.js';
1
+ import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-gboJROw0.js';
2
+ export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-gboJROw0.js';
3
3
  export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.js';
4
4
  import { z } from 'zod';
5
5
  import '../types-BYdtyO_2.js';
@@ -105,7 +105,16 @@ var SESSION_ELIGIBLE_SUBSCRIPTION_STATUSES = [
105
105
  function isSessionEligibleSubscriptionStatus(value) {
106
106
  return typeof value === "string" && SESSION_ELIGIBLE_SUBSCRIPTION_STATUSES.includes(value);
107
107
  }
108
+ function hasOwnKey(value, key) {
109
+ return Object.prototype.hasOwnProperty.call(value, key);
110
+ }
108
111
  function normalizeUserinfo(raw) {
112
+ const hasOrganizationId = hasOwnKey(raw, "organization_id");
113
+ const hasOrganizationName = hasOwnKey(raw, "organization_name");
114
+ const organizationFields = hasOrganizationId ? {
115
+ organizationId: raw.organization_id ?? null,
116
+ organizationName: hasOrganizationName ? raw.organization_name ?? null : null
117
+ } : hasOrganizationName ? { organizationName: raw.organization_name ?? null } : {};
109
118
  return {
110
119
  sub: raw.sub,
111
120
  email: raw.email,
@@ -115,7 +124,7 @@ function normalizeUserinfo(raw) {
115
124
  department: raw.department ?? null,
116
125
  position: raw.position ?? null,
117
126
  phoneNumber: raw.phone_number ?? null,
118
- organizationId: raw.organization_id ?? null,
127
+ ...organizationFields,
119
128
  subscription: raw.subscription ? {
120
129
  subscriptionId: raw.subscription.subscription_id ?? null,
121
130
  status: raw.subscription.status ?? null,
@@ -124,6 +133,7 @@ function normalizeUserinfo(raw) {
124
133
  seatModel: raw.subscription.seat_model ?? null,
125
134
  memberRole: raw.subscription.member_role ?? null,
126
135
  organizationId: raw.subscription.organization_id ?? null,
136
+ organizationName: hasOwnKey(raw.subscription, "organization_name") ? raw.subscription.organization_name ?? null : null,
127
137
  hasSeatAssignment: raw.subscription.has_seat_assignment ?? false,
128
138
  // #3464: legacy FFID (< this issue) omits the field on the wire.
129
139
  // The "unknown" axis is unused — no consumer differentiates "server
@@ -159,7 +169,8 @@ function mapUserinfoSubscriptionToSession(userinfo, serviceCode) {
159
169
  cancelAtPeriodEnd: subscription.cancelAtPeriodEnd,
160
170
  seatModel: subscription.seatModel ?? void 0,
161
171
  memberRole: subscription.memberRole ?? void 0,
162
- organizationId: subscription.organizationId
172
+ organizationId: subscription.organizationId,
173
+ organizationName: subscription.organizationName ?? void 0
163
174
  }
164
175
  ];
165
176
  }
@@ -368,7 +379,8 @@ function createVerifyAccessToken(deps) {
368
379
  department: introspectResponse.department ?? null,
369
380
  position: introspectResponse.position ?? null,
370
381
  phone_number: introspectResponse.phone_number ?? null,
371
- organization_id: introspectResponse.organization_id ?? null
382
+ organization_id: introspectResponse.organization_id ?? null,
383
+ organization_name: introspectResponse.organization_name ?? null
372
384
  };
373
385
  const raw = introspectResponse.subscription ? {
374
386
  ...base,
@@ -380,6 +392,7 @@ function createVerifyAccessToken(deps) {
380
392
  seat_model: introspectResponse.subscription.seat_model,
381
393
  member_role: introspectResponse.subscription.member_role,
382
394
  organization_id: introspectResponse.subscription.organization_id,
395
+ organization_name: introspectResponse.subscription.organization_name ?? null,
383
396
  has_seat_assignment: introspectResponse.subscription.has_seat_assignment ?? false
384
397
  }
385
398
  } : base;
@@ -850,7 +863,7 @@ function createProfileMethods(deps) {
850
863
  }
851
864
 
852
865
  // src/client/version-check.ts
853
- var SDK_VERSION = "5.8.0";
866
+ var SDK_VERSION = "5.10.0";
854
867
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
855
868
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
856
869
  function sdkHeaders() {
@@ -1,4 +1,4 @@
1
- import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-BhopNmnq.cjs';
1
+ import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-DRjzfAaS.cjs';
2
2
  import '../../types-BYdtyO_2.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-DoGYvIll.js';
1
+ import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-gboJROw0.js';
2
2
  import '../../types-BYdtyO_2.js';
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feelflow/ffid-sdk",
3
- "version": "5.8.0",
3
+ "version": "5.10.0",
4
4
  "description": "FeelFlow ID Platform SDK for React/Next.js applications",
5
5
  "keywords": [
6
6
  "feelflow",