@feelflow/ffid-sdk 5.30.0 → 5.31.1

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.
@@ -134,15 +134,23 @@ function normalizeSeatAssignmentClaim(raw, organizationId, subscriptionId) {
134
134
  status
135
135
  };
136
136
  }
137
+ var ACCOUNT_TYPE_WIRE_VALUES = ["personal", "organization"];
138
+ function normalizeAccountTypeValue(value) {
139
+ if (value === null) return null;
140
+ return typeof value === "string" && ACCOUNT_TYPE_WIRE_VALUES.includes(value) ? value : void 0;
141
+ }
137
142
  function normalizeUserinfo(raw) {
138
143
  const hasOrganizationId = hasOwnKey(raw, "organization_id");
139
144
  const hasOrganizationName = hasOwnKey(raw, "organization_name");
140
145
  const hasOrganizationMemberRole = hasOwnKey(raw, "organization_member_role");
141
146
  const organizationMemberRole = hasOrganizationMemberRole ? raw.organization_member_role ?? null : raw.subscription ? raw.subscription.member_role ?? null : void 0;
147
+ const hasOrganizationAccountType = hasOwnKey(raw, "organization_account_type");
148
+ const organizationAccountType = hasOrganizationAccountType ? normalizeAccountTypeValue(raw.organization_account_type) : raw.subscription && hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0;
142
149
  const organizationFields = {
143
150
  ...hasOrganizationId ? { organizationId: raw.organization_id ?? null } : {},
144
151
  ...hasOrganizationId || hasOrganizationName ? { organizationName: raw.organization_name ?? null } : {},
145
- ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {}
152
+ ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {},
153
+ ...organizationAccountType !== void 0 ? { organizationAccountType } : {}
146
154
  };
147
155
  return {
148
156
  sub: raw.sub,
@@ -166,6 +174,11 @@ function normalizeUserinfo(raw) {
166
174
  memberRole: raw.subscription.member_role ?? null,
167
175
  organizationId: raw.subscription.organization_id ?? null,
168
176
  organizationName: hasOwnKey(raw.subscription, "organization_name") ? raw.subscription.organization_name ?? null : null,
177
+ // #4531: `undefined` means an older FFID omitted the field on the
178
+ // wire — genuinely unknown, not "no account type". Do not default
179
+ // to either literal. An unrecognized non-null wire value folds to
180
+ // `undefined` the same way (see `normalizeAccountTypeValue`).
181
+ accountType: hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0,
169
182
  hasSeatAssignment: raw.subscription.has_seat_assignment ?? false,
170
183
  seatAssignment: hasOwnKey(raw.subscription, "seat_assignment") ? normalizeSeatAssignmentClaim(
171
184
  raw.subscription.seat_assignment,
@@ -469,6 +482,9 @@ function createVerifyAccessToken(deps) {
469
482
  member_role: introspectResponse.subscription.member_role,
470
483
  organization_id: introspectResponse.subscription.organization_id,
471
484
  organization_name: introspectResponse.subscription.organization_name ?? null,
485
+ // #4531: forward account_type through the introspect → userinfo
486
+ // normalization boundary (mirrors organization_name above).
487
+ account_type: introspectResponse.subscription.account_type ?? null,
472
488
  has_seat_assignment: introspectResponse.subscription.has_seat_assignment ?? false,
473
489
  ...Object.prototype.hasOwnProperty.call(introspectResponse.subscription, "seat_assignment") ? { seat_assignment: introspectResponse.subscription.seat_assignment } : {},
474
490
  // #4333: forward pack entitlement codes through the introspect →
@@ -1657,7 +1673,7 @@ function validateTokenResponse(tokenResponse) {
1657
1673
  }
1658
1674
 
1659
1675
  // src/client/version-check.ts
1660
- var SDK_VERSION = "5.30.0";
1676
+ var SDK_VERSION = "5.31.1";
1661
1677
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1662
1678
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1663
1679
  function sdkHeaders() {
@@ -132,15 +132,23 @@ function normalizeSeatAssignmentClaim(raw, organizationId, subscriptionId) {
132
132
  status
133
133
  };
134
134
  }
135
+ var ACCOUNT_TYPE_WIRE_VALUES = ["personal", "organization"];
136
+ function normalizeAccountTypeValue(value) {
137
+ if (value === null) return null;
138
+ return typeof value === "string" && ACCOUNT_TYPE_WIRE_VALUES.includes(value) ? value : void 0;
139
+ }
135
140
  function normalizeUserinfo(raw) {
136
141
  const hasOrganizationId = hasOwnKey(raw, "organization_id");
137
142
  const hasOrganizationName = hasOwnKey(raw, "organization_name");
138
143
  const hasOrganizationMemberRole = hasOwnKey(raw, "organization_member_role");
139
144
  const organizationMemberRole = hasOrganizationMemberRole ? raw.organization_member_role ?? null : raw.subscription ? raw.subscription.member_role ?? null : void 0;
145
+ const hasOrganizationAccountType = hasOwnKey(raw, "organization_account_type");
146
+ const organizationAccountType = hasOrganizationAccountType ? normalizeAccountTypeValue(raw.organization_account_type) : raw.subscription && hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0;
140
147
  const organizationFields = {
141
148
  ...hasOrganizationId ? { organizationId: raw.organization_id ?? null } : {},
142
149
  ...hasOrganizationId || hasOrganizationName ? { organizationName: raw.organization_name ?? null } : {},
143
- ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {}
150
+ ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {},
151
+ ...organizationAccountType !== void 0 ? { organizationAccountType } : {}
144
152
  };
145
153
  return {
146
154
  sub: raw.sub,
@@ -164,6 +172,11 @@ function normalizeUserinfo(raw) {
164
172
  memberRole: raw.subscription.member_role ?? null,
165
173
  organizationId: raw.subscription.organization_id ?? null,
166
174
  organizationName: hasOwnKey(raw.subscription, "organization_name") ? raw.subscription.organization_name ?? null : null,
175
+ // #4531: `undefined` means an older FFID omitted the field on the
176
+ // wire — genuinely unknown, not "no account type". Do not default
177
+ // to either literal. An unrecognized non-null wire value folds to
178
+ // `undefined` the same way (see `normalizeAccountTypeValue`).
179
+ accountType: hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0,
167
180
  hasSeatAssignment: raw.subscription.has_seat_assignment ?? false,
168
181
  seatAssignment: hasOwnKey(raw.subscription, "seat_assignment") ? normalizeSeatAssignmentClaim(
169
182
  raw.subscription.seat_assignment,
@@ -467,6 +480,9 @@ function createVerifyAccessToken(deps) {
467
480
  member_role: introspectResponse.subscription.member_role,
468
481
  organization_id: introspectResponse.subscription.organization_id,
469
482
  organization_name: introspectResponse.subscription.organization_name ?? null,
483
+ // #4531: forward account_type through the introspect → userinfo
484
+ // normalization boundary (mirrors organization_name above).
485
+ account_type: introspectResponse.subscription.account_type ?? null,
470
486
  has_seat_assignment: introspectResponse.subscription.has_seat_assignment ?? false,
471
487
  ...Object.prototype.hasOwnProperty.call(introspectResponse.subscription, "seat_assignment") ? { seat_assignment: introspectResponse.subscription.seat_assignment } : {},
472
488
  // #4333: forward pack entitlement codes through the introspect →
@@ -1655,7 +1671,7 @@ function validateTokenResponse(tokenResponse) {
1655
1671
  }
1656
1672
 
1657
1673
  // src/client/version-check.ts
1658
- var SDK_VERSION = "5.30.0";
1674
+ var SDK_VERSION = "5.31.1";
1659
1675
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1660
1676
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1661
1677
  function sdkHeaders() {
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunkMLYUDFV4_cjs = require('../chunk-MLYUDFV4.cjs');
3
+ var chunk3YIX4DFI_cjs = require('../chunk-3YIX4DFI.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
8
8
  enumerable: true,
9
- get: function () { return chunkMLYUDFV4_cjs.FFIDAnnouncementBadge; }
9
+ get: function () { return chunk3YIX4DFI_cjs.FFIDAnnouncementBadge; }
10
10
  });
11
11
  Object.defineProperty(exports, "FFIDAnnouncementList", {
12
12
  enumerable: true,
13
- get: function () { return chunkMLYUDFV4_cjs.FFIDAnnouncementList; }
13
+ get: function () { return chunk3YIX4DFI_cjs.FFIDAnnouncementList; }
14
14
  });
15
15
  Object.defineProperty(exports, "FFIDInquiryForm", {
16
16
  enumerable: true,
17
- get: function () { return chunkMLYUDFV4_cjs.FFIDInquiryForm; }
17
+ get: function () { return chunk3YIX4DFI_cjs.FFIDInquiryForm; }
18
18
  });
19
19
  Object.defineProperty(exports, "FFIDLoginButton", {
20
20
  enumerable: true,
21
- get: function () { return chunkMLYUDFV4_cjs.FFIDLoginButton; }
21
+ get: function () { return chunk3YIX4DFI_cjs.FFIDLoginButton; }
22
22
  });
23
23
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
24
24
  enumerable: true,
25
- get: function () { return chunkMLYUDFV4_cjs.FFIDOrganizationSwitcher; }
25
+ get: function () { return chunk3YIX4DFI_cjs.FFIDOrganizationSwitcher; }
26
26
  });
27
27
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
28
28
  enumerable: true,
29
- get: function () { return chunkMLYUDFV4_cjs.FFIDSubscriptionBadge; }
29
+ get: function () { return chunk3YIX4DFI_cjs.FFIDSubscriptionBadge; }
30
30
  });
31
31
  Object.defineProperty(exports, "FFIDUserMenu", {
32
32
  enumerable: true,
33
- get: function () { return chunkMLYUDFV4_cjs.FFIDUserMenu; }
33
+ get: function () { return chunk3YIX4DFI_cjs.FFIDUserMenu; }
34
34
  });
@@ -1,3 +1,3 @@
1
- export { G as FFIDAnnouncementBadge, am as FFIDAnnouncementBadgeClassNames, an as FFIDAnnouncementBadgeProps, H as FFIDAnnouncementList, ao as FFIDAnnouncementListClassNames, ap as FFIDAnnouncementListProps, S as FFIDInquiryForm, U as FFIDInquiryFormCategoryItem, V as FFIDInquiryFormClassNames, W as FFIDInquiryFormLegalLayout, X as FFIDInquiryFormOrganization, Y as FFIDInquiryFormPlaceholderContext, Z as FFIDInquiryFormPrefill, _ as FFIDInquiryFormProps, $ as FFIDInquiryFormSubmitData, a0 as FFIDInquiryFormSubmitResult, a2 as FFIDLoginButton, aq as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, ar as FFIDOrganizationSwitcherClassNames, as as FFIDOrganizationSwitcherProps, aa as FFIDSubscriptionBadge, at as FFIDSubscriptionBadgeClassNames, au as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, av as FFIDUserMenuClassNames, aw as FFIDUserMenuProps } from '../index-_-MqJCN3.cjs';
1
+ export { H as FFIDAnnouncementBadge, an as FFIDAnnouncementBadgeClassNames, ao as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ap as FFIDAnnouncementListClassNames, aq as FFIDAnnouncementListProps, U as FFIDInquiryForm, V as FFIDInquiryFormCategoryItem, W as FFIDInquiryFormClassNames, X as FFIDInquiryFormLegalLayout, Y as FFIDInquiryFormOrganization, Z as FFIDInquiryFormPlaceholderContext, _ as FFIDInquiryFormPrefill, $ as FFIDInquiryFormProps, a0 as FFIDInquiryFormSubmitData, a1 as FFIDInquiryFormSubmitResult, a3 as FFIDLoginButton, ar as FFIDLoginButtonProps, a5 as FFIDOrganizationSwitcher, as as FFIDOrganizationSwitcherClassNames, at as FFIDOrganizationSwitcherProps, ab as FFIDSubscriptionBadge, au as FFIDSubscriptionBadgeClassNames, av as FFIDSubscriptionBadgeProps, ac as FFIDUserMenu, aw as FFIDUserMenuClassNames, ax as FFIDUserMenuProps } from '../index-BMKhKhzF.cjs';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
@@ -1,3 +1,3 @@
1
- export { G as FFIDAnnouncementBadge, am as FFIDAnnouncementBadgeClassNames, an as FFIDAnnouncementBadgeProps, H as FFIDAnnouncementList, ao as FFIDAnnouncementListClassNames, ap as FFIDAnnouncementListProps, S as FFIDInquiryForm, U as FFIDInquiryFormCategoryItem, V as FFIDInquiryFormClassNames, W as FFIDInquiryFormLegalLayout, X as FFIDInquiryFormOrganization, Y as FFIDInquiryFormPlaceholderContext, Z as FFIDInquiryFormPrefill, _ as FFIDInquiryFormProps, $ as FFIDInquiryFormSubmitData, a0 as FFIDInquiryFormSubmitResult, a2 as FFIDLoginButton, aq as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, ar as FFIDOrganizationSwitcherClassNames, as as FFIDOrganizationSwitcherProps, aa as FFIDSubscriptionBadge, at as FFIDSubscriptionBadgeClassNames, au as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, av as FFIDUserMenuClassNames, aw as FFIDUserMenuProps } from '../index-_-MqJCN3.js';
1
+ export { H as FFIDAnnouncementBadge, an as FFIDAnnouncementBadgeClassNames, ao as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ap as FFIDAnnouncementListClassNames, aq as FFIDAnnouncementListProps, U as FFIDInquiryForm, V as FFIDInquiryFormCategoryItem, W as FFIDInquiryFormClassNames, X as FFIDInquiryFormLegalLayout, Y as FFIDInquiryFormOrganization, Z as FFIDInquiryFormPlaceholderContext, _ as FFIDInquiryFormPrefill, $ as FFIDInquiryFormProps, a0 as FFIDInquiryFormSubmitData, a1 as FFIDInquiryFormSubmitResult, a3 as FFIDLoginButton, ar as FFIDLoginButtonProps, a5 as FFIDOrganizationSwitcher, as as FFIDOrganizationSwitcherClassNames, at as FFIDOrganizationSwitcherProps, ab as FFIDSubscriptionBadge, au as FFIDSubscriptionBadgeClassNames, av as FFIDSubscriptionBadgeProps, ac as FFIDUserMenu, aw as FFIDUserMenuClassNames, ax as FFIDUserMenuProps } from '../index-BMKhKhzF.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
@@ -1 +1 @@
1
- export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-4E26AZIZ.js';
1
+ export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-SLYSWV4S.js';
@@ -1570,6 +1570,8 @@ type FFIDAuthMode = 'cookie' | 'token' | 'service-key';
1570
1570
  type FFIDSeatModel = 'organization';
1571
1571
  /** Userinfo member role for OAuth responses */
1572
1572
  type FFIDOAuthUserInfoMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
1573
+ /** Personal/organization account split (#4531). `personal` = auto-created single-member org. */
1574
+ type FFIDAccountType = 'personal' | 'organization';
1573
1575
  interface FFIDUser {
1574
1576
  /** User ID (UUID) */
1575
1577
  id: string;
@@ -1685,6 +1687,8 @@ interface FFIDOAuthUserInfoSubscription {
1685
1687
  memberRole: FFIDOAuthUserInfoMemberRole | null;
1686
1688
  organizationId: string | null;
1687
1689
  organizationName?: string | null | undefined;
1690
+ /** Personal/organization split (#4531). `undefined` (older FFID predates the field) and `null` (introspect path; current FFID always sends non-null) are equally "unknown" — never fold either into `'organization'`. */
1691
+ accountType?: FFIDAccountType | null | undefined;
1688
1692
  hasSeatAssignment: boolean | null;
1689
1693
  /**
1690
1694
  * Organization/subscription-bound seat claim (#4352). `undefined` means an
@@ -1783,6 +1787,8 @@ interface FFIDOAuthUserInfo {
1783
1787
  * are normalized from `subscription.member_role` when available.
1784
1788
  */
1785
1789
  organizationMemberRole?: FFIDOAuthUserInfoMemberRole | null | undefined;
1790
+ /** Personal/organization split (#4531). Same precedence as `organizationMemberRole` (top-level first, then `subscription` derivation), but unlike it this can be `undefined` even with `subscription` present — `subscription.account_type` is itself optional (pre-#4531 FFID), whereas `subscription.member_role` is always populated and only degrades to `null`. */
1791
+ organizationAccountType?: FFIDAccountType | null | undefined;
1786
1792
  /**
1787
1793
  * Subscription summary for `(user, service, organization)`. Branch on
1788
1794
  * `effectiveStatus` (5.3.0+) for access decisions.
@@ -1570,6 +1570,8 @@ type FFIDAuthMode = 'cookie' | 'token' | 'service-key';
1570
1570
  type FFIDSeatModel = 'organization';
1571
1571
  /** Userinfo member role for OAuth responses */
1572
1572
  type FFIDOAuthUserInfoMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
1573
+ /** Personal/organization account split (#4531). `personal` = auto-created single-member org. */
1574
+ type FFIDAccountType = 'personal' | 'organization';
1573
1575
  interface FFIDUser {
1574
1576
  /** User ID (UUID) */
1575
1577
  id: string;
@@ -1685,6 +1687,8 @@ interface FFIDOAuthUserInfoSubscription {
1685
1687
  memberRole: FFIDOAuthUserInfoMemberRole | null;
1686
1688
  organizationId: string | null;
1687
1689
  organizationName?: string | null | undefined;
1690
+ /** Personal/organization split (#4531). `undefined` (older FFID predates the field) and `null` (introspect path; current FFID always sends non-null) are equally "unknown" — never fold either into `'organization'`. */
1691
+ accountType?: FFIDAccountType | null | undefined;
1688
1692
  hasSeatAssignment: boolean | null;
1689
1693
  /**
1690
1694
  * Organization/subscription-bound seat claim (#4352). `undefined` means an
@@ -1783,6 +1787,8 @@ interface FFIDOAuthUserInfo {
1783
1787
  * are normalized from `subscription.member_role` when available.
1784
1788
  */
1785
1789
  organizationMemberRole?: FFIDOAuthUserInfoMemberRole | null | undefined;
1790
+ /** Personal/organization split (#4531). Same precedence as `organizationMemberRole` (top-level first, then `subscription` derivation), but unlike it this can be `undefined` even with `subscription` present — `subscription.account_type` is itself optional (pre-#4531 FFID), whereas `subscription.member_role` is always populated and only degrades to `null`. */
1791
+ organizationAccountType?: FFIDAccountType | null | undefined;
1786
1792
  /**
1787
1793
  * Subscription summary for `(user, service, organization)`. Branch on
1788
1794
  * `effectiveStatus` (5.3.0+) for access decisions.
@@ -225,6 +225,8 @@ type FFIDAuthMode = 'cookie' | 'token' | 'service-key';
225
225
  type FFIDSeatModel = 'organization';
226
226
  /** Userinfo member role for OAuth responses */
227
227
  type FFIDOAuthUserInfoMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
228
+ /** Personal/organization account split (#4531). `personal` = auto-created single-member org. */
229
+ type FFIDAccountType = 'personal' | 'organization';
228
230
  interface FFIDUser {
229
231
  /** User ID (UUID) */
230
232
  id: string;
@@ -340,6 +342,8 @@ interface FFIDOAuthUserInfoSubscription {
340
342
  memberRole: FFIDOAuthUserInfoMemberRole | null;
341
343
  organizationId: string | null;
342
344
  organizationName?: string | null | undefined;
345
+ /** Personal/organization split (#4531). `undefined` (older FFID predates the field) and `null` (introspect path; current FFID always sends non-null) are equally "unknown" — never fold either into `'organization'`. */
346
+ accountType?: FFIDAccountType | null | undefined;
343
347
  hasSeatAssignment: boolean | null;
344
348
  /**
345
349
  * Organization/subscription-bound seat claim (#4352). `undefined` means an
@@ -438,6 +442,8 @@ interface FFIDOAuthUserInfo {
438
442
  * are normalized from `subscription.member_role` when available.
439
443
  */
440
444
  organizationMemberRole?: FFIDOAuthUserInfoMemberRole | null | undefined;
445
+ /** Personal/organization split (#4531). Same precedence as `organizationMemberRole` (top-level first, then `subscription` derivation), but unlike it this can be `undefined` even with `subscription` present — `subscription.account_type` is itself optional (pre-#4531 FFID), whereas `subscription.member_role` is always populated and only degrades to `null`. */
446
+ organizationAccountType?: FFIDAccountType | null | undefined;
441
447
  /**
442
448
  * Subscription summary for `(user, service, organization)`. Branch on
443
449
  * `effectiveStatus` (5.3.0+) for access decisions.
@@ -1590,4 +1596,4 @@ interface FFIDInquiryFormPlaceholderContext {
1590
1596
  }
1591
1597
  declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, acquisitionSource, turnstileSlot, onSubmit, onChange, legalLayout, messagePlaceholder, requireCategorySelection, unstyled, classNames, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
1592
1598
 
1593
- export { type FFIDInquiryFormSubmitData as $, type AnnouncementListResponse as A, type AnnouncementStatus as B, type AnnouncementType as C, EFFECTIVE_SUBSCRIPTION_STATUSES as D, type EffectiveSubscriptionStatus as E, type FFIDSubscriptionStatus as F, FFIDAnnouncementBadge as G, FFIDAnnouncementList as H, type FFIDAnnouncementsError as I, type FFIDAnnouncementsErrorCode as J, type FFIDAnnouncementsServerResponse as K, type ListAnnouncementsOptions as L, type FFIDApiResponseMeta as M, type FFIDCacheConfig as N, type FFIDContextValue as O, type FFIDInquiryAcquisitionSource as P, type FFIDInquiryCategory as Q, type FFIDInquiryCategorySite2026 as R, FFIDInquiryForm as S, type TokenStore as T, type FFIDInquiryFormCategoryItem as U, type FFIDInquiryFormClassNames as V, type FFIDInquiryFormLegalLayout as W, type FFIDInquiryFormOrganization as X, type FFIDInquiryFormPlaceholderContext as Y, type FFIDInquiryFormPrefill as Z, type FFIDInquiryFormProps as _, type FFIDOAuthUserInfoSubscription as a, type FFIDInquiryFormSubmitResult as a0, type FFIDJwtClaims as a1, FFIDLoginButton as a2, type FFIDOAuthUserInfoMemberRole as a3, FFIDOrganizationSwitcher as a4, type FFIDSeatAssignmentClaim as a5, type FFIDSeatAssignmentStatus as a6, type FFIDSeatModel as a7, type FFIDServiceAccessDenialReason as a8, type FFIDServiceAccessFailPolicy as a9, FFIDSubscriptionBadge as aa, FFIDUserMenu as ab, FFID_INQUIRY_ACQUISITION_SOURCES as ac, FFID_INQUIRY_CATEGORIES as ad, FFID_INQUIRY_CATEGORIES_SITE_2026 as ae, type TokenData as af, type UseFFIDAnnouncementsOptions as ag, type UseFFIDAnnouncementsReturn as ah, createTokenStore as ai, isFFIDInquiryAcquisitionSource as aj, isFFIDInquiryCategorySite2026 as ak, useFFIDAnnouncements as al, type FFIDAnnouncementBadgeClassNames as am, type FFIDAnnouncementBadgeProps as an, type FFIDAnnouncementListClassNames as ao, type FFIDAnnouncementListProps as ap, type FFIDLoginButtonProps as aq, type FFIDOrganizationSwitcherClassNames as ar, type FFIDOrganizationSwitcherProps as as, type FFIDSubscriptionBadgeClassNames as at, type FFIDSubscriptionBadgeProps as au, type FFIDUserMenuClassNames as av, type FFIDUserMenuProps as aw, type FFIDPrompt as b, type FFIDConfig as c, type FFIDApiResponse as d, type FFIDSessionResponse as e, type FFIDSignOutResult as f, type FFIDError as g, type FFIDSubscriptionCheckResponse as h, type FFIDCheckServiceAccessParams as i, type FFIDServiceAccessDecision as j, type FFIDAnalyticsConfig as k, type FFIDVerifyAccessTokenOptions as l, type FFIDOAuthUserInfo as m, type FFIDInquiryCreateParams as n, type FFIDInquiryCreateResponse as o, type FFIDAuthMode as p, type FFIDLogger as q, type FFIDCacheAdapter as r, type FFIDUser as s, type FFIDOrganization as t, type FFIDSubscription as u, type FFIDSubscriptionContextValue as v, type FFIDAnnouncementsClientConfig as w, type FFIDAnnouncementsApiResponse as x, type FFIDAnnouncementsLogger as y, type Announcement as z };
1599
+ export { type FFIDInquiryFormProps as $, type AnnouncementListResponse as A, type Announcement as B, type AnnouncementStatus as C, type AnnouncementType as D, type EffectiveSubscriptionStatus as E, type FFIDSubscriptionStatus as F, EFFECTIVE_SUBSCRIPTION_STATUSES as G, FFIDAnnouncementBadge as H, FFIDAnnouncementList as I, type FFIDAnnouncementsError as J, type FFIDAnnouncementsErrorCode as K, type ListAnnouncementsOptions as L, type FFIDAnnouncementsServerResponse as M, type FFIDApiResponseMeta as N, type FFIDCacheConfig as O, type FFIDContextValue as P, type FFIDInquiryAcquisitionSource as Q, type FFIDInquiryCategory as R, type FFIDInquiryCategorySite2026 as S, type TokenStore as T, FFIDInquiryForm as U, type FFIDInquiryFormCategoryItem as V, type FFIDInquiryFormClassNames as W, type FFIDInquiryFormLegalLayout as X, type FFIDInquiryFormOrganization as Y, type FFIDInquiryFormPlaceholderContext as Z, type FFIDInquiryFormPrefill as _, type FFIDOAuthUserInfoSubscription as a, type FFIDInquiryFormSubmitData as a0, type FFIDInquiryFormSubmitResult as a1, type FFIDJwtClaims as a2, FFIDLoginButton as a3, type FFIDOAuthUserInfoMemberRole as a4, FFIDOrganizationSwitcher as a5, type FFIDSeatAssignmentClaim as a6, type FFIDSeatAssignmentStatus as a7, type FFIDSeatModel as a8, type FFIDServiceAccessDenialReason as a9, type FFIDServiceAccessFailPolicy as aa, FFIDSubscriptionBadge as ab, FFIDUserMenu as ac, FFID_INQUIRY_ACQUISITION_SOURCES as ad, FFID_INQUIRY_CATEGORIES as ae, FFID_INQUIRY_CATEGORIES_SITE_2026 as af, type TokenData as ag, type UseFFIDAnnouncementsOptions as ah, type UseFFIDAnnouncementsReturn as ai, createTokenStore as aj, isFFIDInquiryAcquisitionSource as ak, isFFIDInquiryCategorySite2026 as al, useFFIDAnnouncements as am, type FFIDAnnouncementBadgeClassNames as an, type FFIDAnnouncementBadgeProps as ao, type FFIDAnnouncementListClassNames as ap, type FFIDAnnouncementListProps as aq, type FFIDLoginButtonProps as ar, type FFIDOrganizationSwitcherClassNames as as, type FFIDOrganizationSwitcherProps as at, type FFIDSubscriptionBadgeClassNames as au, type FFIDSubscriptionBadgeProps as av, type FFIDUserMenuClassNames as aw, type FFIDUserMenuProps as ax, type FFIDAccountType as b, type FFIDPrompt as c, type FFIDConfig as d, type FFIDApiResponse as e, type FFIDSessionResponse as f, type FFIDSignOutResult as g, type FFIDError as h, type FFIDSubscriptionCheckResponse as i, type FFIDCheckServiceAccessParams as j, type FFIDServiceAccessDecision as k, type FFIDAnalyticsConfig as l, type FFIDVerifyAccessTokenOptions as m, type FFIDOAuthUserInfo as n, type FFIDInquiryCreateParams as o, type FFIDInquiryCreateResponse as p, type FFIDAuthMode as q, type FFIDLogger as r, type FFIDCacheAdapter as s, type FFIDUser as t, type FFIDOrganization as u, type FFIDSubscription as v, type FFIDSubscriptionContextValue as w, type FFIDAnnouncementsClientConfig as x, type FFIDAnnouncementsApiResponse as y, type FFIDAnnouncementsLogger as z };
@@ -225,6 +225,8 @@ type FFIDAuthMode = 'cookie' | 'token' | 'service-key';
225
225
  type FFIDSeatModel = 'organization';
226
226
  /** Userinfo member role for OAuth responses */
227
227
  type FFIDOAuthUserInfoMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
228
+ /** Personal/organization account split (#4531). `personal` = auto-created single-member org. */
229
+ type FFIDAccountType = 'personal' | 'organization';
228
230
  interface FFIDUser {
229
231
  /** User ID (UUID) */
230
232
  id: string;
@@ -340,6 +342,8 @@ interface FFIDOAuthUserInfoSubscription {
340
342
  memberRole: FFIDOAuthUserInfoMemberRole | null;
341
343
  organizationId: string | null;
342
344
  organizationName?: string | null | undefined;
345
+ /** Personal/organization split (#4531). `undefined` (older FFID predates the field) and `null` (introspect path; current FFID always sends non-null) are equally "unknown" — never fold either into `'organization'`. */
346
+ accountType?: FFIDAccountType | null | undefined;
343
347
  hasSeatAssignment: boolean | null;
344
348
  /**
345
349
  * Organization/subscription-bound seat claim (#4352). `undefined` means an
@@ -438,6 +442,8 @@ interface FFIDOAuthUserInfo {
438
442
  * are normalized from `subscription.member_role` when available.
439
443
  */
440
444
  organizationMemberRole?: FFIDOAuthUserInfoMemberRole | null | undefined;
445
+ /** Personal/organization split (#4531). Same precedence as `organizationMemberRole` (top-level first, then `subscription` derivation), but unlike it this can be `undefined` even with `subscription` present — `subscription.account_type` is itself optional (pre-#4531 FFID), whereas `subscription.member_role` is always populated and only degrades to `null`. */
446
+ organizationAccountType?: FFIDAccountType | null | undefined;
441
447
  /**
442
448
  * Subscription summary for `(user, service, organization)`. Branch on
443
449
  * `effectiveStatus` (5.3.0+) for access decisions.
@@ -1590,4 +1596,4 @@ interface FFIDInquiryFormPlaceholderContext {
1590
1596
  }
1591
1597
  declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, acquisitionSource, turnstileSlot, onSubmit, onChange, legalLayout, messagePlaceholder, requireCategorySelection, unstyled, classNames, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
1592
1598
 
1593
- export { type FFIDInquiryFormSubmitData as $, type AnnouncementListResponse as A, type AnnouncementStatus as B, type AnnouncementType as C, EFFECTIVE_SUBSCRIPTION_STATUSES as D, type EffectiveSubscriptionStatus as E, type FFIDSubscriptionStatus as F, FFIDAnnouncementBadge as G, FFIDAnnouncementList as H, type FFIDAnnouncementsError as I, type FFIDAnnouncementsErrorCode as J, type FFIDAnnouncementsServerResponse as K, type ListAnnouncementsOptions as L, type FFIDApiResponseMeta as M, type FFIDCacheConfig as N, type FFIDContextValue as O, type FFIDInquiryAcquisitionSource as P, type FFIDInquiryCategory as Q, type FFIDInquiryCategorySite2026 as R, FFIDInquiryForm as S, type TokenStore as T, type FFIDInquiryFormCategoryItem as U, type FFIDInquiryFormClassNames as V, type FFIDInquiryFormLegalLayout as W, type FFIDInquiryFormOrganization as X, type FFIDInquiryFormPlaceholderContext as Y, type FFIDInquiryFormPrefill as Z, type FFIDInquiryFormProps as _, type FFIDOAuthUserInfoSubscription as a, type FFIDInquiryFormSubmitResult as a0, type FFIDJwtClaims as a1, FFIDLoginButton as a2, type FFIDOAuthUserInfoMemberRole as a3, FFIDOrganizationSwitcher as a4, type FFIDSeatAssignmentClaim as a5, type FFIDSeatAssignmentStatus as a6, type FFIDSeatModel as a7, type FFIDServiceAccessDenialReason as a8, type FFIDServiceAccessFailPolicy as a9, FFIDSubscriptionBadge as aa, FFIDUserMenu as ab, FFID_INQUIRY_ACQUISITION_SOURCES as ac, FFID_INQUIRY_CATEGORIES as ad, FFID_INQUIRY_CATEGORIES_SITE_2026 as ae, type TokenData as af, type UseFFIDAnnouncementsOptions as ag, type UseFFIDAnnouncementsReturn as ah, createTokenStore as ai, isFFIDInquiryAcquisitionSource as aj, isFFIDInquiryCategorySite2026 as ak, useFFIDAnnouncements as al, type FFIDAnnouncementBadgeClassNames as am, type FFIDAnnouncementBadgeProps as an, type FFIDAnnouncementListClassNames as ao, type FFIDAnnouncementListProps as ap, type FFIDLoginButtonProps as aq, type FFIDOrganizationSwitcherClassNames as ar, type FFIDOrganizationSwitcherProps as as, type FFIDSubscriptionBadgeClassNames as at, type FFIDSubscriptionBadgeProps as au, type FFIDUserMenuClassNames as av, type FFIDUserMenuProps as aw, type FFIDPrompt as b, type FFIDConfig as c, type FFIDApiResponse as d, type FFIDSessionResponse as e, type FFIDSignOutResult as f, type FFIDError as g, type FFIDSubscriptionCheckResponse as h, type FFIDCheckServiceAccessParams as i, type FFIDServiceAccessDecision as j, type FFIDAnalyticsConfig as k, type FFIDVerifyAccessTokenOptions as l, type FFIDOAuthUserInfo as m, type FFIDInquiryCreateParams as n, type FFIDInquiryCreateResponse as o, type FFIDAuthMode as p, type FFIDLogger as q, type FFIDCacheAdapter as r, type FFIDUser as s, type FFIDOrganization as t, type FFIDSubscription as u, type FFIDSubscriptionContextValue as v, type FFIDAnnouncementsClientConfig as w, type FFIDAnnouncementsApiResponse as x, type FFIDAnnouncementsLogger as y, type Announcement as z };
1599
+ export { type FFIDInquiryFormProps as $, type AnnouncementListResponse as A, type Announcement as B, type AnnouncementStatus as C, type AnnouncementType as D, type EffectiveSubscriptionStatus as E, type FFIDSubscriptionStatus as F, EFFECTIVE_SUBSCRIPTION_STATUSES as G, FFIDAnnouncementBadge as H, FFIDAnnouncementList as I, type FFIDAnnouncementsError as J, type FFIDAnnouncementsErrorCode as K, type ListAnnouncementsOptions as L, type FFIDAnnouncementsServerResponse as M, type FFIDApiResponseMeta as N, type FFIDCacheConfig as O, type FFIDContextValue as P, type FFIDInquiryAcquisitionSource as Q, type FFIDInquiryCategory as R, type FFIDInquiryCategorySite2026 as S, type TokenStore as T, FFIDInquiryForm as U, type FFIDInquiryFormCategoryItem as V, type FFIDInquiryFormClassNames as W, type FFIDInquiryFormLegalLayout as X, type FFIDInquiryFormOrganization as Y, type FFIDInquiryFormPlaceholderContext as Z, type FFIDInquiryFormPrefill as _, type FFIDOAuthUserInfoSubscription as a, type FFIDInquiryFormSubmitData as a0, type FFIDInquiryFormSubmitResult as a1, type FFIDJwtClaims as a2, FFIDLoginButton as a3, type FFIDOAuthUserInfoMemberRole as a4, FFIDOrganizationSwitcher as a5, type FFIDSeatAssignmentClaim as a6, type FFIDSeatAssignmentStatus as a7, type FFIDSeatModel as a8, type FFIDServiceAccessDenialReason as a9, type FFIDServiceAccessFailPolicy as aa, FFIDSubscriptionBadge as ab, FFIDUserMenu as ac, FFID_INQUIRY_ACQUISITION_SOURCES as ad, FFID_INQUIRY_CATEGORIES as ae, FFID_INQUIRY_CATEGORIES_SITE_2026 as af, type TokenData as ag, type UseFFIDAnnouncementsOptions as ah, type UseFFIDAnnouncementsReturn as ai, createTokenStore as aj, isFFIDInquiryAcquisitionSource as ak, isFFIDInquiryCategorySite2026 as al, useFFIDAnnouncements as am, type FFIDAnnouncementBadgeClassNames as an, type FFIDAnnouncementBadgeProps as ao, type FFIDAnnouncementListClassNames as ap, type FFIDAnnouncementListProps as aq, type FFIDLoginButtonProps as ar, type FFIDOrganizationSwitcherClassNames as as, type FFIDOrganizationSwitcherProps as at, type FFIDSubscriptionBadgeClassNames as au, type FFIDSubscriptionBadgeProps as av, type FFIDUserMenuClassNames as aw, type FFIDUserMenuProps as ax, type FFIDAccountType as b, type FFIDPrompt as c, type FFIDConfig as d, type FFIDApiResponse as e, type FFIDSessionResponse as f, type FFIDSignOutResult as g, type FFIDError as h, type FFIDSubscriptionCheckResponse as i, type FFIDCheckServiceAccessParams as j, type FFIDServiceAccessDecision as k, type FFIDAnalyticsConfig as l, type FFIDVerifyAccessTokenOptions as m, type FFIDOAuthUserInfo as n, type FFIDInquiryCreateParams as o, type FFIDInquiryCreateResponse as p, type FFIDAuthMode as q, type FFIDLogger as r, type FFIDCacheAdapter as s, type FFIDUser as t, type FFIDOrganization as u, type FFIDSubscription as v, type FFIDSubscriptionContextValue as w, type FFIDAnnouncementsClientConfig as x, type FFIDAnnouncementsApiResponse as y, type FFIDAnnouncementsLogger as z };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMLYUDFV4_cjs = require('./chunk-MLYUDFV4.cjs');
3
+ var chunk3YIX4DFI_cjs = require('./chunk-3YIX4DFI.cjs');
4
4
  var chunkH5O2CCAY_cjs = require('./chunk-H5O2CCAY.cjs');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -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 } = chunkMLYUDFV4_cjs.useFFIDContext();
58
- const { effectiveStatus, isBlocked, isGrace } = chunkMLYUDFV4_cjs.useSubscription();
57
+ const { isLoading, error } = chunk3YIX4DFI_cjs.useFFIDContext();
58
+ const { effectiveStatus, isBlocked, isGrace } = chunk3YIX4DFI_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 } = chunkMLYUDFV4_cjs.useFFIDContext();
79
+ const { isLoading, isAuthenticated, login } = chunk3YIX4DFI_cjs.useFFIDContext();
80
80
  const hasRedirected = react.useRef(false);
81
81
  react.useEffect(() => {
82
82
  if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
@@ -105,219 +105,219 @@ 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 chunkMLYUDFV4_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
108
+ get: function () { return chunk3YIX4DFI_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
109
109
  });
110
110
  Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
111
111
  enumerable: true,
112
- get: function () { return chunkMLYUDFV4_cjs.BLOCKING_EFFECTIVE_STATUSES; }
112
+ get: function () { return chunk3YIX4DFI_cjs.BLOCKING_EFFECTIVE_STATUSES; }
113
113
  });
114
114
  Object.defineProperty(exports, "CATALOG_HASH_PATTERN", {
115
115
  enumerable: true,
116
- get: function () { return chunkMLYUDFV4_cjs.CATALOG_HASH_PATTERN; }
116
+ get: function () { return chunk3YIX4DFI_cjs.CATALOG_HASH_PATTERN; }
117
117
  });
118
118
  Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
119
119
  enumerable: true,
120
- get: function () { return chunkMLYUDFV4_cjs.DEFAULT_API_BASE_URL; }
120
+ get: function () { return chunk3YIX4DFI_cjs.DEFAULT_API_BASE_URL; }
121
121
  });
122
122
  Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
123
123
  enumerable: true,
124
- get: function () { return chunkMLYUDFV4_cjs.DEFAULT_OAUTH_SCOPES; }
124
+ get: function () { return chunk3YIX4DFI_cjs.DEFAULT_OAUTH_SCOPES; }
125
125
  });
126
126
  Object.defineProperty(exports, "EFFECTIVE_SUBSCRIPTION_STATUSES", {
127
127
  enumerable: true,
128
- get: function () { return chunkMLYUDFV4_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
128
+ get: function () { return chunk3YIX4DFI_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
129
129
  });
130
130
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
131
131
  enumerable: true,
132
- get: function () { return chunkMLYUDFV4_cjs.FFIDAnnouncementBadge; }
132
+ get: function () { return chunk3YIX4DFI_cjs.FFIDAnnouncementBadge; }
133
133
  });
134
134
  Object.defineProperty(exports, "FFIDAnnouncementList", {
135
135
  enumerable: true,
136
- get: function () { return chunkMLYUDFV4_cjs.FFIDAnnouncementList; }
136
+ get: function () { return chunk3YIX4DFI_cjs.FFIDAnnouncementList; }
137
137
  });
138
138
  Object.defineProperty(exports, "FFIDCatalogHashError", {
139
139
  enumerable: true,
140
- get: function () { return chunkMLYUDFV4_cjs.FFIDCatalogHashError; }
140
+ get: function () { return chunk3YIX4DFI_cjs.FFIDCatalogHashError; }
141
141
  });
142
142
  Object.defineProperty(exports, "FFIDInquiryForm", {
143
143
  enumerable: true,
144
- get: function () { return chunkMLYUDFV4_cjs.FFIDInquiryForm; }
144
+ get: function () { return chunk3YIX4DFI_cjs.FFIDInquiryForm; }
145
145
  });
146
146
  Object.defineProperty(exports, "FFIDLoginButton", {
147
147
  enumerable: true,
148
- get: function () { return chunkMLYUDFV4_cjs.FFIDLoginButton; }
148
+ get: function () { return chunk3YIX4DFI_cjs.FFIDLoginButton; }
149
149
  });
150
150
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
151
151
  enumerable: true,
152
- get: function () { return chunkMLYUDFV4_cjs.FFIDOrganizationSwitcher; }
152
+ get: function () { return chunk3YIX4DFI_cjs.FFIDOrganizationSwitcher; }
153
153
  });
154
154
  Object.defineProperty(exports, "FFIDProvider", {
155
155
  enumerable: true,
156
- get: function () { return chunkMLYUDFV4_cjs.FFIDProvider; }
156
+ get: function () { return chunk3YIX4DFI_cjs.FFIDProvider; }
157
157
  });
158
158
  Object.defineProperty(exports, "FFIDSDKError", {
159
159
  enumerable: true,
160
- get: function () { return chunkMLYUDFV4_cjs.FFIDSDKError; }
160
+ get: function () { return chunk3YIX4DFI_cjs.FFIDSDKError; }
161
161
  });
162
162
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
163
163
  enumerable: true,
164
- get: function () { return chunkMLYUDFV4_cjs.FFIDSubscriptionBadge; }
164
+ get: function () { return chunk3YIX4DFI_cjs.FFIDSubscriptionBadge; }
165
165
  });
166
166
  Object.defineProperty(exports, "FFIDUserMenu", {
167
167
  enumerable: true,
168
- get: function () { return chunkMLYUDFV4_cjs.FFIDUserMenu; }
168
+ get: function () { return chunk3YIX4DFI_cjs.FFIDUserMenu; }
169
169
  });
170
170
  Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
171
171
  enumerable: true,
172
- get: function () { return chunkMLYUDFV4_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
172
+ get: function () { return chunk3YIX4DFI_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
173
173
  });
174
174
  Object.defineProperty(exports, "FFID_CATALOG_ENVIRONMENTS", {
175
175
  enumerable: true,
176
- get: function () { return chunkMLYUDFV4_cjs.FFID_CATALOG_ENVIRONMENTS; }
176
+ get: function () { return chunk3YIX4DFI_cjs.FFID_CATALOG_ENVIRONMENTS; }
177
177
  });
178
178
  Object.defineProperty(exports, "FFID_CATALOG_PUBLICATION_STATUSES", {
179
179
  enumerable: true,
180
- get: function () { return chunkMLYUDFV4_cjs.FFID_CATALOG_PUBLICATION_STATUSES; }
180
+ get: function () { return chunk3YIX4DFI_cjs.FFID_CATALOG_PUBLICATION_STATUSES; }
181
181
  });
182
182
  Object.defineProperty(exports, "FFID_ERROR_CODES", {
183
183
  enumerable: true,
184
- get: function () { return chunkMLYUDFV4_cjs.FFID_ERROR_CODES; }
184
+ get: function () { return chunk3YIX4DFI_cjs.FFID_ERROR_CODES; }
185
185
  });
186
186
  Object.defineProperty(exports, "FFID_INQUIRY_ACQUISITION_SOURCES", {
187
187
  enumerable: true,
188
- get: function () { return chunkMLYUDFV4_cjs.FFID_INQUIRY_ACQUISITION_SOURCES; }
188
+ get: function () { return chunk3YIX4DFI_cjs.FFID_INQUIRY_ACQUISITION_SOURCES; }
189
189
  });
190
190
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
191
191
  enumerable: true,
192
- get: function () { return chunkMLYUDFV4_cjs.FFID_INQUIRY_CATEGORIES; }
192
+ get: function () { return chunk3YIX4DFI_cjs.FFID_INQUIRY_CATEGORIES; }
193
193
  });
194
194
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
195
195
  enumerable: true,
196
- get: function () { return chunkMLYUDFV4_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
196
+ get: function () { return chunk3YIX4DFI_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
197
197
  });
198
198
  Object.defineProperty(exports, "canonicalizeCatalogValue", {
199
199
  enumerable: true,
200
- get: function () { return chunkMLYUDFV4_cjs.canonicalizeCatalogValue; }
200
+ get: function () { return chunk3YIX4DFI_cjs.canonicalizeCatalogValue; }
201
201
  });
202
202
  Object.defineProperty(exports, "clearState", {
203
203
  enumerable: true,
204
- get: function () { return chunkMLYUDFV4_cjs.cleanupStateStorage; }
204
+ get: function () { return chunk3YIX4DFI_cjs.cleanupStateStorage; }
205
205
  });
206
206
  Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
207
207
  enumerable: true,
208
- get: function () { return chunkMLYUDFV4_cjs.computeEffectiveStatusFromSession; }
208
+ get: function () { return chunk3YIX4DFI_cjs.computeEffectiveStatusFromSession; }
209
209
  });
210
210
  Object.defineProperty(exports, "computeFFIDCheckoutCopyHash", {
211
211
  enumerable: true,
212
- get: function () { return chunkMLYUDFV4_cjs.computeFFIDCheckoutCopyHash; }
212
+ get: function () { return chunk3YIX4DFI_cjs.computeFFIDCheckoutCopyHash; }
213
213
  });
214
214
  Object.defineProperty(exports, "computeLegalDisclosureHash", {
215
215
  enumerable: true,
216
- get: function () { return chunkMLYUDFV4_cjs.computeLegalDisclosureHash; }
216
+ get: function () { return chunk3YIX4DFI_cjs.computeLegalDisclosureHash; }
217
217
  });
218
218
  Object.defineProperty(exports, "computePaymentConfigurationHash", {
219
219
  enumerable: true,
220
- get: function () { return chunkMLYUDFV4_cjs.computePaymentConfigurationHash; }
220
+ get: function () { return chunk3YIX4DFI_cjs.computePaymentConfigurationHash; }
221
221
  });
222
222
  Object.defineProperty(exports, "computePraxisCopyHash", {
223
223
  enumerable: true,
224
- get: function () { return chunkMLYUDFV4_cjs.computePraxisCopyHash; }
224
+ get: function () { return chunk3YIX4DFI_cjs.computePraxisCopyHash; }
225
225
  });
226
226
  Object.defineProperty(exports, "computeScopeHash", {
227
227
  enumerable: true,
228
- get: function () { return chunkMLYUDFV4_cjs.computeScopeHash; }
228
+ get: function () { return chunk3YIX4DFI_cjs.computeScopeHash; }
229
229
  });
230
230
  Object.defineProperty(exports, "computeTaxConfigurationHash", {
231
231
  enumerable: true,
232
- get: function () { return chunkMLYUDFV4_cjs.computeTaxConfigurationHash; }
232
+ get: function () { return chunk3YIX4DFI_cjs.computeTaxConfigurationHash; }
233
233
  });
234
234
  Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
235
235
  enumerable: true,
236
- get: function () { return chunkMLYUDFV4_cjs.createFFIDAnnouncementsClient; }
236
+ get: function () { return chunk3YIX4DFI_cjs.createFFIDAnnouncementsClient; }
237
237
  });
238
238
  Object.defineProperty(exports, "createFFIDClient", {
239
239
  enumerable: true,
240
- get: function () { return chunkMLYUDFV4_cjs.createFFIDClient; }
240
+ get: function () { return chunk3YIX4DFI_cjs.createFFIDClient; }
241
241
  });
242
242
  Object.defineProperty(exports, "createTokenStore", {
243
243
  enumerable: true,
244
- get: function () { return chunkMLYUDFV4_cjs.createTokenStore; }
244
+ get: function () { return chunk3YIX4DFI_cjs.createTokenStore; }
245
245
  });
246
246
  Object.defineProperty(exports, "generateCodeChallenge", {
247
247
  enumerable: true,
248
- get: function () { return chunkMLYUDFV4_cjs.generateCodeChallenge; }
248
+ get: function () { return chunk3YIX4DFI_cjs.generateCodeChallenge; }
249
249
  });
250
250
  Object.defineProperty(exports, "generateCodeVerifier", {
251
251
  enumerable: true,
252
- get: function () { return chunkMLYUDFV4_cjs.generateCodeVerifier; }
252
+ get: function () { return chunk3YIX4DFI_cjs.generateCodeVerifier; }
253
253
  });
254
254
  Object.defineProperty(exports, "handleRedirectCallback", {
255
255
  enumerable: true,
256
- get: function () { return chunkMLYUDFV4_cjs.handleRedirectCallback; }
256
+ get: function () { return chunk3YIX4DFI_cjs.handleRedirectCallback; }
257
257
  });
258
258
  Object.defineProperty(exports, "hasAccessFromUserinfo", {
259
259
  enumerable: true,
260
- get: function () { return chunkMLYUDFV4_cjs.hasAccessFromUserinfo; }
260
+ get: function () { return chunk3YIX4DFI_cjs.hasAccessFromUserinfo; }
261
261
  });
262
262
  Object.defineProperty(exports, "hashCanonicalJson", {
263
263
  enumerable: true,
264
- get: function () { return chunkMLYUDFV4_cjs.hashCanonicalJson; }
264
+ get: function () { return chunk3YIX4DFI_cjs.hashCanonicalJson; }
265
265
  });
266
266
  Object.defineProperty(exports, "isBlockedFromUserinfo", {
267
267
  enumerable: true,
268
- get: function () { return chunkMLYUDFV4_cjs.isBlockedFromUserinfo; }
268
+ get: function () { return chunk3YIX4DFI_cjs.isBlockedFromUserinfo; }
269
269
  });
270
270
  Object.defineProperty(exports, "isFFIDInquiryAcquisitionSource", {
271
271
  enumerable: true,
272
- get: function () { return chunkMLYUDFV4_cjs.isFFIDInquiryAcquisitionSource; }
272
+ get: function () { return chunk3YIX4DFI_cjs.isFFIDInquiryAcquisitionSource; }
273
273
  });
274
274
  Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
275
275
  enumerable: true,
276
- get: function () { return chunkMLYUDFV4_cjs.isFFIDInquiryCategorySite2026; }
276
+ get: function () { return chunk3YIX4DFI_cjs.isFFIDInquiryCategorySite2026; }
277
277
  });
278
278
  Object.defineProperty(exports, "normalizeRedirectUri", {
279
279
  enumerable: true,
280
- get: function () { return chunkMLYUDFV4_cjs.normalizeRedirectUri; }
280
+ get: function () { return chunk3YIX4DFI_cjs.normalizeRedirectUri; }
281
281
  });
282
282
  Object.defineProperty(exports, "retrieveCodeVerifier", {
283
283
  enumerable: true,
284
- get: function () { return chunkMLYUDFV4_cjs.retrieveCodeVerifier; }
284
+ get: function () { return chunk3YIX4DFI_cjs.retrieveCodeVerifier; }
285
285
  });
286
286
  Object.defineProperty(exports, "retrieveState", {
287
287
  enumerable: true,
288
- get: function () { return chunkMLYUDFV4_cjs.retrieveState; }
288
+ get: function () { return chunk3YIX4DFI_cjs.retrieveState; }
289
289
  });
290
290
  Object.defineProperty(exports, "sha256Hex", {
291
291
  enumerable: true,
292
- get: function () { return chunkMLYUDFV4_cjs.sha256Hex; }
292
+ get: function () { return chunk3YIX4DFI_cjs.sha256Hex; }
293
293
  });
294
294
  Object.defineProperty(exports, "storeCodeVerifier", {
295
295
  enumerable: true,
296
- get: function () { return chunkMLYUDFV4_cjs.storeCodeVerifier; }
296
+ get: function () { return chunk3YIX4DFI_cjs.storeCodeVerifier; }
297
297
  });
298
298
  Object.defineProperty(exports, "storeState", {
299
299
  enumerable: true,
300
- get: function () { return chunkMLYUDFV4_cjs.storeState; }
300
+ get: function () { return chunk3YIX4DFI_cjs.storeState; }
301
301
  });
302
302
  Object.defineProperty(exports, "useFFID", {
303
303
  enumerable: true,
304
- get: function () { return chunkMLYUDFV4_cjs.useFFID; }
304
+ get: function () { return chunk3YIX4DFI_cjs.useFFID; }
305
305
  });
306
306
  Object.defineProperty(exports, "useFFIDAnnouncements", {
307
307
  enumerable: true,
308
- get: function () { return chunkMLYUDFV4_cjs.useFFIDAnnouncements; }
308
+ get: function () { return chunk3YIX4DFI_cjs.useFFIDAnnouncements; }
309
309
  });
310
310
  Object.defineProperty(exports, "useSubscription", {
311
311
  enumerable: true,
312
- get: function () { return chunkMLYUDFV4_cjs.useSubscription; }
312
+ get: function () { return chunk3YIX4DFI_cjs.useSubscription; }
313
313
  });
314
314
  Object.defineProperty(exports, "validatePublishedCatalog", {
315
315
  enumerable: true,
316
- get: function () { return chunkMLYUDFV4_cjs.validatePublishedCatalog; }
316
+ get: function () { return chunk3YIX4DFI_cjs.validatePublishedCatalog; }
317
317
  });
318
318
  Object.defineProperty(exports, "withSubscription", {
319
319
  enumerable: true,
320
- get: function () { return chunkMLYUDFV4_cjs.withSubscription; }
320
+ get: function () { return chunk3YIX4DFI_cjs.withSubscription; }
321
321
  });
322
322
  Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
323
323
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FFIDSubscriptionStatus, a as FFIDOAuthUserInfoSubscription, b as FFIDPrompt, c as FFIDConfig, d as FFIDApiResponse, e as FFIDSessionResponse, f as FFIDSignOutResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, T as TokenStore, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, x as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, y as FFIDAnnouncementsLogger } from './index-_-MqJCN3.cjs';
2
- export { z as Announcement, B as AnnouncementStatus, C as AnnouncementType, D as EFFECTIVE_SUBSCRIPTION_STATUSES, G as FFIDAnnouncementBadge, H as FFIDAnnouncementList, I as FFIDAnnouncementsError, J as FFIDAnnouncementsErrorCode, K as FFIDAnnouncementsServerResponse, M as FFIDApiResponseMeta, N as FFIDCacheConfig, O as FFIDContextValue, P as FFIDInquiryAcquisitionSource, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, U as FFIDInquiryFormCategoryItem, V as FFIDInquiryFormClassNames, W as FFIDInquiryFormLegalLayout, X as FFIDInquiryFormOrganization, Y as FFIDInquiryFormPlaceholderContext, Z as FFIDInquiryFormPrefill, _ as FFIDInquiryFormProps, $ as FFIDInquiryFormSubmitData, a0 as FFIDInquiryFormSubmitResult, a1 as FFIDJwtClaims, a2 as FFIDLoginButton, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDSeatAssignmentClaim, a6 as FFIDSeatAssignmentStatus, a7 as FFIDSeatModel, a8 as FFIDServiceAccessDenialReason, a9 as FFIDServiceAccessFailPolicy, aa as FFIDSubscriptionBadge, ab as FFIDUserMenu, ac as FFID_INQUIRY_ACQUISITION_SOURCES, ad as FFID_INQUIRY_CATEGORIES, ae as FFID_INQUIRY_CATEGORIES_SITE_2026, af as TokenData, ag as UseFFIDAnnouncementsOptions, ah as UseFFIDAnnouncementsReturn, ai as createTokenStore, aj as isFFIDInquiryAcquisitionSource, ak as isFFIDInquiryCategorySite2026, al as useFFIDAnnouncements } from './index-_-MqJCN3.cjs';
1
+ import { F as FFIDSubscriptionStatus, a as FFIDOAuthUserInfoSubscription, b as FFIDAccountType, c as FFIDPrompt, d as FFIDConfig, e as FFIDApiResponse, f as FFIDSessionResponse, g as FFIDSignOutResult, h as FFIDError, i as FFIDSubscriptionCheckResponse, j as FFIDCheckServiceAccessParams, k as FFIDServiceAccessDecision, l as FFIDAnalyticsConfig, m as FFIDVerifyAccessTokenOptions, n as FFIDOAuthUserInfo, o as FFIDInquiryCreateParams, p as FFIDInquiryCreateResponse, T as TokenStore, q as FFIDAuthMode, r as FFIDLogger, s as FFIDCacheAdapter, t as FFIDUser, u as FFIDOrganization, v as FFIDSubscription, w as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-BMKhKhzF.cjs';
2
+ export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryAcquisitionSource, R as FFIDInquiryCategory, S as FFIDInquiryCategorySite2026, U as FFIDInquiryForm, V as FFIDInquiryFormCategoryItem, W as FFIDInquiryFormClassNames, X as FFIDInquiryFormLegalLayout, Y as FFIDInquiryFormOrganization, Z as FFIDInquiryFormPlaceholderContext, _ as FFIDInquiryFormPrefill, $ as FFIDInquiryFormProps, a0 as FFIDInquiryFormSubmitData, a1 as FFIDInquiryFormSubmitResult, a2 as FFIDJwtClaims, a3 as FFIDLoginButton, a4 as FFIDOAuthUserInfoMemberRole, a5 as FFIDOrganizationSwitcher, a6 as FFIDSeatAssignmentClaim, a7 as FFIDSeatAssignmentStatus, a8 as FFIDSeatModel, a9 as FFIDServiceAccessDenialReason, aa as FFIDServiceAccessFailPolicy, ab as FFIDSubscriptionBadge, ac as FFIDUserMenu, ad as FFID_INQUIRY_ACQUISITION_SOURCES, ae as FFID_INQUIRY_CATEGORIES, af as FFID_INQUIRY_CATEGORIES_SITE_2026, ag as TokenData, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as createTokenStore, ak as isFFIDInquiryAcquisitionSource, al as isFFIDInquiryCategorySite2026, am as useFFIDAnnouncements } from './index-BMKhKhzF.cjs';
3
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-BJgVcJyw.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
@@ -1281,6 +1281,8 @@ interface FFIDTokenIntrospectionResponse {
1281
1281
  member_role: FFIDOAuthUserInfoSubscription['memberRole'];
1282
1282
  organization_id: string | null;
1283
1283
  organization_name?: string | null;
1284
+ /** Optional for backward compat with older FFID (< 5.31.0 / #4531). */
1285
+ account_type?: FFIDAccountType | null;
1284
1286
  has_seat_assignment?: boolean;
1285
1287
  seat_assignment?: {
1286
1288
  organization_id?: unknown;
@@ -2712,4 +2714,4 @@ declare function createInquiryMethods(deps: InquiryMethodsDeps): {
2712
2714
  };
2713
2715
  type FFIDInquiryClient = ReturnType<typeof createInquiryMethods>;
2714
2716
 
2715
- export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, type ExchangeCodeForTokensOptions, type FFIDAddMemberParams, type FFIDAddMemberRequest, type FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDAssignableMemberRole, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDCanonicalJsonValue, type FFIDCatalogEnvironment, FFIDCatalogHashError, type FFIDCatalogPublication, type FFIDCatalogPublicationStatus, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, type FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, type FFIDCreateCheckoutParams, type FFIDCreatePortalParams, FFIDError, type FFIDErrorCode, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDInvitationStatus, type FFIDInviteMemberRequest, type FFIDInviteMemberResponse, type FFIDLeaveOrganizationParams, type FFIDLeaveOrganizationResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, type FFIDLoginHistoryEntry, type FFIDLoginHistoryResponse, type FFIDMemberRole, type FFIDMemberStatus, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, type FFIDOAuthTokenResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOrganizationDomain, type FFIDOrganizationDomainsResponse, type FFIDOrganizationMember, type FFIDOrganizationNotificationPreferences, type FFIDOrganizationNotificationPreferencesResponse, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPaymentConfiguration, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, type FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, type FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, type FFIDProvisionMemberPlan, type FFIDProvisionMemberPlanStatus, type FFIDProvisionMemberResult, type FFIDProvisionMemberStatus, type FFIDProvisionOrganizationDryRun, type FFIDProvisionOrganizationMemberInput, type FFIDProvisionOrganizationOutcome, type FFIDProvisionOrganizationParams, type FFIDProvisionOrganizationResponse, type FFIDProvisionUserDryRun, type FFIDProvisionUserOutcome, type FFIDProvisionUserParams, type FFIDProvisionUserProfileInput, type FFIDProvisionUserResponse, type FFIDProvisionedOrganization, type FFIDProvisionedUser, type FFIDPublishedCatalog, type FFIDPublishedPlan, type FFIDRedirectErrorCode, type FFIDRedirectResult, type FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDScopeHashInput, type FFIDScopeHashPlan, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, FFIDSignOutResult, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, type FFIDTaxBehavior, type FFIDTaxConfiguration, type FFIDTokenIntrospectionResponse, type FFIDUpdateMemberRoleResponse, type FFIDUpdateNotificationPreferencesRequest, type FFIDUpdateUserProfileRequest, FFIDUser, type FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type HandleRedirectCallbackClient, type HandleRedirectCallbackOptions, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useRequireActiveSubscription, useSubscription, validatePublishedCatalog, withFFIDAuth, withSubscription };
2717
+ export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, type ExchangeCodeForTokensOptions, FFIDAccountType, type FFIDAddMemberParams, type FFIDAddMemberRequest, type FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDAssignableMemberRole, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDCanonicalJsonValue, type FFIDCatalogEnvironment, FFIDCatalogHashError, type FFIDCatalogPublication, type FFIDCatalogPublicationStatus, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, type FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, type FFIDCreateCheckoutParams, type FFIDCreatePortalParams, FFIDError, type FFIDErrorCode, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDInvitationStatus, type FFIDInviteMemberRequest, type FFIDInviteMemberResponse, type FFIDLeaveOrganizationParams, type FFIDLeaveOrganizationResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, type FFIDLoginHistoryEntry, type FFIDLoginHistoryResponse, type FFIDMemberRole, type FFIDMemberStatus, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, type FFIDOAuthTokenResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOrganizationDomain, type FFIDOrganizationDomainsResponse, type FFIDOrganizationMember, type FFIDOrganizationNotificationPreferences, type FFIDOrganizationNotificationPreferencesResponse, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPaymentConfiguration, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, type FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, type FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, type FFIDProvisionMemberPlan, type FFIDProvisionMemberPlanStatus, type FFIDProvisionMemberResult, type FFIDProvisionMemberStatus, type FFIDProvisionOrganizationDryRun, type FFIDProvisionOrganizationMemberInput, type FFIDProvisionOrganizationOutcome, type FFIDProvisionOrganizationParams, type FFIDProvisionOrganizationResponse, type FFIDProvisionUserDryRun, type FFIDProvisionUserOutcome, type FFIDProvisionUserParams, type FFIDProvisionUserProfileInput, type FFIDProvisionUserResponse, type FFIDProvisionedOrganization, type FFIDProvisionedUser, type FFIDPublishedCatalog, type FFIDPublishedPlan, type FFIDRedirectErrorCode, type FFIDRedirectResult, type FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDScopeHashInput, type FFIDScopeHashPlan, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, FFIDSignOutResult, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, type FFIDTaxBehavior, type FFIDTaxConfiguration, type FFIDTokenIntrospectionResponse, type FFIDUpdateMemberRoleResponse, type FFIDUpdateNotificationPreferencesRequest, type FFIDUpdateUserProfileRequest, FFIDUser, type FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type HandleRedirectCallbackClient, type HandleRedirectCallbackOptions, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useRequireActiveSubscription, useSubscription, validatePublishedCatalog, withFFIDAuth, withSubscription };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FFIDSubscriptionStatus, a as FFIDOAuthUserInfoSubscription, b as FFIDPrompt, c as FFIDConfig, d as FFIDApiResponse, e as FFIDSessionResponse, f as FFIDSignOutResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, T as TokenStore, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, x as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, y as FFIDAnnouncementsLogger } from './index-_-MqJCN3.js';
2
- export { z as Announcement, B as AnnouncementStatus, C as AnnouncementType, D as EFFECTIVE_SUBSCRIPTION_STATUSES, G as FFIDAnnouncementBadge, H as FFIDAnnouncementList, I as FFIDAnnouncementsError, J as FFIDAnnouncementsErrorCode, K as FFIDAnnouncementsServerResponse, M as FFIDApiResponseMeta, N as FFIDCacheConfig, O as FFIDContextValue, P as FFIDInquiryAcquisitionSource, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, U as FFIDInquiryFormCategoryItem, V as FFIDInquiryFormClassNames, W as FFIDInquiryFormLegalLayout, X as FFIDInquiryFormOrganization, Y as FFIDInquiryFormPlaceholderContext, Z as FFIDInquiryFormPrefill, _ as FFIDInquiryFormProps, $ as FFIDInquiryFormSubmitData, a0 as FFIDInquiryFormSubmitResult, a1 as FFIDJwtClaims, a2 as FFIDLoginButton, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDSeatAssignmentClaim, a6 as FFIDSeatAssignmentStatus, a7 as FFIDSeatModel, a8 as FFIDServiceAccessDenialReason, a9 as FFIDServiceAccessFailPolicy, aa as FFIDSubscriptionBadge, ab as FFIDUserMenu, ac as FFID_INQUIRY_ACQUISITION_SOURCES, ad as FFID_INQUIRY_CATEGORIES, ae as FFID_INQUIRY_CATEGORIES_SITE_2026, af as TokenData, ag as UseFFIDAnnouncementsOptions, ah as UseFFIDAnnouncementsReturn, ai as createTokenStore, aj as isFFIDInquiryAcquisitionSource, ak as isFFIDInquiryCategorySite2026, al as useFFIDAnnouncements } from './index-_-MqJCN3.js';
1
+ import { F as FFIDSubscriptionStatus, a as FFIDOAuthUserInfoSubscription, b as FFIDAccountType, c as FFIDPrompt, d as FFIDConfig, e as FFIDApiResponse, f as FFIDSessionResponse, g as FFIDSignOutResult, h as FFIDError, i as FFIDSubscriptionCheckResponse, j as FFIDCheckServiceAccessParams, k as FFIDServiceAccessDecision, l as FFIDAnalyticsConfig, m as FFIDVerifyAccessTokenOptions, n as FFIDOAuthUserInfo, o as FFIDInquiryCreateParams, p as FFIDInquiryCreateResponse, T as TokenStore, q as FFIDAuthMode, r as FFIDLogger, s as FFIDCacheAdapter, t as FFIDUser, u as FFIDOrganization, v as FFIDSubscription, w as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-BMKhKhzF.js';
2
+ export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryAcquisitionSource, R as FFIDInquiryCategory, S as FFIDInquiryCategorySite2026, U as FFIDInquiryForm, V as FFIDInquiryFormCategoryItem, W as FFIDInquiryFormClassNames, X as FFIDInquiryFormLegalLayout, Y as FFIDInquiryFormOrganization, Z as FFIDInquiryFormPlaceholderContext, _ as FFIDInquiryFormPrefill, $ as FFIDInquiryFormProps, a0 as FFIDInquiryFormSubmitData, a1 as FFIDInquiryFormSubmitResult, a2 as FFIDJwtClaims, a3 as FFIDLoginButton, a4 as FFIDOAuthUserInfoMemberRole, a5 as FFIDOrganizationSwitcher, a6 as FFIDSeatAssignmentClaim, a7 as FFIDSeatAssignmentStatus, a8 as FFIDSeatModel, a9 as FFIDServiceAccessDenialReason, aa as FFIDServiceAccessFailPolicy, ab as FFIDSubscriptionBadge, ac as FFIDUserMenu, ad as FFID_INQUIRY_ACQUISITION_SOURCES, ae as FFID_INQUIRY_CATEGORIES, af as FFID_INQUIRY_CATEGORIES_SITE_2026, ag as TokenData, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as createTokenStore, ak as isFFIDInquiryAcquisitionSource, al as isFFIDInquiryCategorySite2026, am as useFFIDAnnouncements } from './index-BMKhKhzF.js';
3
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-BJgVcJyw.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
@@ -1281,6 +1281,8 @@ interface FFIDTokenIntrospectionResponse {
1281
1281
  member_role: FFIDOAuthUserInfoSubscription['memberRole'];
1282
1282
  organization_id: string | null;
1283
1283
  organization_name?: string | null;
1284
+ /** Optional for backward compat with older FFID (< 5.31.0 / #4531). */
1285
+ account_type?: FFIDAccountType | null;
1284
1286
  has_seat_assignment?: boolean;
1285
1287
  seat_assignment?: {
1286
1288
  organization_id?: unknown;
@@ -2712,4 +2714,4 @@ declare function createInquiryMethods(deps: InquiryMethodsDeps): {
2712
2714
  };
2713
2715
  type FFIDInquiryClient = ReturnType<typeof createInquiryMethods>;
2714
2716
 
2715
- export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, type ExchangeCodeForTokensOptions, type FFIDAddMemberParams, type FFIDAddMemberRequest, type FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDAssignableMemberRole, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDCanonicalJsonValue, type FFIDCatalogEnvironment, FFIDCatalogHashError, type FFIDCatalogPublication, type FFIDCatalogPublicationStatus, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, type FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, type FFIDCreateCheckoutParams, type FFIDCreatePortalParams, FFIDError, type FFIDErrorCode, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDInvitationStatus, type FFIDInviteMemberRequest, type FFIDInviteMemberResponse, type FFIDLeaveOrganizationParams, type FFIDLeaveOrganizationResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, type FFIDLoginHistoryEntry, type FFIDLoginHistoryResponse, type FFIDMemberRole, type FFIDMemberStatus, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, type FFIDOAuthTokenResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOrganizationDomain, type FFIDOrganizationDomainsResponse, type FFIDOrganizationMember, type FFIDOrganizationNotificationPreferences, type FFIDOrganizationNotificationPreferencesResponse, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPaymentConfiguration, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, type FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, type FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, type FFIDProvisionMemberPlan, type FFIDProvisionMemberPlanStatus, type FFIDProvisionMemberResult, type FFIDProvisionMemberStatus, type FFIDProvisionOrganizationDryRun, type FFIDProvisionOrganizationMemberInput, type FFIDProvisionOrganizationOutcome, type FFIDProvisionOrganizationParams, type FFIDProvisionOrganizationResponse, type FFIDProvisionUserDryRun, type FFIDProvisionUserOutcome, type FFIDProvisionUserParams, type FFIDProvisionUserProfileInput, type FFIDProvisionUserResponse, type FFIDProvisionedOrganization, type FFIDProvisionedUser, type FFIDPublishedCatalog, type FFIDPublishedPlan, type FFIDRedirectErrorCode, type FFIDRedirectResult, type FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDScopeHashInput, type FFIDScopeHashPlan, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, FFIDSignOutResult, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, type FFIDTaxBehavior, type FFIDTaxConfiguration, type FFIDTokenIntrospectionResponse, type FFIDUpdateMemberRoleResponse, type FFIDUpdateNotificationPreferencesRequest, type FFIDUpdateUserProfileRequest, FFIDUser, type FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type HandleRedirectCallbackClient, type HandleRedirectCallbackOptions, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useRequireActiveSubscription, useSubscription, validatePublishedCatalog, withFFIDAuth, withSubscription };
2717
+ export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, type ExchangeCodeForTokensOptions, FFIDAccountType, type FFIDAddMemberParams, type FFIDAddMemberRequest, type FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDAssignableMemberRole, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDCanonicalJsonValue, type FFIDCatalogEnvironment, FFIDCatalogHashError, type FFIDCatalogPublication, type FFIDCatalogPublicationStatus, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, type FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, type FFIDCreateCheckoutParams, type FFIDCreatePortalParams, FFIDError, type FFIDErrorCode, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDInvitationStatus, type FFIDInviteMemberRequest, type FFIDInviteMemberResponse, type FFIDLeaveOrganizationParams, type FFIDLeaveOrganizationResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, type FFIDLoginHistoryEntry, type FFIDLoginHistoryResponse, type FFIDMemberRole, type FFIDMemberStatus, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, type FFIDOAuthTokenResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOrganizationDomain, type FFIDOrganizationDomainsResponse, type FFIDOrganizationMember, type FFIDOrganizationNotificationPreferences, type FFIDOrganizationNotificationPreferencesResponse, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPaymentConfiguration, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, type FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, type FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, type FFIDProvisionMemberPlan, type FFIDProvisionMemberPlanStatus, type FFIDProvisionMemberResult, type FFIDProvisionMemberStatus, type FFIDProvisionOrganizationDryRun, type FFIDProvisionOrganizationMemberInput, type FFIDProvisionOrganizationOutcome, type FFIDProvisionOrganizationParams, type FFIDProvisionOrganizationResponse, type FFIDProvisionUserDryRun, type FFIDProvisionUserOutcome, type FFIDProvisionUserParams, type FFIDProvisionUserProfileInput, type FFIDProvisionUserResponse, type FFIDProvisionedOrganization, type FFIDProvisionedUser, type FFIDPublishedCatalog, type FFIDPublishedPlan, type FFIDRedirectErrorCode, type FFIDRedirectResult, type FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDScopeHashInput, type FFIDScopeHashPlan, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, FFIDSignOutResult, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, type FFIDTaxBehavior, type FFIDTaxConfiguration, type FFIDTokenIntrospectionResponse, type FFIDUpdateMemberRoleResponse, type FFIDUpdateNotificationPreferencesRequest, type FFIDUpdateUserProfileRequest, FFIDUser, type FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type HandleRedirectCallbackClient, type HandleRedirectCallbackOptions, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useRequireActiveSubscription, useSubscription, validatePublishedCatalog, withFFIDAuth, withSubscription };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useFFIDContext, useSubscription } from './chunk-4E26AZIZ.js';
2
- export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDCatalogHashError, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-4E26AZIZ.js';
1
+ import { useFFIDContext, useSubscription } from './chunk-SLYSWV4S.js';
2
+ export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDCatalogHashError, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-SLYSWV4S.js';
3
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-G7VOX64X.js';
4
4
  import { useEffect, useRef } from 'react';
5
5
  import { jsx, Fragment } from 'react/jsx-runtime';
@@ -129,15 +129,23 @@ function normalizeSeatAssignmentClaim(raw, organizationId, subscriptionId) {
129
129
  status
130
130
  };
131
131
  }
132
+ var ACCOUNT_TYPE_WIRE_VALUES = ["personal", "organization"];
133
+ function normalizeAccountTypeValue(value) {
134
+ if (value === null) return null;
135
+ return typeof value === "string" && ACCOUNT_TYPE_WIRE_VALUES.includes(value) ? value : void 0;
136
+ }
132
137
  function normalizeUserinfo(raw) {
133
138
  const hasOrganizationId = hasOwnKey(raw, "organization_id");
134
139
  const hasOrganizationName = hasOwnKey(raw, "organization_name");
135
140
  const hasOrganizationMemberRole = hasOwnKey(raw, "organization_member_role");
136
141
  const organizationMemberRole = hasOrganizationMemberRole ? raw.organization_member_role ?? null : raw.subscription ? raw.subscription.member_role ?? null : void 0;
142
+ const hasOrganizationAccountType = hasOwnKey(raw, "organization_account_type");
143
+ const organizationAccountType = hasOrganizationAccountType ? normalizeAccountTypeValue(raw.organization_account_type) : raw.subscription && hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0;
137
144
  const organizationFields = {
138
145
  ...hasOrganizationId ? { organizationId: raw.organization_id ?? null } : {},
139
146
  ...hasOrganizationId || hasOrganizationName ? { organizationName: raw.organization_name ?? null } : {},
140
- ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {}
147
+ ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {},
148
+ ...organizationAccountType !== void 0 ? { organizationAccountType } : {}
141
149
  };
142
150
  return {
143
151
  sub: raw.sub,
@@ -161,6 +169,11 @@ function normalizeUserinfo(raw) {
161
169
  memberRole: raw.subscription.member_role ?? null,
162
170
  organizationId: raw.subscription.organization_id ?? null,
163
171
  organizationName: hasOwnKey(raw.subscription, "organization_name") ? raw.subscription.organization_name ?? null : null,
172
+ // #4531: `undefined` means an older FFID omitted the field on the
173
+ // wire — genuinely unknown, not "no account type". Do not default
174
+ // to either literal. An unrecognized non-null wire value folds to
175
+ // `undefined` the same way (see `normalizeAccountTypeValue`).
176
+ accountType: hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0,
164
177
  hasSeatAssignment: raw.subscription.has_seat_assignment ?? false,
165
178
  seatAssignment: hasOwnKey(raw.subscription, "seat_assignment") ? normalizeSeatAssignmentClaim(
166
179
  raw.subscription.seat_assignment,
@@ -464,6 +477,9 @@ function createVerifyAccessToken(deps) {
464
477
  member_role: introspectResponse.subscription.member_role,
465
478
  organization_id: introspectResponse.subscription.organization_id,
466
479
  organization_name: introspectResponse.subscription.organization_name ?? null,
480
+ // #4531: forward account_type through the introspect → userinfo
481
+ // normalization boundary (mirrors organization_name above).
482
+ account_type: introspectResponse.subscription.account_type ?? null,
467
483
  has_seat_assignment: introspectResponse.subscription.has_seat_assignment ?? false,
468
484
  ...Object.prototype.hasOwnProperty.call(introspectResponse.subscription, "seat_assignment") ? { seat_assignment: introspectResponse.subscription.seat_assignment } : {},
469
485
  // #4333: forward pack entitlement codes through the introspect →
@@ -1652,7 +1668,7 @@ function validateTokenResponse(tokenResponse) {
1652
1668
  }
1653
1669
 
1654
1670
  // src/client/version-check.ts
1655
- var SDK_VERSION = "5.30.0";
1671
+ var SDK_VERSION = "5.31.1";
1656
1672
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1657
1673
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1658
1674
  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, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-CEta_n9x.cjs';
2
- export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-CEta_n9x.cjs';
1
+ import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-BTTbDVj7.cjs';
2
+ export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-BTTbDVj7.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-Cjb9J0rL.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, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-MkXk4hun.js';
2
- export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-MkXk4hun.js';
1
+ import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-C5lc7SkY.js';
2
+ export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-C5lc7SkY.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-Cjb9J0rL.js';
@@ -128,15 +128,23 @@ function normalizeSeatAssignmentClaim(raw, organizationId, subscriptionId) {
128
128
  status
129
129
  };
130
130
  }
131
+ var ACCOUNT_TYPE_WIRE_VALUES = ["personal", "organization"];
132
+ function normalizeAccountTypeValue(value) {
133
+ if (value === null) return null;
134
+ return typeof value === "string" && ACCOUNT_TYPE_WIRE_VALUES.includes(value) ? value : void 0;
135
+ }
131
136
  function normalizeUserinfo(raw) {
132
137
  const hasOrganizationId = hasOwnKey(raw, "organization_id");
133
138
  const hasOrganizationName = hasOwnKey(raw, "organization_name");
134
139
  const hasOrganizationMemberRole = hasOwnKey(raw, "organization_member_role");
135
140
  const organizationMemberRole = hasOrganizationMemberRole ? raw.organization_member_role ?? null : raw.subscription ? raw.subscription.member_role ?? null : void 0;
141
+ const hasOrganizationAccountType = hasOwnKey(raw, "organization_account_type");
142
+ const organizationAccountType = hasOrganizationAccountType ? normalizeAccountTypeValue(raw.organization_account_type) : raw.subscription && hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0;
136
143
  const organizationFields = {
137
144
  ...hasOrganizationId ? { organizationId: raw.organization_id ?? null } : {},
138
145
  ...hasOrganizationId || hasOrganizationName ? { organizationName: raw.organization_name ?? null } : {},
139
- ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {}
146
+ ...organizationMemberRole !== void 0 ? { organizationMemberRole } : {},
147
+ ...organizationAccountType !== void 0 ? { organizationAccountType } : {}
140
148
  };
141
149
  return {
142
150
  sub: raw.sub,
@@ -160,6 +168,11 @@ function normalizeUserinfo(raw) {
160
168
  memberRole: raw.subscription.member_role ?? null,
161
169
  organizationId: raw.subscription.organization_id ?? null,
162
170
  organizationName: hasOwnKey(raw.subscription, "organization_name") ? raw.subscription.organization_name ?? null : null,
171
+ // #4531: `undefined` means an older FFID omitted the field on the
172
+ // wire — genuinely unknown, not "no account type". Do not default
173
+ // to either literal. An unrecognized non-null wire value folds to
174
+ // `undefined` the same way (see `normalizeAccountTypeValue`).
175
+ accountType: hasOwnKey(raw.subscription, "account_type") ? normalizeAccountTypeValue(raw.subscription.account_type) : void 0,
163
176
  hasSeatAssignment: raw.subscription.has_seat_assignment ?? false,
164
177
  seatAssignment: hasOwnKey(raw.subscription, "seat_assignment") ? normalizeSeatAssignmentClaim(
165
178
  raw.subscription.seat_assignment,
@@ -463,6 +476,9 @@ function createVerifyAccessToken(deps) {
463
476
  member_role: introspectResponse.subscription.member_role,
464
477
  organization_id: introspectResponse.subscription.organization_id,
465
478
  organization_name: introspectResponse.subscription.organization_name ?? null,
479
+ // #4531: forward account_type through the introspect → userinfo
480
+ // normalization boundary (mirrors organization_name above).
481
+ account_type: introspectResponse.subscription.account_type ?? null,
466
482
  has_seat_assignment: introspectResponse.subscription.has_seat_assignment ?? false,
467
483
  ...Object.prototype.hasOwnProperty.call(introspectResponse.subscription, "seat_assignment") ? { seat_assignment: introspectResponse.subscription.seat_assignment } : {},
468
484
  // #4333: forward pack entitlement codes through the introspect →
@@ -1651,7 +1667,7 @@ function validateTokenResponse(tokenResponse) {
1651
1667
  }
1652
1668
 
1653
1669
  // src/client/version-check.ts
1654
- var SDK_VERSION = "5.30.0";
1670
+ var SDK_VERSION = "5.31.1";
1655
1671
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1656
1672
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1657
1673
  function sdkHeaders() {
@@ -1,4 +1,4 @@
1
- import { q as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-CEta_n9x.cjs';
1
+ import { q as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-BTTbDVj7.cjs';
2
2
  import '../../types-Cjb9J0rL.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { q as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-MkXk4hun.js';
1
+ import { q as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-C5lc7SkY.js';
2
2
  import '../../types-Cjb9J0rL.js';
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feelflow/ffid-sdk",
3
- "version": "5.30.0",
3
+ "version": "5.31.1",
4
4
  "description": "FeelFlow ID Platform SDK for React/Next.js applications",
5
5
  "keywords": [
6
6
  "feelflow",