@feelflow/ffid-sdk 6.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
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
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
- 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';
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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-Bwr0FBrV.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
6
6
  import 'zod';
@@ -1087,6 +1087,151 @@ interface FFIDLeaveOrganizationResponse {
1087
1087
  message: string;
1088
1088
  }
1089
1089
 
1090
+ /**
1091
+ * Types for the organization profile + public logo-wall APIs (#5485 / #5547).
1092
+ *
1093
+ * Mirrors:
1094
+ * - `GET/PUT /api/v1/organizations/ext/profile`
1095
+ * - `POST /api/v1/organizations/ext/profile/logo`
1096
+ * - `GET /api/v1/organizations/logo-wall`
1097
+ *
1098
+ * Industry / company-size / logo MIME+size values are copied from the
1099
+ * server SSOT (`src/lib/organizations/profile/constants.ts`) so consumers
1100
+ * can build forms without importing the platform package. Machine-checked by
1101
+ * `scripts/verify-sdk-constants-sync.ts`. Pixel dimensions (64–4096) are
1102
+ * **server-only** and surface as `INVALID_IMAGE`. Request fields use the
1103
+ * unions; response `industry` / `companySize` stay `string | null` so a
1104
+ * server-side code added before the next SDK release still type-checks.
1105
+ */
1106
+ /**
1107
+ * Industry codes for the listing profile (select options).
1108
+ * Append-only: existing published profiles keep referencing these values.
1109
+ */
1110
+ declare const FFID_INDUSTRY_CODES: readonly ["agriculture", "construction", "manufacturing", "it-software", "telecom", "media", "retail", "wholesale", "finance-insurance", "real-estate", "transport-logistics", "hospitality-food", "healthcare", "education", "professional-services", "marketing-advertising", "energy-utilities", "public-sector", "nonprofit", "other"];
1111
+ /** Industry code accepted by `upsertOrganizationProfile`. */
1112
+ type FFIDIndustryCode = (typeof FFID_INDUSTRY_CODES)[number];
1113
+ /** Company-size codes (employee-count ranges). */
1114
+ declare const FFID_COMPANY_SIZE_CODES: readonly ["1-10", "11-50", "51-200", "201-500", "501-1000", "1001+"];
1115
+ /** Company-size code accepted by `upsertOrganizationProfile`. */
1116
+ type FFIDCompanySizeCode = (typeof FFID_COMPANY_SIZE_CODES)[number];
1117
+ /** Max logo file size in MB (shown in client-side error messages). */
1118
+ declare const FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB = 2;
1119
+ /** Max logo file size in bytes (matches the storage bucket limit). */
1120
+ declare const FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES: number;
1121
+ /**
1122
+ * Allowed logo MIME types. SVG is excluded (magic-byte / dimension checks
1123
+ * cannot run, and it can carry script). Empty `file.type` is allowed through
1124
+ * so the server can sniff magic bytes.
1125
+ */
1126
+ declare const FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/webp"];
1127
+ /** Allowed logo MIME type. */
1128
+ type FFIDAllowedLogoMimeType = (typeof FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES)[number];
1129
+ /**
1130
+ * Domain error codes from the profile GET/PUT and logo POST routes
1131
+ * (`CONSENTED_BY_NOT_MEMBER`, `MISSING_FILE`, …). Auth / `DATABASE_ERROR` /
1132
+ * `INTERNAL_ERROR` still pass through as `FFIDError.code: string`.
1133
+ * Logo-wall failures are `INTERNAL_ERROR` only (not listed here).
1134
+ * Branch on these constants instead of string literals.
1135
+ */
1136
+ declare const FFID_ORGANIZATION_PROFILE_ERROR_CODES: {
1137
+ readonly VALIDATION_ERROR: "VALIDATION_ERROR";
1138
+ readonly ORGANIZATION_NOT_FOUND: "ORGANIZATION_NOT_FOUND";
1139
+ readonly CONSENTED_BY_NOT_MEMBER: "CONSENTED_BY_NOT_MEMBER";
1140
+ readonly MISSING_FILE: "MISSING_FILE";
1141
+ readonly INVALID_FILE_TYPE: "INVALID_FILE_TYPE";
1142
+ readonly FILE_TOO_LARGE: "FILE_TOO_LARGE";
1143
+ readonly INVALID_IMAGE: "INVALID_IMAGE";
1144
+ readonly LOGO_UPLOAD_FAILED: "LOGO_UPLOAD_FAILED";
1145
+ };
1146
+ /** Union of organization-profile server error code literals. */
1147
+ type FFIDOrganizationProfileErrorCode = (typeof FFID_ORGANIZATION_PROFILE_ERROR_CODES)[keyof typeof FFID_ORGANIZATION_PROFILE_ERROR_CODES];
1148
+ /** Organization listing profile (camelCase, matches the ext/profile wire). */
1149
+ interface FFIDOrganizationProfile {
1150
+ organizationId: string;
1151
+ displayName: string | null;
1152
+ industry: string | null;
1153
+ companySize: string | null;
1154
+ websiteUrl: string | null;
1155
+ logoPath: string | null;
1156
+ /** Public URL derived from `logoPath` (`null` when no logo is stored). */
1157
+ logoUrl: string | null;
1158
+ listingConsentedAt: string | null;
1159
+ listingConsentVersion: string | null;
1160
+ listingConsentedBy: string | null;
1161
+ listingRevokedAt: string | null;
1162
+ /** True when consent is recorded and not revoked. */
1163
+ listingActive: boolean;
1164
+ createdAt: string;
1165
+ updatedAt: string;
1166
+ }
1167
+ /**
1168
+ * Response from `getOrganizationProfile` / `upsertOrganizationProfile`.
1169
+ * GET: `profile` is `null` (HTTP 200) when the org exists but has no row yet.
1170
+ * PUT upsert always returns a profile object (empty body still inserts a row).
1171
+ */
1172
+ interface FFIDOrganizationProfileResponse {
1173
+ organizationId: string;
1174
+ profile: FFIDOrganizationProfile | null;
1175
+ }
1176
+ /**
1177
+ * Listing-consent mutation.
1178
+ *
1179
+ * - `{ consented: true, consentVersion, consentedByUserId }` records consent
1180
+ * (`consentedByUserId` must be an active member of the target org; otherwise
1181
+ * the server returns {@link FFID_ORGANIZATION_PROFILE_ERROR_CODES.CONSENTED_BY_NOT_MEMBER}).
1182
+ * - `{ consented: false }` revokes (no-op if never consented).
1183
+ * - Omit the field to leave consent unchanged.
1184
+ */
1185
+ type FFIDListingConsentInput = {
1186
+ consented: true;
1187
+ consentVersion: string;
1188
+ consentedByUserId: string;
1189
+ } | {
1190
+ consented: false;
1191
+ consentVersion?: never;
1192
+ consentedByUserId?: never;
1193
+ };
1194
+ /**
1195
+ * PUT body fields (all optional partial update).
1196
+ * `null` clears `displayName` / `industry` / `companySize` / `websiteUrl`.
1197
+ * Consent is not nullable — omit to leave unchanged, or pass
1198
+ * `{ consented: false }` to revoke.
1199
+ */
1200
+ interface FFIDUpsertOrganizationProfileRequest {
1201
+ displayName?: string | null;
1202
+ industry?: FFIDIndustryCode | null;
1203
+ companySize?: FFIDCompanySizeCode | null;
1204
+ websiteUrl?: string | null;
1205
+ listingConsent?: FFIDListingConsentInput;
1206
+ }
1207
+ /** Params for `upsertOrganizationProfile` (params-object form). */
1208
+ interface FFIDUpsertOrganizationProfileParams extends FFIDUpsertOrganizationProfileRequest {
1209
+ organizationId: string;
1210
+ }
1211
+ /** Params for `uploadOrganizationLogo` (params-object form). */
1212
+ interface FFIDUploadOrganizationLogoParams {
1213
+ organizationId: string;
1214
+ /** Image blob (`File` in browsers; `Blob` is enough in Node 18+). */
1215
+ file: Blob;
1216
+ }
1217
+ /** Response from `uploadOrganizationLogo`. */
1218
+ interface FFIDOrganizationLogoUploadResponse {
1219
+ organizationId: string;
1220
+ logoPath: string;
1221
+ logoUrl: string;
1222
+ }
1223
+ /** One public logo-wall entry (public listing fields only; omits consent metadata). */
1224
+ interface FFIDLogoWallEntry {
1225
+ displayName: string | null;
1226
+ logoUrl: string;
1227
+ websiteUrl: string | null;
1228
+ }
1229
+ /** Response from `getPublicLogoWall`. */
1230
+ interface FFIDLogoWallResponse {
1231
+ entries: FFIDLogoWallEntry[];
1232
+ count: number;
1233
+ }
1234
+
1090
1235
  /**
1091
1236
  * User profile types (ext API: `GET` / `PUT /api/v1/users/ext/me`).
1092
1237
  *
@@ -1635,6 +1780,21 @@ declare function createFFIDClient(config: FFIDConfig): {
1635
1780
  organizationId: string;
1636
1781
  userId: string;
1637
1782
  }) => Promise<FFIDApiResponse<FFIDRemoveMemberResponse>>;
1783
+ getOrganizationProfile: {
1784
+ (organizationId: string): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1785
+ (params: {
1786
+ organizationId: string;
1787
+ }): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1788
+ };
1789
+ upsertOrganizationProfile: {
1790
+ (organizationId: string, payload?: FFIDUpsertOrganizationProfileRequest): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1791
+ (params: FFIDUpsertOrganizationProfileParams): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1792
+ };
1793
+ uploadOrganizationLogo: {
1794
+ (organizationId: string, file: Blob): Promise<FFIDApiResponse<FFIDOrganizationLogoUploadResponse>>;
1795
+ (params: FFIDUploadOrganizationLogoParams): Promise<FFIDApiResponse<FFIDOrganizationLogoUploadResponse>>;
1796
+ };
1797
+ getPublicLogoWall: () => Promise<FFIDApiResponse<FFIDLogoWallResponse>>;
1638
1798
  provisionUser: (params: FFIDProvisionUserParams) => Promise<FFIDApiResponse<FFIDProvisionUserResponse>>;
1639
1799
  sendProvisionWelcomeEmail: (params: FFIDProvisionWelcomeEmailParams) => Promise<FFIDApiResponse<FFIDProvisionWelcomeEmailResponse>>;
1640
1800
  provisionOrganization: (params: FFIDProvisionOrganizationParams) => Promise<FFIDApiResponse<FFIDProvisionOrganizationResponse>>;
@@ -2738,4 +2898,4 @@ declare function createInquiryMethods(deps: InquiryMethodsDeps): {
2738
2898
  };
2739
2899
  type FFIDInquiryClient = ReturnType<typeof createInquiryMethods>;
2740
2900
 
2741
- 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 };
2901
+ 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, type FFIDAllowedLogoMimeType, 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, type FFIDCompanySizeCode, FFIDConfig, type FFIDCreateCheckoutParams, type FFIDCreatePortalParams, FFIDError, type FFIDErrorCode, type FFIDIndustryCode, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDInvitationStatus, type FFIDInviteMemberRequest, type FFIDInviteMemberResponse, type FFIDLeaveOrganizationParams, type FFIDLeaveOrganizationResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, type FFIDListingConsentInput, FFIDLogger, type FFIDLoginHistoryEntry, type FFIDLoginHistoryResponse, type FFIDLogoWallEntry, type FFIDLogoWallResponse, 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 FFIDOrganizationLogoUploadResponse, type FFIDOrganizationMember, type FFIDOrganizationNotificationPreferences, type FFIDOrganizationNotificationPreferencesResponse, type FFIDOrganizationProfile, type FFIDOrganizationProfileErrorCode, type FFIDOrganizationProfileResponse, 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, type FFIDUploadOrganizationLogoParams, type FFIDUpsertOrganizationProfileParams, type FFIDUpsertOrganizationProfileRequest, FFIDUser, type FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, FFID_ORGANIZATION_PROFILE_ERROR_CODES, 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,6 +1,6 @@
1
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
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
- 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';
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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-Bwr0FBrV.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
6
6
  import 'zod';
@@ -1087,6 +1087,151 @@ interface FFIDLeaveOrganizationResponse {
1087
1087
  message: string;
1088
1088
  }
1089
1089
 
1090
+ /**
1091
+ * Types for the organization profile + public logo-wall APIs (#5485 / #5547).
1092
+ *
1093
+ * Mirrors:
1094
+ * - `GET/PUT /api/v1/organizations/ext/profile`
1095
+ * - `POST /api/v1/organizations/ext/profile/logo`
1096
+ * - `GET /api/v1/organizations/logo-wall`
1097
+ *
1098
+ * Industry / company-size / logo MIME+size values are copied from the
1099
+ * server SSOT (`src/lib/organizations/profile/constants.ts`) so consumers
1100
+ * can build forms without importing the platform package. Machine-checked by
1101
+ * `scripts/verify-sdk-constants-sync.ts`. Pixel dimensions (64–4096) are
1102
+ * **server-only** and surface as `INVALID_IMAGE`. Request fields use the
1103
+ * unions; response `industry` / `companySize` stay `string | null` so a
1104
+ * server-side code added before the next SDK release still type-checks.
1105
+ */
1106
+ /**
1107
+ * Industry codes for the listing profile (select options).
1108
+ * Append-only: existing published profiles keep referencing these values.
1109
+ */
1110
+ declare const FFID_INDUSTRY_CODES: readonly ["agriculture", "construction", "manufacturing", "it-software", "telecom", "media", "retail", "wholesale", "finance-insurance", "real-estate", "transport-logistics", "hospitality-food", "healthcare", "education", "professional-services", "marketing-advertising", "energy-utilities", "public-sector", "nonprofit", "other"];
1111
+ /** Industry code accepted by `upsertOrganizationProfile`. */
1112
+ type FFIDIndustryCode = (typeof FFID_INDUSTRY_CODES)[number];
1113
+ /** Company-size codes (employee-count ranges). */
1114
+ declare const FFID_COMPANY_SIZE_CODES: readonly ["1-10", "11-50", "51-200", "201-500", "501-1000", "1001+"];
1115
+ /** Company-size code accepted by `upsertOrganizationProfile`. */
1116
+ type FFIDCompanySizeCode = (typeof FFID_COMPANY_SIZE_CODES)[number];
1117
+ /** Max logo file size in MB (shown in client-side error messages). */
1118
+ declare const FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB = 2;
1119
+ /** Max logo file size in bytes (matches the storage bucket limit). */
1120
+ declare const FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES: number;
1121
+ /**
1122
+ * Allowed logo MIME types. SVG is excluded (magic-byte / dimension checks
1123
+ * cannot run, and it can carry script). Empty `file.type` is allowed through
1124
+ * so the server can sniff magic bytes.
1125
+ */
1126
+ declare const FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/webp"];
1127
+ /** Allowed logo MIME type. */
1128
+ type FFIDAllowedLogoMimeType = (typeof FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES)[number];
1129
+ /**
1130
+ * Domain error codes from the profile GET/PUT and logo POST routes
1131
+ * (`CONSENTED_BY_NOT_MEMBER`, `MISSING_FILE`, …). Auth / `DATABASE_ERROR` /
1132
+ * `INTERNAL_ERROR` still pass through as `FFIDError.code: string`.
1133
+ * Logo-wall failures are `INTERNAL_ERROR` only (not listed here).
1134
+ * Branch on these constants instead of string literals.
1135
+ */
1136
+ declare const FFID_ORGANIZATION_PROFILE_ERROR_CODES: {
1137
+ readonly VALIDATION_ERROR: "VALIDATION_ERROR";
1138
+ readonly ORGANIZATION_NOT_FOUND: "ORGANIZATION_NOT_FOUND";
1139
+ readonly CONSENTED_BY_NOT_MEMBER: "CONSENTED_BY_NOT_MEMBER";
1140
+ readonly MISSING_FILE: "MISSING_FILE";
1141
+ readonly INVALID_FILE_TYPE: "INVALID_FILE_TYPE";
1142
+ readonly FILE_TOO_LARGE: "FILE_TOO_LARGE";
1143
+ readonly INVALID_IMAGE: "INVALID_IMAGE";
1144
+ readonly LOGO_UPLOAD_FAILED: "LOGO_UPLOAD_FAILED";
1145
+ };
1146
+ /** Union of organization-profile server error code literals. */
1147
+ type FFIDOrganizationProfileErrorCode = (typeof FFID_ORGANIZATION_PROFILE_ERROR_CODES)[keyof typeof FFID_ORGANIZATION_PROFILE_ERROR_CODES];
1148
+ /** Organization listing profile (camelCase, matches the ext/profile wire). */
1149
+ interface FFIDOrganizationProfile {
1150
+ organizationId: string;
1151
+ displayName: string | null;
1152
+ industry: string | null;
1153
+ companySize: string | null;
1154
+ websiteUrl: string | null;
1155
+ logoPath: string | null;
1156
+ /** Public URL derived from `logoPath` (`null` when no logo is stored). */
1157
+ logoUrl: string | null;
1158
+ listingConsentedAt: string | null;
1159
+ listingConsentVersion: string | null;
1160
+ listingConsentedBy: string | null;
1161
+ listingRevokedAt: string | null;
1162
+ /** True when consent is recorded and not revoked. */
1163
+ listingActive: boolean;
1164
+ createdAt: string;
1165
+ updatedAt: string;
1166
+ }
1167
+ /**
1168
+ * Response from `getOrganizationProfile` / `upsertOrganizationProfile`.
1169
+ * GET: `profile` is `null` (HTTP 200) when the org exists but has no row yet.
1170
+ * PUT upsert always returns a profile object (empty body still inserts a row).
1171
+ */
1172
+ interface FFIDOrganizationProfileResponse {
1173
+ organizationId: string;
1174
+ profile: FFIDOrganizationProfile | null;
1175
+ }
1176
+ /**
1177
+ * Listing-consent mutation.
1178
+ *
1179
+ * - `{ consented: true, consentVersion, consentedByUserId }` records consent
1180
+ * (`consentedByUserId` must be an active member of the target org; otherwise
1181
+ * the server returns {@link FFID_ORGANIZATION_PROFILE_ERROR_CODES.CONSENTED_BY_NOT_MEMBER}).
1182
+ * - `{ consented: false }` revokes (no-op if never consented).
1183
+ * - Omit the field to leave consent unchanged.
1184
+ */
1185
+ type FFIDListingConsentInput = {
1186
+ consented: true;
1187
+ consentVersion: string;
1188
+ consentedByUserId: string;
1189
+ } | {
1190
+ consented: false;
1191
+ consentVersion?: never;
1192
+ consentedByUserId?: never;
1193
+ };
1194
+ /**
1195
+ * PUT body fields (all optional partial update).
1196
+ * `null` clears `displayName` / `industry` / `companySize` / `websiteUrl`.
1197
+ * Consent is not nullable — omit to leave unchanged, or pass
1198
+ * `{ consented: false }` to revoke.
1199
+ */
1200
+ interface FFIDUpsertOrganizationProfileRequest {
1201
+ displayName?: string | null;
1202
+ industry?: FFIDIndustryCode | null;
1203
+ companySize?: FFIDCompanySizeCode | null;
1204
+ websiteUrl?: string | null;
1205
+ listingConsent?: FFIDListingConsentInput;
1206
+ }
1207
+ /** Params for `upsertOrganizationProfile` (params-object form). */
1208
+ interface FFIDUpsertOrganizationProfileParams extends FFIDUpsertOrganizationProfileRequest {
1209
+ organizationId: string;
1210
+ }
1211
+ /** Params for `uploadOrganizationLogo` (params-object form). */
1212
+ interface FFIDUploadOrganizationLogoParams {
1213
+ organizationId: string;
1214
+ /** Image blob (`File` in browsers; `Blob` is enough in Node 18+). */
1215
+ file: Blob;
1216
+ }
1217
+ /** Response from `uploadOrganizationLogo`. */
1218
+ interface FFIDOrganizationLogoUploadResponse {
1219
+ organizationId: string;
1220
+ logoPath: string;
1221
+ logoUrl: string;
1222
+ }
1223
+ /** One public logo-wall entry (public listing fields only; omits consent metadata). */
1224
+ interface FFIDLogoWallEntry {
1225
+ displayName: string | null;
1226
+ logoUrl: string;
1227
+ websiteUrl: string | null;
1228
+ }
1229
+ /** Response from `getPublicLogoWall`. */
1230
+ interface FFIDLogoWallResponse {
1231
+ entries: FFIDLogoWallEntry[];
1232
+ count: number;
1233
+ }
1234
+
1090
1235
  /**
1091
1236
  * User profile types (ext API: `GET` / `PUT /api/v1/users/ext/me`).
1092
1237
  *
@@ -1635,6 +1780,21 @@ declare function createFFIDClient(config: FFIDConfig): {
1635
1780
  organizationId: string;
1636
1781
  userId: string;
1637
1782
  }) => Promise<FFIDApiResponse<FFIDRemoveMemberResponse>>;
1783
+ getOrganizationProfile: {
1784
+ (organizationId: string): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1785
+ (params: {
1786
+ organizationId: string;
1787
+ }): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1788
+ };
1789
+ upsertOrganizationProfile: {
1790
+ (organizationId: string, payload?: FFIDUpsertOrganizationProfileRequest): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1791
+ (params: FFIDUpsertOrganizationProfileParams): Promise<FFIDApiResponse<FFIDOrganizationProfileResponse>>;
1792
+ };
1793
+ uploadOrganizationLogo: {
1794
+ (organizationId: string, file: Blob): Promise<FFIDApiResponse<FFIDOrganizationLogoUploadResponse>>;
1795
+ (params: FFIDUploadOrganizationLogoParams): Promise<FFIDApiResponse<FFIDOrganizationLogoUploadResponse>>;
1796
+ };
1797
+ getPublicLogoWall: () => Promise<FFIDApiResponse<FFIDLogoWallResponse>>;
1638
1798
  provisionUser: (params: FFIDProvisionUserParams) => Promise<FFIDApiResponse<FFIDProvisionUserResponse>>;
1639
1799
  sendProvisionWelcomeEmail: (params: FFIDProvisionWelcomeEmailParams) => Promise<FFIDApiResponse<FFIDProvisionWelcomeEmailResponse>>;
1640
1800
  provisionOrganization: (params: FFIDProvisionOrganizationParams) => Promise<FFIDApiResponse<FFIDProvisionOrganizationResponse>>;
@@ -2738,4 +2898,4 @@ declare function createInquiryMethods(deps: InquiryMethodsDeps): {
2738
2898
  };
2739
2899
  type FFIDInquiryClient = ReturnType<typeof createInquiryMethods>;
2740
2900
 
2741
- 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 };
2901
+ 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, type FFIDAllowedLogoMimeType, 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, type FFIDCompanySizeCode, FFIDConfig, type FFIDCreateCheckoutParams, type FFIDCreatePortalParams, FFIDError, type FFIDErrorCode, type FFIDIndustryCode, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDInvitationStatus, type FFIDInviteMemberRequest, type FFIDInviteMemberResponse, type FFIDLeaveOrganizationParams, type FFIDLeaveOrganizationResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, type FFIDListingConsentInput, FFIDLogger, type FFIDLoginHistoryEntry, type FFIDLoginHistoryResponse, type FFIDLogoWallEntry, type FFIDLogoWallResponse, 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 FFIDOrganizationLogoUploadResponse, type FFIDOrganizationMember, type FFIDOrganizationNotificationPreferences, type FFIDOrganizationNotificationPreferencesResponse, type FFIDOrganizationProfile, type FFIDOrganizationProfileErrorCode, type FFIDOrganizationProfileResponse, 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, type FFIDUploadOrganizationLogoParams, type FFIDUpsertOrganizationProfileParams, type FFIDUpsertOrganizationProfileRequest, FFIDUser, type FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, FFID_ORGANIZATION_PROFILE_ERROR_CODES, 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,6 +1,6 @@
1
- import { useFFIDContext, useSubscription } from './chunk-NBBHMLXO.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-NBBHMLXO.js';
3
- export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-G7VOX64X.js';
1
+ import { useFFIDContext, useSubscription } from './chunk-Y4TUICQZ.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_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_ORGANIZATION_PROFILE_ERROR_CODES, 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-Y4TUICQZ.js';
3
+ export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-RHBZHSRD.js';
4
4
  import { useEffect, useRef } from 'react';
5
5
  import { jsx, Fragment } from 'react/jsx-runtime';
6
6